diff --git a/generation/remap-classes.rsp b/generation/remap-classes.rsp index 1bc7e95a73..c12bd6b9fc 100644 --- a/generation/remap-classes.rsp +++ b/generation/remap-classes.rsp @@ -1,101 +1,522 @@ --with-class +ABM_*=ABM +ACCESS_*=ACCESS +ACM_*=ACM +ACTIVATION_*=ACTIVATION +AF_*=AF +AI_*=AI ALG_*=ALG +AMDDS_*=AMDDS +AMINTERLACE_*=AMINTERLACE +AMMPEG2_*=AMMPEG2 +AM_*=AM APPCOMMAND_*=APPCOMMAND +APPIDREGFLAGS_*=APPIDREGFLAGS +APPX_*=APPX +ARCONTENT_*=ARCONTENT +ARW_*=ARW +ASSOCF_*=ASSOCF +AUDCLNT_*=AUDCLNT +BACKUP_*=BACKUP +BATTERY_*=BATTERY +BAUD_*=BAUD +BCM_*=BCM +BFFM_*=BFFM +BF_*=BF +BIF_*=BIF +BN_*=BN +BSF_*=BSF +BSIS_*=BSIS +BS_*=BS +BTNS_*=BTNS CALG_*=CALG +CBEM_*=CBEM +CBEN_*=CBEN +CBN_*=CBN +CBR_*=CBR +CBS_*=CBS +CB_*=CB +CCM_*=CCM +CCS_*=CCS +CC_*=CC +CDDS_*=CDDS +CDIS_*=CDIS +CDS_*=CDS CERTSRV_*=CERTSRV CERT_*=CERT +CE_*=CE CFSTR_*=CFSTR +CF_*=CF +CHANGER_*=CHANGER +CLAIM_*=CLAIM CLSID_*=CLSID +CMC_*=CMC +CMF_*=CMF +CMIC_*=CMIC CMSG_*=CMSG +CM_*=CM +COLOR_*=COLOR COMADMIN_*=COMADMIN +CONNECT_*=CONNECT +CONSOLE_*=CONSOLE +CONTAINER_*=CONTAINER CONTEXT_*=CONTEXT +CONVERT10_*=CONVERT10 +COPYFLG_*=COPYFLG +COPY_*=COPY CO_*=CO +CPD_*=CPD +CPL_*=CPL +CREATE_*=CREATE +CREDUIWIN_*=CREDUIWIN +CREDUI_*=CREDUI CRED_*=CRED +CRL_*=CRL CRYPTNET_*=CRYPTNET CRYPT_*=CRYPT CSIDL_*=CSIDL +CS_*=CS +CTF_*=CTF +CTL_*=CTL +D2D1_*=D2D1 +D2DERR_*=D2DERR +D3D10_*=D3D10 +D3D11_*=D3D11 +D3D12_*=D3D12 +D3DFMT_*=D3DFMT +DBG_*=DBG +DBIMF_*=DBIMF +DCX_*=DCX +DC_*=DC +DEFAULT_*=DEFAULT +DESKTOP_*=DESKTOP +DeviceDsmAction_*=DeviceDsmAction +DEVICEFAMILYDEVICEFORM_*=DEVICEFAMILYDEVICEFORM +DEVICEFAMILYINFOENUM_*=DEVICEFAMILYINFOENUM +DEVICE_*=DEVICE +DEVPROP_*=DEVPROP +DFCS_*=DFCS +DFM_*=DFM +DIF_*=DIF +DIRID_*=DIRID DISPID_*=DISPID +DISPLAYCONFIG_*=DISPLAYCONFIG +DISPLAY_*=DISPLAY +DISP_*=DISP DI_*=DI +DLGC_*=DLGC +DMBIN_*=DMBIN +DMDITHER_*=DMDITHER DMPAPER_*=DMPAPER +DM_*=DM +DNF_*=DNF DNS_*=DNS DOMAIN_*=DOMAIN +DRAGDROP_*=DRAGDROP +DS_*=DS +DTM_*=DTM +DTN_*=DTN +DTT_*=DTT +DT_*=DT +DVD_*=DVD +DV_*=DV +DWM_*=DWM +DWRITE_*=DWRITE +DXGI_*=DXGI +EAS_*=EAS +EC_*=EC +ELEMENT_*=ELEMENT +EMARCH_*=EMARCH EM_*=EM +ENABLE_*=ENABLE +ENLISTMENT_*=ENLISTMENT +EN_*=EN ERROR_*=ERROR +ES_*=ES +EVENTLOG_*=EVENTLOG EVENT_*=EVENT +EV_*=EV +EWX_*=EWX +EXCEPTION_*=EXCEPTION E_*=E FACILITY_*=FACILITY +FADF_*=FADF FAST_*=FAST +FCIDM_*=FCIDM FILE_*=FILE +FLAG_*=FLAG FLG_*=FLG +FOFX_*=FOFX +FOF_*=FOF +FRS_*=FRS FSCTL_*=FSCTL +FS_*=FS FVE_*=FVE FWP_*=FWP +FW_*=FW +GAA_*=GAA +GCL_*=GCL +GCPCLASS_*=GCPCLASS +GCP_*=GCP +GCS_*=GCS +GET_*=GET +GIL_*=GIL +GL_*=GL +GMEM_*=GMEM +GPO_*=GPO +GPT_*=GPT +GP_*=GP +GUID_*=GUID +HCBT_*=HCBT +HCF_*=HCF +HCN_*=HCN +HCS_*=HCS +HDF_*=HDF +HDI_*=HDI +HDM_*=HDM +HDN_*=HDN +HDS_*=HDS +HEAP_*=HEAP +HELP_*=HELP +HHT_*=HHT +HICF_*=HICF +HIDP_*=HIDP HID_*=HID HRESULT_FROM_WIN32=Windows +HSHELL_*=HSHELL +HTTB_*=HTTB HTTP_*=HTTP +ICC_*=ICC +ICM_*=ICM +IDB_*=IDB +IDD_*=IDD +IDF_*=IDF +IDI_*=IDI +IEIFLAG_*=IEIFLAG IF_*=IF IID_*=IID +ILC_*=ILC +ILD_*=ILD +ILLUMINANT_*=ILLUMINANT IMAGE_*=IMAGE +IMC_*=IMC IME_*=IME +IMN_*=IMN INET_*=INET +INIT_*=INIT +INSTALLPROPERTY_*=INSTALLPROPERTY +INTERNET_*=INTERNET +IN_*=IN IOCTL_*=IOCTL IO_*=IO +IPPORT_*=IPPORT IPROPNAME_*=IPROPNAME +IPROPVALUE_*=IPROPVALUE +IPV6_*=IPV6 IP_*=IP +ISFB_*=ISFB +IS_*=IS JIFMK_*=JIFMK JOB_*=JOB +KEY_*=KEY +KP_*=KP LANG_*=LANG +LBS_*=LBS +LB_*=LB +LIBID_*=LIBID +LMEM_*=LMEM +LOAD_*=LOAD +LOCALE_*=LOCALE +LOGON32_*=LOGON32 +LPD_*=LPD +LR_*=LR +LVBKIF_*=LVBKIF +LVCFMT_*=LVCFMT +LVGF_*=LVGF +LVHT_*=LVHT +LVIF_*=LVIF LVM_*=LVM +LVNI_*=LVNI +LVN_*=LVN LVS_*=LVS +MARK_*=MARK MAX_*=MAX +MB_*=MB +MCAST_*=MCAST +MCHT_*=MCHT +MCM_*=MCM +MEDIASUBTYPE_*=MEDIASUBTYPE +MEM_*=MEM +MENROLL_*=MENROLL META_*=META +MFAudioFormat_*=MFAudioFormat +MFASYNC_*=MFASYNC +MFBYTESTREAM_*=MFBYTESTREAM +MFT_*=MFT MF_*=MF +MFVideoFormat_*=MFVideoFormat +MIB_*=MIB +MIDIERR_*=MIDIERR +MILAVERR_*=MILAVERR +MILEFFECTSERR_*=MILEFFECTSERR +MILERR_*=MILERR +MIM_*=MIM MIXERCONTROL_*=MIXERCONTROL +MIXERLINE_*=MIXERLINE +MIXER_*=MIXER +MKF_*=MKF +MK_*=MK +MMSYSERR_*=MMSYSERR MM_*=MM +MOD_*=MOD +MOUSEEVENTF_*=MOUSEEVENTF +MREGISTER_*=MREGISTER +MSGF_*=MSGF +MSOCMDID_*=MSOCMDID +MSSIPOTF_*=MSSIPOTF +MS_*=MS +MUTZ_*=MUTZ +NAP_*=NAP +NDW_*=NDW NERR_*=NERR +NET_*=NET +NIIF_*=NIIF +NI_*=NI +NM_*=NM +NS_*=NS NTE_*=NTE +OBJID_*=OBJID +OBJ_*=OBJ +OBM_*=OBM +OCR_*=OCR +OCSP_*=OCSP +ODS_*=ODS +OF_*=OF +OIC_*=OIC +OLE_*=OLE +ONL_*=ONL +OSS_*=OSS +OS_*=OS +OUT_*=OUT +PACKAGE_*=PACKAGE +PAGE_*=PAGE PAN_*=PAN +PARTITION_*=PARTITION +PBM_*=PBM +PBT_*=PBT +PCF_*=PCF +PC_*=PC +PDC_*=PDC +PEERDIST_*=PEERDIST PEER_*=PEER +PERSISTENT_*=PERSISTENT +PFD_*=PFD +PF_*=PF +PGF_*=PGF +PGM_*=PGM +PIDVSI_*=PIDVSI PID_*=PID +PIPE_*=PIPE +PKCS12_*=PKCS12 +PLA_*=PLA +POINTER_*=POINTER +POWERBUTTON_*=POWERBUTTON +POWER_*=POWER +PPM_*=PPM +PP_*=PP +PRF_*=PRF PROCESSOR_*=PROCESSOR PROCESS_*=PROCESS +PROC_*=PROC PRODUCT_*=PRODUCT +PROTECTION_*=PROTECTION +PROV_*=PROV +PSH_*=PSH +PSINJECT_*=PSINJECT +PSM_*=PSM +PSN_*=PSN +PSP_*=PSP +PST_*=PST +PS_*=PS +QS_*=QS +QUERY_*=QUERY +R2_*=R2 +RBBIM_*=RBBIM +RBBS_*=RBBS +RBN_*=RBN +RB_*=RB +RC_*=RC +RDW_*=RDW +READ_*=READ +REGDB_*=REGDB REG_*=REG +RESOURCEDISPLAYTYPE_*=RESOURCEDISPLAYTYPE +RESOURCEMANAGER_*=RESOURCEMANAGER +RESOURCE_*=RESOURCE +RIDEV_*=RIDEV +RIFFCPPO_*=RIFFCPPO +RIFFINFO_*=RIFFINFO +RI_*=RI +ROCKWELL_*=ROCKWELL +RO_*=RO RPC_*=RPC +RPI_*=RPI +RRF_*=RRF +SBSP_*=SBSP +SBS_*=SBS SB_*=SB SCARD_*=SCARD +SCHANNEL_*=SCHANNEL +SCHED_*=SCHED +SCH_*=SCH +SCRUB_*=SCRUB +SCS_*=SCS +SC_*=SC +SDC_*=SDC +SDIAG_*=SDIAG SECURITY_*=SECURITY SEC_*=SEC +SEE_*=SEE +SEF_*=SEF +SERIAL_*=SERIAL +SERVICE_*=SERVICE +SET_*=SET SE_*=SE +SFGAO_*=SFGAO +SFVM_*=SFVM +SHACF_*=SHACF +SHCNE_*=SHCNE +SHCNF_*=SHCNF +SHDID_*=SHDID +SHGFI_*=SHGFI +SHGVSPB_*=SHGVSPB SHTDN_*=SHTDN +SHUTDOWN_*=SHUTDOWN +SIGNERSCORE_*=SIGNERSCORE +SIGNER_*=SIGNER +SIO_*=SIO +SKF_*=SKF +SMART_*=SMART +SMC_*=SMC SM_*=SM +SORT_*=SORT +SOUND_*=SOUND +SO_*=SO SPAPI_*=SPAPI +SPC_*=SPC +SPDRP_*=SPDRP +SPDUI_*=SPDUI +SPEAKER_*=SPEAKER +SPFILENOTIFY_*=SPFILENOTIFY +SPINST_*=SPINST SPI_*=SPI +SPPROP_*=SPPROP +SPQ_*=SPQ +SPREG_*=SPREG +SPSVCINST_*=SPSVCINST +SPTLAUDCLNT_*=SPTLAUDCLNT +SPTLAUD_*=SPTLAUD SP_*=SP SQLITE_*=SQLITE +SRRF_*=SRRF +SSF_*=SSF +SSL_*=SSL +SS_*=SS +STARTF_*=STARTF +STATEREPOSITORY_*=STATEREPOSITORY +STATE_*=STATE STATUS_*=STATUS +STD_*=STD STG_*=STG STORAGE_*=STORAGE +STREAM_*=STREAM +STR_*=STR SUBLANG_*=SUBLANG +SWP_*=SWP +SW_*=SW +SYSTEM_*=SYSTEM +SZ_*=SZ +S_*=S +TABLET_*=TABLET TAPE_*=TAPE +TA_*=TA +TBIF_*=TBIF +TBM_*=TBM +TBN_*=TBN +TBSIMP_*=TBSIMP +TBSTYLE_*=TBSTYLE TBS_*=TBS TB_*=TB +TCM_*=TCM +TCP_*=TCP +TCS_*=TCS +TC_*=TC TF_*=TF +THREAD_*=THREAD +TIMESTAMP_*=TIMESTAMP +TLS1_*=TLS1 TMT_*=TMT +TOKEN_*=TOKEN +TOUCH_*=TOUCH +TPC_*=TPC +TPMAPI_*=TPMAPI TPM_*=TPM +TRANSACTIONMANAGER_*=TRANSACTIONMANAGER TRANSACTION_*=TRANSACTION +TRUSTERROR_*=TRUSTERROR +TRUST_*=TRUST TS_*=TS TTM_*=TTM +TTN_*=TTN +TVGN_*=TVGN +TVHT_*=TVHT +TVIF_*=TVIF +TVIS_*=TVIS TVM_*=TVM +TVN_*=TVN +TVS_*=TVS TXFS_*=TXFS +TYPE_*=TYPE +UCEERR_*=UCEERR +UDM_*=UDM +UI_*=UI +Uri_*=Uri URLACTION_*=URLACTION +URLPOLICY_*=URLPOLICY +URL_*=URL +USN_*=USN UTC_*=UTC +VER_*=VER +VIEW_*=VIEW VK_*=VK +VM_*=VM +VP_*=VP VSCLASS_*=VSCLASS WAVE_*=WAVE +WC_*=WC +WER_*=WER +WGL_*=WGL +WHV_*=WHV +WH_*=WH +WICRawChangeNotification_*=WICRawChangeNotification +WIC_*=WIC WINCODEC_*=WINCODEC WINHTTP_*=WINHTTP WININET_*=WININET +WINSTA_*=WINSTA WM_*=WM +WN_*=WN +WOW64_*=WOW64 +WPN_*=WPN +WSA_*=WSA +WSB_*=WSB +WSS_*=WSS WS_*=WS +WTD_*=WTD +WTPF_*=WTPF +WTS_*=WTS +WT_*=WT +X3_*=X3 +XAUDIO2FX_*=XAUDIO2FX XACT_*=XACT +XSTATE_*=XSTATE diff --git a/generation/remap-namespaces.rsp b/generation/remap-namespaces.rsp index f6ddb96c43..d1fd56050a 100644 --- a/generation/remap-namespaces.rsp +++ b/generation/remap-namespaces.rsp @@ -1,140 +1,561 @@ --with-namespace +ABM=TerraFX.Interop.Windows +ACCESS=TerraFX.Interop.Windows +ACM=TerraFX.Interop.Windows +ACTIVATION=TerraFX.Interop.Windows +AF=TerraFX.Interop.Windows +AI=TerraFX.Interop.Windows ALG=TerraFX.Interop.Windows +AM=TerraFX.Interop.Windows +AMDDS=TerraFX.Interop.Windows +AMINTERLACE=TerraFX.Interop.Windows +AMMPEG2=TerraFX.Interop.Windows APPCOMMAND=TerraFX.Interop.Windows +APPIDREGFLAGS=TerraFX.Interop.Windows +APPX=TerraFX.Interop.Windows +ARCONTENT=TerraFX.Interop.Windows +ARW=TerraFX.Interop.Windows +ASSOCF=TerraFX.Interop.Windows +AUDCLNT=TerraFX.Interop.Windows AUDIO_STREAM_CATEGORY=TerraFX.Interop.Windows +BACKUP=TerraFX.Interop.Windows +BATTERY=TerraFX.Interop.Windows +BAUD=TerraFX.Interop.Windows +BCM=TerraFX.Interop.Windows +BF=TerraFX.Interop.Windows +BFFM=TerraFX.Interop.Windows +BIF=TerraFX.Interop.Windows BitmapDescription=TerraFX.Interop.WinRT +BN=TerraFX.Interop.Windows BOOL=TerraFX.Interop.Windows +BS=TerraFX.Interop.Windows +BSF=TerraFX.Interop.Windows +BSIS=TerraFX.Interop.Windows +BTNS=TerraFX.Interop.Windows CALG=TerraFX.Interop.Windows +CB=TerraFX.Interop.Windows +CBEM=TerraFX.Interop.Windows +CBEN=TerraFX.Interop.Windows +CBN=TerraFX.Interop.Windows +CBR=TerraFX.Interop.Windows +CBS=TerraFX.Interop.Windows +CC=TerraFX.Interop.Windows +CCM=TerraFX.Interop.Windows +CCS=TerraFX.Interop.Windows +CDDS=TerraFX.Interop.Windows +CDIS=TerraFX.Interop.Windows +CDS=TerraFX.Interop.Windows +CE=TerraFX.Interop.Windows CERT=TerraFX.Interop.Windows CERTSRV=TerraFX.Interop.Windows +CF=TerraFX.Interop.Windows CFSTR=TerraFX.Interop.Windows +CHANGER=TerraFX.Interop.Windows +CLAIM=TerraFX.Interop.Windows CLSID=TerraFX.Interop.Windows +CM=TerraFX.Interop.Windows +CMC=TerraFX.Interop.Windows +CMF=TerraFX.Interop.Windows +CMIC=TerraFX.Interop.Windows CMSG=TerraFX.Interop.Windows CO=TerraFX.Interop.Windows +COLOR=TerraFX.Interop.Windows COMADMIN=TerraFX.Interop.Windows +CONNECT=TerraFX.Interop.Windows +CONSOLE=TerraFX.Interop.Windows +CONTAINER=TerraFX.Interop.Windows CONTEXT=TerraFX.Interop.Windows +CONVERT10=TerraFX.Interop.Windows +COPY=TerraFX.Interop.Windows +COPYFLG=TerraFX.Interop.Windows +CPD=TerraFX.Interop.Windows +CPL=TerraFX.Interop.Windows +CREATE=TerraFX.Interop.Windows CRED=TerraFX.Interop.Windows +CREDUI=TerraFX.Interop.Windows +CREDUIWIN=TerraFX.Interop.Windows +CRL=TerraFX.Interop.Windows CRYPT=TerraFX.Interop.Windows CRYPTNET=TerraFX.Interop.Windows +CS=TerraFX.Interop.Windows CSIDL=TerraFX.Interop.Windows +CTF=TerraFX.Interop.Windows +CTL=TerraFX.Interop.Windows +D2D1=TerraFX.Interop.DirectX D2D1_PIXEL_FORMAT=TerraFX.Interop.DirectX +D2DERR=TerraFX.Interop.DirectX +D3D10=TerraFX.Interop.DirectX +D3D11=TerraFX.Interop.DirectX +D3D12=TerraFX.Interop.DirectX D3D12_RESOURCE_DESC=TerraFX.Interop.DirectX +D3DFMT=TerraFX.Interop.DirectX +DBG=TerraFX.Interop.Windows +DBIMF=TerraFX.Interop.Windows +DC=TerraFX.Interop.Windows +DCX=TerraFX.Interop.Windows DDCAPS_DX7=TerraFX.Interop.DirectX DDCOLORKEY=TerraFX.Interop.DirectX DDPIXELFORMAT=TerraFX.Interop.DirectX +DEFAULT=TerraFX.Interop.Windows +DESKTOP=TerraFX.Interop.Windows +DEVICE=TerraFX.Interop.Windows +DeviceDsmAction=TerraFX.Interop.Windows +DEVICEFAMILYDEVICEFORM=TerraFX.Interop.Windows +DEVICEFAMILYINFOENUM=TerraFX.Interop.Windows +DEVPROP=TerraFX.Interop.Windows +DFCS=TerraFX.Interop.Windows +DFM=TerraFX.Interop.Windows DI=TerraFX.Interop.Windows +DIF=TerraFX.Interop.Windows +DIRID=TerraFX.Interop.Windows +DISP=TerraFX.Interop.Windows DISPID=TerraFX.Interop.Windows +DISPLAY=TerraFX.Interop.Windows +DISPLAYCONFIG=TerraFX.Interop.Windows +DLGC=TerraFX.Interop.Windows +DM=TerraFX.Interop.Windows +DMBIN=TerraFX.Interop.Windows +DMDITHER=TerraFX.Interop.Windows DMPAPER=TerraFX.Interop.Windows +DNF=TerraFX.Interop.Windows DNS=TerraFX.Interop.Windows DOMAIN=TerraFX.Interop.Windows +DRAGDROP=TerraFX.Interop.Windows +DS=TerraFX.Interop.Windows +DT=TerraFX.Interop.Windows +DTM=TerraFX.Interop.Windows +DTN=TerraFX.Interop.Windows +DTT=TerraFX.Interop.Windows +DV=TerraFX.Interop.Windows +DVD=TerraFX.Interop.Windows +DWM=TerraFX.Interop.Windows +DWRITE=TerraFX.Interop.DirectX +DXGI=TerraFX.Interop.DirectX DXGI_FORMAT=TerraFX.Interop.DirectX DXGI_JPEG_QUANTIZATION_TABLE=TerraFX.Interop.DirectX DXGI_RGBA=TerraFX.Interop.DirectX E=TerraFX.Interop.Windows +EAS=TerraFX.Interop.Windows +EC=TerraFX.Interop.Windows +ELEMENT=TerraFX.Interop.Windows EM=TerraFX.Interop.Windows +EMARCH=TerraFX.Interop.Windows +EN=TerraFX.Interop.Windows +ENABLE=TerraFX.Interop.Windows +ENLISTMENT=TerraFX.Interop.Windows ERROR=TerraFX.Interop.Windows +ES=TerraFX.Interop.Windows +EV=TerraFX.Interop.Windows EVENT=TerraFX.Interop.Windows +EVENTLOG=TerraFX.Interop.Windows +EWX=TerraFX.Interop.Windows +EXCEPTION=TerraFX.Interop.Windows FACILITY=TerraFX.Interop.Windows +FADF=TerraFX.Interop.Windows FAST=TerraFX.Interop.Windows +FCIDM=TerraFX.Interop.Windows FILE=TerraFX.Interop.Windows +FLAG=TerraFX.Interop.Windows FLG=TerraFX.Interop.Windows +FOF=TerraFX.Interop.Windows +FOFX=TerraFX.Interop.Windows +FRS=TerraFX.Interop.Windows +FS=TerraFX.Interop.Windows FSCTL=TerraFX.Interop.Windows FVE=TerraFX.Interop.Windows +FW=TerraFX.Interop.Windows FWP=TerraFX.Interop.Windows +GAA=TerraFX.Interop.Windows +GCL=TerraFX.Interop.Windows +GCP=TerraFX.Interop.Windows +GCPCLASS=TerraFX.Interop.Windows +GCS=TerraFX.Interop.Windows +GET=TerraFX.Interop.Windows +GIL=TerraFX.Interop.Windows +GL=TerraFX.Interop.Windows +GMEM=TerraFX.Interop.Windows +GP=TerraFX.Interop.Windows +GPO=TerraFX.Interop.Windows +GPT=TerraFX.Interop.Windows +GUID=TerraFX.Interop.Windows HANDLE=TerraFX.Interop.Windows +HCBT=TerraFX.Interop.Windows +HCF=TerraFX.Interop.Windows +HCN=TerraFX.Interop.Windows +HCS=TerraFX.Interop.Windows +HDF=TerraFX.Interop.Windows +HDI=TerraFX.Interop.Windows +HDM=TerraFX.Interop.Windows +HDN=TerraFX.Interop.Windows +HDS=TerraFX.Interop.Windows +HEAP=TerraFX.Interop.Windows +HELP=TerraFX.Interop.Windows +HHT=TerraFX.Interop.Windows +HICF=TerraFX.Interop.Windows HID=TerraFX.Interop.Windows +HIDP=TerraFX.Interop.Windows HRESULT=TerraFX.Interop.Windows +HSHELL=TerraFX.Interop.Windows HSTRING=TerraFX.Interop.WinRT HSTRING_BUFFER=TerraFX.Interop.WinRT +HTTB=TerraFX.Interop.Windows HTTP=TerraFX.Interop.Windows HWND=TerraFX.Interop.Windows +ICC=TerraFX.Interop.Windows +ICM=TerraFX.Interop.Windows ID2D1Device=TerraFX.Interop.DirectX ID2D1DeviceContext=TerraFX.Interop.DirectX ID2D1Image=TerraFX.Interop.DirectX ID3D12CommandQueue=TerraFX.Interop.DirectX ID3D12Resource=TerraFX.Interop.DirectX +IDB=TerraFX.Interop.Windows IDCompositionAnimation=TerraFX.Interop.DirectX +IDD=TerraFX.Interop.Windows +IDF=TerraFX.Interop.Windows +IDI=TerraFX.Interop.Windows IDirectDraw7=TerraFX.Interop.DirectX IDirectDraw=TerraFX.Interop.DirectX IDirectDrawSurface7=TerraFX.Interop.DirectX IDXGIDevice=TerraFX.Interop.DirectX IDXGISwapChain=TerraFX.Interop.DirectX +IEIFLAG=TerraFX.Interop.Windows IF=TerraFX.Interop.Windows IID=TerraFX.Interop.Windows IInspectable=TerraFX.Interop.WinRT +ILC=TerraFX.Interop.Windows +ILD=TerraFX.Interop.Windows +ILLUMINANT=TerraFX.Interop.Windows IMAGE=TerraFX.Interop.Windows +IMC=TerraFX.Interop.Windows IME=TerraFX.Interop.Windows +IMN=TerraFX.Interop.Windows +IN=TerraFX.Interop.Windows INET=TerraFX.Interop.Windows +INIT=TerraFX.Interop.Windows +INSTALLPROPERTY=TerraFX.Interop.Windows InstanceHandle=TerraFX.Interop.WinRT +INTERNET=TerraFX.Interop.Windows IO=TerraFX.Interop.Windows IOCTL=TerraFX.Interop.Windows IP=TerraFX.Interop.Windows +IPPORT=TerraFX.Interop.Windows IPROPNAME=TerraFX.Interop.Windows +IPROPVALUE=TerraFX.Interop.Windows +IPV6=TerraFX.Interop.Windows +IS=TerraFX.Interop.Windows +ISFB=TerraFX.Interop.Windows IUnknown=TerraFX.Interop.Windows JIFMK=TerraFX.Interop.Windows JOB=TerraFX.Interop.Windows +KEY=TerraFX.Interop.Windows +KP=TerraFX.Interop.Windows LANG=TerraFX.Interop.Windows LARGE_INTEGER=TerraFX.Interop.Windows +LB=TerraFX.Interop.Windows +LBS=TerraFX.Interop.Windows +LIBID=TerraFX.Interop.Windows +LMEM=TerraFX.Interop.Windows +LOAD=TerraFX.Interop.Windows +LOCALE=TerraFX.Interop.Windows +LOGON32=TerraFX.Interop.Windows +LPD=TerraFX.Interop.Windows +LR=TerraFX.Interop.Windows LUID=TerraFX.Interop.Windows +LVBKIF=TerraFX.Interop.Windows +LVCFMT=TerraFX.Interop.Windows +LVGF=TerraFX.Interop.Windows +LVHT=TerraFX.Interop.Windows +LVIF=TerraFX.Interop.Windows LVM=TerraFX.Interop.Windows +LVN=TerraFX.Interop.Windows +LVNI=TerraFX.Interop.Windows LVS=TerraFX.Interop.Windows +MARK=TerraFX.Interop.Windows MAX=TerraFX.Interop.Windows +MB=TerraFX.Interop.Windows +MCAST=TerraFX.Interop.Windows +MCHT=TerraFX.Interop.Windows +MCM=TerraFX.Interop.Windows +MEDIASUBTYPE=TerraFX.Interop.Windows +MEM=TerraFX.Interop.Windows +MENROLL=TerraFX.Interop.Windows META=TerraFX.Interop.Windows MF=TerraFX.Interop.Windows +MFAudioFormat=TerraFX.Interop.Windows +MFASYNC=TerraFX.Interop.Windows +MFBYTESTREAM=TerraFX.Interop.Windows +MFT=TerraFX.Interop.Windows +MFVideoFormat=TerraFX.Interop.Windows +MIB=TerraFX.Interop.Windows +MIDIERR=TerraFX.Interop.Windows +MILAVERR=TerraFX.Interop.Windows +MILEFFECTSERR=TerraFX.Interop.Windows +MILERR=TerraFX.Interop.Windows +MIM=TerraFX.Interop.Windows +MIXER=TerraFX.Interop.Windows MIXERCONTROL=TerraFX.Interop.Windows +MIXERLINE=TerraFX.Interop.Windows +MK=TerraFX.Interop.Windows +MKF=TerraFX.Interop.Windows MM=TerraFX.Interop.Windows +MMSYSERR=TerraFX.Interop.Windows +MOD=TerraFX.Interop.Windows +MOUSEEVENTF=TerraFX.Interop.Windows +MREGISTER=TerraFX.Interop.Windows +MS=TerraFX.Interop.Windows +MSGF=TerraFX.Interop.Windows +MSOCMDID=TerraFX.Interop.Windows +MSSIPOTF=TerraFX.Interop.Windows +MUTZ=TerraFX.Interop.Windows +NAP=TerraFX.Interop.Windows NativeInheritanceAttribute=TerraFX.Interop NativeTypeNameAttribute=TerraFX.Interop +NDW=TerraFX.Interop.Windows NERR=TerraFX.Interop.Windows +NET=TerraFX.Interop.Windows +NI=TerraFX.Interop.Windows +NIIF=TerraFX.Interop.Windows +NM=TerraFX.Interop.Windows +NS=TerraFX.Interop.Windows NTE=TerraFX.Interop.Windows +OBJ=TerraFX.Interop.Windows +OBJID=TerraFX.Interop.Windows +OBM=TerraFX.Interop.Windows +OCR=TerraFX.Interop.Windows +OCSP=TerraFX.Interop.Windows +ODS=TerraFX.Interop.Windows +OF=TerraFX.Interop.Windows +OIC=TerraFX.Interop.Windows +OLE=TerraFX.Interop.Windows +ONL=TerraFX.Interop.Windows +OS=TerraFX.Interop.Windows +OSS=TerraFX.Interop.Windows +OUT=TerraFX.Interop.Windows +PACKAGE=TerraFX.Interop.Windows +PAGE=TerraFX.Interop.Windows PAN=TerraFX.Interop.Windows +PARTITION=TerraFX.Interop.Windows +PBM=TerraFX.Interop.Windows +PBT=TerraFX.Interop.Windows +PC=TerraFX.Interop.Windows +PCF=TerraFX.Interop.Windows +PDC=TerraFX.Interop.Windows PEER=TerraFX.Interop.Windows +PEERDIST=TerraFX.Interop.Windows +PERSISTENT=TerraFX.Interop.Windows +PF=TerraFX.Interop.Windows +PFD=TerraFX.Interop.Windows +PGF=TerraFX.Interop.Windows +PGM=TerraFX.Interop.Windows PID=TerraFX.Interop.Windows +PIDVSI=TerraFX.Interop.Windows +PIPE=TerraFX.Interop.Windows +PKCS12=TerraFX.Interop.Windows +PLA=TerraFX.Interop.Windows POINT=TerraFX.Interop.Windows +POINTER=TerraFX.Interop.Windows +POWER=TerraFX.Interop.Windows +POWERBUTTON=TerraFX.Interop.Windows +PP=TerraFX.Interop.Windows +PPM=TerraFX.Interop.Windows +PRF=TerraFX.Interop.Windows +PROC=TerraFX.Interop.Windows PROCESS=TerraFX.Interop.Windows PROCESSOR=TerraFX.Interop.Windows PRODUCT=TerraFX.Interop.Windows +PROTECTION=TerraFX.Interop.Windows +PROV=TerraFX.Interop.Windows +PS=TerraFX.Interop.Windows +PSH=TerraFX.Interop.Windows +PSINJECT=TerraFX.Interop.Windows +PSM=TerraFX.Interop.Windows +PSN=TerraFX.Interop.Windows +PSP=TerraFX.Interop.Windows +PST=TerraFX.Interop.Windows +QS=TerraFX.Interop.Windows +QUERY=TerraFX.Interop.Windows +R2=TerraFX.Interop.Windows +RB=TerraFX.Interop.Windows +RBBIM=TerraFX.Interop.Windows +RBBS=TerraFX.Interop.Windows +RBN=TerraFX.Interop.Windows +RC=TerraFX.Interop.Windows +RDW=TerraFX.Interop.Windows +READ=TerraFX.Interop.Windows RECT=TerraFX.Interop.Windows REG=TerraFX.Interop.Windows +REGDB=TerraFX.Interop.Windows +RESOURCE=TerraFX.Interop.Windows +RESOURCEDISPLAYTYPE=TerraFX.Interop.Windows +RESOURCEMANAGER=TerraFX.Interop.Windows +RI=TerraFX.Interop.Windows +RIDEV=TerraFX.Interop.Windows +RIFFCPPO=TerraFX.Interop.Windows +RIFFINFO=TerraFX.Interop.Windows +RO=TerraFX.Interop.Windows +ROCKWELL=TerraFX.Interop.Windows RPC=TerraFX.Interop.Windows +RPI=TerraFX.Interop.Windows +RRF=TerraFX.Interop.Windows +S=TerraFX.Interop.Windows SAFEARRAY=TerraFX.Interop.Windows SB=TerraFX.Interop.Windows +SBS=TerraFX.Interop.Windows +SBSP=TerraFX.Interop.Windows +SC=TerraFX.Interop.Windows SCARD=TerraFX.Interop.Windows +SCH=TerraFX.Interop.Windows +SCHANNEL=TerraFX.Interop.Windows +SCHED=TerraFX.Interop.Windows +SCRUB=TerraFX.Interop.Windows +SCS=TerraFX.Interop.Windows +SDC=TerraFX.Interop.Windows +SDIAG=TerraFX.Interop.Windows SE=TerraFX.Interop.Windows SEC=TerraFX.Interop.Windows SECURITY=TerraFX.Interop.Windows +SEE=TerraFX.Interop.Windows +SEF=TerraFX.Interop.Windows +SERIAL=TerraFX.Interop.Windows +SERVICE=TerraFX.Interop.Windows +SET=TerraFX.Interop.Windows +SFGAO=TerraFX.Interop.Windows +SFVM=TerraFX.Interop.Windows +SHACF=TerraFX.Interop.Windows +SHCNE=TerraFX.Interop.Windows +SHCNF=TerraFX.Interop.Windows +SHDID=TerraFX.Interop.Windows +SHGFI=TerraFX.Interop.Windows +SHGVSPB=TerraFX.Interop.Windows SHTDN=TerraFX.Interop.Windows +SHUTDOWN=TerraFX.Interop.Windows +SIGNER=TerraFX.Interop.Windows +SIGNERSCORE=TerraFX.Interop.Windows +SIO=TerraFX.Interop.Windows +SKF=TerraFX.Interop.Windows SM=TerraFX.Interop.Windows +SMART=TerraFX.Interop.Windows +SMC=TerraFX.Interop.Windows +SO=TerraFX.Interop.Windows +SORT=TerraFX.Interop.Windows +SOUND=TerraFX.Interop.Windows SP=TerraFX.Interop.Windows SPAPI=TerraFX.Interop.Windows +SPC=TerraFX.Interop.Windows +SPDRP=TerraFX.Interop.Windows +SPDUI=TerraFX.Interop.Windows +SPEAKER=TerraFX.Interop.Windows +SPFILENOTIFY=TerraFX.Interop.Windows SPI=TerraFX.Interop.Windows +SPINST=TerraFX.Interop.Windows +SPPROP=TerraFX.Interop.Windows +SPQ=TerraFX.Interop.Windows +SPREG=TerraFX.Interop.Windows +SPSVCINST=TerraFX.Interop.Windows +SPTLAUD=TerraFX.Interop.Windows +SPTLAUDCLNT=TerraFX.Interop.Windows SQLITE=TerraFX.Interop.Windows +SRRF=TerraFX.Interop.Windows +SS=TerraFX.Interop.Windows +SSF=TerraFX.Interop.Windows +SSL=TerraFX.Interop.Windows +STARTF=TerraFX.Interop.Windows +STATE=TerraFX.Interop.Windows +STATEREPOSITORY=TerraFX.Interop.Windows STATUS=TerraFX.Interop.Windows +STD=TerraFX.Interop.Windows STG=TerraFX.Interop.Windows STORAGE=TerraFX.Interop.Windows +STR=TerraFX.Interop.Windows +STREAM=TerraFX.Interop.Windows SUBLANG=TerraFX.Interop.Windows +SW=TerraFX.Interop.Windows +SWP=TerraFX.Interop.Windows +SYSTEM=TerraFX.Interop.Windows +SZ=TerraFX.Interop.Windows +TA=TerraFX.Interop.Windows +TABLET=TerraFX.Interop.Windows TAPE=TerraFX.Interop.Windows TB=TerraFX.Interop.Windows +TBIF=TerraFX.Interop.Windows +TBM=TerraFX.Interop.Windows +TBN=TerraFX.Interop.Windows TBS=TerraFX.Interop.Windows +TBSIMP=TerraFX.Interop.Windows +TBSTYLE=TerraFX.Interop.Windows +TC=TerraFX.Interop.Windows +TCM=TerraFX.Interop.Windows +TCP=TerraFX.Interop.Windows +TCS=TerraFX.Interop.Windows TF=TerraFX.Interop.Windows +THREAD=TerraFX.Interop.Windows +TIMESTAMP=TerraFX.Interop.Windows +TLS1=TerraFX.Interop.Windows TMT=TerraFX.Interop.Windows +TOKEN=TerraFX.Interop.Windows +TOUCH=TerraFX.Interop.Windows +TPC=TerraFX.Interop.Windows TPM=TerraFX.Interop.Windows +TPMAPI=TerraFX.Interop.Windows TRANSACTION=TerraFX.Interop.Windows +TRANSACTIONMANAGER=TerraFX.Interop.Windows +TRUST=TerraFX.Interop.Windows +TRUSTERROR=TerraFX.Interop.Windows TS=TerraFX.Interop.Windows TTM=TerraFX.Interop.Windows +TTN=TerraFX.Interop.Windows +TVGN=TerraFX.Interop.Windows +TVHT=TerraFX.Interop.Windows +TVIF=TerraFX.Interop.Windows +TVIS=TerraFX.Interop.Windows TVM=TerraFX.Interop.Windows +TVN=TerraFX.Interop.Windows +TVS=TerraFX.Interop.Windows TXFS=TerraFX.Interop.Windows +TYPE=TerraFX.Interop.Windows +UCEERR=TerraFX.Interop.Windows +UDM=TerraFX.Interop.Windows +UI=TerraFX.Interop.Windows +Uri=TerraFX.Interop.Windows +URL=TerraFX.Interop.Windows URLACTION=TerraFX.Interop.Windows +URLPOLICY=TerraFX.Interop.Windows +USN=TerraFX.Interop.Windows UTC=TerraFX.Interop.Windows +VER=TerraFX.Interop.Windows +VIEW=TerraFX.Interop.Windows VK=TerraFX.Interop.Windows +VM=TerraFX.Interop.Windows +VP=TerraFX.Interop.Windows VSCLASS=TerraFX.Interop.Windows VtblIndexAttribute=TerraFX.Interop WAVE=TerraFX.Interop.Windows WAVEFORMATEX=TerraFX.Interop.Windows +WC=TerraFX.Interop.Windows +WER=TerraFX.Interop.Windows +WGL=TerraFX.Interop.Windows +WH=TerraFX.Interop.Windows +WHV=TerraFX.Interop.Windows +WIC=TerraFX.Interop.Windows +WICRawChangeNotification=TerraFX.Interop.Windows WINCODEC=TerraFX.Interop.Windows Windows=TerraFX.Interop.Windows WINHTTP=TerraFX.Interop.Windows WININET=TerraFX.Interop.Windows +WINSTA=TerraFX.Interop.Windows WM=TerraFX.Interop.Windows +WN=TerraFX.Interop.Windows +WOW64=TerraFX.Interop.Windows +WPN=TerraFX.Interop.Windows WS=TerraFX.Interop.Windows +WSA=TerraFX.Interop.Windows +WSB=TerraFX.Interop.Windows +WSS=TerraFX.Interop.Windows +WT=TerraFX.Interop.Windows +WTD=TerraFX.Interop.Windows +WTPF=TerraFX.Interop.Windows +WTS=TerraFX.Interop.Windows +X3=TerraFX.Interop.Windows XACT=TerraFX.Interop.DirectX +XAUDIO2FX=TerraFX.Interop.DirectX +XSTATE=TerraFX.Interop.Windows diff --git a/samples/DirectX/D3D11/Shared/DX11Sample.cs b/samples/DirectX/D3D11/Shared/DX11Sample.cs index 8ca3aa2543..b06c439558 100644 --- a/samples/DirectX/D3D11/Shared/DX11Sample.cs +++ b/samples/DirectX/D3D11/Shared/DX11Sample.cs @@ -4,9 +4,11 @@ using System.Drawing; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; +using static TerraFX.Interop.DirectX.D3D11; using static TerraFX.Interop.DirectX.D3D_DRIVER_TYPE; using static TerraFX.Interop.DirectX.D3D_FEATURE_LEVEL; using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.DXGI; using static TerraFX.Interop.DirectX.DXGI_SWAP_EFFECT; using static TerraFX.Interop.Windows.Windows; using static TerraFX.Samples.DirectX.DXSampleHelper; @@ -114,8 +116,8 @@ protected override void CreateWindowSizeDependentResources() TopLeftY = 0, Width = Size.Width, Height = Size.Height, - MinDepth = D3D12_MIN_DEPTH, - MaxDepth = D3D12_MAX_DEPTH + MinDepth = D3D11_MIN_DEPTH, + MaxDepth = D3D11_MAX_DEPTH }; _scissorRect = new RECT { diff --git a/samples/DirectX/D3D12/HelloMultiSampling12.cs b/samples/DirectX/D3D12/HelloMultiSampling12.cs index cb57b6d21f..dbf1e66412 100644 --- a/samples/DirectX/D3D12/HelloMultiSampling12.cs +++ b/samples/DirectX/D3D12/HelloMultiSampling12.cs @@ -13,7 +13,7 @@ using static TerraFX.Interop.DirectX.D3D12_RESOURCE_DIMENSION; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_FLAGS; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_STATES; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.DXGI; using static TerraFX.Samples.DirectX.DXSampleHelper; using static TerraFX.Interop.Windows.Windows; diff --git a/samples/DirectX/D3D12/HelloTexture12.cs b/samples/DirectX/D3D12/HelloTexture12.cs index 1a28417fc0..0dbc9d9e24 100644 --- a/samples/DirectX/D3D12/HelloTexture12.cs +++ b/samples/DirectX/D3D12/HelloTexture12.cs @@ -8,7 +8,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -using static TerraFX.Interop.DirectX.D3D_ROOT_SIGNATURE_VERSION; +using static TerraFX.Interop.DirectX.D3D12; using static TerraFX.Interop.DirectX.D3D12_COMPARISON_FUNC; using static TerraFX.Interop.DirectX.D3D12_DESCRIPTOR_HEAP_FLAGS; using static TerraFX.Interop.DirectX.D3D12_DESCRIPTOR_HEAP_TYPE; @@ -27,6 +27,7 @@ using static TerraFX.Interop.DirectX.D3D12_SRV_DIMENSION; using static TerraFX.Interop.DirectX.D3D12_STATIC_BORDER_COLOR; using static TerraFX.Interop.DirectX.D3D12_TEXTURE_ADDRESS_MODE; +using static TerraFX.Interop.DirectX.D3D_ROOT_SIGNATURE_VERSION; using static TerraFX.Interop.DirectX.DirectX; using static TerraFX.Interop.DirectX.DXGI_FORMAT; using static TerraFX.Interop.Windows.Windows; diff --git a/samples/DirectX/D3D12/Shared/DX12Sample.cs b/samples/DirectX/D3D12/Shared/DX12Sample.cs index c4d6aad3e4..1222c36090 100644 --- a/samples/DirectX/D3D12/Shared/DX12Sample.cs +++ b/samples/DirectX/D3D12/Shared/DX12Sample.cs @@ -5,7 +5,7 @@ using System.Runtime.Versioning; using TerraFX.Interop.DirectX; using TerraFX.Interop.Windows; -using static TerraFX.Interop.DirectX.D3D_FEATURE_LEVEL; +using static TerraFX.Interop.DirectX.D3D12; using static TerraFX.Interop.DirectX.D3D12_CLEAR_FLAGS; using static TerraFX.Interop.DirectX.D3D12_COMMAND_LIST_TYPE; using static TerraFX.Interop.DirectX.D3D12_DESCRIPTOR_HEAP_TYPE; @@ -15,7 +15,9 @@ using static TerraFX.Interop.DirectX.D3D12_HEAP_TYPE; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_FLAGS; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_STATES; +using static TerraFX.Interop.DirectX.D3D_FEATURE_LEVEL; using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.DXGI; using static TerraFX.Interop.DirectX.DXGI_SWAP_EFFECT; using static TerraFX.Interop.Windows.Windows; using static TerraFX.Samples.DirectX.DXSampleHelper; diff --git a/samples/DirectX/Program.cs b/samples/DirectX/Program.cs index 9c1edf4284..be539b4748 100644 --- a/samples/DirectX/Program.cs +++ b/samples/DirectX/Program.cs @@ -2,6 +2,7 @@ using System; using System.Linq; +using static TerraFX.Interop.Windows.SW; using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Samples.DirectX diff --git a/samples/DirectX/Shared/DXSample.cs b/samples/DirectX/Shared/DXSample.cs index e9af8c9cb6..d34961ad8b 100644 --- a/samples/DirectX/Shared/DXSample.cs +++ b/samples/DirectX/Shared/DXSample.cs @@ -14,9 +14,9 @@ using TerraFX.Interop.Windows; using TerraFX.Samples.DirectX.D3D11; using TerraFX.Samples.DirectX.D3D12; +using static TerraFX.Interop.DirectX.DXGI; using static TerraFX.Interop.DirectX.DXGI_ADAPTER_FLAG; using static TerraFX.Interop.DirectX.DXGI_FORMAT; -using static TerraFX.Interop.Windows.Windows; using static TerraFX.Samples.DirectX.DXSampleHelper; namespace TerraFX.Samples.DirectX diff --git a/samples/DirectX/Shared/Win32Application.cs b/samples/DirectX/Shared/Win32Application.cs index c911d88b98..9623518df7 100644 --- a/samples/DirectX/Shared/Win32Application.cs +++ b/samples/DirectX/Shared/Win32Application.cs @@ -10,6 +10,7 @@ using System.Runtime.InteropServices; using TerraFX.Interop.Windows; using static TerraFX.Interop.DirectX.DXGI_FORMAT; +using static TerraFX.Interop.Windows.CS; using static TerraFX.Interop.Windows.Windows; using static TerraFX.Interop.Windows.WM; using static TerraFX.Interop.Windows.WS; diff --git a/sources/Interop/Windows/ComPtr`1.cs b/sources/Interop/Windows/ComPtr`1.cs index 61f11324c0..2d732e9233 100644 --- a/sources/Interop/Windows/ComPtr`1.cs +++ b/sources/Interop/Windows/ComPtr`1.cs @@ -7,6 +7,7 @@ using System.ComponentModel; using System.Diagnostics; using System.Runtime.CompilerServices; +using static TerraFX.Interop.Windows.S; using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Interop.Windows diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE.Manual.cs b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE.Manual.cs index 41a98b97f8..b66441e0df 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE.Manual.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE.Manual.cs @@ -3,7 +3,7 @@ // Ported from d3dx12.h in DirectX-Graphics-Samples commit a7a87f1853b5540f10920518021d91ae641033fb // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.D3D12; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE1.Manual.cs b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE1.Manual.cs index 07813b58af..31a4d89653 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE1.Manual.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_DESCRIPTOR_RANGE1.Manual.cs @@ -3,8 +3,8 @@ // Ported from d3dx12.h in DirectX-Graphics-Samples commit a7a87f1853b5540f10920518021d91ae641033fb // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using static TerraFX.Interop.DirectX.D3D12; using static TerraFX.Interop.DirectX.D3D12_DESCRIPTOR_RANGE_FLAGS; -using static TerraFX.Interop.DirectX.DirectX; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_RESOURCE_BARRIER.Manual.cs b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_RESOURCE_BARRIER.Manual.cs index d6110cb6ae..c5670e40e2 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_RESOURCE_BARRIER.Manual.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_RESOURCE_BARRIER.Manual.cs @@ -3,9 +3,9 @@ // Ported from d3dx12.h in DirectX-Graphics-Samples commit a7a87f1853b5540f10920518021d91ae641033fb // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using static TerraFX.Interop.DirectX.D3D12; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_BARRIER_FLAGS; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_BARRIER_TYPE; -using static TerraFX.Interop.DirectX.DirectX; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_STATIC_SAMPLER_DESC.Manual.cs b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_STATIC_SAMPLER_DESC.Manual.cs index d2a1c0d93c..8bb918180a 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_STATIC_SAMPLER_DESC.Manual.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_STATIC_SAMPLER_DESC.Manual.cs @@ -3,12 +3,12 @@ // Ported from d3dx12.h in DirectX-Graphics-Samples commit a7a87f1853b5540f10920518021d91ae641033fb // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). +using static TerraFX.Interop.DirectX.D3D12; using static TerraFX.Interop.DirectX.D3D12_COMPARISON_FUNC; using static TerraFX.Interop.DirectX.D3D12_FILTER; using static TerraFX.Interop.DirectX.D3D12_SHADER_VISIBILITY; using static TerraFX.Interop.DirectX.D3D12_STATIC_BORDER_COLOR; using static TerraFX.Interop.DirectX.D3D12_TEXTURE_ADDRESS_MODE; -using static TerraFX.Interop.DirectX.DirectX; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_VIEWPORT.Manual.cs b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_VIEWPORT.Manual.cs index 6fdd2ca7d1..f5eb61b9ff 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_VIEWPORT.Manual.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/D3D12_VIEWPORT.Manual.cs @@ -4,8 +4,8 @@ // Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). using System; +using static TerraFX.Interop.DirectX.D3D12; using static TerraFX.Interop.DirectX.D3D12_RESOURCE_DIMENSION; -using static TerraFX.Interop.DirectX.DirectX; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs b/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs index 96040d9994..60bc6e3c8b 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/D3DX12_MESH_SHADER_PIPELINE_STATE_DESC.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using TerraFX.Interop.Windows; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/other/d3dx12/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/other/d3dx12/DirectX.Manual.cs index 0b7cfa52d4..11a6c39e02 100644 --- a/sources/Interop/Windows/DirectX/other/d3dx12/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/other/d3dx12/DirectX.Manual.cs @@ -12,6 +12,7 @@ using static TerraFX.Interop.DirectX.D3D12_RESOURCE_DIMENSION; using static TerraFX.Interop.DirectX.D3D12_ROOT_PARAMETER_TYPE; using static TerraFX.Interop.Windows.E; +using static TerraFX.Interop.Windows.S; using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Interop.DirectX diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/DXGI.cs b/sources/Interop/Windows/DirectX/shared/dxgi/DXGI.cs new file mode 100644 index 0000000000..a3ca301583 --- /dev/null +++ b/sources/Interop/Windows/DirectX/shared/dxgi/DXGI.cs @@ -0,0 +1,103 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/dxgi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("#define DXGI_USAGE_SHADER_INPUT 0x00000010UL")] + public const uint DXGI_USAGE_SHADER_INPUT = 0x00000010U; + + [NativeTypeName("#define DXGI_USAGE_RENDER_TARGET_OUTPUT 0x00000020UL")] + public const uint DXGI_USAGE_RENDER_TARGET_OUTPUT = 0x00000020U; + + [NativeTypeName("#define DXGI_USAGE_BACK_BUFFER 0x00000040UL")] + public const uint DXGI_USAGE_BACK_BUFFER = 0x00000040U; + + [NativeTypeName("#define DXGI_USAGE_SHARED 0x00000080UL")] + public const uint DXGI_USAGE_SHARED = 0x00000080U; + + [NativeTypeName("#define DXGI_USAGE_READ_ONLY 0x00000100UL")] + public const uint DXGI_USAGE_READ_ONLY = 0x00000100U; + + [NativeTypeName("#define DXGI_USAGE_DISCARD_ON_PRESENT 0x00000200UL")] + public const uint DXGI_USAGE_DISCARD_ON_PRESENT = 0x00000200U; + + [NativeTypeName("#define DXGI_USAGE_UNORDERED_ACCESS 0x00000400UL")] + public const uint DXGI_USAGE_UNORDERED_ACCESS = 0x00000400U; + + [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_MINIMUM ( 0x28000000 )")] + public const int DXGI_RESOURCE_PRIORITY_MINIMUM = (0x28000000); + + [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_LOW ( 0x50000000 )")] + public const int DXGI_RESOURCE_PRIORITY_LOW = (0x50000000); + + [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_NORMAL ( 0x78000000 )")] + public const int DXGI_RESOURCE_PRIORITY_NORMAL = (0x78000000); + + [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_HIGH ( 0xa0000000 )")] + public const uint DXGI_RESOURCE_PRIORITY_HIGH = (0xa0000000); + + [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_MAXIMUM ( 0xc8000000 )")] + public const uint DXGI_RESOURCE_PRIORITY_MAXIMUM = (0xc8000000); + + [NativeTypeName("#define DXGI_MAP_READ ( 1UL )")] + public const uint DXGI_MAP_READ = (1U); + + [NativeTypeName("#define DXGI_MAP_WRITE ( 2UL )")] + public const uint DXGI_MAP_WRITE = (2U); + + [NativeTypeName("#define DXGI_MAP_DISCARD ( 4UL )")] + public const uint DXGI_MAP_DISCARD = (4U); + + [NativeTypeName("#define DXGI_ENUM_MODES_INTERLACED ( 1UL )")] + public const uint DXGI_ENUM_MODES_INTERLACED = (1U); + + [NativeTypeName("#define DXGI_ENUM_MODES_SCALING ( 2UL )")] + public const uint DXGI_ENUM_MODES_SCALING = (2U); + + [NativeTypeName("#define DXGI_MAX_SWAP_CHAIN_BUFFERS ( 16 )")] + public const int DXGI_MAX_SWAP_CHAIN_BUFFERS = (16); + + [NativeTypeName("#define DXGI_PRESENT_TEST 0x00000001UL")] + public const uint DXGI_PRESENT_TEST = 0x00000001U; + + [NativeTypeName("#define DXGI_PRESENT_DO_NOT_SEQUENCE 0x00000002UL")] + public const uint DXGI_PRESENT_DO_NOT_SEQUENCE = 0x00000002U; + + [NativeTypeName("#define DXGI_PRESENT_RESTART 0x00000004UL")] + public const uint DXGI_PRESENT_RESTART = 0x00000004U; + + [NativeTypeName("#define DXGI_PRESENT_DO_NOT_WAIT 0x00000008UL")] + public const uint DXGI_PRESENT_DO_NOT_WAIT = 0x00000008U; + + [NativeTypeName("#define DXGI_PRESENT_STEREO_PREFER_RIGHT 0x00000010UL")] + public const uint DXGI_PRESENT_STEREO_PREFER_RIGHT = 0x00000010U; + + [NativeTypeName("#define DXGI_PRESENT_STEREO_TEMPORARY_MONO 0x00000020UL")] + public const uint DXGI_PRESENT_STEREO_TEMPORARY_MONO = 0x00000020U; + + [NativeTypeName("#define DXGI_PRESENT_RESTRICT_TO_OUTPUT 0x00000040UL")] + public const uint DXGI_PRESENT_RESTRICT_TO_OUTPUT = 0x00000040U; + + [NativeTypeName("#define DXGI_PRESENT_USE_DURATION 0x00000100UL")] + public const uint DXGI_PRESENT_USE_DURATION = 0x00000100U; + + [NativeTypeName("#define DXGI_PRESENT_ALLOW_TEARING 0x00000200UL")] + public const uint DXGI_PRESENT_ALLOW_TEARING = 0x00000200U; + + [NativeTypeName("#define DXGI_MWA_NO_WINDOW_CHANGES ( 1 << 0 )")] + public const int DXGI_MWA_NO_WINDOW_CHANGES = (1 << 0); + + [NativeTypeName("#define DXGI_MWA_NO_ALT_ENTER ( 1 << 1 )")] + public const int DXGI_MWA_NO_ALT_ENTER = (1 << 1); + + [NativeTypeName("#define DXGI_MWA_NO_PRINT_SCREEN ( 1 << 2 )")] + public const int DXGI_MWA_NO_PRINT_SCREEN = (1 << 2); + + [NativeTypeName("#define DXGI_MWA_VALID ( 0x7 )")] + public const int DXGI_MWA_VALID = (0x7); + } +} diff --git a/sources/Interop/Windows/DirectX/shared/dxgi/DirectX.cs b/sources/Interop/Windows/DirectX/shared/dxgi/DirectX.cs index e08cddc487..f05d800b21 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi/DirectX.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi/DirectX.cs @@ -16,98 +16,5 @@ public static unsafe partial class DirectX [DllImport("dxgi", ExactSpelling = true)] public static extern HRESULT CreateDXGIFactory1([NativeTypeName("const IID &")] Guid* riid, void** ppFactory); - - [NativeTypeName("#define DXGI_USAGE_SHADER_INPUT 0x00000010UL")] - public const uint DXGI_USAGE_SHADER_INPUT = 0x00000010U; - - [NativeTypeName("#define DXGI_USAGE_RENDER_TARGET_OUTPUT 0x00000020UL")] - public const uint DXGI_USAGE_RENDER_TARGET_OUTPUT = 0x00000020U; - - [NativeTypeName("#define DXGI_USAGE_BACK_BUFFER 0x00000040UL")] - public const uint DXGI_USAGE_BACK_BUFFER = 0x00000040U; - - [NativeTypeName("#define DXGI_USAGE_SHARED 0x00000080UL")] - public const uint DXGI_USAGE_SHARED = 0x00000080U; - - [NativeTypeName("#define DXGI_USAGE_READ_ONLY 0x00000100UL")] - public const uint DXGI_USAGE_READ_ONLY = 0x00000100U; - - [NativeTypeName("#define DXGI_USAGE_DISCARD_ON_PRESENT 0x00000200UL")] - public const uint DXGI_USAGE_DISCARD_ON_PRESENT = 0x00000200U; - - [NativeTypeName("#define DXGI_USAGE_UNORDERED_ACCESS 0x00000400UL")] - public const uint DXGI_USAGE_UNORDERED_ACCESS = 0x00000400U; - - [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_MINIMUM ( 0x28000000 )")] - public const int DXGI_RESOURCE_PRIORITY_MINIMUM = (0x28000000); - - [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_LOW ( 0x50000000 )")] - public const int DXGI_RESOURCE_PRIORITY_LOW = (0x50000000); - - [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_NORMAL ( 0x78000000 )")] - public const int DXGI_RESOURCE_PRIORITY_NORMAL = (0x78000000); - - [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_HIGH ( 0xa0000000 )")] - public const uint DXGI_RESOURCE_PRIORITY_HIGH = (0xa0000000); - - [NativeTypeName("#define DXGI_RESOURCE_PRIORITY_MAXIMUM ( 0xc8000000 )")] - public const uint DXGI_RESOURCE_PRIORITY_MAXIMUM = (0xc8000000); - - [NativeTypeName("#define DXGI_MAP_READ ( 1UL )")] - public const uint DXGI_MAP_READ = (1U); - - [NativeTypeName("#define DXGI_MAP_WRITE ( 2UL )")] - public const uint DXGI_MAP_WRITE = (2U); - - [NativeTypeName("#define DXGI_MAP_DISCARD ( 4UL )")] - public const uint DXGI_MAP_DISCARD = (4U); - - [NativeTypeName("#define DXGI_ENUM_MODES_INTERLACED ( 1UL )")] - public const uint DXGI_ENUM_MODES_INTERLACED = (1U); - - [NativeTypeName("#define DXGI_ENUM_MODES_SCALING ( 2UL )")] - public const uint DXGI_ENUM_MODES_SCALING = (2U); - - [NativeTypeName("#define DXGI_MAX_SWAP_CHAIN_BUFFERS ( 16 )")] - public const int DXGI_MAX_SWAP_CHAIN_BUFFERS = (16); - - [NativeTypeName("#define DXGI_PRESENT_TEST 0x00000001UL")] - public const uint DXGI_PRESENT_TEST = 0x00000001U; - - [NativeTypeName("#define DXGI_PRESENT_DO_NOT_SEQUENCE 0x00000002UL")] - public const uint DXGI_PRESENT_DO_NOT_SEQUENCE = 0x00000002U; - - [NativeTypeName("#define DXGI_PRESENT_RESTART 0x00000004UL")] - public const uint DXGI_PRESENT_RESTART = 0x00000004U; - - [NativeTypeName("#define DXGI_PRESENT_DO_NOT_WAIT 0x00000008UL")] - public const uint DXGI_PRESENT_DO_NOT_WAIT = 0x00000008U; - - [NativeTypeName("#define DXGI_PRESENT_STEREO_PREFER_RIGHT 0x00000010UL")] - public const uint DXGI_PRESENT_STEREO_PREFER_RIGHT = 0x00000010U; - - [NativeTypeName("#define DXGI_PRESENT_STEREO_TEMPORARY_MONO 0x00000020UL")] - public const uint DXGI_PRESENT_STEREO_TEMPORARY_MONO = 0x00000020U; - - [NativeTypeName("#define DXGI_PRESENT_RESTRICT_TO_OUTPUT 0x00000040UL")] - public const uint DXGI_PRESENT_RESTRICT_TO_OUTPUT = 0x00000040U; - - [NativeTypeName("#define DXGI_PRESENT_USE_DURATION 0x00000100UL")] - public const uint DXGI_PRESENT_USE_DURATION = 0x00000100U; - - [NativeTypeName("#define DXGI_PRESENT_ALLOW_TEARING 0x00000200UL")] - public const uint DXGI_PRESENT_ALLOW_TEARING = 0x00000200U; - - [NativeTypeName("#define DXGI_MWA_NO_WINDOW_CHANGES ( 1 << 0 )")] - public const int DXGI_MWA_NO_WINDOW_CHANGES = (1 << 0); - - [NativeTypeName("#define DXGI_MWA_NO_ALT_ENTER ( 1 << 1 )")] - public const int DXGI_MWA_NO_ALT_ENTER = (1 << 1); - - [NativeTypeName("#define DXGI_MWA_NO_PRINT_SCREEN ( 1 << 2 )")] - public const int DXGI_MWA_NO_PRINT_SCREEN = (1 << 2); - - [NativeTypeName("#define DXGI_MWA_VALID ( 0x7 )")] - public const int DXGI_MWA_VALID = (0x7); } } diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_2/DirectX.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_2/DXGI.cs similarity index 95% rename from sources/Interop/Windows/DirectX/shared/dxgi1_2/DirectX.cs rename to sources/Interop/Windows/DirectX/shared/dxgi1_2/DXGI.cs index 4df4b3999d..2269c98e6a 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_2/DirectX.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_2/DXGI.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class DXGI { [NativeTypeName("#define DXGI_ENUM_MODES_STEREO ( 4UL )")] public const uint DXGI_ENUM_MODES_STEREO = (4U); diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/DXGI.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/DXGI.cs new file mode 100644 index 0000000000..3a40cb253f --- /dev/null +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/DXGI.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/dxgi1_3.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("#define DXGI_CREATE_FACTORY_DEBUG 0x1")] + public const int DXGI_CREATE_FACTORY_DEBUG = 0x1; + } +} diff --git a/sources/Interop/Windows/DirectX/shared/dxgi1_3/DirectX.cs b/sources/Interop/Windows/DirectX/shared/dxgi1_3/DirectX.cs index d727973673..5991bd3621 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgi1_3/DirectX.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgi1_3/DirectX.cs @@ -19,8 +19,5 @@ public static unsafe partial class DirectX [SupportedOSPlatform("windows8.1")] [DllImport("dxgi", ExactSpelling = true)] public static extern HRESULT DXGIGetDebugInterface1(uint Flags, [NativeTypeName("const IID &")] Guid* riid, void** pDebug); - - [NativeTypeName("#define DXGI_CREATE_FACTORY_DEBUG 0x1")] - public const int DXGI_CREATE_FACTORY_DEBUG = 0x1; } } diff --git a/sources/Interop/Windows/DirectX/shared/dxgicommon/DirectX.cs b/sources/Interop/Windows/DirectX/shared/dxgicommon/DXGI.cs similarity index 94% rename from sources/Interop/Windows/DirectX/shared/dxgicommon/DirectX.cs rename to sources/Interop/Windows/DirectX/shared/dxgicommon/DXGI.cs index e4acc4a8bb..75a6ed135a 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgicommon/DirectX.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgicommon/DXGI.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class DXGI { [NativeTypeName("#define DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN 0xffffffff")] public const uint DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN = 0xffffffff; diff --git a/sources/Interop/Windows/DirectX/shared/dxgiformat/DirectX.cs b/sources/Interop/Windows/DirectX/shared/dxgiformat/DXGI.cs similarity index 91% rename from sources/Interop/Windows/DirectX/shared/dxgiformat/DirectX.cs rename to sources/Interop/Windows/DirectX/shared/dxgiformat/DXGI.cs index 136676cb80..ea1b1ca0a3 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgiformat/DirectX.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgiformat/DXGI.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class DXGI { [NativeTypeName("#define DXGI_FORMAT_DEFINED 1")] public const int DXGI_FORMAT_DEFINED = 1; diff --git a/sources/Interop/Windows/DirectX/shared/dxgitype/DXGI.cs b/sources/Interop/Windows/DirectX/shared/dxgitype/DXGI.cs new file mode 100644 index 0000000000..bc16286fd9 --- /dev/null +++ b/sources/Interop/Windows/DirectX/shared/dxgitype/DXGI.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/dxgitype.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("#define DXGI_CPU_ACCESS_NONE ( 0 )")] + public const int DXGI_CPU_ACCESS_NONE = (0); + + [NativeTypeName("#define DXGI_CPU_ACCESS_DYNAMIC ( 1 )")] + public const int DXGI_CPU_ACCESS_DYNAMIC = (1); + + [NativeTypeName("#define DXGI_CPU_ACCESS_READ_WRITE ( 2 )")] + public const int DXGI_CPU_ACCESS_READ_WRITE = (2); + + [NativeTypeName("#define DXGI_CPU_ACCESS_SCRATCH ( 3 )")] + public const int DXGI_CPU_ACCESS_SCRATCH = (3); + + [NativeTypeName("#define DXGI_CPU_ACCESS_FIELD 15")] + public const int DXGI_CPU_ACCESS_FIELD = 15; + } +} diff --git a/sources/Interop/Windows/DirectX/shared/dxgitype/DirectX.cs b/sources/Interop/Windows/DirectX/shared/dxgitype/DirectX.cs index 9617e802a8..952152cae3 100644 --- a/sources/Interop/Windows/DirectX/shared/dxgitype/DirectX.cs +++ b/sources/Interop/Windows/DirectX/shared/dxgitype/DirectX.cs @@ -9,20 +9,5 @@ public static partial class DirectX { [NativeTypeName("#define _FACDXGI 0x87a")] public const int _FACDXGI = 0x87a; - - [NativeTypeName("#define DXGI_CPU_ACCESS_NONE ( 0 )")] - public const int DXGI_CPU_ACCESS_NONE = (0); - - [NativeTypeName("#define DXGI_CPU_ACCESS_DYNAMIC ( 1 )")] - public const int DXGI_CPU_ACCESS_DYNAMIC = (1); - - [NativeTypeName("#define DXGI_CPU_ACCESS_READ_WRITE ( 2 )")] - public const int DXGI_CPU_ACCESS_READ_WRITE = (2); - - [NativeTypeName("#define DXGI_CPU_ACCESS_SCRATCH ( 3 )")] - public const int DXGI_CPU_ACCESS_SCRATCH = (3); - - [NativeTypeName("#define DXGI_CPU_ACCESS_FIELD 15")] - public const int DXGI_CPU_ACCESS_FIELD = 15; } } diff --git a/sources/Interop/Windows/DirectX/um/D2DErr/DirectX.cs b/sources/Interop/Windows/DirectX/um/D2DErr/D2DERR.cs similarity index 96% rename from sources/Interop/Windows/DirectX/um/D2DErr/DirectX.cs rename to sources/Interop/Windows/DirectX/um/D2DErr/D2DERR.cs index 2bdb848594..bb9d8590c3 100644 --- a/sources/Interop/Windows/DirectX/um/D2DErr/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/D2DErr/D2DERR.cs @@ -8,7 +8,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class D2DERR { [NativeTypeName("#define D2DERR_UNSUPPORTED_PIXEL_FORMAT WINCODEC_ERR_UNSUPPORTEDPIXELFORMAT")] public const int D2DERR_UNSUPPORTED_PIXEL_FORMAT = unchecked((int)(0x88982F80)); diff --git a/sources/Interop/Windows/DirectX/um/Xinput/BATTERY.cs b/sources/Interop/Windows/DirectX/um/Xinput/BATTERY.cs new file mode 100644 index 0000000000..b65cd36b28 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/Xinput/BATTERY.cs @@ -0,0 +1,45 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Xinput.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.DirectX; + +namespace TerraFX.Interop.Windows +{ + public static partial class BATTERY + { + [NativeTypeName("#define BATTERY_DEVTYPE_GAMEPAD 0x00")] + public const int BATTERY_DEVTYPE_GAMEPAD = 0x00; + + [NativeTypeName("#define BATTERY_DEVTYPE_HEADSET 0x01")] + public const int BATTERY_DEVTYPE_HEADSET = 0x01; + + [NativeTypeName("#define BATTERY_TYPE_DISCONNECTED 0x00")] + public const int BATTERY_TYPE_DISCONNECTED = 0x00; + + [NativeTypeName("#define BATTERY_TYPE_WIRED 0x01")] + public const int BATTERY_TYPE_WIRED = 0x01; + + [NativeTypeName("#define BATTERY_TYPE_ALKALINE 0x02")] + public const int BATTERY_TYPE_ALKALINE = 0x02; + + [NativeTypeName("#define BATTERY_TYPE_NIMH 0x03")] + public const int BATTERY_TYPE_NIMH = 0x03; + + [NativeTypeName("#define BATTERY_TYPE_UNKNOWN 0xFF")] + public const int BATTERY_TYPE_UNKNOWN = 0xFF; + + [NativeTypeName("#define BATTERY_LEVEL_EMPTY 0x00")] + public const int BATTERY_LEVEL_EMPTY = 0x00; + + [NativeTypeName("#define BATTERY_LEVEL_LOW 0x01")] + public const int BATTERY_LEVEL_LOW = 0x01; + + [NativeTypeName("#define BATTERY_LEVEL_MEDIUM 0x02")] + public const int BATTERY_LEVEL_MEDIUM = 0x02; + + [NativeTypeName("#define BATTERY_LEVEL_FULL 0x03")] + public const int BATTERY_LEVEL_FULL = 0x03; + } +} diff --git a/sources/Interop/Windows/DirectX/um/Xinput/DirectX.cs b/sources/Interop/Windows/DirectX/um/Xinput/DirectX.cs index bebd9d6a1e..22da646aa4 100644 --- a/sources/Interop/Windows/DirectX/um/Xinput/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/Xinput/DirectX.cs @@ -152,39 +152,6 @@ public static unsafe partial class DirectX [NativeTypeName("#define XINPUT_FLAG_GAMEPAD 0x00000001")] public const int XINPUT_FLAG_GAMEPAD = 0x00000001; - [NativeTypeName("#define BATTERY_DEVTYPE_GAMEPAD 0x00")] - public const int BATTERY_DEVTYPE_GAMEPAD = 0x00; - - [NativeTypeName("#define BATTERY_DEVTYPE_HEADSET 0x01")] - public const int BATTERY_DEVTYPE_HEADSET = 0x01; - - [NativeTypeName("#define BATTERY_TYPE_DISCONNECTED 0x00")] - public const int BATTERY_TYPE_DISCONNECTED = 0x00; - - [NativeTypeName("#define BATTERY_TYPE_WIRED 0x01")] - public const int BATTERY_TYPE_WIRED = 0x01; - - [NativeTypeName("#define BATTERY_TYPE_ALKALINE 0x02")] - public const int BATTERY_TYPE_ALKALINE = 0x02; - - [NativeTypeName("#define BATTERY_TYPE_NIMH 0x03")] - public const int BATTERY_TYPE_NIMH = 0x03; - - [NativeTypeName("#define BATTERY_TYPE_UNKNOWN 0xFF")] - public const int BATTERY_TYPE_UNKNOWN = 0xFF; - - [NativeTypeName("#define BATTERY_LEVEL_EMPTY 0x00")] - public const int BATTERY_LEVEL_EMPTY = 0x00; - - [NativeTypeName("#define BATTERY_LEVEL_LOW 0x01")] - public const int BATTERY_LEVEL_LOW = 0x01; - - [NativeTypeName("#define BATTERY_LEVEL_MEDIUM 0x02")] - public const int BATTERY_LEVEL_MEDIUM = 0x02; - - [NativeTypeName("#define BATTERY_LEVEL_FULL 0x03")] - public const int BATTERY_LEVEL_FULL = 0x03; - [NativeTypeName("#define XUSER_MAX_COUNT 4")] public const int XUSER_MAX_COUNT = 4; diff --git a/sources/Interop/Windows/DirectX/um/d2d1/D2D1.Manual.cs b/sources/Interop/Windows/DirectX/um/d2d1/D2D1.Manual.cs new file mode 100644 index 0000000000..0cbfe0443d --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d2d1/D2D1.Manual.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d2d1.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static unsafe partial class D2D1 + { + public const ulong D2D1_INVALID_TAG = ulong.MaxValue; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR = 0; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR = 1; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC = 2; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_MULTI_SAMPLE_LINEAR = 3; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC = 4; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_HIGH_QUALITY_CUBIC = 5; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_FANT = 6; + + public const uint D2D1_INTERPOLATION_MODE_DEFINITION_MIPMAP_LINEAR = 7; + } +} diff --git a/sources/Interop/Windows/DirectX/um/d2d1/D2D1.cs b/sources/Interop/Windows/DirectX/um/d2d1/D2D1.cs new file mode 100644 index 0000000000..74818a6dce --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d2d1/D2D1.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d2d1.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D2D1 + { + [NativeTypeName("#define D2D1_DEFAULT_FLATTENING_TOLERANCE (0.25f)")] + public const float D2D1_DEFAULT_FLATTENING_TOLERANCE = (0.25f); + } +} diff --git a/sources/Interop/Windows/DirectX/um/d2d1/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/um/d2d1/DirectX.Manual.cs index f2cc3a74a8..de00df03e8 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/DirectX.Manual.cs @@ -10,24 +10,6 @@ namespace TerraFX.Interop.DirectX { public static unsafe partial class DirectX { - public const ulong D2D1_INVALID_TAG = ulong.MaxValue; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_NEAREST_NEIGHBOR = 0; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_LINEAR = 1; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_CUBIC = 2; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_MULTI_SAMPLE_LINEAR = 3; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_ANISOTROPIC = 4; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_HIGH_QUALITY_CUBIC = 5; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_FANT = 6; - - public const uint D2D1_INTERPOLATION_MODE_DEFINITION_MIPMAP_LINEAR = 7; - public static HRESULT D2D1CreateFactory(D2D1_FACTORY_TYPE factoryType, void** factory) where Factory : unmanaged, IUnknown.Interface { diff --git a/sources/Interop/Windows/DirectX/um/d2d1/DirectX.cs b/sources/Interop/Windows/DirectX/um/d2d1/DirectX.cs index bb8d55da5c..19da2f2d87 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1/DirectX.cs @@ -30,8 +30,5 @@ public static HRESULT D2D1CreateFactory(D2D1_FACTORY_TYPE factoryType, [NativeTy { return D2D1CreateFactory(factoryType, riid, null, factory); } - - [NativeTypeName("#define D2D1_DEFAULT_FLATTENING_TOLERANCE (0.25f)")] - public const float D2D1_DEFAULT_FLATTENING_TOLERANCE = (0.25f); } } diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/D2D1.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/D2D1.cs new file mode 100644 index 0000000000..8250ace5a7 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/D2D1.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d2d1_1.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D2D1 + { + [NativeTypeName("#define D2D1_INVALID_PROPERTY_INDEX UINT_MAX")] + public const uint D2D1_INVALID_PROPERTY_INDEX = 0xffffffff; + } +} diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1/DirectX.cs b/sources/Interop/Windows/DirectX/um/d2d1_1/DirectX.cs index 0d7af78617..ec97b46674 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1/DirectX.cs @@ -28,8 +28,5 @@ public static unsafe partial class DirectX [DllImport("d2d1", ExactSpelling = true)] public static extern float D2D1Vec3Length(float x, float y, float z); - - [NativeTypeName("#define D2D1_INVALID_PROPERTY_INDEX UINT_MAX")] - public const uint D2D1_INVALID_PROPERTY_INDEX = 0xffffffff; } } diff --git a/sources/Interop/Windows/DirectX/um/d2d1_1helper/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/um/d2d1_1helper/DirectX.Manual.cs index 8c0b50c7f6..5475833cb6 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_1helper/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_1helper/DirectX.Manual.cs @@ -24,6 +24,7 @@ using static TerraFX.Interop.DirectX.D2D1_TEXT_ANTIALIAS_MODE; using static TerraFX.Interop.DirectX.D2D1_UNIT_MODE; using static TerraFX.Interop.Windows.CLSID; +using static TerraFX.Interop.Windows.S; using static TerraFX.Interop.Windows.Windows; namespace TerraFX.Interop.DirectX diff --git a/sources/Interop/Windows/DirectX/um/d2d1_2helper/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/um/d2d1_2helper/DirectX.Manual.cs index 1e114d7d70..8e4b179e36 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1_2helper/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1_2helper/DirectX.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using System.Runtime.Versioning; +using static TerraFX.Interop.DirectX.D2D1; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/DirectX.cs b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/D2D1.cs similarity index 92% rename from sources/Interop/Windows/DirectX/um/d2d1effectauthor/DirectX.cs rename to sources/Interop/Windows/DirectX/um/d2d1effectauthor/D2D1.cs index 4dde9d6d56..726e5c1584 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effectauthor/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effectauthor/D2D1.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class D2D1 { [NativeTypeName("#define D2D1_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] public const uint D2D1_APPEND_ALIGNED_ELEMENT = (0xffffffff); diff --git a/sources/Interop/Windows/DirectX/um/d2d1effects_2/DirectX.cs b/sources/Interop/Windows/DirectX/um/d2d1effects_2/D2D1.cs similarity index 92% rename from sources/Interop/Windows/DirectX/um/d2d1effects_2/DirectX.cs rename to sources/Interop/Windows/DirectX/um/d2d1effects_2/D2D1.cs index 5cc7a81c6f..17ad4f8746 100644 --- a/sources/Interop/Windows/DirectX/um/d2d1effects_2/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d2d1effects_2/D2D1.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class D2D1 { [NativeTypeName("#define D2D1_SCENE_REFERRED_SDR_WHITE_LEVEL 80.0f")] public const float D2D1_SCENE_REFERRED_SDR_WHITE_LEVEL = 80.0f; diff --git a/sources/Interop/Windows/DirectX/um/d3d10/D3D10.cs b/sources/Interop/Windows/DirectX/um/d3d10/D3D10.cs new file mode 100644 index 0000000000..56f4ea6b6f --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d10/D3D10.cs @@ -0,0 +1,667 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d10.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D10 + { + [NativeTypeName("#define D3D10_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] + public const int D3D10_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); + + [NativeTypeName("#define D3D10_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] + public const uint D3D10_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D10_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] + public const int D3D10_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); + + [NativeTypeName("#define D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] + public const int D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); + + [NativeTypeName("#define D3D10_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] + public const int D3D10_CLIP_OR_CULL_DISTANCE_COUNT = (8); + + [NativeTypeName("#define D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] + public const int D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] + public const int D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); + + [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] + public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] + public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] + public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); + + [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] + public const int D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); + + [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] + public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] + public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); + + [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] + public const int D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); + + [NativeTypeName("#define D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] + public const int D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] + public const int D3D10_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] + public const int D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] + public const int D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] + public const int D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] + public const int D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] + public const int D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); + + [NativeTypeName("#define D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] + public const int D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); + + [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] + public const float D3D10_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); + + [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] + public const float D3D10_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); + + [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] + public const float D3D10_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); + + [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] + public const float D3D10_DEFAULT_BLEND_FACTOR_RED = (1.0f); + + [NativeTypeName("#define D3D10_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D10_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D10_DEFAULT_DEPTH_BIAS ( 0 )")] + public const int D3D10_DEFAULT_DEPTH_BIAS = (0); + + [NativeTypeName("#define D3D10_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] + public const float D3D10_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); + + [NativeTypeName("#define D3D10_DEFAULT_MAX_ANISOTROPY ( 16.0f )")] + public const float D3D10_DEFAULT_MAX_ANISOTROPY = (16.0f); + + [NativeTypeName("#define D3D10_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] + public const float D3D10_DEFAULT_MIP_LOD_BIAS = (0.0f); + + [NativeTypeName("#define D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] + public const int D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); + + [NativeTypeName("#define D3D10_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] + public const uint D3D10_DEFAULT_SAMPLE_MASK = (0xffffffff); + + [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_ENDX ( 0 )")] + public const int D3D10_DEFAULT_SCISSOR_ENDX = (0); + + [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_ENDY ( 0 )")] + public const int D3D10_DEFAULT_SCISSOR_ENDY = (0); + + [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_STARTX ( 0 )")] + public const int D3D10_DEFAULT_SCISSOR_STARTX = (0); + + [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_STARTY ( 0 )")] + public const int D3D10_DEFAULT_SCISSOR_STARTY = (0); + + [NativeTypeName("#define D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] + public const float D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); + + [NativeTypeName("#define D3D10_DEFAULT_STENCIL_READ_MASK ( 0xff )")] + public const int D3D10_DEFAULT_STENCIL_READ_MASK = (0xff); + + [NativeTypeName("#define D3D10_DEFAULT_STENCIL_REFERENCE ( 0 )")] + public const int D3D10_DEFAULT_STENCIL_REFERENCE = (0); + + [NativeTypeName("#define D3D10_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] + public const int D3D10_DEFAULT_STENCIL_WRITE_MASK = (0xff); + + [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] + public const int D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); + + [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] + public const int D3D10_DEFAULT_VIEWPORT_HEIGHT = (0); + + [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] + public const float D3D10_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); + + [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] + public const float D3D10_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] + public const int D3D10_DEFAULT_VIEWPORT_TOPLEFTX = (0); + + [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] + public const int D3D10_DEFAULT_VIEWPORT_TOPLEFTY = (0); + + [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_WIDTH ( 0 )")] + public const int D3D10_DEFAULT_VIEWPORT_WIDTH = (0); + + [NativeTypeName("#define D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] + public const double D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); + + [NativeTypeName("#define D3D10_FLOAT32_MAX ( 3.402823466e+38f )")] + public const float D3D10_FLOAT32_MAX = (3.402823466e+38f); + + [NativeTypeName("#define D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] + public const float D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); + + [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] + public const float D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); + + [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] + public const float D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); + + [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] + public const float D3D10_FLOAT_TO_SRGB_OFFSET = (0.055f); + + [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] + public const float D3D10_FLOAT_TO_SRGB_SCALE_1 = (12.92f); + + [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] + public const float D3D10_FLOAT_TO_SRGB_SCALE_2 = (1.055f); + + [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] + public const float D3D10_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); + + [NativeTypeName("#define D3D10_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] + public const float D3D10_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); + + [NativeTypeName("#define D3D10_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] + public const float D3D10_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); + + [NativeTypeName("#define D3D10_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] + public const float D3D10_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); + + [NativeTypeName("#define D3D10_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] + public const float D3D10_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); + + [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] + public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] + public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_GS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_COUNT ( 16 )")] + public const int D3D10_GS_INPUT_REGISTER_COUNT = (16); + + [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D10_GS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_GS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_VERTICES ( 6 )")] + public const int D3D10_GS_INPUT_REGISTER_VERTICES = (6); + + [NativeTypeName("#define D3D10_GS_OUTPUT_ELEMENTS ( 32 )")] + public const int D3D10_GS_OUTPUT_ELEMENTS = (32); + + [NativeTypeName("#define D3D10_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_GS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_GS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D10_GS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] + public const int D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); + + [NativeTypeName("#define D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] + public const int D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); + + [NativeTypeName("#define D3D10_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] + public const int D3D10_IA_INSTANCE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] + public const int D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] + public const int D3D10_IA_PRIMITIVE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_IA_VERTEX_ID_BIT_COUNT ( 32 )")] + public const int D3D10_IA_VERTEX_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 16 )")] + public const int D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (16); + + [NativeTypeName("#define D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 64 )")] + public const int D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (64); + + [NativeTypeName("#define D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 16 )")] + public const int D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (16); + + [NativeTypeName("#define D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] + public const uint D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); + + [NativeTypeName("#define D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] + public const uint D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); + + [NativeTypeName("#define D3D10_LINEAR_GAMMA ( 1.0f )")] + public const float D3D10_LINEAR_GAMMA = (1.0f); + + [NativeTypeName("#define D3D10_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] + public const float D3D10_MAX_BORDER_COLOR_COMPONENT = (1.0f); + + [NativeTypeName("#define D3D10_MAX_DEPTH ( 1.0f )")] + public const float D3D10_MAX_DEPTH = (1.0f); + + [NativeTypeName("#define D3D10_MAX_MAXANISOTROPY ( 16 )")] + public const int D3D10_MAX_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] + public const int D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); + + [NativeTypeName("#define D3D10_MAX_POSITION_VALUE ( 3.402823466e+34f )")] + public const float D3D10_MAX_POSITION_VALUE = (3.402823466e+34f); + + [NativeTypeName("#define D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] + public const int D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); + + [NativeTypeName("#define D3D10_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D10_MIN_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D10_MIN_DEPTH ( 0.0f )")] + public const float D3D10_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D10_MIN_MAXANISOTROPY ( 0 )")] + public const int D3D10_MIN_MAXANISOTROPY = (0); + + [NativeTypeName("#define D3D10_MIP_LOD_BIAS_MAX ( 15.99f )")] + public const float D3D10_MIP_LOD_BIAS_MAX = (15.99f); + + [NativeTypeName("#define D3D10_MIP_LOD_BIAS_MIN ( -16.0f )")] + public const float D3D10_MIP_LOD_BIAS_MIN = (-16.0f); + + [NativeTypeName("#define D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT ( 6 )")] + public const int D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT = (6); + + [NativeTypeName("#define D3D10_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] + public const int D3D10_MIP_LOD_RANGE_BIT_COUNT = (8); + + [NativeTypeName("#define D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] + public const float D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); + + [NativeTypeName("#define D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] + public const int D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 13 )")] + public const int D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT = (13); + + [NativeTypeName("#define D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] + public const int D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); + + [NativeTypeName("#define D3D10_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] + public const uint D3D10_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D10_PS_FRONTFACING_FALSE_VALUE ( 0 )")] + public const int D3D10_PS_FRONTFACING_FALSE_VALUE = (0); + + [NativeTypeName("#define D3D10_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] + public const uint D3D10_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_PS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D10_PS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D10_PS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_PS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] + public const float D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] + public const int D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] + public const int D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D10_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_PS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_PS_OUTPUT_REGISTER_COUNT ( 8 )")] + public const int D3D10_PS_OUTPUT_REGISTER_COUNT = (8); + + [NativeTypeName("#define D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] + public const float D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); + + [NativeTypeName("#define D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] + public const int D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT = (4096); + + [NativeTypeName("#define D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] + public const int D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); + + [NativeTypeName("#define D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] + public const int D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT = (4096); + + [NativeTypeName("#define D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 8192 )")] + public const int D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (8192); + + [NativeTypeName("#define D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] + public const int D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); + + [NativeTypeName("#define D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D10_REQ_MAXANISOTROPY ( 16 )")] + public const int D3D10_REQ_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D10_REQ_MIP_LEVELS ( 14 )")] + public const int D3D10_REQ_MIP_LEVELS = (14); + + [NativeTypeName("#define D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] + public const int D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] + public const int D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT = (4096); + + [NativeTypeName("#define D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 8192 )")] + public const int D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (8192); + + [NativeTypeName("#define D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES ( 128 )")] + public const int D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES = (128); + + [NativeTypeName("#define D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP ( 20 )")] + public const int D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP = (20); + + [NativeTypeName("#define D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] + public const int D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT = (4096); + + [NativeTypeName("#define D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 512 )")] + public const int D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (512); + + [NativeTypeName("#define D3D10_REQ_TEXTURE1D_U_DIMENSION ( 8192 )")] + public const int D3D10_REQ_TEXTURE1D_U_DIMENSION = (8192); + + [NativeTypeName("#define D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 512 )")] + public const int D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (512); + + [NativeTypeName("#define D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 8192 )")] + public const int D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION = (8192); + + [NativeTypeName("#define D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] + public const int D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); + + [NativeTypeName("#define D3D10_REQ_TEXTURECUBE_DIMENSION ( 8192 )")] + public const int D3D10_REQ_TEXTURECUBE_DIMENSION = (8192); + + [NativeTypeName("#define D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] + public const int D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); + + [NativeTypeName("#define D3D10_SHADER_MAJOR_VERSION ( 4 )")] + public const int D3D10_SHADER_MAJOR_VERSION = (4); + + [NativeTypeName("#define D3D10_SHADER_MINOR_VERSION ( 0 )")] + public const int D3D10_SHADER_MINOR_VERSION = (0); + + [NativeTypeName("#define D3D10_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] + public const int D3D10_SHIFT_INSTRUCTION_PAD_VALUE = (0); + + [NativeTypeName("#define D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] + public const int D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); + + [NativeTypeName("#define D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] + public const int D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); + + [NativeTypeName("#define D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] + public const int D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 256 )")] + public const int D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (256); + + [NativeTypeName("#define D3D10_SO_BUFFER_SLOT_COUNT ( 4 )")] + public const int D3D10_SO_BUFFER_SLOT_COUNT = (4); + + [NativeTypeName("#define D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] + public const uint D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); + + [NativeTypeName("#define D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER ( 1 )")] + public const int D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = (1); + + [NativeTypeName("#define D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT ( 64 )")] + public const int D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT = (64); + + [NativeTypeName("#define D3D10_SRGB_GAMMA ( 2.2f )")] + public const float D3D10_SRGB_GAMMA = (2.2f); + + [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] + public const float D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); + + [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] + public const float D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); + + [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] + public const float D3D10_SRGB_TO_FLOAT_EXPONENT = (2.4f); + + [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] + public const float D3D10_SRGB_TO_FLOAT_OFFSET = (0.055f); + + [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] + public const float D3D10_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); + + [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] + public const float D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); + + [NativeTypeName("#define D3D10_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_STANDARD_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] + public const int D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); + + [NativeTypeName("#define D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] + public const int D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); + + [NativeTypeName("#define D3D10_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] + public const int D3D10_STANDARD_PIXEL_COMPONENT_COUNT = (128); + + [NativeTypeName("#define D3D10_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] + public const int D3D10_STANDARD_PIXEL_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D10_STANDARD_VECTOR_SIZE ( 4 )")] + public const int D3D10_STANDARD_VECTOR_SIZE = (4); + + [NativeTypeName("#define D3D10_STANDARD_VERTEX_ELEMENT_COUNT ( 16 )")] + public const int D3D10_STANDARD_VERTEX_ELEMENT_COUNT = (16); + + [NativeTypeName("#define D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] + public const int D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); + + [NativeTypeName("#define D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 6 )")] + public const int D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT = (6); + + [NativeTypeName("#define D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 18 )")] + public const int D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT = (18); + + [NativeTypeName("#define D3D10_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] + public const int D3D10_UNBOUND_MEMORY_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] + public const int D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); + + [NativeTypeName("#define D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] + public const int D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); + + [NativeTypeName("#define D3D10_VIEWPORT_BOUNDS_MAX ( 16383 )")] + public const int D3D10_VIEWPORT_BOUNDS_MAX = (16383); + + [NativeTypeName("#define D3D10_VIEWPORT_BOUNDS_MIN ( -16384 )")] + public const int D3D10_VIEWPORT_BOUNDS_MIN = (-16384); + + [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_VS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_COUNT ( 16 )")] + public const int D3D10_VS_INPUT_REGISTER_COUNT = (16); + + [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D10_VS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D10_VS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D10_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D10_VS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_VS_OUTPUT_REGISTER_COUNT ( 16 )")] + public const int D3D10_VS_OUTPUT_REGISTER_COUNT = (16); + + [NativeTypeName("#define D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] + public const int D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); + + [NativeTypeName("#define D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D10_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] + public const uint D3D10_APPEND_ALIGNED_ELEMENT = (0xffffffff); + + [NativeTypeName("#define D3D10_FILTER_TYPE_MASK ( 0x3 )")] + public const int D3D10_FILTER_TYPE_MASK = (0x3); + + [NativeTypeName("#define D3D10_MIN_FILTER_SHIFT ( 4 )")] + public const int D3D10_MIN_FILTER_SHIFT = (4); + + [NativeTypeName("#define D3D10_MAG_FILTER_SHIFT ( 2 )")] + public const int D3D10_MAG_FILTER_SHIFT = (2); + + [NativeTypeName("#define D3D10_MIP_FILTER_SHIFT ( 0 )")] + public const int D3D10_MIP_FILTER_SHIFT = (0); + + [NativeTypeName("#define D3D10_COMPARISON_FILTERING_BIT ( 0x80 )")] + public const int D3D10_COMPARISON_FILTERING_BIT = (0x80); + + [NativeTypeName("#define D3D10_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] + public const int D3D10_ANISOTROPIC_FILTERING_BIT = (0x40); + + [NativeTypeName("#define D3D10_TEXT_1BIT_BIT ( 0x80000000 )")] + public const uint D3D10_TEXT_1BIT_BIT = (0x80000000); + + [NativeTypeName("#define D3D10_SDK_VERSION ( 29 )")] + public const int D3D10_SDK_VERSION = (29); + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d10/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d10/DirectX.cs index bed9d58049..6095821810 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10/DirectX.cs @@ -12,636 +12,6 @@ public static uint D3D10CalcSubresource(uint MipSlice, uint ArraySlice, uint Mip return MipSlice + ArraySlice * MipLevels; } - [NativeTypeName("#define D3D10_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] - public const int D3D10_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); - - [NativeTypeName("#define D3D10_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] - public const uint D3D10_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D10_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] - public const int D3D10_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); - - [NativeTypeName("#define D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] - public const int D3D10_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); - - [NativeTypeName("#define D3D10_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] - public const int D3D10_CLIP_OR_CULL_DISTANCE_COUNT = (8); - - [NativeTypeName("#define D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] - public const int D3D10_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] - public const int D3D10_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); - - [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] - public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] - public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] - public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); - - [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] - public const int D3D10_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); - - [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] - public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] - public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); - - [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] - public const int D3D10_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); - - [NativeTypeName("#define D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] - public const int D3D10_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] - public const int D3D10_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] - public const int D3D10_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] - public const int D3D10_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] - public const int D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] - public const int D3D10_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] - public const int D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); - - [NativeTypeName("#define D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] - public const int D3D10_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); - - [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] - public const float D3D10_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); - - [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] - public const float D3D10_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); - - [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] - public const float D3D10_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); - - [NativeTypeName("#define D3D10_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] - public const float D3D10_DEFAULT_BLEND_FACTOR_RED = (1.0f); - - [NativeTypeName("#define D3D10_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D10_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D10_DEFAULT_DEPTH_BIAS ( 0 )")] - public const int D3D10_DEFAULT_DEPTH_BIAS = (0); - - [NativeTypeName("#define D3D10_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] - public const float D3D10_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); - - [NativeTypeName("#define D3D10_DEFAULT_MAX_ANISOTROPY ( 16.0f )")] - public const float D3D10_DEFAULT_MAX_ANISOTROPY = (16.0f); - - [NativeTypeName("#define D3D10_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] - public const float D3D10_DEFAULT_MIP_LOD_BIAS = (0.0f); - - [NativeTypeName("#define D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] - public const int D3D10_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); - - [NativeTypeName("#define D3D10_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] - public const uint D3D10_DEFAULT_SAMPLE_MASK = (0xffffffff); - - [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_ENDX ( 0 )")] - public const int D3D10_DEFAULT_SCISSOR_ENDX = (0); - - [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_ENDY ( 0 )")] - public const int D3D10_DEFAULT_SCISSOR_ENDY = (0); - - [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_STARTX ( 0 )")] - public const int D3D10_DEFAULT_SCISSOR_STARTX = (0); - - [NativeTypeName("#define D3D10_DEFAULT_SCISSOR_STARTY ( 0 )")] - public const int D3D10_DEFAULT_SCISSOR_STARTY = (0); - - [NativeTypeName("#define D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] - public const float D3D10_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); - - [NativeTypeName("#define D3D10_DEFAULT_STENCIL_READ_MASK ( 0xff )")] - public const int D3D10_DEFAULT_STENCIL_READ_MASK = (0xff); - - [NativeTypeName("#define D3D10_DEFAULT_STENCIL_REFERENCE ( 0 )")] - public const int D3D10_DEFAULT_STENCIL_REFERENCE = (0); - - [NativeTypeName("#define D3D10_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] - public const int D3D10_DEFAULT_STENCIL_WRITE_MASK = (0xff); - - [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] - public const int D3D10_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); - - [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] - public const int D3D10_DEFAULT_VIEWPORT_HEIGHT = (0); - - [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] - public const float D3D10_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); - - [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] - public const float D3D10_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); - - [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] - public const int D3D10_DEFAULT_VIEWPORT_TOPLEFTX = (0); - - [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] - public const int D3D10_DEFAULT_VIEWPORT_TOPLEFTY = (0); - - [NativeTypeName("#define D3D10_DEFAULT_VIEWPORT_WIDTH ( 0 )")] - public const int D3D10_DEFAULT_VIEWPORT_WIDTH = (0); - - [NativeTypeName("#define D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] - public const double D3D10_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); - - [NativeTypeName("#define D3D10_FLOAT32_MAX ( 3.402823466e+38f )")] - public const float D3D10_FLOAT32_MAX = (3.402823466e+38f); - - [NativeTypeName("#define D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] - public const float D3D10_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); - - [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] - public const float D3D10_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); - - [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] - public const float D3D10_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); - - [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] - public const float D3D10_FLOAT_TO_SRGB_OFFSET = (0.055f); - - [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] - public const float D3D10_FLOAT_TO_SRGB_SCALE_1 = (12.92f); - - [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] - public const float D3D10_FLOAT_TO_SRGB_SCALE_2 = (1.055f); - - [NativeTypeName("#define D3D10_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] - public const float D3D10_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); - - [NativeTypeName("#define D3D10_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] - public const float D3D10_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); - - [NativeTypeName("#define D3D10_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] - public const float D3D10_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); - - [NativeTypeName("#define D3D10_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] - public const float D3D10_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); - - [NativeTypeName("#define D3D10_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] - public const float D3D10_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); - - [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] - public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] - public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_GS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_COUNT ( 16 )")] - public const int D3D10_GS_INPUT_REGISTER_COUNT = (16); - - [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D10_GS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_GS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_GS_INPUT_REGISTER_VERTICES ( 6 )")] - public const int D3D10_GS_INPUT_REGISTER_VERTICES = (6); - - [NativeTypeName("#define D3D10_GS_OUTPUT_ELEMENTS ( 32 )")] - public const int D3D10_GS_OUTPUT_ELEMENTS = (32); - - [NativeTypeName("#define D3D10_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_GS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_GS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D10_GS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D10_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); - - [NativeTypeName("#define D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] - public const int D3D10_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); - - [NativeTypeName("#define D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D10_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); - - [NativeTypeName("#define D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] - public const int D3D10_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); - - [NativeTypeName("#define D3D10_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] - public const int D3D10_IA_INSTANCE_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] - public const int D3D10_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] - public const int D3D10_IA_PRIMITIVE_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_IA_VERTEX_ID_BIT_COUNT ( 32 )")] - public const int D3D10_IA_VERTEX_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 16 )")] - public const int D3D10_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (16); - - [NativeTypeName("#define D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 64 )")] - public const int D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (64); - - [NativeTypeName("#define D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 16 )")] - public const int D3D10_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (16); - - [NativeTypeName("#define D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] - public const uint D3D10_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); - - [NativeTypeName("#define D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] - public const uint D3D10_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); - - [NativeTypeName("#define D3D10_LINEAR_GAMMA ( 1.0f )")] - public const float D3D10_LINEAR_GAMMA = (1.0f); - - [NativeTypeName("#define D3D10_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] - public const float D3D10_MAX_BORDER_COLOR_COMPONENT = (1.0f); - - [NativeTypeName("#define D3D10_MAX_DEPTH ( 1.0f )")] - public const float D3D10_MAX_DEPTH = (1.0f); - - [NativeTypeName("#define D3D10_MAX_MAXANISOTROPY ( 16 )")] - public const int D3D10_MAX_MAXANISOTROPY = (16); - - [NativeTypeName("#define D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] - public const int D3D10_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); - - [NativeTypeName("#define D3D10_MAX_POSITION_VALUE ( 3.402823466e+34f )")] - public const float D3D10_MAX_POSITION_VALUE = (3.402823466e+34f); - - [NativeTypeName("#define D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] - public const int D3D10_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); - - [NativeTypeName("#define D3D10_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D10_MIN_BORDER_COLOR_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D10_MIN_DEPTH ( 0.0f )")] - public const float D3D10_MIN_DEPTH = (0.0f); - - [NativeTypeName("#define D3D10_MIN_MAXANISOTROPY ( 0 )")] - public const int D3D10_MIN_MAXANISOTROPY = (0); - - [NativeTypeName("#define D3D10_MIP_LOD_BIAS_MAX ( 15.99f )")] - public const float D3D10_MIP_LOD_BIAS_MAX = (15.99f); - - [NativeTypeName("#define D3D10_MIP_LOD_BIAS_MIN ( -16.0f )")] - public const float D3D10_MIP_LOD_BIAS_MIN = (-16.0f); - - [NativeTypeName("#define D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT ( 6 )")] - public const int D3D10_MIP_LOD_FRACTIONAL_BIT_COUNT = (6); - - [NativeTypeName("#define D3D10_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] - public const int D3D10_MIP_LOD_RANGE_BIT_COUNT = (8); - - [NativeTypeName("#define D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] - public const float D3D10_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); - - [NativeTypeName("#define D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] - public const int D3D10_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); - - [NativeTypeName("#define D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 13 )")] - public const int D3D10_PIXEL_ADDRESS_RANGE_BIT_COUNT = (13); - - [NativeTypeName("#define D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] - public const int D3D10_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); - - [NativeTypeName("#define D3D10_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] - public const uint D3D10_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D10_PS_FRONTFACING_FALSE_VALUE ( 0 )")] - public const int D3D10_PS_FRONTFACING_FALSE_VALUE = (0); - - [NativeTypeName("#define D3D10_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] - public const uint D3D10_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_PS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D10_PS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D10_PS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D10_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_PS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] - public const float D3D10_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] - public const int D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] - public const int D3D10_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D10_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_PS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_PS_OUTPUT_REGISTER_COUNT ( 8 )")] - public const int D3D10_PS_OUTPUT_REGISTER_COUNT = (8); - - [NativeTypeName("#define D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] - public const float D3D10_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); - - [NativeTypeName("#define D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] - public const int D3D10_REQ_BLEND_OBJECT_COUNT_PER_CONTEXT = (4096); - - [NativeTypeName("#define D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] - public const int D3D10_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); - - [NativeTypeName("#define D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D10_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - - [NativeTypeName("#define D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] - public const int D3D10_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_CONTEXT = (4096); - - [NativeTypeName("#define D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D10_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); - - [NativeTypeName("#define D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D10_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); - - [NativeTypeName("#define D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 8192 )")] - public const int D3D10_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (8192); - - [NativeTypeName("#define D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] - public const int D3D10_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); - - [NativeTypeName("#define D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D10_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - - [NativeTypeName("#define D3D10_REQ_MAXANISOTROPY ( 16 )")] - public const int D3D10_REQ_MAXANISOTROPY = (16); - - [NativeTypeName("#define D3D10_REQ_MIP_LEVELS ( 14 )")] - public const int D3D10_REQ_MIP_LEVELS = (14); - - [NativeTypeName("#define D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] - public const int D3D10_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); - - [NativeTypeName("#define D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] - public const int D3D10_REQ_RASTERIZER_OBJECT_COUNT_PER_CONTEXT = (4096); - - [NativeTypeName("#define D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 8192 )")] - public const int D3D10_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (8192); - - [NativeTypeName("#define D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES ( 128 )")] - public const int D3D10_REQ_RESOURCE_SIZE_IN_MEGABYTES = (128); - - [NativeTypeName("#define D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP ( 20 )")] - public const int D3D10_REQ_RESOURCE_VIEW_COUNT_PER_CONTEXT_2_TO_EXP = (20); - - [NativeTypeName("#define D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT ( 4096 )")] - public const int D3D10_REQ_SAMPLER_OBJECT_COUNT_PER_CONTEXT = (4096); - - [NativeTypeName("#define D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 512 )")] - public const int D3D10_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (512); - - [NativeTypeName("#define D3D10_REQ_TEXTURE1D_U_DIMENSION ( 8192 )")] - public const int D3D10_REQ_TEXTURE1D_U_DIMENSION = (8192); - - [NativeTypeName("#define D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 512 )")] - public const int D3D10_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (512); - - [NativeTypeName("#define D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 8192 )")] - public const int D3D10_REQ_TEXTURE2D_U_OR_V_DIMENSION = (8192); - - [NativeTypeName("#define D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] - public const int D3D10_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); - - [NativeTypeName("#define D3D10_REQ_TEXTURECUBE_DIMENSION ( 8192 )")] - public const int D3D10_REQ_TEXTURECUBE_DIMENSION = (8192); - - [NativeTypeName("#define D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] - public const int D3D10_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); - - [NativeTypeName("#define D3D10_SHADER_MAJOR_VERSION ( 4 )")] - public const int D3D10_SHADER_MAJOR_VERSION = (4); - - [NativeTypeName("#define D3D10_SHADER_MINOR_VERSION ( 0 )")] - public const int D3D10_SHADER_MINOR_VERSION = (0); - - [NativeTypeName("#define D3D10_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] - public const int D3D10_SHIFT_INSTRUCTION_PAD_VALUE = (0); - - [NativeTypeName("#define D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] - public const int D3D10_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); - - [NativeTypeName("#define D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] - public const int D3D10_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); - - [NativeTypeName("#define D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] - public const int D3D10_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); - - [NativeTypeName("#define D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 256 )")] - public const int D3D10_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (256); - - [NativeTypeName("#define D3D10_SO_BUFFER_SLOT_COUNT ( 4 )")] - public const int D3D10_SO_BUFFER_SLOT_COUNT = (4); - - [NativeTypeName("#define D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] - public const uint D3D10_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); - - [NativeTypeName("#define D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER ( 1 )")] - public const int D3D10_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = (1); - - [NativeTypeName("#define D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT ( 64 )")] - public const int D3D10_SO_SINGLE_BUFFER_COMPONENT_LIMIT = (64); - - [NativeTypeName("#define D3D10_SRGB_GAMMA ( 2.2f )")] - public const float D3D10_SRGB_GAMMA = (2.2f); - - [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] - public const float D3D10_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); - - [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] - public const float D3D10_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); - - [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] - public const float D3D10_SRGB_TO_FLOAT_EXPONENT = (2.4f); - - [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] - public const float D3D10_SRGB_TO_FLOAT_OFFSET = (0.055f); - - [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] - public const float D3D10_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); - - [NativeTypeName("#define D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] - public const float D3D10_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); - - [NativeTypeName("#define D3D10_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_STANDARD_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] - public const int D3D10_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); - - [NativeTypeName("#define D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] - public const int D3D10_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); - - [NativeTypeName("#define D3D10_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] - public const int D3D10_STANDARD_PIXEL_COMPONENT_COUNT = (128); - - [NativeTypeName("#define D3D10_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] - public const int D3D10_STANDARD_PIXEL_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D10_STANDARD_VECTOR_SIZE ( 4 )")] - public const int D3D10_STANDARD_VECTOR_SIZE = (4); - - [NativeTypeName("#define D3D10_STANDARD_VERTEX_ELEMENT_COUNT ( 16 )")] - public const int D3D10_STANDARD_VERTEX_ELEMENT_COUNT = (16); - - [NativeTypeName("#define D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] - public const int D3D10_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); - - [NativeTypeName("#define D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D10_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 6 )")] - public const int D3D10_SUBTEXEL_FRACTIONAL_BIT_COUNT = (6); - - [NativeTypeName("#define D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 18 )")] - public const int D3D10_TEXEL_ADDRESS_RANGE_BIT_COUNT = (18); - - [NativeTypeName("#define D3D10_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] - public const int D3D10_UNBOUND_MEMORY_ACCESS_RESULT = (0); - - [NativeTypeName("#define D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] - public const int D3D10_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); - - [NativeTypeName("#define D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] - public const int D3D10_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); - - [NativeTypeName("#define D3D10_VIEWPORT_BOUNDS_MAX ( 16383 )")] - public const int D3D10_VIEWPORT_BOUNDS_MAX = (16383); - - [NativeTypeName("#define D3D10_VIEWPORT_BOUNDS_MIN ( -16384 )")] - public const int D3D10_VIEWPORT_BOUNDS_MIN = (-16384); - - [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_VS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_COUNT ( 16 )")] - public const int D3D10_VS_INPUT_REGISTER_COUNT = (16); - - [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D10_VS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D10_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D10_VS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D10_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D10_VS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_VS_OUTPUT_REGISTER_COUNT ( 16 )")] - public const int D3D10_VS_OUTPUT_REGISTER_COUNT = (16); - - [NativeTypeName("#define D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] - public const int D3D10_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); - - [NativeTypeName("#define D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D10_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); - - [NativeTypeName("#define D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D10_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); - [NativeTypeName("#define D3D_MAJOR_VERSION ( 10 )")] public const int D3D_MAJOR_VERSION = (10); @@ -665,32 +35,5 @@ public static uint D3D10CalcSubresource(uint MipSlice, uint ArraySlice, uint Mip [NativeTypeName("#define _FACD3D10DEBUG ( ( _FACD3D10 + 1 ) )")] public const int _FACD3D10DEBUG = (((0x879) + 1)); - - [NativeTypeName("#define D3D10_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] - public const uint D3D10_APPEND_ALIGNED_ELEMENT = (0xffffffff); - - [NativeTypeName("#define D3D10_FILTER_TYPE_MASK ( 0x3 )")] - public const int D3D10_FILTER_TYPE_MASK = (0x3); - - [NativeTypeName("#define D3D10_MIN_FILTER_SHIFT ( 4 )")] - public const int D3D10_MIN_FILTER_SHIFT = (4); - - [NativeTypeName("#define D3D10_MAG_FILTER_SHIFT ( 2 )")] - public const int D3D10_MAG_FILTER_SHIFT = (2); - - [NativeTypeName("#define D3D10_MIP_FILTER_SHIFT ( 0 )")] - public const int D3D10_MIP_FILTER_SHIFT = (0); - - [NativeTypeName("#define D3D10_COMPARISON_FILTERING_BIT ( 0x80 )")] - public const int D3D10_COMPARISON_FILTERING_BIT = (0x80); - - [NativeTypeName("#define D3D10_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] - public const int D3D10_ANISOTROPIC_FILTERING_BIT = (0x40); - - [NativeTypeName("#define D3D10_TEXT_1BIT_BIT ( 0x80000000 )")] - public const uint D3D10_TEXT_1BIT_BIT = (0x80000000); - - [NativeTypeName("#define D3D10_SDK_VERSION ( 29 )")] - public const int D3D10_SDK_VERSION = (29); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10.cs b/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10.cs new file mode 100644 index 0000000000..6db2d5eb7b --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d10_1/D3D10.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d10_1.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D10 + { + [NativeTypeName("#define D3D10_1_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] + public const uint D3D10_1_DEFAULT_SAMPLE_MASK = (0xffffffff); + + [NativeTypeName("#define D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] + public const double D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); + + [NativeTypeName("#define D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] + public const float D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); + + [NativeTypeName("#define D3D10_1_GS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D10_1_GS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] + public const int D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); + + [NativeTypeName("#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] + public const int D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); + + [NativeTypeName("#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] + public const int D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] + public const int D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] + public const int D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D10_1_SHADER_MAJOR_VERSION ( 4 )")] + public const int D3D10_1_SHADER_MAJOR_VERSION = (4); + + [NativeTypeName("#define D3D10_1_SHADER_MINOR_VERSION ( 1 )")] + public const int D3D10_1_SHADER_MINOR_VERSION = (1); + + [NativeTypeName("#define D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] + public const int D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 256 )")] + public const int D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (256); + + [NativeTypeName("#define D3D10_1_SO_BUFFER_SLOT_COUNT ( 4 )")] + public const int D3D10_1_SO_BUFFER_SLOT_COUNT = (4); + + [NativeTypeName("#define D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER ( 1 )")] + public const int D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = (1); + + [NativeTypeName("#define D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT ( 64 )")] + public const int D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = (64); + + [NativeTypeName("#define D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] + public const int D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D10_1_VS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D10_1_VS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D10_1_VS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D10_1_VS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D10_1_SDK_VERSION ( ( 0 + 0x20 ) )")] + public const int D3D10_1_SDK_VERSION = ((0 + 0x20)); + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d10_1/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d10_1/DirectX.cs index 5380af74d2..52c8ac8f00 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10_1/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10_1/DirectX.cs @@ -15,71 +15,5 @@ public static unsafe partial class DirectX [DllImport("d3d10_1", ExactSpelling = true)] public static extern HRESULT D3D10CreateDeviceAndSwapChain1(IDXGIAdapter* pAdapter, D3D10_DRIVER_TYPE DriverType, HMODULE Software, uint Flags, D3D10_FEATURE_LEVEL1 HardwareLevel, uint SDKVersion, DXGI_SWAP_CHAIN_DESC* pSwapChainDesc, IDXGISwapChain** ppSwapChain, ID3D10Device1** ppDevice); - - [NativeTypeName("#define D3D10_1_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] - public const uint D3D10_1_DEFAULT_SAMPLE_MASK = (0xffffffff); - - [NativeTypeName("#define D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] - public const double D3D10_1_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); - - [NativeTypeName("#define D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] - public const float D3D10_1_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); - - [NativeTypeName("#define D3D10_1_GS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D10_1_GS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] - public const int D3D10_1_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); - - [NativeTypeName("#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] - public const int D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); - - [NativeTypeName("#define D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] - public const int D3D10_1_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] - public const int D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D10_1_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] - public const int D3D10_1_PS_OUTPUT_MASK_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D10_1_SHADER_MAJOR_VERSION ( 4 )")] - public const int D3D10_1_SHADER_MAJOR_VERSION = (4); - - [NativeTypeName("#define D3D10_1_SHADER_MINOR_VERSION ( 1 )")] - public const int D3D10_1_SHADER_MINOR_VERSION = (1); - - [NativeTypeName("#define D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] - public const int D3D10_1_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); - - [NativeTypeName("#define D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 256 )")] - public const int D3D10_1_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (256); - - [NativeTypeName("#define D3D10_1_SO_BUFFER_SLOT_COUNT ( 4 )")] - public const int D3D10_1_SO_BUFFER_SLOT_COUNT = (4); - - [NativeTypeName("#define D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER ( 1 )")] - public const int D3D10_1_SO_MULTIPLE_BUFFER_ELEMENTS_PER_BUFFER = (1); - - [NativeTypeName("#define D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT ( 64 )")] - public const int D3D10_1_SO_SINGLE_BUFFER_COMPONENT_LIMIT = (64); - - [NativeTypeName("#define D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] - public const int D3D10_1_STANDARD_VERTEX_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D10_1_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D10_1_VS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D10_1_VS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D10_1_VS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D10_1_VS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D10_1_SDK_VERSION ( ( 0 + 0x20 ) )")] - public const int D3D10_1_SDK_VERSION = ((0 + 0x20)); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10effect/D3D10.cs b/sources/Interop/Windows/DirectX/um/d3d10effect/D3D10.cs new file mode 100644 index 0000000000..5de7c04e2a --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d10effect/D3D10.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d10effect.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D10 + { + [NativeTypeName("#define D3D10_EFFECT_COMPILE_CHILD_EFFECT (1 << 0)")] + public const int D3D10_EFFECT_COMPILE_CHILD_EFFECT = (1 << 0); + + [NativeTypeName("#define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS (1 << 1)")] + public const int D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS = (1 << 1); + + [NativeTypeName("#define D3D10_EFFECT_SINGLE_THREADED (1 << 3)")] + public const int D3D10_EFFECT_SINGLE_THREADED = (1 << 3); + + [NativeTypeName("#define D3D10_EFFECT_VARIABLE_POOLED (1 << 0)")] + public const int D3D10_EFFECT_VARIABLE_POOLED = (1 << 0); + + [NativeTypeName("#define D3D10_EFFECT_VARIABLE_ANNOTATION (1 << 1)")] + public const int D3D10_EFFECT_VARIABLE_ANNOTATION = (1 << 1); + + [NativeTypeName("#define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT (1 << 2)")] + public const int D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT = (1 << 2); + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d10effect/D3D10_STATE_BLOCK_MASK.cs b/sources/Interop/Windows/DirectX/um/d3d10effect/D3D10_STATE_BLOCK_MASK.cs index 98304a33ff..0703a6fa66 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10effect/D3D10_STATE_BLOCK_MASK.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10effect/D3D10_STATE_BLOCK_MASK.cs @@ -3,6 +3,8 @@ // Ported from um/d3d10effect.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using TerraFX.Interop.Windows; + namespace TerraFX.Interop.DirectX { public unsafe partial struct D3D10_STATE_BLOCK_MASK diff --git a/sources/Interop/Windows/DirectX/um/d3d10effect/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d10effect/DirectX.cs index e7355ff27b..8ab8df632b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10effect/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10effect/DirectX.cs @@ -48,23 +48,5 @@ public static unsafe partial class DirectX [DllImport("d3d10", ExactSpelling = true)] public static extern HRESULT D3D10DisassembleEffect(ID3D10Effect* pEffect, BOOL EnableColorCode, [NativeTypeName("ID3D10Blob **")] ID3DBlob** ppDisassembly); - - [NativeTypeName("#define D3D10_EFFECT_COMPILE_CHILD_EFFECT (1 << 0)")] - public const int D3D10_EFFECT_COMPILE_CHILD_EFFECT = (1 << 0); - - [NativeTypeName("#define D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS (1 << 1)")] - public const int D3D10_EFFECT_COMPILE_ALLOW_SLOW_OPS = (1 << 1); - - [NativeTypeName("#define D3D10_EFFECT_SINGLE_THREADED (1 << 3)")] - public const int D3D10_EFFECT_SINGLE_THREADED = (1 << 3); - - [NativeTypeName("#define D3D10_EFFECT_VARIABLE_POOLED (1 << 0)")] - public const int D3D10_EFFECT_VARIABLE_POOLED = (1 << 0); - - [NativeTypeName("#define D3D10_EFFECT_VARIABLE_ANNOTATION (1 << 1)")] - public const int D3D10_EFFECT_VARIABLE_ANNOTATION = (1 << 1); - - [NativeTypeName("#define D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT (1 << 2)")] - public const int D3D10_EFFECT_VARIABLE_EXPLICIT_BIND_POINT = (1 << 2); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d10misc/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d10misc/DirectX.cs index 67189e4d3e..27c30f9c94 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10misc/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10misc/DirectX.cs @@ -3,9 +3,6 @@ // Ported from um/d3d10misc.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -13,31 +10,6 @@ namespace TerraFX.Interop.DirectX { public static unsafe partial class DirectX { - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DeviceType - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0xFB, 0x22, 0xD7, - 0x68, 0x7A, - 0x7A, 0x43, - 0xB2, - 0x0C, - 0x58, - 0x04, - 0xEE, - 0x24, - 0x94, - 0xA6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [DllImport("d3d10", ExactSpelling = true)] public static extern HRESULT D3D10CreateDevice(IDXGIAdapter* pAdapter, D3D10_DRIVER_TYPE DriverType, HMODULE Software, uint Flags, uint SDKVersion, ID3D10Device** ppDevice); diff --git a/sources/Interop/Windows/DirectX/um/d3d10misc/GUID.cs b/sources/Interop/Windows/DirectX/um/d3d10misc/GUID.cs new file mode 100644 index 0000000000..9215195e9d --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d10misc/GUID.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d10misc.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DeviceType + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0xFB, 0x22, 0xD7, + 0x68, 0x7A, + 0x7A, 0x43, + 0xB2, + 0x0C, + 0x58, + 0x04, + 0xEE, + 0x24, + 0x94, + 0xA6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/D3D10.cs similarity index 79% rename from sources/Interop/Windows/DirectX/um/d3d10sdklayers/DirectX.cs rename to sources/Interop/Windows/DirectX/um/d3d10sdklayers/D3D10.cs index 67a58df216..40342da4cb 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/D3D10.cs @@ -3,40 +3,10 @@ // Ported from um/d3d10sdklayers.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class D3D10 { - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_D3D10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0x4C, 0x3B, 0x24, - 0x06, 0x36, - 0x3A, 0x4D, - 0x99, - 0xD7, - 0xA7, - 0xE7, - 0xB3, - 0x3E, - 0xD7, - 0x06 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("#define D3D10_SDK_LAYERS_VERSION ( 11 )")] public const int D3D10_SDK_LAYERS_VERSION = (11); diff --git a/sources/Interop/Windows/DirectX/um/d3d10sdklayers/DXGI.cs b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/DXGI.cs new file mode 100644 index 0000000000..c6983980e5 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d10sdklayers/DXGI.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d10sdklayers.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("const GUID")] + public static ref readonly Guid DXGI_DEBUG_D3D10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0x4C, 0x3B, 0x24, + 0x06, 0x36, + 0x3A, 0x4D, + 0x99, + 0xD7, + 0xA7, + 0xE7, + 0xB3, + 0x3E, + 0xD7, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d10shader/D3D10.cs b/sources/Interop/Windows/DirectX/um/d3d10shader/D3D10.cs new file mode 100644 index 0000000000..3a98d2f66c --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d10shader/D3D10.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d10shader.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D10 + { + [NativeTypeName("#define D3D10_SHADER_DEBUG (1 << 0)")] + public const int D3D10_SHADER_DEBUG = (1 << 0); + + [NativeTypeName("#define D3D10_SHADER_SKIP_VALIDATION (1 << 1)")] + public const int D3D10_SHADER_SKIP_VALIDATION = (1 << 1); + + [NativeTypeName("#define D3D10_SHADER_SKIP_OPTIMIZATION (1 << 2)")] + public const int D3D10_SHADER_SKIP_OPTIMIZATION = (1 << 2); + + [NativeTypeName("#define D3D10_SHADER_PACK_MATRIX_ROW_MAJOR (1 << 3)")] + public const int D3D10_SHADER_PACK_MATRIX_ROW_MAJOR = (1 << 3); + + [NativeTypeName("#define D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR (1 << 4)")] + public const int D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR = (1 << 4); + + [NativeTypeName("#define D3D10_SHADER_PARTIAL_PRECISION (1 << 5)")] + public const int D3D10_SHADER_PARTIAL_PRECISION = (1 << 5); + + [NativeTypeName("#define D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT (1 << 6)")] + public const int D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT = (1 << 6); + + [NativeTypeName("#define D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT (1 << 7)")] + public const int D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT = (1 << 7); + + [NativeTypeName("#define D3D10_SHADER_NO_PRESHADER (1 << 8)")] + public const int D3D10_SHADER_NO_PRESHADER = (1 << 8); + + [NativeTypeName("#define D3D10_SHADER_AVOID_FLOW_CONTROL (1 << 9)")] + public const int D3D10_SHADER_AVOID_FLOW_CONTROL = (1 << 9); + + [NativeTypeName("#define D3D10_SHADER_PREFER_FLOW_CONTROL (1 << 10)")] + public const int D3D10_SHADER_PREFER_FLOW_CONTROL = (1 << 10); + + [NativeTypeName("#define D3D10_SHADER_ENABLE_STRICTNESS (1 << 11)")] + public const int D3D10_SHADER_ENABLE_STRICTNESS = (1 << 11); + + [NativeTypeName("#define D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY (1 << 12)")] + public const int D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY = (1 << 12); + + [NativeTypeName("#define D3D10_SHADER_IEEE_STRICTNESS (1 << 13)")] + public const int D3D10_SHADER_IEEE_STRICTNESS = (1 << 13); + + [NativeTypeName("#define D3D10_SHADER_WARNINGS_ARE_ERRORS (1 << 18)")] + public const int D3D10_SHADER_WARNINGS_ARE_ERRORS = (1 << 18); + + [NativeTypeName("#define D3D10_SHADER_RESOURCES_MAY_ALIAS (1 << 19)")] + public const int D3D10_SHADER_RESOURCES_MAY_ALIAS = (1 << 19); + + [NativeTypeName("#define D3D10_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES (1 << 20)")] + public const int D3D10_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES = (1 << 20); + + [NativeTypeName("#define D3D10_ALL_RESOURCES_BOUND (1 << 21)")] + public const int D3D10_ALL_RESOURCES_BOUND = (1 << 21); + + [NativeTypeName("#define D3D10_SHADER_DEBUG_NAME_FOR_SOURCE (1 << 22)")] + public const int D3D10_SHADER_DEBUG_NAME_FOR_SOURCE = (1 << 22); + + [NativeTypeName("#define D3D10_SHADER_DEBUG_NAME_FOR_BINARY (1 << 23)")] + public const int D3D10_SHADER_DEBUG_NAME_FOR_BINARY = (1 << 23); + + [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL0 (1 << 14)")] + public const int D3D10_SHADER_OPTIMIZATION_LEVEL0 = (1 << 14); + + [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL1 0")] + public const int D3D10_SHADER_OPTIMIZATION_LEVEL1 = 0; + + [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL2 ((1 << 14) | (1 << 15))")] + public const int D3D10_SHADER_OPTIMIZATION_LEVEL2 = ((1 << 14) | (1 << 15)); + + [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL3 (1 << 15)")] + public const int D3D10_SHADER_OPTIMIZATION_LEVEL3 = (1 << 15); + + [NativeTypeName("#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST 0")] + public const int D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST = 0; + + [NativeTypeName("#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 (1 << 4)")] + public const int D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 = (1 << 4); + + [NativeTypeName("#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 (1 << 5)")] + public const int D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 = (1 << 5); + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d10shader/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d10shader/DirectX.cs index c76485d922..ab2e4ed6c7 100644 --- a/sources/Interop/Windows/DirectX/um/d3d10shader/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d10shader/DirectX.cs @@ -45,86 +45,5 @@ public static unsafe partial class DirectX [DllImport("d3d10", ExactSpelling = true)] public static extern HRESULT D3D10GetShaderDebugInfo([NativeTypeName("const void *")] void* pShaderBytecode, [NativeTypeName("SIZE_T")] nuint BytecodeLength, [NativeTypeName("ID3D10Blob **")] ID3DBlob** ppDebugInfo); - - [NativeTypeName("#define D3D10_SHADER_DEBUG (1 << 0)")] - public const int D3D10_SHADER_DEBUG = (1 << 0); - - [NativeTypeName("#define D3D10_SHADER_SKIP_VALIDATION (1 << 1)")] - public const int D3D10_SHADER_SKIP_VALIDATION = (1 << 1); - - [NativeTypeName("#define D3D10_SHADER_SKIP_OPTIMIZATION (1 << 2)")] - public const int D3D10_SHADER_SKIP_OPTIMIZATION = (1 << 2); - - [NativeTypeName("#define D3D10_SHADER_PACK_MATRIX_ROW_MAJOR (1 << 3)")] - public const int D3D10_SHADER_PACK_MATRIX_ROW_MAJOR = (1 << 3); - - [NativeTypeName("#define D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR (1 << 4)")] - public const int D3D10_SHADER_PACK_MATRIX_COLUMN_MAJOR = (1 << 4); - - [NativeTypeName("#define D3D10_SHADER_PARTIAL_PRECISION (1 << 5)")] - public const int D3D10_SHADER_PARTIAL_PRECISION = (1 << 5); - - [NativeTypeName("#define D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT (1 << 6)")] - public const int D3D10_SHADER_FORCE_VS_SOFTWARE_NO_OPT = (1 << 6); - - [NativeTypeName("#define D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT (1 << 7)")] - public const int D3D10_SHADER_FORCE_PS_SOFTWARE_NO_OPT = (1 << 7); - - [NativeTypeName("#define D3D10_SHADER_NO_PRESHADER (1 << 8)")] - public const int D3D10_SHADER_NO_PRESHADER = (1 << 8); - - [NativeTypeName("#define D3D10_SHADER_AVOID_FLOW_CONTROL (1 << 9)")] - public const int D3D10_SHADER_AVOID_FLOW_CONTROL = (1 << 9); - - [NativeTypeName("#define D3D10_SHADER_PREFER_FLOW_CONTROL (1 << 10)")] - public const int D3D10_SHADER_PREFER_FLOW_CONTROL = (1 << 10); - - [NativeTypeName("#define D3D10_SHADER_ENABLE_STRICTNESS (1 << 11)")] - public const int D3D10_SHADER_ENABLE_STRICTNESS = (1 << 11); - - [NativeTypeName("#define D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY (1 << 12)")] - public const int D3D10_SHADER_ENABLE_BACKWARDS_COMPATIBILITY = (1 << 12); - - [NativeTypeName("#define D3D10_SHADER_IEEE_STRICTNESS (1 << 13)")] - public const int D3D10_SHADER_IEEE_STRICTNESS = (1 << 13); - - [NativeTypeName("#define D3D10_SHADER_WARNINGS_ARE_ERRORS (1 << 18)")] - public const int D3D10_SHADER_WARNINGS_ARE_ERRORS = (1 << 18); - - [NativeTypeName("#define D3D10_SHADER_RESOURCES_MAY_ALIAS (1 << 19)")] - public const int D3D10_SHADER_RESOURCES_MAY_ALIAS = (1 << 19); - - [NativeTypeName("#define D3D10_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES (1 << 20)")] - public const int D3D10_ENABLE_UNBOUNDED_DESCRIPTOR_TABLES = (1 << 20); - - [NativeTypeName("#define D3D10_ALL_RESOURCES_BOUND (1 << 21)")] - public const int D3D10_ALL_RESOURCES_BOUND = (1 << 21); - - [NativeTypeName("#define D3D10_SHADER_DEBUG_NAME_FOR_SOURCE (1 << 22)")] - public const int D3D10_SHADER_DEBUG_NAME_FOR_SOURCE = (1 << 22); - - [NativeTypeName("#define D3D10_SHADER_DEBUG_NAME_FOR_BINARY (1 << 23)")] - public const int D3D10_SHADER_DEBUG_NAME_FOR_BINARY = (1 << 23); - - [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL0 (1 << 14)")] - public const int D3D10_SHADER_OPTIMIZATION_LEVEL0 = (1 << 14); - - [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL1 0")] - public const int D3D10_SHADER_OPTIMIZATION_LEVEL1 = 0; - - [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL2 ((1 << 14) | (1 << 15))")] - public const int D3D10_SHADER_OPTIMIZATION_LEVEL2 = ((1 << 14) | (1 << 15)); - - [NativeTypeName("#define D3D10_SHADER_OPTIMIZATION_LEVEL3 (1 << 15)")] - public const int D3D10_SHADER_OPTIMIZATION_LEVEL3 = (1 << 15); - - [NativeTypeName("#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST 0")] - public const int D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_LATEST = 0; - - [NativeTypeName("#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 (1 << 4)")] - public const int D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_0 = (1 << 4); - - [NativeTypeName("#define D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 (1 << 5)")] - public const int D3D10_SHADER_FLAGS2_FORCE_ROOT_SIGNATURE_1_1 = (1 << 5); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11.Manual.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11.Manual.cs new file mode 100644 index 0000000000..3f2e157b39 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static unsafe partial class D3D11 + { + public const int D3D11_OMAC_SIZE = 16; + + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2AND1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x12, 0x5F, 0x69, 0x86, + 0x0E, 0x34, + 0x04, 0x4F, + 0x9F, + 0xD3, + 0x92, + 0x53, + 0xDD, + 0x32, + 0x74, + 0x60 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11.cs new file mode 100644 index 0000000000..873441b618 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11.cs @@ -0,0 +1,2714 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D11 + { + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4B, 0xF4, 0xA9, 0xE6, + 0xB0, 0x61, + 0x63, 0x45, + 0x9E, + 0xA4, + 0x63, + 0xD2, + 0xA3, + 0xC6, + 0xFE, + 0x66 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_IDCT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0xAD, 0x22, 0xBF, + 0xEA, 0x03, + 0x90, 0x46, + 0x80, + 0x77, + 0x47, + 0x33, + 0x46, + 0x20, + 0x9B, + 0x7E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7F, 0x41, 0x27, 0xEE, + 0x28, 0x5E, + 0x65, 0x4E, + 0xBE, + 0xEA, + 0x1D, + 0x26, + 0xB5, + 0x08, + 0xAD, + 0xC9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0xC7, 0x3E, 0x6F, + 0x35, 0x37, + 0xCC, 0x42, + 0x80, + 0x63, + 0x65, + 0xCC, + 0x3C, + 0xB3, + 0x66, + 0x16 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2and1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x12, 0x5F, 0x69, 0x86, + 0x0E, 0x34, + 0x04, 0x4F, + 0x9F, + 0xD3, + 0x92, + 0x53, + 0xDD, + 0x32, + 0x74, + 0x60 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_MOCOMP_FGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x65, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_IDCT_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_IDCT_FGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x67, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x68, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_FGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x69, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF9, 0x4F, 0xF0, 0xD5, + 0x18, 0x34, + 0xD8, 0x45, + 0x95, + 0x61, + 0x32, + 0xA7, + 0x6A, + 0xAE, + 0x2D, + 0xDD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0xE8, 0x9B, 0xD7, + 0xF1, 0x0C, + 0x81, 0x4C, + 0xB8, + 0x2A, + 0x69, + 0xA4, + 0xE2, + 0x36, + 0xF4, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBB, 0xCC, 0xAA, 0xF9, + 0xB6, 0xC2, + 0xFC, 0x4C, + 0x87, + 0x79, + 0x57, + 0x07, + 0xB1, + 0x76, + 0x05, + 0x52 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x82, 0x9D, 0x5B, 0x70, + 0xCF, 0x76, + 0xD6, 0x49, + 0xB7, + 0xE6, + 0xAC, + 0x88, + 0x72, + 0xDB, + 0x01, + 0x3C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV8_POSTPROC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV8_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x81, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_POSTPROC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x90, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x91, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_IDCT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x94, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_POSTPROC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA0, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_MOCOMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA1, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_IDCT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA2, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_D2010 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0xBE, 0x81, 0x1B, + 0xC7, 0xA0, + 0xD3, 0x11, + 0xB9, + 0x84, + 0x00, + 0xC0, + 0x4F, + 0x2E, + 0x73, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x74, 0x4D, 0xD6, 0xEF, + 0xE8, 0xC9, + 0xD7, 0x41, + 0xA5, + 0xE9, + 0xE9, + 0xB0, + 0xE3, + 0x9F, + 0xA3, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x8A, 0x41, 0xED, + 0x0D, 0x01, + 0xDA, 0x4E, + 0x9A, + 0xE3, + 0x9A, + 0x65, + 0x35, + 0x8D, + 0x8D, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5B, 0x8B, 0x99, 0xAB, + 0x58, 0x42, + 0xA9, 0x44, + 0x9F, + 0xEB, + 0x94, + 0xE5, + 0x97, + 0xA6, + 0xBA, + 0xAE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_HEVC_VLD_MAIN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0xD5, 0x11, 0x5B, + 0x4C, 0x2F, + 0x52, 0x44, + 0xBC, + 0xC3, + 0x09, + 0xF2, + 0xA1, + 0x16, + 0x0C, + 0xC0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE0, 0xF0, 0x7A, 0x10, + 0x1A, 0xEF, + 0x19, 0x4D, + 0xAB, + 0xA8, + 0x67, + 0xA1, + 0x63, + 0x07, + 0x3D, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF8, 0x07, 0x37, 0x46, + 0xD0, 0xA1, + 0x85, 0x45, + 0x87, + 0x6D, + 0x83, + 0xAA, + 0x6D, + 0x60, + 0xB8, + 0x9E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEF, 0x49, 0xC7, 0xA4, + 0xCF, 0x6E, + 0xAA, 0x48, + 0x84, + 0x48, + 0x50, + 0xA7, + 0xA1, + 0x16, + 0x5F, + 0xF7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_VP8_VLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEA, 0x99, 0xB8, 0x90, + 0x62, 0x3A, + 0x05, 0x47, + 0x88, + 0xB3, + 0x8D, + 0xF0, + 0x4B, + 0x27, + 0x44, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCB, 0x4C, 0xBE, 0xB8, + 0x53, 0xCF, + 0xBA, 0x46, + 0x8D, + 0x59, + 0xD6, + 0xB8, + 0xA6, + 0xDA, + 0x5D, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0F, 0xFF, 0x36, 0x69, + 0xB1, 0x45, + 0x63, 0x41, + 0x9C, + 0xC1, + 0x64, + 0x6E, + 0xF6, + 0x94, + 0x61, + 0x08 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA1, 0x2A, 0x5F, 0x0C, + 0x41, 0xE5, + 0x89, 0x40, + 0xBB, + 0x7B, + 0x98, + 0x11, + 0x0A, + 0x19, + 0xD7, + 0xC8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0x70, 0x12, 0x17, + 0x0F, 0xA0, + 0xE1, 0x4C, + 0x99, + 0x4E, + 0xBF, + 0x40, + 0x81, + 0xF6, + 0xF3, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2_420 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD6, 0xBE, 0x80, 0x2D, + 0xAC, 0x9C, + 0x35, 0x48, + 0x9E, + 0x91, + 0x32, + 0x7B, + 0xBC, + 0x4F, + 0x9E, + 0xE8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_CRYPTO_TYPE_AES128_CTR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0xD7, 0x6B, 0x9B, + 0x74, 0x4F, + 0xC9, 0x41, + 0x9E, + 0x7B, + 0x0B, + 0xE2, + 0xD7, + 0xD9, + 0x3B, + 0x4F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_ENCRYPTION_HW_CENC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0xAC, 0xD6, 0x89, + 0xF2, 0x09, + 0x29, 0x42, + 0xB2, + 0xCD, + 0x37, + 0x74, + 0x0A, + 0x6D, + 0xFD, + 0x81 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CENC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x35, 0x52, 0x40, 0xB0, + 0x3D, 0xC1, + 0xF2, 0x44, + 0x9A, + 0xE5, + 0xDD, + 0x48, + 0xE0, + 0x8E, + 0x5B, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CBCS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x93, 0x2D, 0x42, + 0x21, 0x9D, + 0xB7, 0x4B, + 0x93, + 0x71, + 0xFA, + 0xF5, + 0xA8, + 0x2C, + 0x3E, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_KEY_EXCHANGE_HW_PROTECTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x0D, 0x17, 0xB1, + 0x8D, 0x62, + 0xA3, 0x4D, + 0xAD, + 0x3B, + 0x82, + 0xDD, + 0xB0, + 0x8B, + 0x49, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_PROTECTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x84, 0xB5, 0x4E, 0xA8, + 0x95, 0xC4, + 0xAA, 0x48, + 0xB9, + 0x4D, + 0x8B, + 0xD2, + 0xD6, + 0xFB, + 0xCE, + 0x05 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0x18, 0x1B, 0xBC, + 0xFB, 0xB1, + 0xAB, 0x42, + 0xBD, + 0x94, + 0xB5, + 0x82, + 0x8B, + 0x4B, + 0xF7, + 0xBE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9D, 0x53, 0x1C, 0xEC, + 0xFF, 0x8C, + 0x2A, 0x4E, + 0xBC, + 0xC4, + 0xF5, + 0x69, + 0x2F, + 0x99, + 0xF4, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9E, 0x49, 0x34, 0x26, + 0x18, 0xD0, + 0x74, 0x4D, + 0xAC, + 0x17, + 0x7F, + 0x72, + 0x40, + 0x59, + 0x52, + 0x8D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB3, 0x07, 0xB2, 0x0D, + 0x50, 0x94, + 0xA6, 0x46, + 0x82, + 0xDE, + 0x1B, + 0x96, + 0xD4, + 0x4F, + 0x9C, + 0xF2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0xBA, 0x9B, 0x64, + 0xF4, 0xF0, + 0x39, 0x46, + 0xA1, + 0x5B, + 0x24, + 0x39, + 0x3F, + 0xC3, + 0xAB, + 0xAC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD6, 0x0B, 0x2F, 0x01, + 0x62, 0xE6, + 0x74, 0x44, + 0xBE, + 0xFD, + 0xAA, + 0x53, + 0xE5, + 0x14, + 0x3C, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5E, 0x2B, 0x04, 0x2C, + 0x07, 0x8C, + 0xD5, 0x46, + 0xAA, + 0xBE, + 0x8F, + 0x75, + 0xCB, + 0xAD, + 0x4C, + 0x31 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_OUTPUT_ID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0xDC, 0x9D, 0x83, + 0x4E, 0x9B, + 0xE4, 0x41, + 0xB0, + 0x53, + 0x89, + 0x2B, + 0xD2, + 0xA1, + 0x1E, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ATTRIBUTES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD2, 0xD9, 0x14, 0x62, + 0x2C, 0x43, + 0xBB, 0x4A, + 0x9F, + 0xCE, + 0x21, + 0x6E, + 0xEA, + 0x26, + 0x9E, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0x70, 0x0F, 0xB3, + 0x3C, 0x20, + 0x07, 0x4B, + 0x93, + 0xFC, + 0xCE, + 0xAA, + 0xFD, + 0x61, + 0x24, + 0x1E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x58, 0x59, 0x3A, 0xF8, + 0x86, 0xE9, + 0xDA, 0x4B, + 0xBE, + 0xB0, + 0x41, + 0x1F, + 0x6A, + 0x7A, + 0x01, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CURRENT_ENCRYPTION_WHEN_ACCESSIBLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0x91, 0x17, 0xEC, + 0xD3, 0xDA, + 0x15, 0x4F, + 0x9E, + 0xC3, + 0xFA, + 0xA9, + 0x3D, + 0x60, + 0xD4, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0x4B, 0x11, 0x06, + 0x23, 0x35, + 0x0A, 0x47, + 0x8D, + 0xCA, + 0xFB, + 0xC2, + 0x84, + 0x51, + 0x54, + 0xF0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_PROTECTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x58, 0x56, 0x45, 0x50, + 0x47, 0x3F, + 0x62, 0x43, + 0xBF, + 0x99, + 0xBF, + 0xDF, + 0xCD, + 0xE9, + 0xED, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x54, 0xCC, 0x46, 0x63, + 0xFC, 0x2C, + 0xD4, 0x4A, + 0x82, + 0x24, + 0xD1, + 0x58, + 0x37, + 0xDE, + 0x77, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0xD0, 0x72, 0x07, + 0x40, 0x1B, + 0xE8, 0x48, + 0x9C, + 0xA6, + 0xB5, + 0xF5, + 0x10, + 0xDE, + 0x9F, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_ENCRYPTION_WHEN_ACCESSIBLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x86, 0xF2, 0xFF, 0x41, + 0xE0, 0x6A, + 0x43, 0x4D, + 0x9D, + 0x55, + 0xA4, + 0x6E, + 0x9E, + 0xFD, + 0x15, + 0x8A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D11_KEY_EXCHANGE_RSAES_OAEP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x95, 0x98, 0x94, 0xC1, + 0x2A, 0xD7, + 0x1D, 0x4A, + 0x8E, + 0x5D, + 0xED, + 0x85, + 0x7D, + 0x17, + 0x15, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define D3D11_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] + public const int D3D11_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); + + [NativeTypeName("#define D3D11_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] + public const uint D3D11_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D11_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] + public const int D3D11_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); + + [NativeTypeName("#define D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] + public const int D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); + + [NativeTypeName("#define D3D11_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] + public const int D3D11_CLIP_OR_CULL_DISTANCE_COUNT = (8); + + [NativeTypeName("#define D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] + public const int D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] + public const int D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] + public const int D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] + public const int D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); + + [NativeTypeName("#define D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] + public const int D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] + public const int D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] + public const int D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] + public const int D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] + public const int D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); + + [NativeTypeName("#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] + public const int D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )")] + public const int D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (256); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )")] + public const int D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = (64); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )")] + public const int D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (240); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )")] + public const int D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = (68); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )")] + public const int D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (224); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )")] + public const int D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = (72); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )")] + public const int D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (208); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )")] + public const int D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = (76); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )")] + public const int D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (192); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )")] + public const int D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = (84); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )")] + public const int D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (176); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )")] + public const int D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = (92); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )")] + public const int D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (160); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )")] + public const int D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = (100); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )")] + public const int D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (144); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )")] + public const int D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = (112); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )")] + public const int D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (128); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )")] + public const int D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = (128); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )")] + public const int D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (112); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )")] + public const int D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = (144); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )")] + public const int D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (96); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )")] + public const int D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = (168); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )")] + public const int D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (80); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )")] + public const int D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = (204); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )")] + public const int D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (64); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )")] + public const int D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = (256); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )")] + public const int D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (48); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )")] + public const int D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = (340); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )")] + public const int D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (32); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )")] + public const int D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = (512); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )")] + public const int D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (16); + + [NativeTypeName("#define D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )")] + public const int D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = (768); + + [NativeTypeName("#define D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )")] + public const int D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = (1); + + [NativeTypeName("#define D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )")] + public const int D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = (256); + + [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )")] + public const int D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = (768); + + [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_X ( 768 )")] + public const int D3D11_CS_4_X_THREAD_GROUP_MAX_X = (768); + + [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )")] + public const int D3D11_CS_4_X_THREAD_GROUP_MAX_Y = (768); + + [NativeTypeName("#define D3D11_CS_4_X_UAV_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_4_X_UAV_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )")] + public const int D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = (65535); + + [NativeTypeName("#define D3D11_CS_TGSM_REGISTER_COUNT ( 8192 )")] + public const int D3D11_CS_TGSM_REGISTER_COUNT = (8192); + + [NativeTypeName("#define D3D11_CS_TGSM_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_CS_TGSM_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_CS_THREADGROUPID_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADGROUPID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADIDINGROUP_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREADID_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_CS_THREADID_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_CS_THREADID_REGISTER_COUNT ( 1 )")] + public const int D3D11_CS_THREADID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = (1024); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_X ( 1024 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_X = (1024); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_Y ( 1024 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_Y = (1024); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_Z ( 64 )")] + public const int D3D11_CS_THREAD_GROUP_MAX_Z = (64); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_X ( 1 )")] + public const int D3D11_CS_THREAD_GROUP_MIN_X = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_Y ( 1 )")] + public const int D3D11_CS_THREAD_GROUP_MIN_Y = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_Z ( 1 )")] + public const int D3D11_CS_THREAD_GROUP_MIN_Z = (1); + + [NativeTypeName("#define D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )")] + public const int D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = (16384); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] + public const float D3D11_DEFAULT_BLEND_FACTOR_RED = (1.0f); + + [NativeTypeName("#define D3D11_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D11_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_DEPTH_BIAS ( 0 )")] + public const int D3D11_DEFAULT_DEPTH_BIAS = (0); + + [NativeTypeName("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] + public const float D3D11_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_MAX_ANISOTROPY ( 16 )")] + public const int D3D11_DEFAULT_MAX_ANISOTROPY = (16); + + [NativeTypeName("#define D3D11_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] + public const float D3D11_DEFAULT_MIP_LOD_BIAS = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] + public const int D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] + public const uint D3D11_DEFAULT_SAMPLE_MASK = (0xffffffff); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_ENDX ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_ENDX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_ENDY ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_ENDY = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_STARTX ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_STARTX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_STARTY ( 0 )")] + public const int D3D11_DEFAULT_SCISSOR_STARTY = (0); + + [NativeTypeName("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] + public const float D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_STENCIL_READ_MASK ( 0xff )")] + public const int D3D11_DEFAULT_STENCIL_READ_MASK = (0xff); + + [NativeTypeName("#define D3D11_DEFAULT_STENCIL_REFERENCE ( 0 )")] + public const int D3D11_DEFAULT_STENCIL_REFERENCE = (0); + + [NativeTypeName("#define D3D11_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] + public const int D3D11_DEFAULT_STENCIL_WRITE_MASK = (0xff); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_HEIGHT = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] + public const float D3D11_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] + public const float D3D11_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_TOPLEFTX = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_TOPLEFTY = (0); + + [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_WIDTH ( 0 )")] + public const int D3D11_DEFAULT_VIEWPORT_WIDTH = (0); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] + public const int D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_DS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_DS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] + public const double D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); + + [NativeTypeName("#define D3D11_FLOAT32_MAX ( 3.402823466e+38f )")] + public const float D3D11_FLOAT32_MAX = (3.402823466e+38f); + + [NativeTypeName("#define D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] + public const float D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] + public const float D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] + public const float D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] + public const float D3D11_FLOAT_TO_SRGB_OFFSET = (0.055f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] + public const float D3D11_FLOAT_TO_SRGB_SCALE_1 = (12.92f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] + public const float D3D11_FLOAT_TO_SRGB_SCALE_2 = (1.055f); + + [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] + public const float D3D11_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); + + [NativeTypeName("#define D3D11_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] + public const float D3D11_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); + + [NativeTypeName("#define D3D11_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] + public const float D3D11_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); + + [NativeTypeName("#define D3D11_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] + public const float D3D11_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); + + [NativeTypeName("#define D3D11_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] + public const float D3D11_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_GS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_GS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_GS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_GS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_VERTICES ( 32 )")] + public const int D3D11_GS_INPUT_REGISTER_VERTICES = (32); + + [NativeTypeName("#define D3D11_GS_MAX_INSTANCE_COUNT ( 32 )")] + public const int D3D11_GS_MAX_INSTANCE_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )")] + public const int D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = (1024); + + [NativeTypeName("#define D3D11_GS_OUTPUT_ELEMENTS ( 32 )")] + public const int D3D11_GS_OUTPUT_ELEMENTS = (32); + + [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_GS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_GS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] + public const uint D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] + public const uint D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); + + [NativeTypeName("#define D3D11_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )")] + public const float D3D11_HS_MAXTESSFACTOR_LOWER_BOUND = (1.0f); + + [NativeTypeName("#define D3D11_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )")] + public const float D3D11_HS_MAXTESSFACTOR_UPPER_BOUND = (64.0f); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )")] + public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = (128); + + [NativeTypeName("#define D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] + public const int D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); + + [NativeTypeName("#define D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] + public const int D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); + + [NativeTypeName("#define D3D11_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] + public const int D3D11_IA_INSTANCE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] + public const int D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )")] + public const int D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] + public const int D3D11_IA_PRIMITIVE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_VERTEX_ID_BIT_COUNT ( 32 )")] + public const int D3D11_IA_VERTEX_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] + public const int D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); + + [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] + public const int D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); + + [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] + public const int D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] + public const uint D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); + + [NativeTypeName("#define D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] + public const uint D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); + + [NativeTypeName("#define D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )")] + public const uint D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = (0xffffffff); + + [NativeTypeName("#define D3D11_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )")] + public const uint D3D11_KEEP_UNORDERED_ACCESS_VIEWS = (0xffffffff); + + [NativeTypeName("#define D3D11_LINEAR_GAMMA ( 1.0f )")] + public const float D3D11_LINEAR_GAMMA = (1.0f); + + [NativeTypeName("#define D3D11_MAJOR_VERSION ( 11 )")] + public const int D3D11_MAJOR_VERSION = (11); + + [NativeTypeName("#define D3D11_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] + public const float D3D11_MAX_BORDER_COLOR_COMPONENT = (1.0f); + + [NativeTypeName("#define D3D11_MAX_DEPTH ( 1.0f )")] + public const float D3D11_MAX_DEPTH = (1.0f); + + [NativeTypeName("#define D3D11_MAX_MAXANISOTROPY ( 16 )")] + public const int D3D11_MAX_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] + public const int D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); + + [NativeTypeName("#define D3D11_MAX_POSITION_VALUE ( 3.402823466e+34f )")] + public const float D3D11_MAX_POSITION_VALUE = (3.402823466e+34f); + + [NativeTypeName("#define D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] + public const int D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); + + [NativeTypeName("#define D3D11_MINOR_VERSION ( 0 )")] + public const int D3D11_MINOR_VERSION = (0); + + [NativeTypeName("#define D3D11_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D11_MIN_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D11_MIN_DEPTH ( 0.0f )")] + public const float D3D11_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D11_MIN_MAXANISOTROPY ( 0 )")] + public const int D3D11_MIN_MAXANISOTROPY = (0); + + [NativeTypeName("#define D3D11_MIP_LOD_BIAS_MAX ( 15.99f )")] + public const float D3D11_MIP_LOD_BIAS_MAX = (15.99f); + + [NativeTypeName("#define D3D11_MIP_LOD_BIAS_MIN ( -16.0f )")] + public const float D3D11_MIP_LOD_BIAS_MIN = (-16.0f); + + [NativeTypeName("#define D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] + public const int D3D11_MIP_LOD_RANGE_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] + public const float D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); + + [NativeTypeName("#define D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] + public const int D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] + public const int D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); + + [NativeTypeName("#define D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] + public const int D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (16); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_PS_CS_UAV_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_COUNT ( 8 )")] + public const int D3D11_PS_CS_UAV_REGISTER_COUNT = (8); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_PS_CS_UAV_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] + public const uint D3D11_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D11_PS_FRONTFACING_FALSE_VALUE ( 0 )")] + public const int D3D11_PS_FRONTFACING_FALSE_VALUE = (0); + + [NativeTypeName("#define D3D11_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] + public const uint D3D11_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_PS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_PS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_PS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_PS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] + public const float D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] + public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] + public const int D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] + public const int D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_PS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COUNT ( 8 )")] + public const int D3D11_PS_OUTPUT_REGISTER_COUNT = (8); + + [NativeTypeName("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] + public const float D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); + + [NativeTypeName("#define D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )")] + public const int D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] + public const int D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); + + [NativeTypeName("#define D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )")] + public const int D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] + public const int D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); + + [NativeTypeName("#define D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D11_REQ_MAXANISOTROPY ( 16 )")] + public const int D3D11_REQ_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D11_REQ_MIP_LEVELS ( 15 )")] + public const int D3D11_REQ_MIP_LEVELS = (15); + + [NativeTypeName("#define D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] + public const int D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )")] + public const int D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (16384); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )")] + public const int D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = (128); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )")] + public const float D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM = (0.25f); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )")] + public const int D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = (2048); + + [NativeTypeName("#define D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )")] + public const int D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = (20); + + [NativeTypeName("#define D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )")] + public const int D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (2048); + + [NativeTypeName("#define D3D11_REQ_TEXTURE1D_U_DIMENSION ( 16384 )")] + public const int D3D11_REQ_TEXTURE1D_U_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )")] + public const int D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (2048); + + [NativeTypeName("#define D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )")] + public const int D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] + public const int D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); + + [NativeTypeName("#define D3D11_REQ_TEXTURECUBE_DIMENSION ( 16384 )")] + public const int D3D11_REQ_TEXTURECUBE_DIMENSION = (16384); + + [NativeTypeName("#define D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] + public const int D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); + + [NativeTypeName("#define D3D11_SHADER_MAJOR_VERSION ( 5 )")] + public const int D3D11_SHADER_MAJOR_VERSION = (5); + + [NativeTypeName("#define D3D11_SHADER_MAX_INSTANCES ( 65535 )")] + public const int D3D11_SHADER_MAX_INSTANCES = (65535); + + [NativeTypeName("#define D3D11_SHADER_MAX_INTERFACES ( 253 )")] + public const int D3D11_SHADER_MAX_INTERFACES = (253); + + [NativeTypeName("#define D3D11_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )")] + public const int D3D11_SHADER_MAX_INTERFACE_CALL_SITES = (4096); + + [NativeTypeName("#define D3D11_SHADER_MAX_TYPES ( 65535 )")] + public const int D3D11_SHADER_MAX_TYPES = (65535); + + [NativeTypeName("#define D3D11_SHADER_MINOR_VERSION ( 0 )")] + public const int D3D11_SHADER_MINOR_VERSION = (0); + + [NativeTypeName("#define D3D11_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] + public const int D3D11_SHIFT_INSTRUCTION_PAD_VALUE = (0); + + [NativeTypeName("#define D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] + public const int D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); + + [NativeTypeName("#define D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] + public const int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); + + [NativeTypeName("#define D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] + public const int D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )")] + public const int D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (512); + + [NativeTypeName("#define D3D11_SO_BUFFER_SLOT_COUNT ( 4 )")] + public const int D3D11_SO_BUFFER_SLOT_COUNT = (4); + + [NativeTypeName("#define D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] + public const uint D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); + + [NativeTypeName("#define D3D11_SO_NO_RASTERIZED_STREAM ( 0xffffffff )")] + public const uint D3D11_SO_NO_RASTERIZED_STREAM = (0xffffffff); + + [NativeTypeName("#define D3D11_SO_OUTPUT_COMPONENT_COUNT ( 128 )")] + public const int D3D11_SO_OUTPUT_COMPONENT_COUNT = (128); + + [NativeTypeName("#define D3D11_SO_STREAM_COUNT ( 4 )")] + public const int D3D11_SO_STREAM_COUNT = (4); + + [NativeTypeName("#define D3D11_SPEC_DATE_DAY ( 16 )")] + public const int D3D11_SPEC_DATE_DAY = (16); + + [NativeTypeName("#define D3D11_SPEC_DATE_MONTH ( 05 )")] + public const int D3D11_SPEC_DATE_MONTH = (05); + + [NativeTypeName("#define D3D11_SPEC_DATE_YEAR ( 2011 )")] + public const int D3D11_SPEC_DATE_YEAR = (2011); + + [NativeTypeName("#define D3D11_SPEC_VERSION ( 1.07 )")] + public const double D3D11_SPEC_VERSION = (1.07); + + [NativeTypeName("#define D3D11_SRGB_GAMMA ( 2.2f )")] + public const float D3D11_SRGB_GAMMA = (2.2f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] + public const float D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] + public const float D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] + public const float D3D11_SRGB_TO_FLOAT_EXPONENT = (2.4f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] + public const float D3D11_SRGB_TO_FLOAT_OFFSET = (0.055f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] + public const float D3D11_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); + + [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] + public const float D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); + + [NativeTypeName("#define D3D11_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_STANDARD_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] + public const int D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); + + [NativeTypeName("#define D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] + public const int D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); + + [NativeTypeName("#define D3D11_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] + public const int D3D11_STANDARD_PIXEL_COMPONENT_COUNT = (128); + + [NativeTypeName("#define D3D11_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] + public const int D3D11_STANDARD_PIXEL_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D11_STANDARD_VECTOR_SIZE ( 4 )")] + public const int D3D11_STANDARD_VECTOR_SIZE = (4); + + [NativeTypeName("#define D3D11_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] + public const int D3D11_STANDARD_VERTEX_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] + public const int D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); + + [NativeTypeName("#define D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )")] + public const int D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )")] + public const int D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )")] + public const int D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = (63); + + [NativeTypeName("#define D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )")] + public const int D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )")] + public const int D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = (2); + + [NativeTypeName("#define D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )")] + public const int D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = (1); + + [NativeTypeName("#define D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )")] + public const int D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = (1); + + [NativeTypeName("#define D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] + public const int D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT = (16); + + [NativeTypeName("#define D3D11_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] + public const int D3D11_UNBOUND_MEMORY_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] + public const int D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); + + [NativeTypeName("#define D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] + public const int D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); + + [NativeTypeName("#define D3D11_VIEWPORT_BOUNDS_MAX ( 32767 )")] + public const int D3D11_VIEWPORT_BOUNDS_MAX = (32767); + + [NativeTypeName("#define D3D11_VIEWPORT_BOUNDS_MIN ( -32768 )")] + public const int D3D11_VIEWPORT_BOUNDS_MIN = (-32768); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_VS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_VS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D11_VS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D11_VS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D11_VS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D11_VS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] + public const int D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); + + [NativeTypeName("#define D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D11_1_UAV_SLOT_COUNT ( 64 )")] + public const int D3D11_1_UAV_SLOT_COUNT = (64); + + [NativeTypeName("#define D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )")] + public const int D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = (65536); + + [NativeTypeName("#define D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS ( 4 )")] + public const int D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS = (4); + + [NativeTypeName("#define D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )")] + public const int D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT = (256); + + [NativeTypeName("#define D3D11_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] + public const uint D3D11_APPEND_ALIGNED_ELEMENT = (0xffffffff); + + [NativeTypeName("#define D3D11_FILTER_REDUCTION_TYPE_MASK ( 0x3 )")] + public const int D3D11_FILTER_REDUCTION_TYPE_MASK = (0x3); + + [NativeTypeName("#define D3D11_FILTER_REDUCTION_TYPE_SHIFT ( 7 )")] + public const int D3D11_FILTER_REDUCTION_TYPE_SHIFT = (7); + + [NativeTypeName("#define D3D11_FILTER_TYPE_MASK ( 0x3 )")] + public const int D3D11_FILTER_TYPE_MASK = (0x3); + + [NativeTypeName("#define D3D11_MIN_FILTER_SHIFT ( 4 )")] + public const int D3D11_MIN_FILTER_SHIFT = (4); + + [NativeTypeName("#define D3D11_MAG_FILTER_SHIFT ( 2 )")] + public const int D3D11_MAG_FILTER_SHIFT = (2); + + [NativeTypeName("#define D3D11_MIP_FILTER_SHIFT ( 0 )")] + public const int D3D11_MIP_FILTER_SHIFT = (0); + + [NativeTypeName("#define D3D11_COMPARISON_FILTERING_BIT ( 0x80 )")] + public const int D3D11_COMPARISON_FILTERING_BIT = (0x80); + + [NativeTypeName("#define D3D11_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] + public const int D3D11_ANISOTROPIC_FILTERING_BIT = (0x40); + + [NativeTypeName("#define D3D11_SDK_VERSION ( 7 )")] + public const int D3D11_SDK_VERSION = (7); + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIEWPORT.Manual.cs b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIEWPORT.Manual.cs index bd598ed515..6d626cb172 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIEWPORT.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/D3D11_VIEWPORT.Manual.cs @@ -5,7 +5,7 @@ using System; using static TerraFX.Interop.DirectX.D3D11_RTV_DIMENSION; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.D3D11; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/um/d3d11/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/um/d3d11/DirectX.Manual.cs index 2576718987..39787a8cb8 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/DirectX.Manual.cs @@ -3,10 +3,8 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.DirectX.D3D11; using static TerraFX.Interop.DirectX.D3D11_FILTER_TYPE; using static TerraFX.Interop.DirectX.D3D11_FILTER_REDUCTION_TYPE; using static TerraFX.Interop.Windows.Windows; @@ -15,31 +13,6 @@ namespace TerraFX.Interop.DirectX { public static unsafe partial class DirectX { - public const int D3D11_OMAC_SIZE = 16; - - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2AND1_VLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x12, 0x5F, 0x69, 0x86, - 0x0E, 0x34, - 0x04, 0x4F, - 0x9F, - 0xD3, - 0x92, - 0x53, - 0xDD, - 0x32, - 0x74, - 0x60 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - public static HRESULT MAKE_D3D11_HRESULT(int code) => MAKE_HRESULT(1, unchecked((int)_FACD3D11), code); public static HRESULT MAKE_D3D11_STATUS(int code) => MAKE_HRESULT(0, unchecked((int)_FACD3D11), code); diff --git a/sources/Interop/Windows/DirectX/um/d3d11/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d11/DirectX.cs index d0ba903c68..a79aa79e6b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11/DirectX.cs @@ -3,9 +3,6 @@ // Ported from um/d3d11.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -18,2715 +15,16 @@ public static uint D3D11CalcSubresource(uint MipSlice, uint ArraySlice, uint Mip return MipSlice + ArraySlice * MipLevels; } - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_MOCOMP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4B, 0xF4, 0xA9, 0xE6, - 0xB0, 0x61, - 0x63, 0x45, - 0x9E, - 0xA4, - 0x63, - 0xD2, - 0xA3, - 0xC6, - 0xFE, - 0x66 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_IDCT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0xAD, 0x22, 0xBF, - 0xEA, 0x03, - 0x90, 0x46, - 0x80, - 0x77, - 0x47, - 0x33, - 0x46, - 0x20, - 0x9B, - 0x7E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2_VLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7F, 0x41, 0x27, 0xEE, - 0x28, 0x5E, - 0x65, 0x4E, - 0xBE, - 0xEA, - 0x1D, - 0x26, - 0xB5, - 0x08, - 0xAD, - 0xC9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG1_VLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0xC7, 0x3E, 0x6F, - 0x35, 0x37, - 0xCC, 0x42, - 0x80, - 0x63, - 0x65, - 0xCC, - 0x3C, - 0xB3, - 0x66, - 0x16 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG2and1_VLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x12, 0x5F, 0x69, 0x86, - 0x0E, 0x34, - 0x04, 0x4F, - 0x9F, - 0xD3, - 0x92, - 0x53, - 0xDD, - 0x32, - 0x74, - 0x60 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_MOCOMP_NOFGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_MOCOMP_FGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x65, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_IDCT_NOFGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x66, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_IDCT_FGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x67, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_NOFGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x68, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_FGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x69, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_WITHFMOASO_NOFGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF9, 0x4F, 0xF0, 0xD5, - 0x18, 0x34, - 0xD8, 0x45, - 0x95, - 0x61, - 0x32, - 0xA7, - 0x6A, - 0xAE, - 0x2D, - 0xDD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_STEREO_PROGRESSIVE_NOFGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0xE8, 0x9B, 0xD7, - 0xF1, 0x0C, - 0x81, 0x4C, - 0xB8, - 0x2A, - 0x69, - 0xA4, - 0xE2, - 0x36, - 0xF4, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_STEREO_NOFGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBB, 0xCC, 0xAA, 0xF9, - 0xB6, 0xC2, - 0xFC, 0x4C, - 0x87, - 0x79, - 0x57, - 0x07, - 0xB1, - 0x76, - 0x05, - 0x52 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_H264_VLD_MULTIVIEW_NOFGT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x82, 0x9D, 0x5B, 0x70, - 0xCF, 0x76, - 0xD6, 0x49, - 0xB7, - 0xE6, - 0xAC, - 0x88, - 0x72, - 0xDB, - 0x01, - 0x3C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_WMV8_POSTPROC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x80, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_WMV8_MOCOMP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x81, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_POSTPROC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x90, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_MOCOMP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x91, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_WMV9_IDCT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x94, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_POSTPROC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA0, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_MOCOMP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA1, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_IDCT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA2, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_VLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA3, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VC1_D2010 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA4, 0xBE, 0x81, 0x1B, - 0xC7, 0xA0, - 0xD3, 0x11, - 0xB9, - 0x84, - 0x00, - 0xC0, - 0x4F, - 0x2E, - 0x73, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_SIMPLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x74, 0x4D, 0xD6, 0xEF, - 0xE8, 0xC9, - 0xD7, 0x41, - 0xA5, - 0xE9, - 0xE9, - 0xB0, - 0xE3, - 0x9F, - 0xA3, - 0x19 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_NOGMC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0x8A, 0x41, 0xED, - 0x0D, 0x01, - 0xDA, 0x4E, - 0x9A, - 0xE3, - 0x9A, - 0x65, - 0x35, - 0x8D, - 0x8D, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_MPEG4PT2_VLD_ADVSIMPLE_GMC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5B, 0x8B, 0x99, 0xAB, - 0x58, 0x42, - 0xA9, 0x44, - 0x9F, - 0xEB, - 0x94, - 0xE5, - 0x97, - 0xA6, - 0xBA, - 0xAE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_HEVC_VLD_MAIN - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1B, 0xD5, 0x11, 0x5B, - 0x4C, 0x2F, - 0x52, 0x44, - 0xBC, - 0xC3, - 0x09, - 0xF2, - 0xA1, - 0x16, - 0x0C, - 0xC0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_HEVC_VLD_MAIN10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE0, 0xF0, 0x7A, 0x10, - 0x1A, 0xEF, - 0x19, 0x4D, - 0xAB, - 0xA8, - 0x67, - 0xA1, - 0x63, - 0x07, - 0x3D, - 0x13 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VP9_VLD_PROFILE0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF8, 0x07, 0x37, 0x46, - 0xD0, 0xA1, - 0x85, 0x45, - 0x87, - 0x6D, - 0x83, - 0xAA, - 0x6D, - 0x60, - 0xB8, - 0x9E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VP9_VLD_10BIT_PROFILE2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEF, 0x49, 0xC7, 0xA4, - 0xCF, 0x6E, - 0xAA, 0x48, - 0x84, - 0x48, - 0x50, - 0xA7, - 0xA1, - 0x16, - 0x5F, - 0xF7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_VP8_VLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEA, 0x99, 0xB8, 0x90, - 0x62, 0x3A, - 0x05, 0x47, - 0x88, - 0xB3, - 0x8D, - 0xF0, - 0x4B, - 0x27, - 0x44, - 0xE7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCB, 0x4C, 0xBE, 0xB8, - 0x53, 0xCF, - 0xBA, 0x46, - 0x8D, - 0x59, - 0xD6, - 0xB8, - 0xA6, - 0xDA, - 0x5D, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0F, 0xFF, 0x36, 0x69, - 0xB1, 0x45, - 0x63, 0x41, - 0x9C, - 0xC1, - 0x64, - 0x6E, - 0xF6, - 0x94, - 0x61, - 0x08 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_PROFILE2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA1, 0x2A, 0x5F, 0x0C, - 0x41, 0xE5, - 0x89, 0x40, - 0xBB, - 0x7B, - 0x98, - 0x11, - 0x0A, - 0x19, - 0xD7, - 0xC8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x09, 0x70, 0x12, 0x17, - 0x0F, 0xA0, - 0xE1, 0x4C, - 0x99, - 0x4E, - 0xBF, - 0x40, - 0x81, - 0xF6, - 0xF3, - 0xF0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_PROFILE_AV1_VLD_12BIT_PROFILE2_420 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD6, 0xBE, 0x80, 0x2D, - 0xAC, 0x9C, - 0x35, 0x48, - 0x9E, - 0x91, - 0x32, - 0x7B, - 0xBC, - 0x4F, - 0x9E, - 0xE8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_CRYPTO_TYPE_AES128_CTR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x11, 0xD7, 0x6B, 0x9B, - 0x74, 0x4F, - 0xC9, 0x41, - 0x9E, - 0x7B, - 0x0B, - 0xE2, - 0xD7, - 0xD9, - 0x3B, - 0x4F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_ENCRYPTION_HW_CENC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4F, 0xAC, 0xD6, 0x89, - 0xF2, 0x09, - 0x29, 0x42, - 0xB2, - 0xCD, - 0x37, - 0x74, - 0x0A, - 0x6D, - 0xFD, - 0x81 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CENC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x35, 0x52, 0x40, 0xB0, - 0x3D, 0xC1, - 0xF2, 0x44, - 0x9A, - 0xE5, - 0xDD, - 0x48, - 0xE0, - 0x8E, - 0x5B, - 0x67 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_DECODER_BITSTREAM_ENCRYPTION_TYPE_CBCS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0x93, 0x2D, 0x42, - 0x21, 0x9D, - 0xB7, 0x4B, - 0x93, - 0x71, - 0xFA, - 0xF5, - 0xA8, - 0x2C, - 0x3E, - 0x04 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_KEY_EXCHANGE_HW_PROTECTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0x0D, 0x17, 0xB1, - 0x8D, 0x62, - 0xA3, 0x4D, - 0xAD, - 0x3B, - 0x82, - 0xDD, - 0xB0, - 0x8B, - 0x49, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_PROTECTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x84, 0xB5, 0x4E, 0xA8, - 0x95, 0xC4, - 0xAA, 0x48, - 0xB9, - 0x4D, - 0x8B, - 0xD2, - 0xD6, - 0xFB, - 0xCE, - 0x05 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CHANNEL_TYPE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0x18, 0x1B, 0xBC, - 0xFB, 0xB1, - 0xAB, 0x42, - 0xBD, - 0x94, - 0xB5, - 0x82, - 0x8B, - 0x4B, - 0xF7, - 0xBE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_DEVICE_HANDLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9D, 0x53, 0x1C, 0xEC, - 0xFF, 0x8C, - 0x2A, 0x4E, - 0xBC, - 0xC4, - 0xF5, - 0x69, - 0x2F, - 0x99, - 0xF4, - 0x80 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CRYPTO_SESSION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9E, 0x49, 0x34, 0x26, - 0x18, 0xD0, - 0x74, 0x4D, - 0xAC, - 0x17, - 0x7F, - 0x72, - 0x40, - 0x59, - 0x52, - 0x8D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS_COUNT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB3, 0x07, 0xB2, 0x0D, - 0x50, 0x94, - 0xA6, 0x46, - 0x82, - 0xDE, - 0x1B, - 0x96, - 0xD4, - 0x4F, - 0x9C, - 0xF2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_RESTRICTED_SHARED_RESOURCE_PROCESS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0xBA, 0x9B, 0x64, - 0xF4, 0xF0, - 0x39, 0x46, - 0xA1, - 0x5B, - 0x24, - 0x39, - 0x3F, - 0xC3, - 0xAB, - 0xAC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_UNRESTRICTED_PROTECTED_SHARED_RESOURCE_COUNT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD6, 0x0B, 0x2F, 0x01, - 0x62, 0xE6, - 0x74, 0x44, - 0xBE, - 0xFD, - 0xAA, - 0x53, - 0xE5, - 0x14, - 0x3C, - 0x6D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_OUTPUT_ID_COUNT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5E, 0x2B, 0x04, 0x2C, - 0x07, 0x8C, - 0xD5, 0x46, - 0xAA, - 0xBE, - 0x8F, - 0x75, - 0xCB, - 0xAD, - 0x4C, - 0x31 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_OUTPUT_ID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA3, 0xDC, 0x9D, 0x83, - 0x4E, 0x9B, - 0xE4, 0x41, - 0xB0, - 0x53, - 0x89, - 0x2B, - 0xD2, - 0xA1, - 0x1E, - 0xE7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ACCESSIBILITY_ATTRIBUTES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD2, 0xD9, 0x14, 0x62, - 0x2C, 0x43, - 0xBB, 0x4A, - 0x9F, - 0xCE, - 0x21, - 0x6E, - 0xEA, - 0x26, - 0x9E, - 0x3B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID_COUNT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x66, 0x70, 0x0F, 0xB3, - 0x3C, 0x20, - 0x07, 0x4B, - 0x93, - 0xFC, - 0xCE, - 0xAA, - 0xFD, - 0x61, - 0x24, - 0x1E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_ENCRYPTION_WHEN_ACCESSIBLE_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x58, 0x59, 0x3A, 0xF8, - 0x86, 0xE9, - 0xDA, 0x4B, - 0xBE, - 0xB0, - 0x41, - 0x1F, - 0x6A, - 0x7A, - 0x01, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_QUERY_CURRENT_ENCRYPTION_WHEN_ACCESSIBLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC7, 0x91, 0x17, 0xEC, - 0xD3, 0xDA, - 0x15, 0x4F, - 0x9E, - 0xC3, - 0xFA, - 0xA9, - 0x3D, - 0x60, - 0xD4, - 0xF0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_INITIALIZE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0x4B, 0x11, 0x06, - 0x23, 0x35, - 0x0A, 0x47, - 0x8D, - 0xCA, - 0xFB, - 0xC2, - 0x84, - 0x51, - 0x54, - 0xF0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_PROTECTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x58, 0x56, 0x45, 0x50, - 0x47, 0x3F, - 0x62, 0x43, - 0xBF, - 0x99, - 0xBF, - 0xDF, - 0xCD, - 0xE9, - 0xED, - 0x29 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_CRYPTO_SESSION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x54, 0xCC, 0x46, 0x63, - 0xFC, 0x2C, - 0xD4, 0x4A, - 0x82, - 0x24, - 0xD1, - 0x58, - 0x37, - 0xDE, - 0x77, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_SHARED_RESOURCE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x47, 0xD0, 0x72, 0x07, - 0x40, 0x1B, - 0xE8, 0x48, - 0x9C, - 0xA6, - 0xB5, - 0xF5, - 0x10, - 0xDE, - 0x9F, - 0x01 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_AUTHENTICATED_CONFIGURE_ENCRYPTION_WHEN_ACCESSIBLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x86, 0xF2, 0xFF, 0x41, - 0xE0, 0x6A, - 0x43, 0x4D, - 0x9D, - 0x55, - 0xA4, - 0x6E, - 0x9E, - 0xFD, - 0x15, - 0x8A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D11_KEY_EXCHANGE_RSAES_OAEP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x95, 0x98, 0x94, 0xC1, - 0x2A, 0xD7, - 0x1D, 0x4A, - 0x8E, - 0x5D, - 0xED, - 0x85, - 0x7D, - 0x17, - 0x15, - 0x20 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [DllImport("d3d11", ExactSpelling = true)] - public static extern HRESULT D3D11CreateDevice(IDXGIAdapter* pAdapter, D3D_DRIVER_TYPE DriverType, HMODULE Software, uint Flags, [NativeTypeName("const D3D_FEATURE_LEVEL *")] D3D_FEATURE_LEVEL* pFeatureLevels, uint FeatureLevels, uint SDKVersion, ID3D11Device** ppDevice, D3D_FEATURE_LEVEL* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext); - - [DllImport("d3d11", ExactSpelling = true)] - public static extern HRESULT D3D11CreateDeviceAndSwapChain(IDXGIAdapter* pAdapter, D3D_DRIVER_TYPE DriverType, HMODULE Software, uint Flags, [NativeTypeName("const D3D_FEATURE_LEVEL *")] D3D_FEATURE_LEVEL* pFeatureLevels, uint FeatureLevels, uint SDKVersion, [NativeTypeName("const DXGI_SWAP_CHAIN_DESC *")] DXGI_SWAP_CHAIN_DESC* pSwapChainDesc, IDXGISwapChain** ppSwapChain, ID3D11Device** ppDevice, D3D_FEATURE_LEVEL* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext); - - [NativeTypeName("#define D3D11_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] - public const int D3D11_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); - - [NativeTypeName("#define D3D11_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] - public const uint D3D11_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D11_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] - public const int D3D11_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); - - [NativeTypeName("#define D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] - public const int D3D11_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); - - [NativeTypeName("#define D3D11_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] - public const int D3D11_CLIP_OR_CULL_DISTANCE_COUNT = (8); - - [NativeTypeName("#define D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] - public const int D3D11_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = (16); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] - public const int D3D11_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); - - [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] - public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] - public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); - - [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] - public const int D3D11_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); - - [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] - public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); - - [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] - public const int D3D11_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); - - [NativeTypeName("#define D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] - public const int D3D11_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] - public const int D3D11_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] - public const int D3D11_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] - public const int D3D11_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] - public const int D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] - public const int D3D11_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] - public const int D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); - - [NativeTypeName("#define D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] - public const int D3D11_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )")] - public const int D3D11_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (256); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )")] - public const int D3D11_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = (64); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )")] - public const int D3D11_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (240); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )")] - public const int D3D11_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = (68); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )")] - public const int D3D11_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (224); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )")] - public const int D3D11_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = (72); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )")] - public const int D3D11_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (208); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )")] - public const int D3D11_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = (76); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )")] - public const int D3D11_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (192); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )")] - public const int D3D11_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = (84); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )")] - public const int D3D11_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (176); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )")] - public const int D3D11_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = (92); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )")] - public const int D3D11_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (160); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )")] - public const int D3D11_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = (100); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )")] - public const int D3D11_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (144); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )")] - public const int D3D11_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = (112); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )")] - public const int D3D11_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (128); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )")] - public const int D3D11_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = (128); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )")] - public const int D3D11_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (112); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )")] - public const int D3D11_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = (144); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )")] - public const int D3D11_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (96); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )")] - public const int D3D11_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = (168); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )")] - public const int D3D11_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (80); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )")] - public const int D3D11_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = (204); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )")] - public const int D3D11_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (64); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )")] - public const int D3D11_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = (256); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )")] - public const int D3D11_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (48); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )")] - public const int D3D11_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = (340); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )")] - public const int D3D11_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (32); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )")] - public const int D3D11_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = (512); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )")] - public const int D3D11_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (16); - - [NativeTypeName("#define D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )")] - public const int D3D11_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = (768); - - [NativeTypeName("#define D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )")] - public const int D3D11_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = (1); - - [NativeTypeName("#define D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )")] - public const int D3D11_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = (256); - - [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )")] - public const int D3D11_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = (768); - - [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_X ( 768 )")] - public const int D3D11_CS_4_X_THREAD_GROUP_MAX_X = (768); - - [NativeTypeName("#define D3D11_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )")] - public const int D3D11_CS_4_X_THREAD_GROUP_MAX_Y = (768); - - [NativeTypeName("#define D3D11_CS_4_X_UAV_REGISTER_COUNT ( 1 )")] - public const int D3D11_CS_4_X_UAV_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )")] - public const int D3D11_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = (65535); - - [NativeTypeName("#define D3D11_CS_TGSM_REGISTER_COUNT ( 8192 )")] - public const int D3D11_CS_TGSM_REGISTER_COUNT = (8192); - - [NativeTypeName("#define D3D11_CS_TGSM_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D11_CS_TGSM_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )")] - public const int D3D11_CS_THREADGROUPID_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D11_CS_THREADGROUPID_REGISTER_COUNT ( 1 )")] - public const int D3D11_CS_THREADGROUPID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )")] - public const int D3D11_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )")] - public const int D3D11_CS_THREADIDINGROUP_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D11_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )")] - public const int D3D11_CS_THREADIDINGROUP_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_CS_THREADID_REGISTER_COMPONENTS ( 3 )")] - public const int D3D11_CS_THREADID_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D11_CS_THREADID_REGISTER_COUNT ( 1 )")] - public const int D3D11_CS_THREADID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )")] - public const int D3D11_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = (1024); - - [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_X ( 1024 )")] - public const int D3D11_CS_THREAD_GROUP_MAX_X = (1024); - - [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_Y ( 1024 )")] - public const int D3D11_CS_THREAD_GROUP_MAX_Y = (1024); - - [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MAX_Z ( 64 )")] - public const int D3D11_CS_THREAD_GROUP_MAX_Z = (64); - - [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_X ( 1 )")] - public const int D3D11_CS_THREAD_GROUP_MIN_X = (1); - - [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_Y ( 1 )")] - public const int D3D11_CS_THREAD_GROUP_MIN_Y = (1); - - [NativeTypeName("#define D3D11_CS_THREAD_GROUP_MIN_Z ( 1 )")] - public const int D3D11_CS_THREAD_GROUP_MIN_Z = (1); - - [NativeTypeName("#define D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )")] - public const int D3D11_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = (16384); - - [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] - public const float D3D11_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); - - [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] - public const float D3D11_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); - - [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] - public const float D3D11_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); - - [NativeTypeName("#define D3D11_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] - public const float D3D11_DEFAULT_BLEND_FACTOR_RED = (1.0f); - - [NativeTypeName("#define D3D11_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D11_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D11_DEFAULT_DEPTH_BIAS ( 0 )")] - public const int D3D11_DEFAULT_DEPTH_BIAS = (0); - - [NativeTypeName("#define D3D11_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] - public const float D3D11_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); - - [NativeTypeName("#define D3D11_DEFAULT_MAX_ANISOTROPY ( 16 )")] - public const int D3D11_DEFAULT_MAX_ANISOTROPY = (16); - - [NativeTypeName("#define D3D11_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] - public const float D3D11_DEFAULT_MIP_LOD_BIAS = (0.0f); - - [NativeTypeName("#define D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] - public const int D3D11_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); - - [NativeTypeName("#define D3D11_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] - public const uint D3D11_DEFAULT_SAMPLE_MASK = (0xffffffff); - - [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_ENDX ( 0 )")] - public const int D3D11_DEFAULT_SCISSOR_ENDX = (0); - - [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_ENDY ( 0 )")] - public const int D3D11_DEFAULT_SCISSOR_ENDY = (0); - - [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_STARTX ( 0 )")] - public const int D3D11_DEFAULT_SCISSOR_STARTX = (0); - - [NativeTypeName("#define D3D11_DEFAULT_SCISSOR_STARTY ( 0 )")] - public const int D3D11_DEFAULT_SCISSOR_STARTY = (0); - - [NativeTypeName("#define D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] - public const float D3D11_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); - - [NativeTypeName("#define D3D11_DEFAULT_STENCIL_READ_MASK ( 0xff )")] - public const int D3D11_DEFAULT_STENCIL_READ_MASK = (0xff); - - [NativeTypeName("#define D3D11_DEFAULT_STENCIL_REFERENCE ( 0 )")] - public const int D3D11_DEFAULT_STENCIL_REFERENCE = (0); - - [NativeTypeName("#define D3D11_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] - public const int D3D11_DEFAULT_STENCIL_WRITE_MASK = (0xff); - - [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] - public const int D3D11_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); - - [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] - public const int D3D11_DEFAULT_VIEWPORT_HEIGHT = (0); - - [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] - public const float D3D11_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); - - [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] - public const float D3D11_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); - - [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] - public const int D3D11_DEFAULT_VIEWPORT_TOPLEFTX = (0); - - [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] - public const int D3D11_DEFAULT_VIEWPORT_TOPLEFTY = (0); - - [NativeTypeName("#define D3D11_DEFAULT_VIEWPORT_WIDTH ( 0 )")] - public const int D3D11_DEFAULT_VIEWPORT_WIDTH = (0); - - [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] - public const int D3D11_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); - - [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )")] - public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )")] - public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )")] - public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] - public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_DS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_DS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_DS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] - public const double D3D11_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); - - [NativeTypeName("#define D3D11_FLOAT32_MAX ( 3.402823466e+38f )")] - public const float D3D11_FLOAT32_MAX = (3.402823466e+38f); - - [NativeTypeName("#define D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] - public const float D3D11_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); - - [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] - public const float D3D11_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); - - [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] - public const float D3D11_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); - - [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] - public const float D3D11_FLOAT_TO_SRGB_OFFSET = (0.055f); - - [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] - public const float D3D11_FLOAT_TO_SRGB_SCALE_1 = (12.92f); - - [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] - public const float D3D11_FLOAT_TO_SRGB_SCALE_2 = (1.055f); - - [NativeTypeName("#define D3D11_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] - public const float D3D11_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); - - [NativeTypeName("#define D3D11_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] - public const float D3D11_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); - - [NativeTypeName("#define D3D11_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] - public const float D3D11_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); - - [NativeTypeName("#define D3D11_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] - public const float D3D11_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); - - [NativeTypeName("#define D3D11_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] - public const float D3D11_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); - - [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )")] - public const int D3D11_GS_INPUT_INSTANCE_ID_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )")] - public const int D3D11_GS_INPUT_INSTANCE_ID_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D11_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] - public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_GS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_GS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_GS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_GS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_GS_INPUT_REGISTER_VERTICES ( 32 )")] - public const int D3D11_GS_INPUT_REGISTER_VERTICES = (32); - - [NativeTypeName("#define D3D11_GS_MAX_INSTANCE_COUNT ( 32 )")] - public const int D3D11_GS_MAX_INSTANCE_COUNT = (32); - - [NativeTypeName("#define D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )")] - public const int D3D11_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = (1024); - - [NativeTypeName("#define D3D11_GS_OUTPUT_ELEMENTS ( 32 )")] - public const int D3D11_GS_OUTPUT_ELEMENTS = (32); - - [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_GS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_GS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_GS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_HS_CONTROL_POINT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_HS_CONTROL_POINT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_HS_CONTROL_POINT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] - public const uint D3D11_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); - - [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] - public const uint D3D11_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); - - [NativeTypeName("#define D3D11_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )")] - public const float D3D11_HS_MAXTESSFACTOR_LOWER_BOUND = (1.0f); - - [NativeTypeName("#define D3D11_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )")] - public const float D3D11_HS_MAXTESSFACTOR_UPPER_BOUND = (64.0f); - - [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] - public const int D3D11_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); - - [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )")] - public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] - public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )")] - public const int D3D11_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = (128); - - [NativeTypeName("#define D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D11_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); - - [NativeTypeName("#define D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] - public const int D3D11_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); - - [NativeTypeName("#define D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D11_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); - - [NativeTypeName("#define D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] - public const int D3D11_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); - - [NativeTypeName("#define D3D11_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] - public const int D3D11_IA_INSTANCE_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] - public const int D3D11_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )")] - public const int D3D11_IA_PATCH_MAX_CONTROL_POINT_COUNT = (32); - - [NativeTypeName("#define D3D11_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] - public const int D3D11_IA_PRIMITIVE_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_IA_VERTEX_ID_BIT_COUNT ( 32 )")] - public const int D3D11_IA_VERTEX_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] - public const int D3D11_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); - - [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] - public const int D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); - - [NativeTypeName("#define D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] - public const int D3D11_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] - public const uint D3D11_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); - - [NativeTypeName("#define D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] - public const uint D3D11_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); - - [NativeTypeName("#define D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )")] - public const uint D3D11_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = (0xffffffff); - - [NativeTypeName("#define D3D11_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )")] - public const uint D3D11_KEEP_UNORDERED_ACCESS_VIEWS = (0xffffffff); - - [NativeTypeName("#define D3D11_LINEAR_GAMMA ( 1.0f )")] - public const float D3D11_LINEAR_GAMMA = (1.0f); - - [NativeTypeName("#define D3D11_MAJOR_VERSION ( 11 )")] - public const int D3D11_MAJOR_VERSION = (11); - - [NativeTypeName("#define D3D11_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] - public const float D3D11_MAX_BORDER_COLOR_COMPONENT = (1.0f); - - [NativeTypeName("#define D3D11_MAX_DEPTH ( 1.0f )")] - public const float D3D11_MAX_DEPTH = (1.0f); - - [NativeTypeName("#define D3D11_MAX_MAXANISOTROPY ( 16 )")] - public const int D3D11_MAX_MAXANISOTROPY = (16); - - [NativeTypeName("#define D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] - public const int D3D11_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); - - [NativeTypeName("#define D3D11_MAX_POSITION_VALUE ( 3.402823466e+34f )")] - public const float D3D11_MAX_POSITION_VALUE = (3.402823466e+34f); - - [NativeTypeName("#define D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] - public const int D3D11_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); - - [NativeTypeName("#define D3D11_MINOR_VERSION ( 0 )")] - public const int D3D11_MINOR_VERSION = (0); - - [NativeTypeName("#define D3D11_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D11_MIN_BORDER_COLOR_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D11_MIN_DEPTH ( 0.0f )")] - public const float D3D11_MIN_DEPTH = (0.0f); - - [NativeTypeName("#define D3D11_MIN_MAXANISOTROPY ( 0 )")] - public const int D3D11_MIN_MAXANISOTROPY = (0); - - [NativeTypeName("#define D3D11_MIP_LOD_BIAS_MAX ( 15.99f )")] - public const float D3D11_MIP_LOD_BIAS_MAX = (15.99f); - - [NativeTypeName("#define D3D11_MIP_LOD_BIAS_MIN ( -16.0f )")] - public const float D3D11_MIP_LOD_BIAS_MIN = (-16.0f); - - [NativeTypeName("#define D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D11_MIP_LOD_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D11_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] - public const int D3D11_MIP_LOD_RANGE_BIT_COUNT = (8); - - [NativeTypeName("#define D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] - public const float D3D11_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); - - [NativeTypeName("#define D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] - public const int D3D11_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); - - [NativeTypeName("#define D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] - public const int D3D11_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); - - [NativeTypeName("#define D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] - public const int D3D11_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (16); - - [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_PS_CS_UAV_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_COUNT ( 8 )")] - public const int D3D11_PS_CS_UAV_REGISTER_COUNT = (8); - - [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D11_PS_CS_UAV_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D11_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_PS_CS_UAV_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] - public const uint D3D11_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D11_PS_FRONTFACING_FALSE_VALUE ( 0 )")] - public const int D3D11_PS_FRONTFACING_FALSE_VALUE = (0); - - [NativeTypeName("#define D3D11_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] - public const uint D3D11_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_PS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_PS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_PS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_PS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] - public const float D3D11_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] - public const int D3D11_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] - public const int D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] - public const int D3D11_PS_OUTPUT_MASK_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_PS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_PS_OUTPUT_REGISTER_COUNT ( 8 )")] - public const int D3D11_PS_OUTPUT_REGISTER_COUNT = (8); - - [NativeTypeName("#define D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] - public const float D3D11_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); - - [NativeTypeName("#define D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )")] - public const int D3D11_RAW_UAV_SRV_BYTE_ALIGNMENT = (16); - - [NativeTypeName("#define D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D11_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] - public const int D3D11_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); - - [NativeTypeName("#define D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D11_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - - [NativeTypeName("#define D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D11_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D11_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); - - [NativeTypeName("#define D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D11_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); - - [NativeTypeName("#define D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )")] - public const int D3D11_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (16384); - - [NativeTypeName("#define D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] - public const int D3D11_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); - - [NativeTypeName("#define D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D11_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - - [NativeTypeName("#define D3D11_REQ_MAXANISOTROPY ( 16 )")] - public const int D3D11_REQ_MAXANISOTROPY = (16); - - [NativeTypeName("#define D3D11_REQ_MIP_LEVELS ( 15 )")] - public const int D3D11_REQ_MIP_LEVELS = (15); - - [NativeTypeName("#define D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] - public const int D3D11_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); - - [NativeTypeName("#define D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D11_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )")] - public const int D3D11_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (16384); - - [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )")] - public const int D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = (128); - - [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )")] - public const float D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM = (0.25f); - - [NativeTypeName("#define D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )")] - public const int D3D11_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = (2048); - - [NativeTypeName("#define D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )")] - public const int D3D11_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = (20); - - [NativeTypeName("#define D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D11_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )")] - public const int D3D11_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (2048); - - [NativeTypeName("#define D3D11_REQ_TEXTURE1D_U_DIMENSION ( 16384 )")] - public const int D3D11_REQ_TEXTURE1D_U_DIMENSION = (16384); - - [NativeTypeName("#define D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )")] - public const int D3D11_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (2048); - - [NativeTypeName("#define D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )")] - public const int D3D11_REQ_TEXTURE2D_U_OR_V_DIMENSION = (16384); - - [NativeTypeName("#define D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] - public const int D3D11_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); - - [NativeTypeName("#define D3D11_REQ_TEXTURECUBE_DIMENSION ( 16384 )")] - public const int D3D11_REQ_TEXTURECUBE_DIMENSION = (16384); - - [NativeTypeName("#define D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] - public const int D3D11_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); - - [NativeTypeName("#define D3D11_SHADER_MAJOR_VERSION ( 5 )")] - public const int D3D11_SHADER_MAJOR_VERSION = (5); - - [NativeTypeName("#define D3D11_SHADER_MAX_INSTANCES ( 65535 )")] - public const int D3D11_SHADER_MAX_INSTANCES = (65535); - - [NativeTypeName("#define D3D11_SHADER_MAX_INTERFACES ( 253 )")] - public const int D3D11_SHADER_MAX_INTERFACES = (253); - - [NativeTypeName("#define D3D11_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )")] - public const int D3D11_SHADER_MAX_INTERFACE_CALL_SITES = (4096); - - [NativeTypeName("#define D3D11_SHADER_MAX_TYPES ( 65535 )")] - public const int D3D11_SHADER_MAX_TYPES = (65535); - - [NativeTypeName("#define D3D11_SHADER_MINOR_VERSION ( 0 )")] - public const int D3D11_SHADER_MINOR_VERSION = (0); - - [NativeTypeName("#define D3D11_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] - public const int D3D11_SHIFT_INSTRUCTION_PAD_VALUE = (0); - - [NativeTypeName("#define D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] - public const int D3D11_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); - - [NativeTypeName("#define D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] - public const int D3D11_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); - - [NativeTypeName("#define D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] - public const int D3D11_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); - - [NativeTypeName("#define D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )")] - public const int D3D11_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (512); - - [NativeTypeName("#define D3D11_SO_BUFFER_SLOT_COUNT ( 4 )")] - public const int D3D11_SO_BUFFER_SLOT_COUNT = (4); - - [NativeTypeName("#define D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] - public const uint D3D11_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); - - [NativeTypeName("#define D3D11_SO_NO_RASTERIZED_STREAM ( 0xffffffff )")] - public const uint D3D11_SO_NO_RASTERIZED_STREAM = (0xffffffff); - - [NativeTypeName("#define D3D11_SO_OUTPUT_COMPONENT_COUNT ( 128 )")] - public const int D3D11_SO_OUTPUT_COMPONENT_COUNT = (128); - - [NativeTypeName("#define D3D11_SO_STREAM_COUNT ( 4 )")] - public const int D3D11_SO_STREAM_COUNT = (4); - - [NativeTypeName("#define D3D11_SPEC_DATE_DAY ( 16 )")] - public const int D3D11_SPEC_DATE_DAY = (16); - - [NativeTypeName("#define D3D11_SPEC_DATE_MONTH ( 05 )")] - public const int D3D11_SPEC_DATE_MONTH = (05); - - [NativeTypeName("#define D3D11_SPEC_DATE_YEAR ( 2011 )")] - public const int D3D11_SPEC_DATE_YEAR = (2011); - - [NativeTypeName("#define D3D11_SPEC_VERSION ( 1.07 )")] - public const double D3D11_SPEC_VERSION = (1.07); - - [NativeTypeName("#define D3D11_SRGB_GAMMA ( 2.2f )")] - public const float D3D11_SRGB_GAMMA = (2.2f); - - [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] - public const float D3D11_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); - - [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] - public const float D3D11_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); - - [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] - public const float D3D11_SRGB_TO_FLOAT_EXPONENT = (2.4f); - - [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] - public const float D3D11_SRGB_TO_FLOAT_OFFSET = (0.055f); - - [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] - public const float D3D11_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); - - [NativeTypeName("#define D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] - public const float D3D11_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); - - [NativeTypeName("#define D3D11_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_STANDARD_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] - public const int D3D11_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); - - [NativeTypeName("#define D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] - public const int D3D11_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); - - [NativeTypeName("#define D3D11_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] - public const int D3D11_STANDARD_PIXEL_COMPONENT_COUNT = (128); - - [NativeTypeName("#define D3D11_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] - public const int D3D11_STANDARD_PIXEL_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D11_STANDARD_VECTOR_SIZE ( 4 )")] - public const int D3D11_STANDARD_VECTOR_SIZE = (4); - - [NativeTypeName("#define D3D11_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] - public const int D3D11_STANDARD_VERTEX_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] - public const int D3D11_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); - - [NativeTypeName("#define D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D11_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D11_SUBTEXEL_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )")] - public const int D3D11_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = (64); - - [NativeTypeName("#define D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )")] - public const int D3D11_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = (64); - - [NativeTypeName("#define D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )")] - public const int D3D11_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = (63); - - [NativeTypeName("#define D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )")] - public const int D3D11_TESSELLATOR_MAX_TESSELLATION_FACTOR = (64); - - [NativeTypeName("#define D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )")] - public const int D3D11_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = (2); - - [NativeTypeName("#define D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )")] - public const int D3D11_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = (1); - - [NativeTypeName("#define D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )")] - public const int D3D11_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = (1); - - [NativeTypeName("#define D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] - public const int D3D11_TEXEL_ADDRESS_RANGE_BIT_COUNT = (16); - - [NativeTypeName("#define D3D11_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] - public const int D3D11_UNBOUND_MEMORY_ACCESS_RESULT = (0); - - [NativeTypeName("#define D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] - public const int D3D11_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); - - [NativeTypeName("#define D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] - public const int D3D11_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); - - [NativeTypeName("#define D3D11_VIEWPORT_BOUNDS_MAX ( 32767 )")] - public const int D3D11_VIEWPORT_BOUNDS_MAX = (32767); - - [NativeTypeName("#define D3D11_VIEWPORT_BOUNDS_MIN ( -32768 )")] - public const int D3D11_VIEWPORT_BOUNDS_MIN = (-32768); - - [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_VS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_VS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D11_VS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D11_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D11_VS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D11_VS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D11_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D11_VS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D11_VS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] - public const int D3D11_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); - - [NativeTypeName("#define D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D11_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); - - [NativeTypeName("#define D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D11_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); - - [NativeTypeName("#define D3D11_1_UAV_SLOT_COUNT ( 64 )")] - public const int D3D11_1_UAV_SLOT_COUNT = (64); - - [NativeTypeName("#define D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )")] - public const int D3D11_2_TILED_RESOURCE_TILE_SIZE_IN_BYTES = (65536); - - [NativeTypeName("#define D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS ( 4 )")] - public const int D3D11_4_VIDEO_DECODER_MAX_HISTOGRAM_COMPONENTS = (4); + [DllImport("d3d11", ExactSpelling = true)] + public static extern HRESULT D3D11CreateDevice(IDXGIAdapter* pAdapter, D3D_DRIVER_TYPE DriverType, HMODULE Software, uint Flags, [NativeTypeName("const D3D_FEATURE_LEVEL *")] D3D_FEATURE_LEVEL* pFeatureLevels, uint FeatureLevels, uint SDKVersion, ID3D11Device** ppDevice, D3D_FEATURE_LEVEL* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext); - [NativeTypeName("#define D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )")] - public const int D3D11_4_VIDEO_DECODER_HISTOGRAM_OFFSET_ALIGNMENT = (256); + [DllImport("d3d11", ExactSpelling = true)] + public static extern HRESULT D3D11CreateDeviceAndSwapChain(IDXGIAdapter* pAdapter, D3D_DRIVER_TYPE DriverType, HMODULE Software, uint Flags, [NativeTypeName("const D3D_FEATURE_LEVEL *")] D3D_FEATURE_LEVEL* pFeatureLevels, uint FeatureLevels, uint SDKVersion, [NativeTypeName("const DXGI_SWAP_CHAIN_DESC *")] DXGI_SWAP_CHAIN_DESC* pSwapChainDesc, IDXGISwapChain** ppSwapChain, ID3D11Device** ppDevice, D3D_FEATURE_LEVEL* pFeatureLevel, ID3D11DeviceContext** ppImmediateContext); [NativeTypeName("#define _FACD3D11 ( 0x87c )")] public const int _FACD3D11 = (0x87c); [NativeTypeName("#define _FACD3D11DEBUG ( ( _FACD3D11 + 1 ) )")] public const int _FACD3D11DEBUG = (((0x87c) + 1)); - - [NativeTypeName("#define D3D11_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] - public const uint D3D11_APPEND_ALIGNED_ELEMENT = (0xffffffff); - - [NativeTypeName("#define D3D11_FILTER_REDUCTION_TYPE_MASK ( 0x3 )")] - public const int D3D11_FILTER_REDUCTION_TYPE_MASK = (0x3); - - [NativeTypeName("#define D3D11_FILTER_REDUCTION_TYPE_SHIFT ( 7 )")] - public const int D3D11_FILTER_REDUCTION_TYPE_SHIFT = (7); - - [NativeTypeName("#define D3D11_FILTER_TYPE_MASK ( 0x3 )")] - public const int D3D11_FILTER_TYPE_MASK = (0x3); - - [NativeTypeName("#define D3D11_MIN_FILTER_SHIFT ( 4 )")] - public const int D3D11_MIN_FILTER_SHIFT = (4); - - [NativeTypeName("#define D3D11_MAG_FILTER_SHIFT ( 2 )")] - public const int D3D11_MAG_FILTER_SHIFT = (2); - - [NativeTypeName("#define D3D11_MIP_FILTER_SHIFT ( 0 )")] - public const int D3D11_MIP_FILTER_SHIFT = (0); - - [NativeTypeName("#define D3D11_COMPARISON_FILTERING_BIT ( 0x80 )")] - public const int D3D11_COMPARISON_FILTERING_BIT = (0x80); - - [NativeTypeName("#define D3D11_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] - public const int D3D11_ANISOTROPIC_FILTERING_BIT = (0x40); - - [NativeTypeName("#define D3D11_SDK_VERSION ( 7 )")] - public const int D3D11_SDK_VERSION = (7); } } diff --git a/sources/Interop/Windows/DirectX/um/d3d11_2/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d11_2/D3D11.cs similarity index 92% rename from sources/Interop/Windows/DirectX/um/d3d11_2/DirectX.cs rename to sources/Interop/Windows/DirectX/um/d3d11_2/D3D11.cs index 561e9d59fb..599a087c88 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11_2/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11_2/D3D11.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class D3D11 { [NativeTypeName("#define D3D11_PACKED_TILE ( 0xffffffff )")] public const uint D3D11_PACKED_TILE = (0xffffffff); diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/D3D11.cs similarity index 83% rename from sources/Interop/Windows/DirectX/um/d3d11sdklayers/DirectX.cs rename to sources/Interop/Windows/DirectX/um/d3d11sdklayers/D3D11.cs index 304d51f052..20b64e250b 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/D3D11.cs @@ -3,40 +3,10 @@ // Ported from um/d3d11sdklayers.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class D3D11 { - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_D3D11 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7B, 0x31, 0x99, 0x4B, - 0x39, 0xAC, - 0xA6, 0x4A, - 0xBB, - 0x0B, - 0xBA, - 0xA0, - 0x47, - 0x84, - 0x79, - 0x8F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("#define D3D11_SDK_LAYERS_VERSION ( 1 )")] public const int D3D11_SDK_LAYERS_VERSION = (1); diff --git a/sources/Interop/Windows/DirectX/um/d3d11sdklayers/DXGI.cs b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/DXGI.cs new file mode 100644 index 0000000000..478342d870 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d11sdklayers/DXGI.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d11sdklayers.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("const GUID")] + public static ref readonly Guid DXGI_DEBUG_D3D11 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7B, 0x31, 0x99, 0x4B, + 0x39, 0xAC, + 0xA6, 0x4A, + 0xBB, + 0x0B, + 0xBA, + 0xA0, + 0x47, + 0x84, + 0x79, + 0x8F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11.cs b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11.cs new file mode 100644 index 0000000000..79491d569b --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/D3D11.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d11shadertracing.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D11 + { + [NativeTypeName("#define D3D11_TRACE_COMPONENT_X 0x1")] + public const int D3D11_TRACE_COMPONENT_X = 0x1; + + [NativeTypeName("#define D3D11_TRACE_COMPONENT_Y 0x2")] + public const int D3D11_TRACE_COMPONENT_Y = 0x2; + + [NativeTypeName("#define D3D11_TRACE_COMPONENT_Z 0x4")] + public const int D3D11_TRACE_COMPONENT_Z = 0x4; + + [NativeTypeName("#define D3D11_TRACE_COMPONENT_W 0x8")] + public const int D3D11_TRACE_COMPONENT_W = 0x8; + + [NativeTypeName("#define D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_WRITES 0x1")] + public const int D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_WRITES = 0x1; + + [NativeTypeName("#define D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_READS 0x2")] + public const int D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_READS = 0x2; + + [NativeTypeName("#define D3D11_TRACE_REGISTER_FLAGS_RELATIVE_INDEXING 0x1")] + public const int D3D11_TRACE_REGISTER_FLAGS_RELATIVE_INDEXING = 0x1; + + [NativeTypeName("#define D3D11_TRACE_MISC_GS_EMIT 0x1")] + public const int D3D11_TRACE_MISC_GS_EMIT = 0x1; + + [NativeTypeName("#define D3D11_TRACE_MISC_GS_CUT 0x2")] + public const int D3D11_TRACE_MISC_GS_CUT = 0x2; + + [NativeTypeName("#define D3D11_TRACE_MISC_PS_DISCARD 0x4")] + public const int D3D11_TRACE_MISC_PS_DISCARD = 0x4; + + [NativeTypeName("#define D3D11_TRACE_MISC_GS_EMIT_STREAM 0x8")] + public const int D3D11_TRACE_MISC_GS_EMIT_STREAM = 0x8; + + [NativeTypeName("#define D3D11_TRACE_MISC_GS_CUT_STREAM 0x10")] + public const int D3D11_TRACE_MISC_GS_CUT_STREAM = 0x10; + + [NativeTypeName("#define D3D11_TRACE_MISC_HALT 0x20")] + public const int D3D11_TRACE_MISC_HALT = 0x20; + + [NativeTypeName("#define D3D11_TRACE_MISC_MESSAGE 0x40")] + public const int D3D11_TRACE_MISC_MESSAGE = 0x40; + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/DirectX.cs index 7a23814801..520c380365 100644 --- a/sources/Interop/Windows/DirectX/um/d3d11shadertracing/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d11shadertracing/DirectX.cs @@ -14,47 +14,5 @@ public static unsafe partial class DirectX [SupportedOSPlatform("windows8.0")] [DllImport("d3dcompiler_47", ExactSpelling = true)] public static extern HRESULT D3DDisassemble11Trace([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSize, ID3D11ShaderTrace* pTrace, uint StartStep, uint NumSteps, uint Flags, [NativeTypeName("struct ID3D10Blob **")] ID3DBlob** ppDisassembly); - - [NativeTypeName("#define D3D11_TRACE_COMPONENT_X 0x1")] - public const int D3D11_TRACE_COMPONENT_X = 0x1; - - [NativeTypeName("#define D3D11_TRACE_COMPONENT_Y 0x2")] - public const int D3D11_TRACE_COMPONENT_Y = 0x2; - - [NativeTypeName("#define D3D11_TRACE_COMPONENT_Z 0x4")] - public const int D3D11_TRACE_COMPONENT_Z = 0x4; - - [NativeTypeName("#define D3D11_TRACE_COMPONENT_W 0x8")] - public const int D3D11_TRACE_COMPONENT_W = 0x8; - - [NativeTypeName("#define D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_WRITES 0x1")] - public const int D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_WRITES = 0x1; - - [NativeTypeName("#define D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_READS 0x2")] - public const int D3D11_SHADER_TRACE_FLAG_RECORD_REGISTER_READS = 0x2; - - [NativeTypeName("#define D3D11_TRACE_REGISTER_FLAGS_RELATIVE_INDEXING 0x1")] - public const int D3D11_TRACE_REGISTER_FLAGS_RELATIVE_INDEXING = 0x1; - - [NativeTypeName("#define D3D11_TRACE_MISC_GS_EMIT 0x1")] - public const int D3D11_TRACE_MISC_GS_EMIT = 0x1; - - [NativeTypeName("#define D3D11_TRACE_MISC_GS_CUT 0x2")] - public const int D3D11_TRACE_MISC_GS_CUT = 0x2; - - [NativeTypeName("#define D3D11_TRACE_MISC_PS_DISCARD 0x4")] - public const int D3D11_TRACE_MISC_PS_DISCARD = 0x4; - - [NativeTypeName("#define D3D11_TRACE_MISC_GS_EMIT_STREAM 0x8")] - public const int D3D11_TRACE_MISC_GS_EMIT_STREAM = 0x8; - - [NativeTypeName("#define D3D11_TRACE_MISC_GS_CUT_STREAM 0x10")] - public const int D3D11_TRACE_MISC_GS_CUT_STREAM = 0x10; - - [NativeTypeName("#define D3D11_TRACE_MISC_HALT 0x20")] - public const int D3D11_TRACE_MISC_HALT = 0x20; - - [NativeTypeName("#define D3D11_TRACE_MISC_MESSAGE 0x40")] - public const int D3D11_TRACE_MISC_MESSAGE = 0x40; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12.cs new file mode 100644 index 0000000000..ad1243ad0b --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12.cs @@ -0,0 +1,1339 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D12 + { + [NativeTypeName("const GUID")] + public static ref readonly Guid D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x08, 0xB0, 0x62, + 0x0E, 0xC7, + 0xAA, 0x4D, + 0xA1, + 0x09, + 0x30, + 0xFF, + 0x8D, + 0x5A, + 0x04, + 0x82 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define D3D12_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] + public const int D3D12_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); + + [NativeTypeName("#define D3D12_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] + public const uint D3D12_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D12_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] + public const int D3D12_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); + + [NativeTypeName("#define D3D12_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] + public const uint D3D12_APPEND_ALIGNED_ELEMENT = (0xffffffff); + + [NativeTypeName("#define D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] + public const int D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); + + [NativeTypeName("#define D3D12_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] + public const int D3D12_CLIP_OR_CULL_DISTANCE_COUNT = (8); + + [NativeTypeName("#define D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] + public const int D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] + public const int D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); + + [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] + public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] + public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); + + [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] + public const int D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); + + [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] + public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); + + [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] + public const int D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); + + [NativeTypeName("#define D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] + public const int D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] + public const int D3D12_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] + public const int D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] + public const int D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] + public const int D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] + public const int D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] + public const int D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); + + [NativeTypeName("#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] + public const int D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); + + [NativeTypeName("#define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT ( 256 )")] + public const int D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT = (256); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )")] + public const int D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (256); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )")] + public const int D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = (64); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )")] + public const int D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (240); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )")] + public const int D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = (68); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )")] + public const int D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (224); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )")] + public const int D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = (72); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )")] + public const int D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (208); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )")] + public const int D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = (76); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )")] + public const int D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (192); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )")] + public const int D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = (84); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )")] + public const int D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (176); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )")] + public const int D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = (92); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )")] + public const int D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (160); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )")] + public const int D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = (100); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )")] + public const int D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (144); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )")] + public const int D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = (112); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )")] + public const int D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (128); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )")] + public const int D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = (128); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )")] + public const int D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (112); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )")] + public const int D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = (144); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )")] + public const int D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (96); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )")] + public const int D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = (168); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )")] + public const int D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (80); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )")] + public const int D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = (204); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )")] + public const int D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (64); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )")] + public const int D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = (256); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )")] + public const int D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (48); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )")] + public const int D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = (340); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )")] + public const int D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (32); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )")] + public const int D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = (512); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )")] + public const int D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (16); + + [NativeTypeName("#define D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )")] + public const int D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = (768); + + [NativeTypeName("#define D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )")] + public const int D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = (1); + + [NativeTypeName("#define D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )")] + public const int D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = (256); + + [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )")] + public const int D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = (768); + + [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_X ( 768 )")] + public const int D3D12_CS_4_X_THREAD_GROUP_MAX_X = (768); + + [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )")] + public const int D3D12_CS_4_X_THREAD_GROUP_MAX_Y = (768); + + [NativeTypeName("#define D3D12_CS_4_X_UAV_REGISTER_COUNT ( 1 )")] + public const int D3D12_CS_4_X_UAV_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )")] + public const int D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = (65535); + + [NativeTypeName("#define D3D12_CS_TGSM_REGISTER_COUNT ( 8192 )")] + public const int D3D12_CS_TGSM_REGISTER_COUNT = (8192); + + [NativeTypeName("#define D3D12_CS_TGSM_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D12_CS_TGSM_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )")] + public const int D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D12_CS_THREADGROUPID_REGISTER_COUNT ( 1 )")] + public const int D3D12_CS_THREADGROUPID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )")] + public const int D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )")] + public const int D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D12_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )")] + public const int D3D12_CS_THREADIDINGROUP_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_CS_THREADID_REGISTER_COMPONENTS ( 3 )")] + public const int D3D12_CS_THREADID_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D12_CS_THREADID_REGISTER_COUNT ( 1 )")] + public const int D3D12_CS_THREADID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )")] + public const int D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = (1024); + + [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_X ( 1024 )")] + public const int D3D12_CS_THREAD_GROUP_MAX_X = (1024); + + [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_Y ( 1024 )")] + public const int D3D12_CS_THREAD_GROUP_MAX_Y = (1024); + + [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_Z ( 64 )")] + public const int D3D12_CS_THREAD_GROUP_MAX_Z = (64); + + [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_X ( 1 )")] + public const int D3D12_CS_THREAD_GROUP_MIN_X = (1); + + [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_Y ( 1 )")] + public const int D3D12_CS_THREAD_GROUP_MIN_Y = (1); + + [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_Z ( 1 )")] + public const int D3D12_CS_THREAD_GROUP_MIN_Z = (1); + + [NativeTypeName("#define D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )")] + public const int D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = (16384); + + [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] + public const float D3D12_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); + + [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] + public const float D3D12_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); + + [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] + public const float D3D12_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); + + [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] + public const float D3D12_DEFAULT_BLEND_FACTOR_RED = (1.0f); + + [NativeTypeName("#define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D12_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D12_DEFAULT_DEPTH_BIAS ( 0 )")] + public const int D3D12_DEFAULT_DEPTH_BIAS = (0); + + [NativeTypeName("#define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] + public const float D3D12_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); + + [NativeTypeName("#define D3D12_DEFAULT_MAX_ANISOTROPY ( 16 )")] + public const int D3D12_DEFAULT_MAX_ANISOTROPY = (16); + + [NativeTypeName("#define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] + public const float D3D12_DEFAULT_MIP_LOD_BIAS = (0.0f); + + [NativeTypeName("#define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 4194304 )")] + public const int D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = (4194304); + + [NativeTypeName("#define D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] + public const int D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); + + [NativeTypeName("#define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )")] + public const int D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT = (65536); + + [NativeTypeName("#define D3D12_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] + public const uint D3D12_DEFAULT_SAMPLE_MASK = (0xffffffff); + + [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_ENDX ( 0 )")] + public const int D3D12_DEFAULT_SCISSOR_ENDX = (0); + + [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_ENDY ( 0 )")] + public const int D3D12_DEFAULT_SCISSOR_ENDY = (0); + + [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_STARTX ( 0 )")] + public const int D3D12_DEFAULT_SCISSOR_STARTX = (0); + + [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_STARTY ( 0 )")] + public const int D3D12_DEFAULT_SCISSOR_STARTY = (0); + + [NativeTypeName("#define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] + public const float D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); + + [NativeTypeName("#define D3D12_DEFAULT_STENCIL_READ_MASK ( 0xff )")] + public const int D3D12_DEFAULT_STENCIL_READ_MASK = (0xff); + + [NativeTypeName("#define D3D12_DEFAULT_STENCIL_REFERENCE ( 0 )")] + public const int D3D12_DEFAULT_STENCIL_REFERENCE = (0); + + [NativeTypeName("#define D3D12_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] + public const int D3D12_DEFAULT_STENCIL_WRITE_MASK = (0xff); + + [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] + public const int D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); + + [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] + public const int D3D12_DEFAULT_VIEWPORT_HEIGHT = (0); + + [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] + public const float D3D12_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); + + [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] + public const float D3D12_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] + public const int D3D12_DEFAULT_VIEWPORT_TOPLEFTX = (0); + + [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] + public const int D3D12_DEFAULT_VIEWPORT_TOPLEFTY = (0); + + [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_WIDTH ( 0 )")] + public const int D3D12_DEFAULT_VIEWPORT_WIDTH = (0); + + [NativeTypeName("#define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND ( 0xffffffff )")] + public const uint D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND = (0xffffffff); + + [NativeTypeName("#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END ( 0xfffffff7 )")] + public const uint D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END = (0xfffffff7); + + [NativeTypeName("#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )")] + public const uint D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff0); + + [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] + public const int D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); + + [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )")] + public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )")] + public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = (3); + + [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )")] + public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] + public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_DS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_DS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] + public const double D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); + + [NativeTypeName("#define D3D12_FLOAT32_MAX ( 3.402823466e+38f )")] + public const float D3D12_FLOAT32_MAX = (3.402823466e+38f); + + [NativeTypeName("#define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] + public const float D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); + + [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] + public const float D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); + + [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] + public const float D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); + + [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] + public const float D3D12_FLOAT_TO_SRGB_OFFSET = (0.055f); + + [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] + public const float D3D12_FLOAT_TO_SRGB_SCALE_1 = (12.92f); + + [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] + public const float D3D12_FLOAT_TO_SRGB_SCALE_2 = (1.055f); + + [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] + public const float D3D12_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); + + [NativeTypeName("#define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] + public const float D3D12_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); + + [NativeTypeName("#define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] + public const float D3D12_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); + + [NativeTypeName("#define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] + public const float D3D12_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); + + [NativeTypeName("#define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] + public const float D3D12_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); + + [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )")] + public const int D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )")] + public const int D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] + public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_GS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_GS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_GS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_GS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_VERTICES ( 32 )")] + public const int D3D12_GS_INPUT_REGISTER_VERTICES = (32); + + [NativeTypeName("#define D3D12_GS_MAX_INSTANCE_COUNT ( 32 )")] + public const int D3D12_GS_MAX_INSTANCE_COUNT = (32); + + [NativeTypeName("#define D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )")] + public const int D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = (1024); + + [NativeTypeName("#define D3D12_GS_OUTPUT_ELEMENTS ( 32 )")] + public const int D3D12_GS_OUTPUT_ELEMENTS = (32); + + [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_GS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_GS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] + public const uint D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); + + [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] + public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] + public const uint D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); + + [NativeTypeName("#define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )")] + public const float D3D12_HS_MAXTESSFACTOR_LOWER_BOUND = (1.0f); + + [NativeTypeName("#define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )")] + public const float D3D12_HS_MAXTESSFACTOR_UPPER_BOUND = (64.0f); + + [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] + public const int D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); + + [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )")] + public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] + public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )")] + public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = (128); + + [NativeTypeName("#define D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] + public const int D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); + + [NativeTypeName("#define D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] + public const int D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); + + [NativeTypeName("#define D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] + public const int D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); + + [NativeTypeName("#define D3D12_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] + public const int D3D12_IA_INSTANCE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] + public const int D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )")] + public const int D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT = (32); + + [NativeTypeName("#define D3D12_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] + public const int D3D12_IA_PRIMITIVE_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_IA_VERTEX_ID_BIT_COUNT ( 32 )")] + public const int D3D12_IA_VERTEX_ID_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] + public const int D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); + + [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] + public const int D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); + + [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] + public const int D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] + public const uint D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); + + [NativeTypeName("#define D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] + public const uint D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); + + [NativeTypeName("#define D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )")] + public const uint D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = (0xffffffff); + + [NativeTypeName("#define D3D12_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )")] + public const uint D3D12_KEEP_UNORDERED_ACCESS_VIEWS = (0xffffffff); + + [NativeTypeName("#define D3D12_LINEAR_GAMMA ( 1.0f )")] + public const float D3D12_LINEAR_GAMMA = (1.0f); + + [NativeTypeName("#define D3D12_MAJOR_VERSION ( 12 )")] + public const int D3D12_MAJOR_VERSION = (12); + + [NativeTypeName("#define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] + public const float D3D12_MAX_BORDER_COLOR_COMPONENT = (1.0f); + + [NativeTypeName("#define D3D12_MAX_DEPTH ( 1.0f )")] + public const float D3D12_MAX_DEPTH = (1.0f); + + [NativeTypeName("#define D3D12_MAX_LIVE_STATIC_SAMPLERS ( 2032 )")] + public const int D3D12_MAX_LIVE_STATIC_SAMPLERS = (2032); + + [NativeTypeName("#define D3D12_MAX_MAXANISOTROPY ( 16 )")] + public const int D3D12_MAX_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] + public const int D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); + + [NativeTypeName("#define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f )")] + public const float D3D12_MAX_POSITION_VALUE = (3.402823466e+34f); + + [NativeTypeName("#define D3D12_MAX_ROOT_COST ( 64 )")] + public const int D3D12_MAX_ROOT_COST = (64); + + [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 ( 1000000 )")] + public const int D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 = (1000000); + + [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 ( 1000000 )")] + public const int D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 = (1000000); + + [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE ( 2048 )")] + public const int D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE = (2048); + + [NativeTypeName("#define D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] + public const int D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); + + [NativeTypeName("#define D3D12_MAX_VIEW_INSTANCE_COUNT ( 4 )")] + public const int D3D12_MAX_VIEW_INSTANCE_COUNT = (4); + + [NativeTypeName("#define D3D12_MINOR_VERSION ( 0 )")] + public const int D3D12_MINOR_VERSION = (0); + + [NativeTypeName("#define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] + public const float D3D12_MIN_BORDER_COLOR_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D12_MIN_DEPTH ( 0.0f )")] + public const float D3D12_MIN_DEPTH = (0.0f); + + [NativeTypeName("#define D3D12_MIN_MAXANISOTROPY ( 0 )")] + public const int D3D12_MIN_MAXANISOTROPY = (0); + + [NativeTypeName("#define D3D12_MIP_LOD_BIAS_MAX ( 15.99f )")] + public const float D3D12_MIP_LOD_BIAS_MAX = (15.99f); + + [NativeTypeName("#define D3D12_MIP_LOD_BIAS_MIN ( -16.0f )")] + public const float D3D12_MIP_LOD_BIAS_MIN = (-16.0f); + + [NativeTypeName("#define D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D12_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] + public const int D3D12_MIP_LOD_RANGE_BIT_COUNT = (8); + + [NativeTypeName("#define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] + public const float D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); + + [NativeTypeName("#define D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] + public const int D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )")] + public const uint D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END = (0xffffffff); + + [NativeTypeName("#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff8 )")] + public const uint D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff8); + + [NativeTypeName("#define D3D12_PACKED_TILE ( 0xffffffff )")] + public const uint D3D12_PACKED_TILE = (0xffffffff); + + [NativeTypeName("#define D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] + public const int D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); + + [NativeTypeName("#define D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] + public const int D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (16); + + [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_PS_CS_UAV_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_COUNT ( 8 )")] + public const int D3D12_PS_CS_UAV_REGISTER_COUNT = (8); + + [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )")] + public const int D3D12_PS_CS_UAV_REGISTER_READS_PER_INST = (1); + + [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_PS_CS_UAV_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] + public const uint D3D12_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D12_PS_FRONTFACING_FALSE_VALUE ( 0 )")] + public const int D3D12_PS_FRONTFACING_FALSE_VALUE = (0); + + [NativeTypeName("#define D3D12_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] + public const uint D3D12_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); + + [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_PS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_PS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_PS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_PS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] + public const float D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); + + [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] + public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] + public const int D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); + + [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] + public const int D3D12_PS_OUTPUT_MASK_REGISTER_COUNT = (1); + + [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_PS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COUNT ( 8 )")] + public const int D3D12_PS_OUTPUT_REGISTER_COUNT = (8); + + [NativeTypeName("#define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] + public const float D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); + + [NativeTypeName("#define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )")] + public const int D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT ( 8 )")] + public const int D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT = (8); + + [NativeTypeName("#define D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT ( 256 )")] + public const int D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT = (256); + + [NativeTypeName("#define D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT ( 16 )")] + public const int D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES ( 32 )")] + public const int D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES = (32); + + [NativeTypeName("#define D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH ( 31 )")] + public const int D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH = (31); + + [NativeTypeName("#define D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )")] + public const int D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = (16777216); + + [NativeTypeName("#define D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )")] + public const int D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE = (16777216); + + [NativeTypeName("#define D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 536870912 )")] + public const int D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = (536870912); + + [NativeTypeName("#define D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS ( 1073741824 )")] + public const int D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS = (1073741824); + + [NativeTypeName("#define D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE ( 4096 )")] + public const int D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE = (4096); + + [NativeTypeName("#define D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT ( 32 )")] + public const int D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT = (32); + + [NativeTypeName("#define D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT ( 64 )")] + public const int D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT = (64); + + [NativeTypeName("#define D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT ( 16 )")] + public const int D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT = (16); + + [NativeTypeName("#define D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] + public const int D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); + + [NativeTypeName("#define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] + public const int D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); + + [NativeTypeName("#define D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )")] + public const int D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (16384); + + [NativeTypeName("#define D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] + public const int D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); + + [NativeTypeName("#define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] + public const int D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); + + [NativeTypeName("#define D3D12_REQ_MAXANISOTROPY ( 16 )")] + public const int D3D12_REQ_MAXANISOTROPY = (16); + + [NativeTypeName("#define D3D12_REQ_MIP_LEVELS ( 15 )")] + public const int D3D12_REQ_MIP_LEVELS = (15); + + [NativeTypeName("#define D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] + public const int D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )")] + public const int D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (16384); + + [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )")] + public const int D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = (128); + + [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )")] + public const float D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM = (0.25f); + + [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )")] + public const int D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = (2048); + + [NativeTypeName("#define D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )")] + public const int D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = (20); + + [NativeTypeName("#define D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] + public const int D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = (4096); + + [NativeTypeName("#define D3D12_REQ_SUBRESOURCES ( 30720 )")] + public const int D3D12_REQ_SUBRESOURCES = (30720); + + [NativeTypeName("#define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )")] + public const int D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (2048); + + [NativeTypeName("#define D3D12_REQ_TEXTURE1D_U_DIMENSION ( 16384 )")] + public const int D3D12_REQ_TEXTURE1D_U_DIMENSION = (16384); + + [NativeTypeName("#define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )")] + public const int D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (2048); + + [NativeTypeName("#define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )")] + public const int D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION = (16384); + + [NativeTypeName("#define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] + public const int D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); + + [NativeTypeName("#define D3D12_REQ_TEXTURECUBE_DIMENSION ( 16384 )")] + public const int D3D12_REQ_TEXTURECUBE_DIMENSION = (16384); + + [NativeTypeName("#define D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] + public const int D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); + + [NativeTypeName("#define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES ( 0xffffffff )")] + public const uint D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES = (0xffffffff); + + [NativeTypeName("#define D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT ( 2 )")] + public const int D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT = (2); + + [NativeTypeName("#define D3D12_SDK_VERSION ( 3 )")] + public const int D3D12_SDK_VERSION = (3); + + [NativeTypeName("#define D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES ( 32 )")] + public const int D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES = (32); + + [NativeTypeName("#define D3D12_SHADER_MAJOR_VERSION ( 5 )")] + public const int D3D12_SHADER_MAJOR_VERSION = (5); + + [NativeTypeName("#define D3D12_SHADER_MAX_INSTANCES ( 65535 )")] + public const int D3D12_SHADER_MAX_INSTANCES = (65535); + + [NativeTypeName("#define D3D12_SHADER_MAX_INTERFACES ( 253 )")] + public const int D3D12_SHADER_MAX_INTERFACES = (253); + + [NativeTypeName("#define D3D12_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )")] + public const int D3D12_SHADER_MAX_INTERFACE_CALL_SITES = (4096); + + [NativeTypeName("#define D3D12_SHADER_MAX_TYPES ( 65535 )")] + public const int D3D12_SHADER_MAX_TYPES = (65535); + + [NativeTypeName("#define D3D12_SHADER_MINOR_VERSION ( 1 )")] + public const int D3D12_SHADER_MINOR_VERSION = (1); + + [NativeTypeName("#define D3D12_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] + public const int D3D12_SHIFT_INSTRUCTION_PAD_VALUE = (0); + + [NativeTypeName("#define D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] + public const int D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); + + [NativeTypeName("#define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] + public const int D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); + + [NativeTypeName("#define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )")] + public const int D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = (65536); + + [NativeTypeName("#define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT ( 4096 )")] + public const int D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT = (4096); + + [NativeTypeName("#define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] + public const int D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); + + [NativeTypeName("#define D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )")] + public const int D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (512); + + [NativeTypeName("#define D3D12_SO_BUFFER_SLOT_COUNT ( 4 )")] + public const int D3D12_SO_BUFFER_SLOT_COUNT = (4); + + [NativeTypeName("#define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] + public const uint D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); + + [NativeTypeName("#define D3D12_SO_NO_RASTERIZED_STREAM ( 0xffffffff )")] + public const uint D3D12_SO_NO_RASTERIZED_STREAM = (0xffffffff); + + [NativeTypeName("#define D3D12_SO_OUTPUT_COMPONENT_COUNT ( 128 )")] + public const int D3D12_SO_OUTPUT_COMPONENT_COUNT = (128); + + [NativeTypeName("#define D3D12_SO_STREAM_COUNT ( 4 )")] + public const int D3D12_SO_STREAM_COUNT = (4); + + [NativeTypeName("#define D3D12_SPEC_DATE_DAY ( 14 )")] + public const int D3D12_SPEC_DATE_DAY = (14); + + [NativeTypeName("#define D3D12_SPEC_DATE_MONTH ( 11 )")] + public const int D3D12_SPEC_DATE_MONTH = (11); + + [NativeTypeName("#define D3D12_SPEC_DATE_YEAR ( 2014 )")] + public const int D3D12_SPEC_DATE_YEAR = (2014); + + [NativeTypeName("#define D3D12_SPEC_VERSION ( 1.16 )")] + public const double D3D12_SPEC_VERSION = (1.16); + + [NativeTypeName("#define D3D12_SRGB_GAMMA ( 2.2f )")] + public const float D3D12_SRGB_GAMMA = (2.2f); + + [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] + public const float D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); + + [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] + public const float D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); + + [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] + public const float D3D12_SRGB_TO_FLOAT_EXPONENT = (2.4f); + + [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] + public const float D3D12_SRGB_TO_FLOAT_OFFSET = (0.055f); + + [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] + public const float D3D12_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); + + [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] + public const float D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); + + [NativeTypeName("#define D3D12_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_STANDARD_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] + public const int D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); + + [NativeTypeName("#define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] + public const int D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); + + [NativeTypeName("#define D3D12_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] + public const int D3D12_STANDARD_PIXEL_COMPONENT_COUNT = (128); + + [NativeTypeName("#define D3D12_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] + public const int D3D12_STANDARD_PIXEL_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D12_STANDARD_VECTOR_SIZE ( 4 )")] + public const int D3D12_STANDARD_VECTOR_SIZE = (4); + + [NativeTypeName("#define D3D12_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] + public const int D3D12_STANDARD_VERTEX_ELEMENT_COUNT = (32); + + [NativeTypeName("#define D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] + public const int D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); + + [NativeTypeName("#define D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )")] + public const int D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT = (8); + + [NativeTypeName("#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )")] + public const uint D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END = (0xffffffff); + + [NativeTypeName("#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )")] + public const uint D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff0); + + [NativeTypeName("#define D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )")] + public const int D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )")] + public const int D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )")] + public const int D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = (63); + + [NativeTypeName("#define D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )")] + public const int D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR = (64); + + [NativeTypeName("#define D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )")] + public const int D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = (2); + + [NativeTypeName("#define D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )")] + public const int D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = (1); + + [NativeTypeName("#define D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )")] + public const int D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = (1); + + [NativeTypeName("#define D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] + public const int D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT = (16); + + [NativeTypeName("#define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT ( 256 )")] + public const int D3D12_TEXTURE_DATA_PITCH_ALIGNMENT = (256); + + [NativeTypeName("#define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT ( 512 )")] + public const int D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT = (512); + + [NativeTypeName("#define D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )")] + public const int D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES = (65536); + + [NativeTypeName("#define D3D12_TRACKED_WORKLOAD_MAX_INSTANCES ( 32 )")] + public const int D3D12_TRACKED_WORKLOAD_MAX_INSTANCES = (32); + + [NativeTypeName("#define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT ( 4096 )")] + public const int D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT = (4096); + + [NativeTypeName("#define D3D12_UAV_SLOT_COUNT ( 64 )")] + public const int D3D12_UAV_SLOT_COUNT = (64); + + [NativeTypeName("#define D3D12_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] + public const int D3D12_UNBOUND_MEMORY_ACCESS_RESULT = (0); + + [NativeTypeName("#define D3D12_VIDEO_DECODE_MAX_ARGUMENTS ( 10 )")] + public const int D3D12_VIDEO_DECODE_MAX_ARGUMENTS = (10); + + [NativeTypeName("#define D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS ( 4 )")] + public const int D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT ( 256 )")] + public const int D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT = (256); + + [NativeTypeName("#define D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )")] + public const int D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT = (256); + + [NativeTypeName("#define D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN ( 0xffffffff )")] + public const uint D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN = (0xffffffff); + + [NativeTypeName("#define D3D12_VIDEO_PROCESS_MAX_FILTERS ( 32 )")] + public const int D3D12_VIDEO_PROCESS_MAX_FILTERS = (32); + + [NativeTypeName("#define D3D12_VIDEO_PROCESS_STEREO_VIEWS ( 2 )")] + public const int D3D12_VIDEO_PROCESS_STEREO_VIEWS = (2); + + [NativeTypeName("#define D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] + public const int D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); + + [NativeTypeName("#define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] + public const int D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); + + [NativeTypeName("#define D3D12_VIEWPORT_BOUNDS_MAX ( 32767 )")] + public const int D3D12_VIEWPORT_BOUNDS_MAX = (32767); + + [NativeTypeName("#define D3D12_VIEWPORT_BOUNDS_MIN ( -32768 )")] + public const int D3D12_VIEWPORT_BOUNDS_MIN = (-32768); + + [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_VS_INPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_VS_INPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] + public const int D3D12_VS_INPUT_REGISTER_READS_PER_INST = (2); + + [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] + public const int D3D12_VS_INPUT_REGISTER_READ_PORTS = (1); + + [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] + public const int D3D12_VS_OUTPUT_REGISTER_COMPONENTS = (4); + + [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] + public const int D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); + + [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COUNT ( 32 )")] + public const int D3D12_VS_OUTPUT_REGISTER_COUNT = (32); + + [NativeTypeName("#define D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] + public const int D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); + + [NativeTypeName("#define D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] + public const int D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); + + [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7")] + public const int D3D12_SHADER_COMPONENT_MAPPING_MASK = 0x7; + + [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3")] + public const int D3D12_SHADER_COMPONENT_MAPPING_SHIFT = 3; + + [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4))")] + public const int D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES = (1 << (3 * 4)); + + [NativeTypeName("#define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3)")] + public const int D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING = ((((0) & 0x7) | (((1) & 0x7) << 3) | (((2) & 0x7) << (3 * 2)) | (((3) & 0x7) << (3 * 3)) | (1 << (3 * 4)))); + + [NativeTypeName("#define D3D12_FILTER_REDUCTION_TYPE_MASK ( 0x3 )")] + public const int D3D12_FILTER_REDUCTION_TYPE_MASK = (0x3); + + [NativeTypeName("#define D3D12_FILTER_REDUCTION_TYPE_SHIFT ( 7 )")] + public const int D3D12_FILTER_REDUCTION_TYPE_SHIFT = (7); + + [NativeTypeName("#define D3D12_FILTER_TYPE_MASK ( 0x3 )")] + public const int D3D12_FILTER_TYPE_MASK = (0x3); + + [NativeTypeName("#define D3D12_MIN_FILTER_SHIFT ( 4 )")] + public const int D3D12_MIN_FILTER_SHIFT = (4); + + [NativeTypeName("#define D3D12_MAG_FILTER_SHIFT ( 2 )")] + public const int D3D12_MAG_FILTER_SHIFT = (2); + + [NativeTypeName("#define D3D12_MIP_FILTER_SHIFT ( 0 )")] + public const int D3D12_MIP_FILTER_SHIFT = (0); + + [NativeTypeName("#define D3D12_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] + public const int D3D12_ANISOTROPIC_FILTERING_BIT = (0x40); + + [NativeTypeName("#define D3D12_SHADING_RATE_X_AXIS_SHIFT 2")] + public const int D3D12_SHADING_RATE_X_AXIS_SHIFT = 2; + + [NativeTypeName("#define D3D12_SHADING_RATE_VALID_MASK 3")] + public const int D3D12_SHADING_RATE_VALID_MASK = 3; + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESC.cs index da579871b7..f31be9b7ec 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_COMPUTE_PIPELINE_STATE_DESC.cs @@ -3,6 +3,8 @@ // Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using TerraFX.Interop.Windows; + namespace TerraFX.Interop.DirectX { public unsafe partial struct D3D12_COMPUTE_PIPELINE_STATE_DESC diff --git a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs index 98ca7e1726..dedc45a048 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/D3D12_GRAPHICS_PIPELINE_STATE_DESC.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using TerraFX.Interop.Windows; namespace TerraFX.Interop.DirectX { diff --git a/sources/Interop/Windows/DirectX/um/d3d12/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/um/d3d12/DirectX.Manual.cs index 01ad947fb5..7a0bcc6a39 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/DirectX.Manual.cs @@ -7,6 +7,7 @@ using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; +using static TerraFX.Interop.DirectX.D3D12; using static TerraFX.Interop.DirectX.D3D12_FILTER_REDUCTION_TYPE; using static TerraFX.Interop.DirectX.D3D12_FILTER_TYPE; using static TerraFX.Interop.Windows.Windows; diff --git a/sources/Interop/Windows/DirectX/um/d3d12/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d12/DirectX.cs index 8212434ccb..48b8cf22f6 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12/DirectX.cs @@ -25,31 +25,6 @@ public static unsafe partial class DirectX [DllImport("d3d12", ExactSpelling = true)] public static extern HRESULT D3D12CreateVersionedRootSignatureDeserializer([NativeTypeName("LPCVOID")] void* pSrcData, [NativeTypeName("SIZE_T")] nuint SrcDataSizeInBytes, [NativeTypeName("const IID &")] Guid* pRootSignatureDeserializerInterface, void** ppRootSignatureDeserializer); - [NativeTypeName("const GUID")] - public static ref readonly Guid D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x08, 0xB0, 0x62, - 0x0E, 0xC7, - 0xAA, 0x4D, - 0xA1, - 0x09, - 0x30, - 0xFF, - 0x8D, - 0x5A, - 0x04, - 0x82 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [DllImport("d3d12", ExactSpelling = true)] public static extern HRESULT D3D12CreateDevice(IUnknown* pAdapter, D3D_FEATURE_LEVEL MinimumFeatureLevel, [NativeTypeName("const IID &")] Guid* riid, void** ppDevice); @@ -136,1304 +111,5 @@ public static ref readonly Guid D3D12MetaCommand [DllImport("d3d12", ExactSpelling = true)] public static extern HRESULT D3D12GetInterface([NativeTypeName("const IID &")] Guid* rclsid, [NativeTypeName("const IID &")] Guid* riid, void** ppvDebug); - - [NativeTypeName("#define D3D12_16BIT_INDEX_STRIP_CUT_VALUE ( 0xffff )")] - public const int D3D12_16BIT_INDEX_STRIP_CUT_VALUE = (0xffff); - - [NativeTypeName("#define D3D12_32BIT_INDEX_STRIP_CUT_VALUE ( 0xffffffff )")] - public const uint D3D12_32BIT_INDEX_STRIP_CUT_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D12_8BIT_INDEX_STRIP_CUT_VALUE ( 0xff )")] - public const int D3D12_8BIT_INDEX_STRIP_CUT_VALUE = (0xff); - - [NativeTypeName("#define D3D12_APPEND_ALIGNED_ELEMENT ( 0xffffffff )")] - public const uint D3D12_APPEND_ALIGNED_ELEMENT = (0xffffffff); - - [NativeTypeName("#define D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT ( 9 )")] - public const int D3D12_ARRAY_AXIS_ADDRESS_RANGE_BIT_COUNT = (9); - - [NativeTypeName("#define D3D12_CLIP_OR_CULL_DISTANCE_COUNT ( 8 )")] - public const int D3D12_CLIP_OR_CULL_DISTANCE_COUNT = (8); - - [NativeTypeName("#define D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT ( 2 )")] - public const int D3D12_CLIP_OR_CULL_DISTANCE_ELEMENT_COUNT = (2); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT ( 14 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_API_SLOT_COUNT = (14); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT ( 15 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_HW_SLOT_COUNT = (15); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_PARTIAL_UPDATE_EXTENTS_BYTE_ALIGNMENT = (16); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT ( 15 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_COUNT = (15); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT ( 64 )")] - public const int D3D12_COMMONSHADER_FLOWCONTROL_NESTING_LIMIT = (64); - - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT ( 1 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_CONSTANT_BUFFER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_COMMONSHADER_IMMEDIATE_VALUE_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT ( 128 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_COUNT = (128); - - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT ( 128 )")] - public const int D3D12_COMMONSHADER_INPUT_RESOURCE_SLOT_COUNT = (128); - - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT ( 16 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_COUNT = (16); - - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_COMMONSHADER_SAMPLER_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT ( 16 )")] - public const int D3D12_COMMONSHADER_SAMPLER_SLOT_COUNT = (16); - - [NativeTypeName("#define D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT ( 32 )")] - public const int D3D12_COMMONSHADER_SUBROUTINE_NESTING_LIMIT = (32); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_COUNT ( 4096 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_COUNT = (4096); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST ( 3 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_READS_PER_INST = (3); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS ( 3 )")] - public const int D3D12_COMMONSHADER_TEMP_REGISTER_READ_PORTS = (3); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX ( 10 )")] - public const int D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MAX = (10); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN ( -10 )")] - public const int D3D12_COMMONSHADER_TEXCOORD_RANGE_REDUCTION_MIN = (-10); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE ( -8 )")] - public const int D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_NEGATIVE = (-8); - - [NativeTypeName("#define D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE ( 7 )")] - public const int D3D12_COMMONSHADER_TEXEL_OFFSET_MAX_POSITIVE = (7); - - [NativeTypeName("#define D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT ( 256 )")] - public const int D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT = (256); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 256 )")] - public const int D3D12_CS_4_X_BUCKET00_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (256); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP ( 64 )")] - public const int D3D12_CS_4_X_BUCKET00_MAX_NUM_THREADS_PER_GROUP = (64); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 240 )")] - public const int D3D12_CS_4_X_BUCKET01_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (240); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP ( 68 )")] - public const int D3D12_CS_4_X_BUCKET01_MAX_NUM_THREADS_PER_GROUP = (68); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 224 )")] - public const int D3D12_CS_4_X_BUCKET02_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (224); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP ( 72 )")] - public const int D3D12_CS_4_X_BUCKET02_MAX_NUM_THREADS_PER_GROUP = (72); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 208 )")] - public const int D3D12_CS_4_X_BUCKET03_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (208); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP ( 76 )")] - public const int D3D12_CS_4_X_BUCKET03_MAX_NUM_THREADS_PER_GROUP = (76); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 192 )")] - public const int D3D12_CS_4_X_BUCKET04_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (192); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP ( 84 )")] - public const int D3D12_CS_4_X_BUCKET04_MAX_NUM_THREADS_PER_GROUP = (84); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 176 )")] - public const int D3D12_CS_4_X_BUCKET05_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (176); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP ( 92 )")] - public const int D3D12_CS_4_X_BUCKET05_MAX_NUM_THREADS_PER_GROUP = (92); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 160 )")] - public const int D3D12_CS_4_X_BUCKET06_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (160); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP ( 100 )")] - public const int D3D12_CS_4_X_BUCKET06_MAX_NUM_THREADS_PER_GROUP = (100); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 144 )")] - public const int D3D12_CS_4_X_BUCKET07_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (144); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP ( 112 )")] - public const int D3D12_CS_4_X_BUCKET07_MAX_NUM_THREADS_PER_GROUP = (112); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 128 )")] - public const int D3D12_CS_4_X_BUCKET08_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (128); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP ( 128 )")] - public const int D3D12_CS_4_X_BUCKET08_MAX_NUM_THREADS_PER_GROUP = (128); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 112 )")] - public const int D3D12_CS_4_X_BUCKET09_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (112); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP ( 144 )")] - public const int D3D12_CS_4_X_BUCKET09_MAX_NUM_THREADS_PER_GROUP = (144); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 96 )")] - public const int D3D12_CS_4_X_BUCKET10_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (96); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP ( 168 )")] - public const int D3D12_CS_4_X_BUCKET10_MAX_NUM_THREADS_PER_GROUP = (168); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 80 )")] - public const int D3D12_CS_4_X_BUCKET11_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (80); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP ( 204 )")] - public const int D3D12_CS_4_X_BUCKET11_MAX_NUM_THREADS_PER_GROUP = (204); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 64 )")] - public const int D3D12_CS_4_X_BUCKET12_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (64); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP ( 256 )")] - public const int D3D12_CS_4_X_BUCKET12_MAX_NUM_THREADS_PER_GROUP = (256); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 48 )")] - public const int D3D12_CS_4_X_BUCKET13_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (48); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP ( 340 )")] - public const int D3D12_CS_4_X_BUCKET13_MAX_NUM_THREADS_PER_GROUP = (340); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 32 )")] - public const int D3D12_CS_4_X_BUCKET14_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (32); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP ( 512 )")] - public const int D3D12_CS_4_X_BUCKET14_MAX_NUM_THREADS_PER_GROUP = (512); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD ( 16 )")] - public const int D3D12_CS_4_X_BUCKET15_MAX_BYTES_TGSM_WRITABLE_PER_THREAD = (16); - - [NativeTypeName("#define D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP ( 768 )")] - public const int D3D12_CS_4_X_BUCKET15_MAX_NUM_THREADS_PER_GROUP = (768); - - [NativeTypeName("#define D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION ( 1 )")] - public const int D3D12_CS_4_X_DISPATCH_MAX_THREAD_GROUPS_IN_Z_DIMENSION = (1); - - [NativeTypeName("#define D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT ( 256 )")] - public const int D3D12_CS_4_X_RAW_UAV_BYTE_ALIGNMENT = (256); - - [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 768 )")] - public const int D3D12_CS_4_X_THREAD_GROUP_MAX_THREADS_PER_GROUP = (768); - - [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_X ( 768 )")] - public const int D3D12_CS_4_X_THREAD_GROUP_MAX_X = (768); - - [NativeTypeName("#define D3D12_CS_4_X_THREAD_GROUP_MAX_Y ( 768 )")] - public const int D3D12_CS_4_X_THREAD_GROUP_MAX_Y = (768); - - [NativeTypeName("#define D3D12_CS_4_X_UAV_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_4_X_UAV_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION ( 65535 )")] - public const int D3D12_CS_DISPATCH_MAX_THREAD_GROUPS_PER_DIMENSION = (65535); - - [NativeTypeName("#define D3D12_CS_TGSM_REGISTER_COUNT ( 8192 )")] - public const int D3D12_CS_TGSM_REGISTER_COUNT = (8192); - - [NativeTypeName("#define D3D12_CS_TGSM_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_CS_TGSM_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_CS_TGSM_RESOURCE_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_CS_TGSM_RESOURCE_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_CS_THREADGROUPID_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D12_CS_THREADGROUPID_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADGROUPID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADIDINGROUPFLATTENED_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_CS_THREADIDINGROUP_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D12_CS_THREADIDINGROUP_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADIDINGROUP_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_CS_THREADID_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_CS_THREADID_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D12_CS_THREADID_REGISTER_COUNT ( 1 )")] - public const int D3D12_CS_THREADID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP ( 1024 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_THREADS_PER_GROUP = (1024); - - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_X ( 1024 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_X = (1024); - - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_Y ( 1024 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_Y = (1024); - - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MAX_Z ( 64 )")] - public const int D3D12_CS_THREAD_GROUP_MAX_Z = (64); - - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_X ( 1 )")] - public const int D3D12_CS_THREAD_GROUP_MIN_X = (1); - - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_Y ( 1 )")] - public const int D3D12_CS_THREAD_GROUP_MIN_Y = (1); - - [NativeTypeName("#define D3D12_CS_THREAD_GROUP_MIN_Z ( 1 )")] - public const int D3D12_CS_THREAD_GROUP_MIN_Z = (1); - - [NativeTypeName("#define D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL ( 16384 )")] - public const int D3D12_CS_THREAD_LOCAL_TEMP_REGISTER_POOL = (16384); - - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_ALPHA ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_ALPHA = (1.0f); - - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_BLUE ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_BLUE = (1.0f); - - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_GREEN ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_GREEN = (1.0f); - - [NativeTypeName("#define D3D12_DEFAULT_BLEND_FACTOR_RED ( 1.0f )")] - public const float D3D12_DEFAULT_BLEND_FACTOR_RED = (1.0f); - - [NativeTypeName("#define D3D12_DEFAULT_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D12_DEFAULT_BORDER_COLOR_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D12_DEFAULT_DEPTH_BIAS ( 0 )")] - public const int D3D12_DEFAULT_DEPTH_BIAS = (0); - - [NativeTypeName("#define D3D12_DEFAULT_DEPTH_BIAS_CLAMP ( 0.0f )")] - public const float D3D12_DEFAULT_DEPTH_BIAS_CLAMP = (0.0f); - - [NativeTypeName("#define D3D12_DEFAULT_MAX_ANISOTROPY ( 16 )")] - public const int D3D12_DEFAULT_MAX_ANISOTROPY = (16); - - [NativeTypeName("#define D3D12_DEFAULT_MIP_LOD_BIAS ( 0.0f )")] - public const float D3D12_DEFAULT_MIP_LOD_BIAS = (0.0f); - - [NativeTypeName("#define D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 4194304 )")] - public const int D3D12_DEFAULT_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = (4194304); - - [NativeTypeName("#define D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX ( 0 )")] - public const int D3D12_DEFAULT_RENDER_TARGET_ARRAY_INDEX = (0); - - [NativeTypeName("#define D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )")] - public const int D3D12_DEFAULT_RESOURCE_PLACEMENT_ALIGNMENT = (65536); - - [NativeTypeName("#define D3D12_DEFAULT_SAMPLE_MASK ( 0xffffffff )")] - public const uint D3D12_DEFAULT_SAMPLE_MASK = (0xffffffff); - - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_ENDX ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_ENDX = (0); - - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_ENDY ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_ENDY = (0); - - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_STARTX ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_STARTX = (0); - - [NativeTypeName("#define D3D12_DEFAULT_SCISSOR_STARTY ( 0 )")] - public const int D3D12_DEFAULT_SCISSOR_STARTY = (0); - - [NativeTypeName("#define D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS ( 0.0f )")] - public const float D3D12_DEFAULT_SLOPE_SCALED_DEPTH_BIAS = (0.0f); - - [NativeTypeName("#define D3D12_DEFAULT_STENCIL_READ_MASK ( 0xff )")] - public const int D3D12_DEFAULT_STENCIL_READ_MASK = (0xff); - - [NativeTypeName("#define D3D12_DEFAULT_STENCIL_REFERENCE ( 0 )")] - public const int D3D12_DEFAULT_STENCIL_REFERENCE = (0); - - [NativeTypeName("#define D3D12_DEFAULT_STENCIL_WRITE_MASK ( 0xff )")] - public const int D3D12_DEFAULT_STENCIL_WRITE_MASK = (0xff); - - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_AND_SCISSORRECT_INDEX = (0); - - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_HEIGHT ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_HEIGHT = (0); - - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_MAX_DEPTH ( 0.0f )")] - public const float D3D12_DEFAULT_VIEWPORT_MAX_DEPTH = (0.0f); - - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_MIN_DEPTH ( 0.0f )")] - public const float D3D12_DEFAULT_VIEWPORT_MIN_DEPTH = (0.0f); - - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_TOPLEFTX ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_TOPLEFTX = (0); - - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_TOPLEFTY ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_TOPLEFTY = (0); - - [NativeTypeName("#define D3D12_DEFAULT_VIEWPORT_WIDTH ( 0 )")] - public const int D3D12_DEFAULT_VIEWPORT_WIDTH = (0); - - [NativeTypeName("#define D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND ( 0xffffffff )")] - public const uint D3D12_DESCRIPTOR_RANGE_OFFSET_APPEND = (0xffffffff); - - [NativeTypeName("#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END ( 0xfffffff7 )")] - public const uint D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_END = (0xfffffff7); - - [NativeTypeName("#define D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )")] - public const uint D3D12_DRIVER_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff0); - - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] - public const int D3D12_DS_INPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); - - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_CONTROL_POINT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS ( 3 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENTS = (3); - - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT ( 1 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_DOMAIN_POINT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_DS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_DS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_DS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_DS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_DS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP ( 0.6 )")] - public const double D3D12_FLOAT16_FUSED_TOLERANCE_IN_ULP = (0.6); - - [NativeTypeName("#define D3D12_FLOAT32_MAX ( 3.402823466e+38f )")] - public const float D3D12_FLOAT32_MAX = (3.402823466e+38f); - - [NativeTypeName("#define D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP ( 0.6f )")] - public const float D3D12_FLOAT32_TO_INTEGER_TOLERANCE_IN_ULP = (0.6f); - - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR ( 2.4f )")] - public const float D3D12_FLOAT_TO_SRGB_EXPONENT_DENOMINATOR = (2.4f); - - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR ( 1.0f )")] - public const float D3D12_FLOAT_TO_SRGB_EXPONENT_NUMERATOR = (1.0f); - - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_OFFSET ( 0.055f )")] - public const float D3D12_FLOAT_TO_SRGB_OFFSET = (0.055f); - - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_SCALE_1 ( 12.92f )")] - public const float D3D12_FLOAT_TO_SRGB_SCALE_1 = (12.92f); - - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_SCALE_2 ( 1.055f )")] - public const float D3D12_FLOAT_TO_SRGB_SCALE_2 = (1.055f); - - [NativeTypeName("#define D3D12_FLOAT_TO_SRGB_THRESHOLD ( 0.0031308f )")] - public const float D3D12_FLOAT_TO_SRGB_THRESHOLD = (0.0031308f); - - [NativeTypeName("#define D3D12_FTOI_INSTRUCTION_MAX_INPUT ( 2147483647.999f )")] - public const float D3D12_FTOI_INSTRUCTION_MAX_INPUT = (2147483647.999f); - - [NativeTypeName("#define D3D12_FTOI_INSTRUCTION_MIN_INPUT ( -2147483648.999f )")] - public const float D3D12_FTOI_INSTRUCTION_MIN_INPUT = (-2147483648.999f); - - [NativeTypeName("#define D3D12_FTOU_INSTRUCTION_MAX_INPUT ( 4294967295.999f )")] - public const float D3D12_FTOU_INSTRUCTION_MAX_INPUT = (4294967295.999f); - - [NativeTypeName("#define D3D12_FTOU_INSTRUCTION_MIN_INPUT ( 0.0f )")] - public const float D3D12_FTOU_INSTRUCTION_MIN_INPUT = (0.0f); - - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST ( 2 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS ( 1 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_GS_INPUT_INSTANCE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT ( 1 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_GS_INPUT_PRIM_CONST_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_GS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_GS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_GS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_GS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_GS_INPUT_REGISTER_VERTICES ( 32 )")] - public const int D3D12_GS_INPUT_REGISTER_VERTICES = (32); - - [NativeTypeName("#define D3D12_GS_MAX_INSTANCE_COUNT ( 32 )")] - public const int D3D12_GS_MAX_INSTANCE_COUNT = (32); - - [NativeTypeName("#define D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES ( 1024 )")] - public const int D3D12_GS_MAX_OUTPUT_VERTEX_COUNT_ACROSS_INSTANCES = (1024); - - [NativeTypeName("#define D3D12_GS_OUTPUT_ELEMENTS ( 32 )")] - public const int D3D12_GS_OUTPUT_ELEMENTS = (32); - - [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_GS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_GS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_GS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_GS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_HS_CONTROL_POINT_PHASE_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_HS_CONTROL_POINT_PHASE_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_CONTROL_POINT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] - public const uint D3D12_HS_FORK_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); - - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_INPUT_FORK_INSTANCE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_INPUT_JOIN_INSTANCE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_INPUT_PRIMITIVE_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND ( 0xffffffff )")] - public const uint D3D12_HS_JOIN_PHASE_INSTANCE_COUNT_UPPER_BOUND = (0xffffffff); - - [NativeTypeName("#define D3D12_HS_MAXTESSFACTOR_LOWER_BOUND ( 1.0f )")] - public const float D3D12_HS_MAXTESSFACTOR_LOWER_BOUND = (1.0f); - - [NativeTypeName("#define D3D12_HS_MAXTESSFACTOR_UPPER_BOUND ( 64.0f )")] - public const float D3D12_HS_MAXTESSFACTOR_UPPER_BOUND = (64.0f); - - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS ( 3968 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINTS_MAX_TOTAL_SCALARS = (3968); - - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT ( 1 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_OUTPUT_CONTROL_POINT_ID_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT ( 32 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS ( 128 )")] - public const int D3D12_HS_OUTPUT_PATCH_CONSTANT_REGISTER_SCALAR_COMPONENTS = (128); - - [NativeTypeName("#define D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D12_IA_DEFAULT_INDEX_BUFFER_OFFSET_IN_BYTES = (0); - - [NativeTypeName("#define D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY ( 0 )")] - public const int D3D12_IA_DEFAULT_PRIMITIVE_TOPOLOGY = (0); - - [NativeTypeName("#define D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES ( 0 )")] - public const int D3D12_IA_DEFAULT_VERTEX_BUFFER_OFFSET_IN_BYTES = (0); - - [NativeTypeName("#define D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT ( 1 )")] - public const int D3D12_IA_INDEX_INPUT_RESOURCE_SLOT_COUNT = (1); - - [NativeTypeName("#define D3D12_IA_INSTANCE_ID_BIT_COUNT ( 32 )")] - public const int D3D12_IA_INSTANCE_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT ( 32 )")] - public const int D3D12_IA_INTEGER_ARITHMETIC_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT ( 32 )")] - public const int D3D12_IA_PATCH_MAX_CONTROL_POINT_COUNT = (32); - - [NativeTypeName("#define D3D12_IA_PRIMITIVE_ID_BIT_COUNT ( 32 )")] - public const int D3D12_IA_PRIMITIVE_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_IA_VERTEX_ID_BIT_COUNT ( 32 )")] - public const int D3D12_IA_VERTEX_ID_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT ( 32 )")] - public const int D3D12_IA_VERTEX_INPUT_RESOURCE_SLOT_COUNT = (32); - - [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS ( 128 )")] - public const int D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENTS_COMPONENTS = (128); - - [NativeTypeName("#define D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT ( 32 )")] - public const int D3D12_IA_VERTEX_INPUT_STRUCTURE_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT ( 0xffffffff )")] - public const uint D3D12_INTEGER_DIVIDE_BY_ZERO_QUOTIENT = (0xffffffff); - - [NativeTypeName("#define D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER ( 0xffffffff )")] - public const uint D3D12_INTEGER_DIVIDE_BY_ZERO_REMAINDER = (0xffffffff); - - [NativeTypeName("#define D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL ( 0xffffffff )")] - public const uint D3D12_KEEP_RENDER_TARGETS_AND_DEPTH_STENCIL = (0xffffffff); - - [NativeTypeName("#define D3D12_KEEP_UNORDERED_ACCESS_VIEWS ( 0xffffffff )")] - public const uint D3D12_KEEP_UNORDERED_ACCESS_VIEWS = (0xffffffff); - - [NativeTypeName("#define D3D12_LINEAR_GAMMA ( 1.0f )")] - public const float D3D12_LINEAR_GAMMA = (1.0f); - - [NativeTypeName("#define D3D12_MAJOR_VERSION ( 12 )")] - public const int D3D12_MAJOR_VERSION = (12); - - [NativeTypeName("#define D3D12_MAX_BORDER_COLOR_COMPONENT ( 1.0f )")] - public const float D3D12_MAX_BORDER_COLOR_COMPONENT = (1.0f); - - [NativeTypeName("#define D3D12_MAX_DEPTH ( 1.0f )")] - public const float D3D12_MAX_DEPTH = (1.0f); - - [NativeTypeName("#define D3D12_MAX_LIVE_STATIC_SAMPLERS ( 2032 )")] - public const int D3D12_MAX_LIVE_STATIC_SAMPLERS = (2032); - - [NativeTypeName("#define D3D12_MAX_MAXANISOTROPY ( 16 )")] - public const int D3D12_MAX_MAXANISOTROPY = (16); - - [NativeTypeName("#define D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT ( 32 )")] - public const int D3D12_MAX_MULTISAMPLE_SAMPLE_COUNT = (32); - - [NativeTypeName("#define D3D12_MAX_POSITION_VALUE ( 3.402823466e+34f )")] - public const float D3D12_MAX_POSITION_VALUE = (3.402823466e+34f); - - [NativeTypeName("#define D3D12_MAX_ROOT_COST ( 64 )")] - public const int D3D12_MAX_ROOT_COST = (64); - - [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 ( 1000000 )")] - public const int D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_1 = (1000000); - - [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 ( 1000000 )")] - public const int D3D12_MAX_SHADER_VISIBLE_DESCRIPTOR_HEAP_SIZE_TIER_2 = (1000000); - - [NativeTypeName("#define D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE ( 2048 )")] - public const int D3D12_MAX_SHADER_VISIBLE_SAMPLER_HEAP_SIZE = (2048); - - [NativeTypeName("#define D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP ( 17 )")] - public const int D3D12_MAX_TEXTURE_DIMENSION_2_TO_EXP = (17); - - [NativeTypeName("#define D3D12_MAX_VIEW_INSTANCE_COUNT ( 4 )")] - public const int D3D12_MAX_VIEW_INSTANCE_COUNT = (4); - - [NativeTypeName("#define D3D12_MINOR_VERSION ( 0 )")] - public const int D3D12_MINOR_VERSION = (0); - - [NativeTypeName("#define D3D12_MIN_BORDER_COLOR_COMPONENT ( 0.0f )")] - public const float D3D12_MIN_BORDER_COLOR_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D12_MIN_DEPTH ( 0.0f )")] - public const float D3D12_MIN_DEPTH = (0.0f); - - [NativeTypeName("#define D3D12_MIN_MAXANISOTROPY ( 0 )")] - public const int D3D12_MIN_MAXANISOTROPY = (0); - - [NativeTypeName("#define D3D12_MIP_LOD_BIAS_MAX ( 15.99f )")] - public const float D3D12_MIP_LOD_BIAS_MAX = (15.99f); - - [NativeTypeName("#define D3D12_MIP_LOD_BIAS_MIN ( -16.0f )")] - public const float D3D12_MIP_LOD_BIAS_MIN = (-16.0f); - - [NativeTypeName("#define D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D12_MIP_LOD_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D12_MIP_LOD_RANGE_BIT_COUNT ( 8 )")] - public const int D3D12_MIP_LOD_RANGE_BIT_COUNT = (8); - - [NativeTypeName("#define D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH ( 1.4f )")] - public const float D3D12_MULTISAMPLE_ANTIALIAS_LINE_WIDTH = (1.4f); - - [NativeTypeName("#define D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT ( 0 )")] - public const int D3D12_NONSAMPLE_FETCH_OUT_OF_RANGE_ACCESS_RESULT = (0); - - [NativeTypeName("#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )")] - public const uint D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_END = (0xffffffff); - - [NativeTypeName("#define D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff8 )")] - public const uint D3D12_OS_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff8); - - [NativeTypeName("#define D3D12_PACKED_TILE ( 0xffffffff )")] - public const uint D3D12_PACKED_TILE = (0xffffffff); - - [NativeTypeName("#define D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 15 )")] - public const int D3D12_PIXEL_ADDRESS_RANGE_BIT_COUNT = (15); - - [NativeTypeName("#define D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] - public const int D3D12_PRE_SCISSOR_PIXEL_ADDRESS_RANGE_BIT_COUNT = (16); - - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_PS_CS_UAV_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_COUNT ( 8 )")] - public const int D3D12_PS_CS_UAV_REGISTER_COUNT = (8); - - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_READS_PER_INST ( 1 )")] - public const int D3D12_PS_CS_UAV_REGISTER_READS_PER_INST = (1); - - [NativeTypeName("#define D3D12_PS_CS_UAV_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_PS_CS_UAV_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_PS_FRONTFACING_DEFAULT_VALUE ( 0xffffffff )")] - public const uint D3D12_PS_FRONTFACING_DEFAULT_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D12_PS_FRONTFACING_FALSE_VALUE ( 0 )")] - public const int D3D12_PS_FRONTFACING_FALSE_VALUE = (0); - - [NativeTypeName("#define D3D12_PS_FRONTFACING_TRUE_VALUE ( 0xffffffff )")] - public const uint D3D12_PS_FRONTFACING_TRUE_VALUE = (0xffffffff); - - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_PS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_PS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_PS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_PS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_PS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.0f )")] - public const float D3D12_PS_LEGACY_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.0f); - - [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT ( 1 )")] - public const int D3D12_PS_OUTPUT_DEPTH_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS ( 1 )")] - public const int D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENTS = (1); - - [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_OUTPUT_MASK_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_PS_OUTPUT_MASK_REGISTER_COUNT ( 1 )")] - public const int D3D12_PS_OUTPUT_MASK_REGISTER_COUNT = (1); - - [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_PS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_PS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_PS_OUTPUT_REGISTER_COUNT ( 8 )")] - public const int D3D12_PS_OUTPUT_REGISTER_COUNT = (8); - - [NativeTypeName("#define D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT ( 0.5f )")] - public const float D3D12_PS_PIXEL_CENTER_FRACTIONAL_COMPONENT = (0.5f); - - [NativeTypeName("#define D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_RAW_UAV_SRV_BYTE_ALIGNMENT = (16); - - [NativeTypeName("#define D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT ( 8 )")] - public const int D3D12_RAYTRACING_AABB_BYTE_ALIGNMENT = (8); - - [NativeTypeName("#define D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT ( 256 )")] - public const int D3D12_RAYTRACING_ACCELERATION_STRUCTURE_BYTE_ALIGNMENT = (256); - - [NativeTypeName("#define D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_RAYTRACING_INSTANCE_DESCS_BYTE_ALIGNMENT = (16); - - [NativeTypeName("#define D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES ( 32 )")] - public const int D3D12_RAYTRACING_MAX_ATTRIBUTE_SIZE_IN_BYTES = (32); - - [NativeTypeName("#define D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH ( 31 )")] - public const int D3D12_RAYTRACING_MAX_DECLARABLE_TRACE_RECURSION_DEPTH = (31); - - [NativeTypeName("#define D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )")] - public const int D3D12_RAYTRACING_MAX_GEOMETRIES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = (16777216); - - [NativeTypeName("#define D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE ( 16777216 )")] - public const int D3D12_RAYTRACING_MAX_INSTANCES_PER_TOP_LEVEL_ACCELERATION_STRUCTURE = (16777216); - - [NativeTypeName("#define D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE ( 536870912 )")] - public const int D3D12_RAYTRACING_MAX_PRIMITIVES_PER_BOTTOM_LEVEL_ACCELERATION_STRUCTURE = (536870912); - - [NativeTypeName("#define D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS ( 1073741824 )")] - public const int D3D12_RAYTRACING_MAX_RAY_GENERATION_SHADER_THREADS = (1073741824); - - [NativeTypeName("#define D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE ( 4096 )")] - public const int D3D12_RAYTRACING_MAX_SHADER_RECORD_STRIDE = (4096); - - [NativeTypeName("#define D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT ( 32 )")] - public const int D3D12_RAYTRACING_SHADER_RECORD_BYTE_ALIGNMENT = (32); - - [NativeTypeName("#define D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT ( 64 )")] - public const int D3D12_RAYTRACING_SHADER_TABLE_BYTE_ALIGNMENT = (64); - - [NativeTypeName("#define D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT ( 16 )")] - public const int D3D12_RAYTRACING_TRANSFORM3X4_BYTE_ALIGNMENT = (16); - - [NativeTypeName("#define D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_BLEND_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP ( 27 )")] - public const int D3D12_REQ_BUFFER_RESOURCE_TEXEL_COUNT_2_TO_EXP = (27); - - [NativeTypeName("#define D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D12_REQ_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - - [NativeTypeName("#define D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_DEPTH_STENCIL_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D12_REQ_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (32); - - [NativeTypeName("#define D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP ( 32 )")] - public const int D3D12_REQ_DRAW_VERTEX_COUNT_2_TO_EXP = (32); - - [NativeTypeName("#define D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION ( 16384 )")] - public const int D3D12_REQ_FILTERING_HW_ADDRESSABLE_RESOURCE_DIMENSION = (16384); - - [NativeTypeName("#define D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT ( 1024 )")] - public const int D3D12_REQ_GS_INVOCATION_32BIT_OUTPUT_COMPONENT_LIMIT = (1024); - - [NativeTypeName("#define D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT ( 4096 )")] - public const int D3D12_REQ_IMMEDIATE_CONSTANT_BUFFER_ELEMENT_COUNT = (4096); - - [NativeTypeName("#define D3D12_REQ_MAXANISOTROPY ( 16 )")] - public const int D3D12_REQ_MAXANISOTROPY = (16); - - [NativeTypeName("#define D3D12_REQ_MIP_LEVELS ( 15 )")] - public const int D3D12_REQ_MIP_LEVELS = (15); - - [NativeTypeName("#define D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES ( 2048 )")] - public const int D3D12_REQ_MULTI_ELEMENT_STRUCTURE_SIZE_IN_BYTES = (2048); - - [NativeTypeName("#define D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_RASTERIZER_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH ( 16384 )")] - public const int D3D12_REQ_RENDER_TO_BUFFER_WINDOW_WIDTH = (16384); - - [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM ( 128 )")] - public const int D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_A_TERM = (128); - - [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM ( 0.25f )")] - public const float D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_B_TERM = (0.25f); - - [NativeTypeName("#define D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM ( 2048 )")] - public const int D3D12_REQ_RESOURCE_SIZE_IN_MEGABYTES_EXPRESSION_C_TERM = (2048); - - [NativeTypeName("#define D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP ( 20 )")] - public const int D3D12_REQ_RESOURCE_VIEW_COUNT_PER_DEVICE_2_TO_EXP = (20); - - [NativeTypeName("#define D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE ( 4096 )")] - public const int D3D12_REQ_SAMPLER_OBJECT_COUNT_PER_DEVICE = (4096); - - [NativeTypeName("#define D3D12_REQ_SUBRESOURCES ( 30720 )")] - public const int D3D12_REQ_SUBRESOURCES = (30720); - - [NativeTypeName("#define D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION ( 2048 )")] - public const int D3D12_REQ_TEXTURE1D_ARRAY_AXIS_DIMENSION = (2048); - - [NativeTypeName("#define D3D12_REQ_TEXTURE1D_U_DIMENSION ( 16384 )")] - public const int D3D12_REQ_TEXTURE1D_U_DIMENSION = (16384); - - [NativeTypeName("#define D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION ( 2048 )")] - public const int D3D12_REQ_TEXTURE2D_ARRAY_AXIS_DIMENSION = (2048); - - [NativeTypeName("#define D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION ( 16384 )")] - public const int D3D12_REQ_TEXTURE2D_U_OR_V_DIMENSION = (16384); - - [NativeTypeName("#define D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION ( 2048 )")] - public const int D3D12_REQ_TEXTURE3D_U_V_OR_W_DIMENSION = (2048); - - [NativeTypeName("#define D3D12_REQ_TEXTURECUBE_DIMENSION ( 16384 )")] - public const int D3D12_REQ_TEXTURECUBE_DIMENSION = (16384); - - [NativeTypeName("#define D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL ( 0 )")] - public const int D3D12_RESINFO_INSTRUCTION_MISSING_COMPONENT_RETVAL = (0); - - [NativeTypeName("#define D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES ( 0xffffffff )")] - public const uint D3D12_RESOURCE_BARRIER_ALL_SUBRESOURCES = (0xffffffff); - - [NativeTypeName("#define D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT ( 2 )")] - public const int D3D12_RS_SET_SHADING_RATE_COMBINER_COUNT = (2); - - [NativeTypeName("#define D3D12_SDK_VERSION ( 3 )")] - public const int D3D12_SDK_VERSION = (3); - - [NativeTypeName("#define D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES ( 32 )")] - public const int D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES = (32); - - [NativeTypeName("#define D3D12_SHADER_MAJOR_VERSION ( 5 )")] - public const int D3D12_SHADER_MAJOR_VERSION = (5); - - [NativeTypeName("#define D3D12_SHADER_MAX_INSTANCES ( 65535 )")] - public const int D3D12_SHADER_MAX_INSTANCES = (65535); - - [NativeTypeName("#define D3D12_SHADER_MAX_INTERFACES ( 253 )")] - public const int D3D12_SHADER_MAX_INTERFACES = (253); - - [NativeTypeName("#define D3D12_SHADER_MAX_INTERFACE_CALL_SITES ( 4096 )")] - public const int D3D12_SHADER_MAX_INTERFACE_CALL_SITES = (4096); - - [NativeTypeName("#define D3D12_SHADER_MAX_TYPES ( 65535 )")] - public const int D3D12_SHADER_MAX_TYPES = (65535); - - [NativeTypeName("#define D3D12_SHADER_MINOR_VERSION ( 1 )")] - public const int D3D12_SHADER_MINOR_VERSION = (1); - - [NativeTypeName("#define D3D12_SHIFT_INSTRUCTION_PAD_VALUE ( 0 )")] - public const int D3D12_SHIFT_INSTRUCTION_PAD_VALUE = (0); - - [NativeTypeName("#define D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT ( 5 )")] - public const int D3D12_SHIFT_INSTRUCTION_SHIFT_VALUE_BIT_COUNT = (5); - - [NativeTypeName("#define D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT ( 8 )")] - public const int D3D12_SIMULTANEOUS_RENDER_TARGET_COUNT = (8); - - [NativeTypeName("#define D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT ( 65536 )")] - public const int D3D12_SMALL_MSAA_RESOURCE_PLACEMENT_ALIGNMENT = (65536); - - [NativeTypeName("#define D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT ( 4096 )")] - public const int D3D12_SMALL_RESOURCE_PLACEMENT_ALIGNMENT = (4096); - - [NativeTypeName("#define D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES ( 2048 )")] - public const int D3D12_SO_BUFFER_MAX_STRIDE_IN_BYTES = (2048); - - [NativeTypeName("#define D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES ( 512 )")] - public const int D3D12_SO_BUFFER_MAX_WRITE_WINDOW_IN_BYTES = (512); - - [NativeTypeName("#define D3D12_SO_BUFFER_SLOT_COUNT ( 4 )")] - public const int D3D12_SO_BUFFER_SLOT_COUNT = (4); - - [NativeTypeName("#define D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP ( 0xffffffff )")] - public const uint D3D12_SO_DDI_REGISTER_INDEX_DENOTING_GAP = (0xffffffff); - - [NativeTypeName("#define D3D12_SO_NO_RASTERIZED_STREAM ( 0xffffffff )")] - public const uint D3D12_SO_NO_RASTERIZED_STREAM = (0xffffffff); - - [NativeTypeName("#define D3D12_SO_OUTPUT_COMPONENT_COUNT ( 128 )")] - public const int D3D12_SO_OUTPUT_COMPONENT_COUNT = (128); - - [NativeTypeName("#define D3D12_SO_STREAM_COUNT ( 4 )")] - public const int D3D12_SO_STREAM_COUNT = (4); - - [NativeTypeName("#define D3D12_SPEC_DATE_DAY ( 14 )")] - public const int D3D12_SPEC_DATE_DAY = (14); - - [NativeTypeName("#define D3D12_SPEC_DATE_MONTH ( 11 )")] - public const int D3D12_SPEC_DATE_MONTH = (11); - - [NativeTypeName("#define D3D12_SPEC_DATE_YEAR ( 2014 )")] - public const int D3D12_SPEC_DATE_YEAR = (2014); - - [NativeTypeName("#define D3D12_SPEC_VERSION ( 1.16 )")] - public const double D3D12_SPEC_VERSION = (1.16); - - [NativeTypeName("#define D3D12_SRGB_GAMMA ( 2.2f )")] - public const float D3D12_SRGB_GAMMA = (2.2f); - - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 ( 12.92f )")] - public const float D3D12_SRGB_TO_FLOAT_DENOMINATOR_1 = (12.92f); - - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 ( 1.055f )")] - public const float D3D12_SRGB_TO_FLOAT_DENOMINATOR_2 = (1.055f); - - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_EXPONENT ( 2.4f )")] - public const float D3D12_SRGB_TO_FLOAT_EXPONENT = (2.4f); - - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_OFFSET ( 0.055f )")] - public const float D3D12_SRGB_TO_FLOAT_OFFSET = (0.055f); - - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_THRESHOLD ( 0.04045f )")] - public const float D3D12_SRGB_TO_FLOAT_THRESHOLD = (0.04045f); - - [NativeTypeName("#define D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP ( 0.5f )")] - public const float D3D12_SRGB_TO_FLOAT_TOLERANCE_IN_ULP = (0.5f); - - [NativeTypeName("#define D3D12_STANDARD_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_STANDARD_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED ( 64 )")] - public const int D3D12_STANDARD_COMPONENT_BIT_COUNT_DOUBLED = (64); - - [NativeTypeName("#define D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE ( 4 )")] - public const int D3D12_STANDARD_MAXIMUM_ELEMENT_ALIGNMENT_BYTE_MULTIPLE = (4); - - [NativeTypeName("#define D3D12_STANDARD_PIXEL_COMPONENT_COUNT ( 128 )")] - public const int D3D12_STANDARD_PIXEL_COMPONENT_COUNT = (128); - - [NativeTypeName("#define D3D12_STANDARD_PIXEL_ELEMENT_COUNT ( 32 )")] - public const int D3D12_STANDARD_PIXEL_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D12_STANDARD_VECTOR_SIZE ( 4 )")] - public const int D3D12_STANDARD_VECTOR_SIZE = (4); - - [NativeTypeName("#define D3D12_STANDARD_VERTEX_ELEMENT_COUNT ( 32 )")] - public const int D3D12_STANDARD_VERTEX_ELEMENT_COUNT = (32); - - [NativeTypeName("#define D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT ( 64 )")] - public const int D3D12_STANDARD_VERTEX_TOTAL_COMPONENT_COUNT = (64); - - [NativeTypeName("#define D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D12_SUBPIXEL_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT ( 8 )")] - public const int D3D12_SUBTEXEL_FRACTIONAL_BIT_COUNT = (8); - - [NativeTypeName("#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END ( 0xffffffff )")] - public const uint D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_END = (0xffffffff); - - [NativeTypeName("#define D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START ( 0xfffffff0 )")] - public const uint D3D12_SYSTEM_RESERVED_REGISTER_SPACE_VALUES_START = (0xfffffff0); - - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR ( 64 )")] - public const int D3D12_TESSELLATOR_MAX_EVEN_TESSELLATION_FACTOR = (64); - - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 64 )")] - public const int D3D12_TESSELLATOR_MAX_ISOLINE_DENSITY_TESSELLATION_FACTOR = (64); - - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR ( 63 )")] - public const int D3D12_TESSELLATOR_MAX_ODD_TESSELLATION_FACTOR = (63); - - [NativeTypeName("#define D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR ( 64 )")] - public const int D3D12_TESSELLATOR_MAX_TESSELLATION_FACTOR = (64); - - [NativeTypeName("#define D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR ( 2 )")] - public const int D3D12_TESSELLATOR_MIN_EVEN_TESSELLATION_FACTOR = (2); - - [NativeTypeName("#define D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR ( 1 )")] - public const int D3D12_TESSELLATOR_MIN_ISOLINE_DENSITY_TESSELLATION_FACTOR = (1); - - [NativeTypeName("#define D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR ( 1 )")] - public const int D3D12_TESSELLATOR_MIN_ODD_TESSELLATION_FACTOR = (1); - - [NativeTypeName("#define D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT ( 16 )")] - public const int D3D12_TEXEL_ADDRESS_RANGE_BIT_COUNT = (16); - - [NativeTypeName("#define D3D12_TEXTURE_DATA_PITCH_ALIGNMENT ( 256 )")] - public const int D3D12_TEXTURE_DATA_PITCH_ALIGNMENT = (256); - - [NativeTypeName("#define D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT ( 512 )")] - public const int D3D12_TEXTURE_DATA_PLACEMENT_ALIGNMENT = (512); - - [NativeTypeName("#define D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES ( 65536 )")] - public const int D3D12_TILED_RESOURCE_TILE_SIZE_IN_BYTES = (65536); - - [NativeTypeName("#define D3D12_TRACKED_WORKLOAD_MAX_INSTANCES ( 32 )")] - public const int D3D12_TRACKED_WORKLOAD_MAX_INSTANCES = (32); - - [NativeTypeName("#define D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT ( 4096 )")] - public const int D3D12_UAV_COUNTER_PLACEMENT_ALIGNMENT = (4096); - - [NativeTypeName("#define D3D12_UAV_SLOT_COUNT ( 64 )")] - public const int D3D12_UAV_SLOT_COUNT = (64); - - [NativeTypeName("#define D3D12_UNBOUND_MEMORY_ACCESS_RESULT ( 0 )")] - public const int D3D12_UNBOUND_MEMORY_ACCESS_RESULT = (0); - - [NativeTypeName("#define D3D12_VIDEO_DECODE_MAX_ARGUMENTS ( 10 )")] - public const int D3D12_VIDEO_DECODE_MAX_ARGUMENTS = (10); - - [NativeTypeName("#define D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS ( 4 )")] - public const int D3D12_VIDEO_DECODE_MAX_HISTOGRAM_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT ( 256 )")] - public const int D3D12_VIDEO_DECODE_MIN_BITSTREAM_OFFSET_ALIGNMENT = (256); - - [NativeTypeName("#define D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT ( 256 )")] - public const int D3D12_VIDEO_DECODE_MIN_HISTOGRAM_OFFSET_ALIGNMENT = (256); - - [NativeTypeName("#define D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN ( 0xffffffff )")] - public const uint D3D12_VIDEO_DECODE_STATUS_MACROBLOCKS_AFFECTED_UNKNOWN = (0xffffffff); - - [NativeTypeName("#define D3D12_VIDEO_PROCESS_MAX_FILTERS ( 32 )")] - public const int D3D12_VIDEO_PROCESS_MAX_FILTERS = (32); - - [NativeTypeName("#define D3D12_VIDEO_PROCESS_STEREO_VIEWS ( 2 )")] - public const int D3D12_VIDEO_PROCESS_STEREO_VIEWS = (2); - - [NativeTypeName("#define D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX ( 15 )")] - public const int D3D12_VIEWPORT_AND_SCISSORRECT_MAX_INDEX = (15); - - [NativeTypeName("#define D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE ( 16 )")] - public const int D3D12_VIEWPORT_AND_SCISSORRECT_OBJECT_COUNT_PER_PIPELINE = (16); - - [NativeTypeName("#define D3D12_VIEWPORT_BOUNDS_MAX ( 32767 )")] - public const int D3D12_VIEWPORT_BOUNDS_MAX = (32767); - - [NativeTypeName("#define D3D12_VIEWPORT_BOUNDS_MIN ( -32768 )")] - public const int D3D12_VIEWPORT_BOUNDS_MIN = (-32768); - - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_VS_INPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_VS_INPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_VS_INPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_READS_PER_INST ( 2 )")] - public const int D3D12_VS_INPUT_REGISTER_READS_PER_INST = (2); - - [NativeTypeName("#define D3D12_VS_INPUT_REGISTER_READ_PORTS ( 1 )")] - public const int D3D12_VS_INPUT_REGISTER_READ_PORTS = (1); - - [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COMPONENTS ( 4 )")] - public const int D3D12_VS_OUTPUT_REGISTER_COMPONENTS = (4); - - [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT ( 32 )")] - public const int D3D12_VS_OUTPUT_REGISTER_COMPONENT_BIT_COUNT = (32); - - [NativeTypeName("#define D3D12_VS_OUTPUT_REGISTER_COUNT ( 32 )")] - public const int D3D12_VS_OUTPUT_REGISTER_COUNT = (32); - - [NativeTypeName("#define D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT ( 10 )")] - public const int D3D12_WHQL_CONTEXT_COUNT_FOR_RESOURCE_LIMIT = (10); - - [NativeTypeName("#define D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D12_WHQL_DRAWINDEXED_INDEX_COUNT_2_TO_EXP = (25); - - [NativeTypeName("#define D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP ( 25 )")] - public const int D3D12_WHQL_DRAW_VERTEX_COUNT_2_TO_EXP = (25); - - [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_MASK 0x7")] - public const int D3D12_SHADER_COMPONENT_MAPPING_MASK = 0x7; - - [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_SHIFT 3")] - public const int D3D12_SHADER_COMPONENT_MAPPING_SHIFT = 3; - - [NativeTypeName("#define D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES (1<<(D3D12_SHADER_COMPONENT_MAPPING_SHIFT*4))")] - public const int D3D12_SHADER_COMPONENT_MAPPING_ALWAYS_SET_BIT_AVOIDING_ZEROMEM_MISTAKES = (1 << (3 * 4)); - - [NativeTypeName("#define D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING D3D12_ENCODE_SHADER_4_COMPONENT_MAPPING(0,1,2,3)")] - public const int D3D12_DEFAULT_SHADER_4_COMPONENT_MAPPING = ((((0) & 0x7) | (((1) & 0x7) << 3) | (((2) & 0x7) << (3 * 2)) | (((3) & 0x7) << (3 * 3)) | (1 << (3 * 4)))); - - [NativeTypeName("#define D3D12_FILTER_REDUCTION_TYPE_MASK ( 0x3 )")] - public const int D3D12_FILTER_REDUCTION_TYPE_MASK = (0x3); - - [NativeTypeName("#define D3D12_FILTER_REDUCTION_TYPE_SHIFT ( 7 )")] - public const int D3D12_FILTER_REDUCTION_TYPE_SHIFT = (7); - - [NativeTypeName("#define D3D12_FILTER_TYPE_MASK ( 0x3 )")] - public const int D3D12_FILTER_TYPE_MASK = (0x3); - - [NativeTypeName("#define D3D12_MIN_FILTER_SHIFT ( 4 )")] - public const int D3D12_MIN_FILTER_SHIFT = (4); - - [NativeTypeName("#define D3D12_MAG_FILTER_SHIFT ( 2 )")] - public const int D3D12_MAG_FILTER_SHIFT = (2); - - [NativeTypeName("#define D3D12_MIP_FILTER_SHIFT ( 0 )")] - public const int D3D12_MIP_FILTER_SHIFT = (0); - - [NativeTypeName("#define D3D12_ANISOTROPIC_FILTERING_BIT ( 0x40 )")] - public const int D3D12_ANISOTROPIC_FILTERING_BIT = (0x40); - - [NativeTypeName("#define D3D12_SHADING_RATE_X_AXIS_SHIFT 2")] - public const int D3D12_SHADING_RATE_X_AXIS_SHIFT = 2; - - [NativeTypeName("#define D3D12_SHADING_RATE_VALID_MASK 3")] - public const int D3D12_SHADING_RATE_VALID_MASK = 3; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/D3D12.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/D3D12.cs new file mode 100644 index 0000000000..af64d5b7f0 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/D3D12.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d12sdklayers.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D12 + { + [NativeTypeName("#define D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024")] + public const int D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024; + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/DXGI.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/DXGI.cs new file mode 100644 index 0000000000..b18dd0fdf8 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/DXGI.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d12sdklayers.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("const GUID")] + public static ref readonly Guid DXGI_DEBUG_D3D12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8C, 0xA9, 0x59, 0xCF, + 0x50, 0xA9, + 0x26, 0x43, + 0x91, + 0xEF, + 0x9B, + 0xBA, + 0xA1, + 0x7B, + 0xFD, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/DirectX.cs index 291873f069..c5d55f8af4 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12sdklayers/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12sdklayers/DirectX.cs @@ -36,33 +36,5 @@ public static ref readonly Guid WKPDID_D3DAutoDebugObjectNameW return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); } } - - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_D3D12 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8C, 0xA9, 0x59, 0xCF, - 0x50, 0xA9, - 0x26, 0x43, - 0x91, - 0xEF, - 0x9B, - 0xBA, - 0xA1, - 0x7B, - 0xFD, - 0x95 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("#define D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024")] - public const int D3D12_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024; } } diff --git a/sources/Interop/Windows/DirectX/um/d3d12video/DirectX.cs b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12.cs similarity index 99% rename from sources/Interop/Windows/DirectX/um/d3d12video/DirectX.cs rename to sources/Interop/Windows/DirectX/um/d3d12video/D3D12.cs index 051cf4606a..94d4cb680d 100644 --- a/sources/Interop/Windows/DirectX/um/d3d12video/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/d3d12video/D3D12.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.DirectX { - public static partial class DirectX + public static partial class D3D12 { [NativeTypeName("const GUID")] public static ref readonly Guid D3D12_VIDEO_DECODE_PROFILE_MPEG2 diff --git a/sources/Interop/Windows/DirectX/um/dwrite/DWRITE.cs b/sources/Interop/Windows/DirectX/um/dwrite/DWRITE.cs new file mode 100644 index 0000000000..7ba894f275 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/dwrite/DWRITE.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dwrite.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class DWRITE + { + [NativeTypeName("#define DWRITE_ALPHA_MAX 255")] + public const int DWRITE_ALPHA_MAX = 255; + + [NativeTypeName("#define DWRITE_ERR_BASE 0x5000")] + public const int DWRITE_ERR_BASE = 0x5000; + } +} diff --git a/sources/Interop/Windows/DirectX/um/dwrite/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/um/dwrite/DirectX.Manual.cs index 2cb7635e7e..cdcfb3c3d3 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/DirectX.Manual.cs @@ -4,6 +4,7 @@ // Original source is Copyright © Microsoft. All rights reserved. using TerraFX.Interop.Windows; +using static TerraFX.Interop.DirectX.DWRITE; using static TerraFX.Interop.Windows.FACILITY; using static TerraFX.Interop.Windows.Windows; diff --git a/sources/Interop/Windows/DirectX/um/dwrite/DirectX.cs b/sources/Interop/Windows/DirectX/um/dwrite/DirectX.cs index 0711adbde1..633eb25fd4 100644 --- a/sources/Interop/Windows/DirectX/um/dwrite/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/dwrite/DirectX.cs @@ -13,11 +13,5 @@ public static unsafe partial class DirectX { [DllImport("dwrite", ExactSpelling = true)] public static extern HRESULT DWriteCreateFactory(DWRITE_FACTORY_TYPE factoryType, [NativeTypeName("const IID &")] Guid* iid, IUnknown** factory); - - [NativeTypeName("#define DWRITE_ALPHA_MAX 255")] - public const int DWRITE_ALPHA_MAX = 255; - - [NativeTypeName("#define DWRITE_ERR_BASE 0x5000")] - public const int DWRITE_ERR_BASE = 0x5000; } } diff --git a/sources/Interop/Windows/DirectX/um/dxgidebug/DXGI.cs b/sources/Interop/Windows/DirectX/um/dxgidebug/DXGI.cs new file mode 100644 index 0000000000..41d9d2ca7c --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/dxgidebug/DXGI.cs @@ -0,0 +1,124 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dxgidebug.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("const GUID")] + public static ref readonly Guid DXGI_DEBUG_ALL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x83, 0xE2, 0x8A, 0xE4, + 0x80, 0xDA, + 0x0B, 0x49, + 0x87, + 0xE6, + 0x43, + 0xE9, + 0xA9, + 0xCF, + 0xDA, + 0x08 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid DXGI_DEBUG_DX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFC, 0xD7, 0xCD, 0x35, + 0xB2, 0x13, + 0x1D, 0x42, + 0xA5, + 0xD7, + 0x7E, + 0x44, + 0x51, + 0x28, + 0x7D, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid DXGI_DEBUG_DXGI + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0xDA, 0xCD, 0x25, + 0xC6, 0xB1, + 0xE1, 0x47, + 0xAC, + 0x3E, + 0x98, + 0x87, + 0x5B, + 0x5A, + 0x2E, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid DXGI_DEBUG_APP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0x6E, 0xCD, 0x06, + 0x19, 0x42, + 0xBD, 0x4E, + 0x87, + 0x09, + 0x27, + 0xED, + 0x23, + 0x36, + 0x0C, + 0x62 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define DXGI_DEBUG_BINARY_VERSION ( 1 )")] + public const int DXGI_DEBUG_BINARY_VERSION = (1); + + [NativeTypeName("#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0")] + public const int DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION = 0; + + [NativeTypeName("#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024")] + public const int DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024; + } +} diff --git a/sources/Interop/Windows/DirectX/um/dxgidebug/DirectX.cs b/sources/Interop/Windows/DirectX/um/dxgidebug/DirectX.cs index a9a5095e5b..3251adb316 100644 --- a/sources/Interop/Windows/DirectX/um/dxgidebug/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/dxgidebug/DirectX.cs @@ -4,8 +4,6 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using TerraFX.Interop.Windows; @@ -14,117 +12,8 @@ namespace TerraFX.Interop.DirectX { public static unsafe partial class DirectX { - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_ALL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x83, 0xE2, 0x8A, 0xE4, - 0x80, 0xDA, - 0x0B, 0x49, - 0x87, - 0xE6, - 0x43, - 0xE9, - 0xA9, - 0xCF, - 0xDA, - 0x08 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_DX - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFC, 0xD7, 0xCD, 0x35, - 0xB2, 0x13, - 0x1D, 0x42, - 0xA5, - 0xD7, - 0x7E, - 0x44, - 0x51, - 0x28, - 0x7D, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_DXGI - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA4, 0xDA, 0xCD, 0x25, - 0xC6, 0xB1, - 0xE1, 0x47, - 0xAC, - 0x3E, - 0x98, - 0x87, - 0x5B, - 0x5A, - 0x2E, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid DXGI_DEBUG_APP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0x6E, 0xCD, 0x06, - 0x19, 0x42, - 0xBD, 0x4E, - 0x87, - 0x09, - 0x27, - 0xED, - 0x23, - 0x36, - 0x0C, - 0x62 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [SupportedOSPlatform("windows8.0")] [DllImport("dxgidebug", ExactSpelling = true)] public static extern HRESULT DXGIGetDebugInterface([NativeTypeName("const IID &")] Guid* riid, void** ppDebug); - - [NativeTypeName("#define DXGI_DEBUG_BINARY_VERSION ( 1 )")] - public const int DXGI_DEBUG_BINARY_VERSION = (1); - - [NativeTypeName("#define DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION 0")] - public const int DXGI_INFO_QUEUE_MESSAGE_ID_STRING_FROM_APPLICATION = 0; - - [NativeTypeName("#define DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT 1024")] - public const int DXGI_INFO_QUEUE_DEFAULT_MESSAGE_COUNT_LIMIT = 1024; } } diff --git a/sources/Interop/Windows/DirectX/um/x3daudio/DirectX.cs b/sources/Interop/Windows/DirectX/um/x3daudio/DirectX.cs index 08befb58d8..b3f55444ac 100644 --- a/sources/Interop/Windows/DirectX/um/x3daudio/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/x3daudio/DirectX.cs @@ -59,36 +59,6 @@ public static ref readonly X3DAUDIO_CONE X3DAudioDefault_DirectionalCone [DllImport("X3DAudio1_7", ExactSpelling = true)] public static extern void X3DAudioCalculate([NativeTypeName("const X3DAUDIO_HANDLE")] byte* Instance, [NativeTypeName("const X3DAUDIO_LISTENER *")] X3DAUDIO_LISTENER* pListener, [NativeTypeName("const X3DAUDIO_EMITTER *")] X3DAUDIO_EMITTER* pEmitter, [NativeTypeName("UINT32")] uint Flags, X3DAUDIO_DSP_SETTINGS* pDSPSettings); - [NativeTypeName("#define SPEAKER_MONO SPEAKER_FRONT_CENTER")] - public const int SPEAKER_MONO = 0x00000004; - - [NativeTypeName("#define SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT)")] - public const int SPEAKER_STEREO = (0x00000001 | 0x00000002); - - [NativeTypeName("#define SPEAKER_2POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_LOW_FREQUENCY)")] - public const int SPEAKER_2POINT1 = (0x00000001 | 0x00000002 | 0x00000008); - - [NativeTypeName("#define SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER)")] - public const int SPEAKER_SURROUND = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000100); - - [NativeTypeName("#define SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)")] - public const int SPEAKER_QUAD = (0x00000001 | 0x00000002 | 0x00000010 | 0x00000020); - - [NativeTypeName("#define SPEAKER_4POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)")] - public const int SPEAKER_4POINT1 = (0x00000001 | 0x00000002 | 0x00000008 | 0x00000010 | 0x00000020); - - [NativeTypeName("#define SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)")] - public const int SPEAKER_5POINT1 = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020); - - [NativeTypeName("#define SPEAKER_7POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER)")] - public const int SPEAKER_7POINT1 = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000040 | 0x00000080); - - [NativeTypeName("#define SPEAKER_5POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)")] - public const int SPEAKER_5POINT1_SURROUND = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000200 | 0x00000400); - - [NativeTypeName("#define SPEAKER_7POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)")] - public const int SPEAKER_7POINT1_SURROUND = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000200 | 0x00000400); - [NativeTypeName("#define X3DAUDIO_HANDLE_BYTESIZE 20")] public const int X3DAUDIO_HANDLE_BYTESIZE = 20; diff --git a/sources/Interop/Windows/DirectX/um/x3daudio/SPEAKER.cs b/sources/Interop/Windows/DirectX/um/x3daudio/SPEAKER.cs new file mode 100644 index 0000000000..93c8ede4f0 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/x3daudio/SPEAKER.cs @@ -0,0 +1,42 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/x3daudio.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.DirectX; + +namespace TerraFX.Interop.Windows +{ + public static partial class SPEAKER + { + [NativeTypeName("#define SPEAKER_MONO SPEAKER_FRONT_CENTER")] + public const int SPEAKER_MONO = 0x00000004; + + [NativeTypeName("#define SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT)")] + public const int SPEAKER_STEREO = (0x00000001 | 0x00000002); + + [NativeTypeName("#define SPEAKER_2POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_LOW_FREQUENCY)")] + public const int SPEAKER_2POINT1 = (0x00000001 | 0x00000002 | 0x00000008); + + [NativeTypeName("#define SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER)")] + public const int SPEAKER_SURROUND = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000100); + + [NativeTypeName("#define SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)")] + public const int SPEAKER_QUAD = (0x00000001 | 0x00000002 | 0x00000010 | 0x00000020); + + [NativeTypeName("#define SPEAKER_4POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)")] + public const int SPEAKER_4POINT1 = (0x00000001 | 0x00000002 | 0x00000008 | 0x00000010 | 0x00000020); + + [NativeTypeName("#define SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)")] + public const int SPEAKER_5POINT1 = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020); + + [NativeTypeName("#define SPEAKER_7POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER)")] + public const int SPEAKER_7POINT1 = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000040 | 0x00000080); + + [NativeTypeName("#define SPEAKER_5POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)")] + public const int SPEAKER_5POINT1_SURROUND = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000200 | 0x00000400); + + [NativeTypeName("#define SPEAKER_7POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)")] + public const int SPEAKER_7POINT1_SURROUND = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000200 | 0x00000400); + } +} diff --git a/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.Manual.cs b/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.Manual.cs index 66dcb82a60..e64a17fd20 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.Manual.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.Manual.cs @@ -4,7 +4,6 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using TerraFX.Interop.Windows; @@ -12,756 +11,6 @@ namespace TerraFX.Interop.DirectX { public static unsafe partial class DirectX { - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_DEFAULT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0xF0, 0xD8, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x80, 0x3F, - 0x00, 0x00, 0x00, 0x3F, - 0xF0, 0xD8, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3C, - 0xF0, 0xD8, 0xFF, 0xFF, - 0x0A, 0xD7, 0x23, 0x3D, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_GENERIC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x9C, 0xFF, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0xE1, 0x7A, 0x54, 0x3F, - 0xD6, 0xF5, 0xFF, 0xFF, - 0x42, 0x60, 0xE5, 0x3B, - 0xC8, 0x00, 0x00, 0x00, - 0x58, 0x39, 0x34, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PADDEDCELL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x90, 0xE8, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x7B, 0x14, 0x2E, 0x3E, - 0xCD, 0xCC, 0xCC, 0x3D, - 0x4C, 0xFB, 0xFF, 0xFF, - 0x6F, 0x12, 0x83, 0x3A, - 0xCF, 0x00, 0x00, 0x00, - 0x6F, 0x12, 0x03, 0x3B, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ROOM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x3A, 0xFE, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0xCD, 0xCC, 0xCC, 0x3E, - 0xE1, 0x7A, 0x54, 0x3F, - 0x92, 0xF9, 0xFF, 0xFF, - 0x6F, 0x12, 0x03, 0x3B, - 0x35, 0x00, 0x00, 0x00, - 0xA6, 0x9B, 0x44, 0x3B, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_BATHROOM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x50, 0xFB, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0x71, 0x3D, 0x0A, 0x3F, - 0x8E, 0xFE, 0xFF, 0xFF, - 0x42, 0x60, 0xE5, 0x3B, - 0x06, 0x04, 0x00, 0x00, - 0x58, 0x39, 0x34, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0x70, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LIVINGROOM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x90, 0xE8, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x3F, - 0xCD, 0xCC, 0xCC, 0x3D, - 0xA0, 0xFA, 0xFF, 0xFF, - 0xA6, 0x9B, 0x44, 0x3B, - 0xB0, 0xFB, 0xFF, 0xFF, - 0x6F, 0x12, 0x83, 0x3B, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_STONEROOM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xD4, 0xFE, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x0A, 0xD7, 0x13, 0x40, - 0x0A, 0xD7, 0x23, 0x3F, - 0x39, 0xFD, 0xFF, 0xFF, - 0xA6, 0x9B, 0x44, 0x3C, - 0x53, 0x00, 0x00, 0x00, - 0x96, 0x43, 0x8B, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_AUDITORIUM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x24, 0xFE, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x71, 0x3D, 0x8A, 0x40, - 0x3D, 0x0A, 0x17, 0x3F, - 0xEB, 0xFC, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3C, - 0xDF, 0xFE, 0xFF, 0xFF, - 0x8F, 0xC2, 0xF5, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CONCERTHALL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x0C, 0xFE, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x48, 0xE1, 0x7A, 0x40, - 0x33, 0x33, 0x33, 0x3F, - 0x32, 0xFB, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3C, - 0xFE, 0xFF, 0xFF, 0xFF, - 0x68, 0x91, 0xED, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CAVE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, - 0x71, 0x3D, 0x3A, 0x40, - 0x66, 0x66, 0xA6, 0x3F, - 0xA6, 0xFD, 0xFF, 0xFF, - 0x8F, 0xC2, 0x75, 0x3C, - 0xD2, 0xFE, 0xFF, 0xFF, - 0x58, 0x39, 0xB4, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ARENA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x46, 0xFD, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x14, 0xAE, 0xE7, 0x40, - 0xC3, 0xF5, 0xA8, 0x3E, - 0x72, 0xFB, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3C, - 0x10, 0x00, 0x00, 0x00, - 0x8F, 0xC2, 0xF5, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_HANGAR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x18, 0xFC, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0xCD, 0xCC, 0x20, 0x41, - 0x1F, 0x85, 0x6B, 0x3E, - 0xA6, 0xFD, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3C, - 0xC6, 0x00, 0x00, 0x00, - 0x8F, 0xC2, 0xF5, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CARPETEDHALLWAY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x60, 0xF0, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x9A, 0x99, 0x99, 0x3E, - 0xCD, 0xCC, 0xCC, 0x3D, - 0xD9, 0xF8, 0xFF, 0xFF, - 0x6F, 0x12, 0x03, 0x3B, - 0xA2, 0xF9, 0xFF, 0xFF, - 0x8F, 0xC2, 0xF5, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_HALLWAY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xD4, 0xFE, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0x3D, 0x0A, 0x17, 0x3F, - 0x3D, 0xFB, 0xFF, 0xFF, - 0x42, 0x60, 0xE5, 0x3B, - 0xB9, 0x01, 0x00, 0x00, - 0x58, 0x39, 0x34, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_STONECORRIDOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x13, 0xFF, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0xCD, 0xCC, 0x2C, 0x40, - 0x71, 0x3D, 0x4A, 0x3F, - 0x42, 0xFB, 0xFF, 0xFF, - 0xF4, 0xFD, 0x54, 0x3C, - 0x8B, 0x01, 0x00, 0x00, - 0x0A, 0xD7, 0xA3, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ALLEY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xF2, 0xFE, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0xF6, 0x28, 0x5C, 0x3F, - 0x4C, 0xFB, 0xFF, 0xFF, - 0x42, 0x60, 0xE5, 0x3B, - 0xFC, 0xFF, 0xFF, 0xFF, - 0x58, 0x39, 0x34, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_FOREST - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x1C, 0xF3, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0x71, 0x3D, 0x0A, 0x3F, - 0x00, 0xF6, 0xFF, 0xFF, - 0x54, 0xE3, 0x25, 0x3E, - 0x9B, 0xFD, 0xFF, 0xFF, - 0x58, 0x39, 0xB4, 0x3D, - 0x00, 0x00, 0x9E, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CITY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xE0, 0xFC, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0x1F, 0x85, 0x2B, 0x3F, - 0x1F, 0xF7, 0xFF, 0xFF, - 0x42, 0x60, 0xE5, 0x3B, - 0x57, 0xF7, 0xFF, 0xFF, - 0x58, 0x39, 0x34, 0x3C, - 0x00, 0x00, 0x48, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MOUNTAINS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x3C, 0xF6, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0x3D, 0x0A, 0x57, 0x3E, - 0x24, 0xF5, 0xFF, 0xFF, - 0x9A, 0x99, 0x99, 0x3E, - 0x22, 0xF8, 0xFF, 0xFF, - 0xCD, 0xCC, 0xCC, 0x3D, - 0x00, 0x00, 0xD8, 0x41, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_QUARRY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x18, 0xFC, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0xE1, 0x7A, 0x54, 0x3F, - 0xF0, 0xD8, 0xFF, 0xFF, - 0x23, 0xDB, 0x79, 0x3D, - 0xF4, 0x01, 0x00, 0x00, - 0xCD, 0xCC, 0xCC, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PLAIN - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x30, 0xF8, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0x00, 0x00, 0x00, 0x3F, - 0x5E, 0xF6, 0xFF, 0xFF, - 0xC7, 0x4B, 0x37, 0x3E, - 0x2E, 0xF6, 0xFF, 0xFF, - 0xCD, 0xCC, 0xCC, 0x3D, - 0x00, 0x00, 0xA8, 0x41, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PARKINGLOT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0x00, 0x00, - 0x33, 0x33, 0xD3, 0x3F, - 0x00, 0x00, 0xC0, 0x3F, - 0xAD, 0xFA, 0xFF, 0xFF, - 0x6F, 0x12, 0x03, 0x3C, - 0x7F, 0xFB, 0xFF, 0xFF, - 0xA6, 0x9B, 0x44, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_SEWERPIPE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x18, 0xFC, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x0A, 0xD7, 0x33, 0x40, - 0x29, 0x5C, 0x0F, 0x3E, - 0xAD, 0x01, 0x00, 0x00, - 0x42, 0x60, 0x65, 0x3C, - 0x88, 0x02, 0x00, 0x00, - 0x31, 0x08, 0xAC, 0x3C, - 0x00, 0x00, 0xA0, 0x42, - 0x00, 0x00, 0x70, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_UNDERWATER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x60, 0xF0, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x52, 0xB8, 0xBE, 0x3F, - 0xCD, 0xCC, 0xCC, 0x3D, - 0x3F, 0xFE, 0xFF, 0xFF, - 0x42, 0x60, 0xE5, 0x3B, - 0xA4, 0x06, 0x00, 0x00, - 0x58, 0x39, 0x34, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_SMALLROOM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xA8, 0xFD, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0xCD, 0xCC, 0x8C, 0x3F, - 0xE1, 0x7A, 0x54, 0x3F, - 0x70, 0xFE, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3B, - 0xF4, 0x01, 0x00, 0x00, - 0x0A, 0xD7, 0x23, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MEDIUMROOM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xA8, 0xFD, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x66, 0x66, 0xA6, 0x3F, - 0xE1, 0x7A, 0x54, 0x3F, - 0x18, 0xFC, 0xFF, 0xFF, - 0x0A, 0xD7, 0x23, 0x3C, - 0x38, 0xFF, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LARGEROOM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xA8, 0xFD, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, 0xC0, 0x3F, - 0xE1, 0x7A, 0x54, 0x3F, - 0xC0, 0xF9, 0xFF, 0xFF, - 0x0A, 0xD7, 0xA3, 0x3C, - 0x18, 0xFC, 0xFF, 0xFF, - 0x0A, 0xD7, 0x23, 0x3D, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MEDIUMHALL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xA8, 0xFD, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x66, 0x66, 0xE6, 0x3F, - 0x33, 0x33, 0x33, 0x3F, - 0xEC, 0xFA, 0xFF, 0xFF, - 0x8F, 0xC2, 0x75, 0x3C, - 0xE0, 0xFC, 0xFF, 0xFF, - 0x8F, 0xC2, 0xF5, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LARGEHALL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0xA8, 0xFD, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x66, 0x66, 0xE6, 0x3F, - 0x33, 0x33, 0x33, 0x3F, - 0x30, 0xF8, 0xFF, 0xFF, - 0x8F, 0xC2, 0xF5, 0x3C, - 0x88, 0xFA, 0xFF, 0xFF, - 0x8F, 0xC2, 0x75, 0x3D, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PLATE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0xC8, 0x42, - 0x18, 0xFC, 0xFF, 0xFF, - 0x38, 0xFF, 0xFF, 0xFF, - 0x00, 0x00, 0x00, 0x00, - 0x66, 0x66, 0xA6, 0x3F, - 0x66, 0x66, 0x66, 0x3F, - 0x00, 0x00, 0x00, 0x00, - 0x6F, 0x12, 0x03, 0x3B, - 0x00, 0x00, 0x00, 0x00, - 0x0A, 0xD7, 0x23, 0x3C, - 0x00, 0x00, 0xC8, 0x42, - 0x00, 0x00, 0x96, 0x42, - 0x00, 0x40, 0x9C, 0x45 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - public static HRESULT XAudio2CreateVolumeMeter([NativeTypeName("IUnknown **")] IUnknown** ppApo, [NativeTypeName("UINT32")] uint Flags = 0) { return CreateAudioVolumeMeter(ppApo); diff --git a/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.cs b/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.cs index b14b611edb..b098f3b384 100644 --- a/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.cs +++ b/sources/Interop/Windows/DirectX/um/xaudio2fx/DirectX.cs @@ -15,197 +15,5 @@ public static unsafe partial class DirectX [DllImport("xaudio2_9", ExactSpelling = true)] public static extern HRESULT CreateAudioReverb(IUnknown** ppApo); - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_FRAMERATE 20000")] - public const int XAUDIO2FX_REVERB_MIN_FRAMERATE = 20000; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_FRAMERATE 48000")] - public const int XAUDIO2FX_REVERB_MAX_FRAMERATE = 48000; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_WET_DRY_MIX 0.0f")] - public const float XAUDIO2FX_REVERB_MIN_WET_DRY_MIX = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REFLECTIONS_DELAY 0")] - public const int XAUDIO2FX_REVERB_MIN_REFLECTIONS_DELAY = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REVERB_DELAY 0")] - public const int XAUDIO2FX_REVERB_MIN_REVERB_DELAY = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REAR_DELAY 0")] - public const int XAUDIO2FX_REVERB_MIN_REAR_DELAY = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_7POINT1_SIDE_DELAY 0")] - public const int XAUDIO2FX_REVERB_MIN_7POINT1_SIDE_DELAY = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_7POINT1_REAR_DELAY 0")] - public const int XAUDIO2FX_REVERB_MIN_7POINT1_REAR_DELAY = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_POSITION 0")] - public const int XAUDIO2FX_REVERB_MIN_POSITION = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_DIFFUSION 0")] - public const int XAUDIO2FX_REVERB_MIN_DIFFUSION = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_LOW_EQ_GAIN 0")] - public const int XAUDIO2FX_REVERB_MIN_LOW_EQ_GAIN = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_LOW_EQ_CUTOFF 0")] - public const int XAUDIO2FX_REVERB_MIN_LOW_EQ_CUTOFF = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_HIGH_EQ_GAIN 0")] - public const int XAUDIO2FX_REVERB_MIN_HIGH_EQ_GAIN = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_HIGH_EQ_CUTOFF 0")] - public const int XAUDIO2FX_REVERB_MIN_HIGH_EQ_CUTOFF = 0; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_FILTER_FREQ 20.0f")] - public const float XAUDIO2FX_REVERB_MIN_ROOM_FILTER_FREQ = 20.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_FILTER_MAIN -100.0f")] - public const float XAUDIO2FX_REVERB_MIN_ROOM_FILTER_MAIN = -100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_FILTER_HF -100.0f")] - public const float XAUDIO2FX_REVERB_MIN_ROOM_FILTER_HF = -100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REFLECTIONS_GAIN -100.0f")] - public const float XAUDIO2FX_REVERB_MIN_REFLECTIONS_GAIN = -100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REVERB_GAIN -100.0f")] - public const float XAUDIO2FX_REVERB_MIN_REVERB_GAIN = -100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_DECAY_TIME 0.1f")] - public const float XAUDIO2FX_REVERB_MIN_DECAY_TIME = 0.1f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_DENSITY 0.0f")] - public const float XAUDIO2FX_REVERB_MIN_DENSITY = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_SIZE 0.0f")] - public const float XAUDIO2FX_REVERB_MIN_ROOM_SIZE = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_WET_DRY_MIX 100.0f")] - public const float XAUDIO2FX_REVERB_MAX_WET_DRY_MIX = 100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REFLECTIONS_DELAY 300")] - public const int XAUDIO2FX_REVERB_MAX_REFLECTIONS_DELAY = 300; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REVERB_DELAY 85")] - public const int XAUDIO2FX_REVERB_MAX_REVERB_DELAY = 85; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REAR_DELAY 5")] - public const int XAUDIO2FX_REVERB_MAX_REAR_DELAY = 5; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_7POINT1_SIDE_DELAY 5")] - public const int XAUDIO2FX_REVERB_MAX_7POINT1_SIDE_DELAY = 5; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_7POINT1_REAR_DELAY 20")] - public const int XAUDIO2FX_REVERB_MAX_7POINT1_REAR_DELAY = 20; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_POSITION 30")] - public const int XAUDIO2FX_REVERB_MAX_POSITION = 30; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_DIFFUSION 15")] - public const int XAUDIO2FX_REVERB_MAX_DIFFUSION = 15; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_LOW_EQ_GAIN 12")] - public const int XAUDIO2FX_REVERB_MAX_LOW_EQ_GAIN = 12; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_LOW_EQ_CUTOFF 9")] - public const int XAUDIO2FX_REVERB_MAX_LOW_EQ_CUTOFF = 9; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_HIGH_EQ_GAIN 8")] - public const int XAUDIO2FX_REVERB_MAX_HIGH_EQ_GAIN = 8; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_HIGH_EQ_CUTOFF 14")] - public const int XAUDIO2FX_REVERB_MAX_HIGH_EQ_CUTOFF = 14; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_FILTER_FREQ 20000.0f")] - public const float XAUDIO2FX_REVERB_MAX_ROOM_FILTER_FREQ = 20000.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_FILTER_MAIN 0.0f")] - public const float XAUDIO2FX_REVERB_MAX_ROOM_FILTER_MAIN = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_FILTER_HF 0.0f")] - public const float XAUDIO2FX_REVERB_MAX_ROOM_FILTER_HF = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REFLECTIONS_GAIN 20.0f")] - public const float XAUDIO2FX_REVERB_MAX_REFLECTIONS_GAIN = 20.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REVERB_GAIN 20.0f")] - public const float XAUDIO2FX_REVERB_MAX_REVERB_GAIN = 20.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_DENSITY 100.0f")] - public const float XAUDIO2FX_REVERB_MAX_DENSITY = 100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_SIZE 100.0f")] - public const float XAUDIO2FX_REVERB_MAX_ROOM_SIZE = 100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_WET_DRY_MIX 100.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_WET_DRY_MIX = 100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_DELAY 5")] - public const int XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_DELAY = 5; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REVERB_DELAY 5")] - public const int XAUDIO2FX_REVERB_DEFAULT_REVERB_DELAY = 5; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REAR_DELAY 5")] - public const int XAUDIO2FX_REVERB_DEFAULT_REAR_DELAY = 5; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_7POINT1_SIDE_DELAY 5")] - public const int XAUDIO2FX_REVERB_DEFAULT_7POINT1_SIDE_DELAY = 5; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_7POINT1_REAR_DELAY 20")] - public const int XAUDIO2FX_REVERB_DEFAULT_7POINT1_REAR_DELAY = 20; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_POSITION 6")] - public const int XAUDIO2FX_REVERB_DEFAULT_POSITION = 6; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_POSITION_MATRIX 27")] - public const int XAUDIO2FX_REVERB_DEFAULT_POSITION_MATRIX = 27; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_EARLY_DIFFUSION 8")] - public const int XAUDIO2FX_REVERB_DEFAULT_EARLY_DIFFUSION = 8; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_LATE_DIFFUSION 8")] - public const int XAUDIO2FX_REVERB_DEFAULT_LATE_DIFFUSION = 8; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_GAIN 8")] - public const int XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_GAIN = 8; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_CUTOFF 4")] - public const int XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_CUTOFF = 4; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_GAIN 8")] - public const int XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_GAIN = 8; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_CUTOFF 4")] - public const int XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_CUTOFF = 4; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_FREQ 5000.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_FREQ = 5000.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_MAIN 0.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_MAIN = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_HF 0.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_HF = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_GAIN 0.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_GAIN = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REVERB_GAIN 0.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_REVERB_GAIN = 0.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_DECAY_TIME 1.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_DECAY_TIME = 1.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_DENSITY 100.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_DENSITY = 100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_SIZE 100.0f")] - public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_SIZE = 100.0f; - - [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_DISABLE_LATE_FIELD FALSE")] - public const int XAUDIO2FX_REVERB_DEFAULT_DISABLE_LATE_FIELD = 0; } } diff --git a/sources/Interop/Windows/DirectX/um/xaudio2fx/XAUDIO2FX.Manual.cs b/sources/Interop/Windows/DirectX/um/xaudio2fx/XAUDIO2FX.Manual.cs new file mode 100644 index 0000000000..490f458d38 --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/xaudio2fx/XAUDIO2FX.Manual.cs @@ -0,0 +1,764 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/xaudio2fx.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.DirectX +{ + public static unsafe partial class XAUDIO2FX + { + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_DEFAULT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0xF0, 0xD8, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x80, 0x3F, + 0x00, 0x00, 0x00, 0x3F, + 0xF0, 0xD8, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3C, + 0xF0, 0xD8, 0xFF, 0xFF, + 0x0A, 0xD7, 0x23, 0x3D, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_GENERIC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x9C, 0xFF, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0xE1, 0x7A, 0x54, 0x3F, + 0xD6, 0xF5, 0xFF, 0xFF, + 0x42, 0x60, 0xE5, 0x3B, + 0xC8, 0x00, 0x00, 0x00, + 0x58, 0x39, 0x34, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PADDEDCELL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x90, 0xE8, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x7B, 0x14, 0x2E, 0x3E, + 0xCD, 0xCC, 0xCC, 0x3D, + 0x4C, 0xFB, 0xFF, 0xFF, + 0x6F, 0x12, 0x83, 0x3A, + 0xCF, 0x00, 0x00, 0x00, + 0x6F, 0x12, 0x03, 0x3B, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x3A, 0xFE, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0xCD, 0xCC, 0xCC, 0x3E, + 0xE1, 0x7A, 0x54, 0x3F, + 0x92, 0xF9, 0xFF, 0xFF, + 0x6F, 0x12, 0x03, 0x3B, + 0x35, 0x00, 0x00, 0x00, + 0xA6, 0x9B, 0x44, 0x3B, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_BATHROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x50, 0xFB, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0x71, 0x3D, 0x0A, 0x3F, + 0x8E, 0xFE, 0xFF, 0xFF, + 0x42, 0x60, 0xE5, 0x3B, + 0x06, 0x04, 0x00, 0x00, + 0x58, 0x39, 0x34, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0x70, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LIVINGROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x90, 0xE8, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x3F, + 0xCD, 0xCC, 0xCC, 0x3D, + 0xA0, 0xFA, 0xFF, 0xFF, + 0xA6, 0x9B, 0x44, 0x3B, + 0xB0, 0xFB, 0xFF, 0xFF, + 0x6F, 0x12, 0x83, 0x3B, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_STONEROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xD4, 0xFE, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x0A, 0xD7, 0x13, 0x40, + 0x0A, 0xD7, 0x23, 0x3F, + 0x39, 0xFD, 0xFF, 0xFF, + 0xA6, 0x9B, 0x44, 0x3C, + 0x53, 0x00, 0x00, 0x00, + 0x96, 0x43, 0x8B, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_AUDITORIUM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x24, 0xFE, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x71, 0x3D, 0x8A, 0x40, + 0x3D, 0x0A, 0x17, 0x3F, + 0xEB, 0xFC, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3C, + 0xDF, 0xFE, 0xFF, 0xFF, + 0x8F, 0xC2, 0xF5, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CONCERTHALL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x0C, 0xFE, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x48, 0xE1, 0x7A, 0x40, + 0x33, 0x33, 0x33, 0x3F, + 0x32, 0xFB, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3C, + 0xFE, 0xFF, 0xFF, 0xFF, + 0x68, 0x91, 0xED, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CAVE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, + 0x71, 0x3D, 0x3A, 0x40, + 0x66, 0x66, 0xA6, 0x3F, + 0xA6, 0xFD, 0xFF, 0xFF, + 0x8F, 0xC2, 0x75, 0x3C, + 0xD2, 0xFE, 0xFF, 0xFF, + 0x58, 0x39, 0xB4, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ARENA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x46, 0xFD, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x14, 0xAE, 0xE7, 0x40, + 0xC3, 0xF5, 0xA8, 0x3E, + 0x72, 0xFB, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3C, + 0x10, 0x00, 0x00, 0x00, + 0x8F, 0xC2, 0xF5, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_HANGAR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x18, 0xFC, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0xCD, 0xCC, 0x20, 0x41, + 0x1F, 0x85, 0x6B, 0x3E, + 0xA6, 0xFD, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3C, + 0xC6, 0x00, 0x00, 0x00, + 0x8F, 0xC2, 0xF5, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CARPETEDHALLWAY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x60, 0xF0, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x9A, 0x99, 0x99, 0x3E, + 0xCD, 0xCC, 0xCC, 0x3D, + 0xD9, 0xF8, 0xFF, 0xFF, + 0x6F, 0x12, 0x03, 0x3B, + 0xA2, 0xF9, 0xFF, 0xFF, + 0x8F, 0xC2, 0xF5, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_HALLWAY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xD4, 0xFE, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0x3D, 0x0A, 0x17, 0x3F, + 0x3D, 0xFB, 0xFF, 0xFF, + 0x42, 0x60, 0xE5, 0x3B, + 0xB9, 0x01, 0x00, 0x00, + 0x58, 0x39, 0x34, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_STONECORRIDOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x13, 0xFF, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0xCD, 0xCC, 0x2C, 0x40, + 0x71, 0x3D, 0x4A, 0x3F, + 0x42, 0xFB, 0xFF, 0xFF, + 0xF4, 0xFD, 0x54, 0x3C, + 0x8B, 0x01, 0x00, 0x00, + 0x0A, 0xD7, 0xA3, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_ALLEY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xF2, 0xFE, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0xF6, 0x28, 0x5C, 0x3F, + 0x4C, 0xFB, 0xFF, 0xFF, + 0x42, 0x60, 0xE5, 0x3B, + 0xFC, 0xFF, 0xFF, 0xFF, + 0x58, 0x39, 0x34, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_FOREST + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x1C, 0xF3, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0x71, 0x3D, 0x0A, 0x3F, + 0x00, 0xF6, 0xFF, 0xFF, + 0x54, 0xE3, 0x25, 0x3E, + 0x9B, 0xFD, 0xFF, 0xFF, + 0x58, 0x39, 0xB4, 0x3D, + 0x00, 0x00, 0x9E, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_CITY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xE0, 0xFC, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0x1F, 0x85, 0x2B, 0x3F, + 0x1F, 0xF7, 0xFF, 0xFF, + 0x42, 0x60, 0xE5, 0x3B, + 0x57, 0xF7, 0xFF, 0xFF, + 0x58, 0x39, 0x34, 0x3C, + 0x00, 0x00, 0x48, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MOUNTAINS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x3C, 0xF6, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0x3D, 0x0A, 0x57, 0x3E, + 0x24, 0xF5, 0xFF, 0xFF, + 0x9A, 0x99, 0x99, 0x3E, + 0x22, 0xF8, 0xFF, 0xFF, + 0xCD, 0xCC, 0xCC, 0x3D, + 0x00, 0x00, 0xD8, 0x41, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_QUARRY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x18, 0xFC, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0xE1, 0x7A, 0x54, 0x3F, + 0xF0, 0xD8, 0xFF, 0xFF, + 0x23, 0xDB, 0x79, 0x3D, + 0xF4, 0x01, 0x00, 0x00, + 0xCD, 0xCC, 0xCC, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PLAIN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x30, 0xF8, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0x00, 0x00, 0x00, 0x3F, + 0x5E, 0xF6, 0xFF, 0xFF, + 0xC7, 0x4B, 0x37, 0x3E, + 0x2E, 0xF6, 0xFF, 0xFF, + 0xCD, 0xCC, 0xCC, 0x3D, + 0x00, 0x00, 0xA8, 0x41, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PARKINGLOT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0x00, 0x00, + 0x33, 0x33, 0xD3, 0x3F, + 0x00, 0x00, 0xC0, 0x3F, + 0xAD, 0xFA, 0xFF, 0xFF, + 0x6F, 0x12, 0x03, 0x3C, + 0x7F, 0xFB, 0xFF, 0xFF, + 0xA6, 0x9B, 0x44, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_SEWERPIPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x18, 0xFC, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x0A, 0xD7, 0x33, 0x40, + 0x29, 0x5C, 0x0F, 0x3E, + 0xAD, 0x01, 0x00, 0x00, + 0x42, 0x60, 0x65, 0x3C, + 0x88, 0x02, 0x00, 0x00, + 0x31, 0x08, 0xAC, 0x3C, + 0x00, 0x00, 0xA0, 0x42, + 0x00, 0x00, 0x70, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_UNDERWATER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x60, 0xF0, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x52, 0xB8, 0xBE, 0x3F, + 0xCD, 0xCC, 0xCC, 0x3D, + 0x3F, 0xFE, 0xFF, 0xFF, + 0x42, 0x60, 0xE5, 0x3B, + 0xA4, 0x06, 0x00, 0x00, + 0x58, 0x39, 0x34, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_SMALLROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xA8, 0xFD, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0xCD, 0xCC, 0x8C, 0x3F, + 0xE1, 0x7A, 0x54, 0x3F, + 0x70, 0xFE, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3B, + 0xF4, 0x01, 0x00, 0x00, + 0x0A, 0xD7, 0x23, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MEDIUMROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xA8, 0xFD, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x66, 0x66, 0xA6, 0x3F, + 0xE1, 0x7A, 0x54, 0x3F, + 0x18, 0xFC, 0xFF, 0xFF, + 0x0A, 0xD7, 0x23, 0x3C, + 0x38, 0xFF, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LARGEROOM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xA8, 0xFD, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, 0xC0, 0x3F, + 0xE1, 0x7A, 0x54, 0x3F, + 0xC0, 0xF9, 0xFF, 0xFF, + 0x0A, 0xD7, 0xA3, 0x3C, + 0x18, 0xFC, 0xFF, 0xFF, + 0x0A, 0xD7, 0x23, 0x3D, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_MEDIUMHALL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xA8, 0xFD, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x66, 0x66, 0xE6, 0x3F, + 0x33, 0x33, 0x33, 0x3F, + 0xEC, 0xFA, 0xFF, 0xFF, + 0x8F, 0xC2, 0x75, 0x3C, + 0xE0, 0xFC, 0xFF, 0xFF, + 0x8F, 0xC2, 0xF5, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_LARGEHALL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0xA8, 0xFD, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x66, 0x66, 0xE6, 0x3F, + 0x33, 0x33, 0x33, 0x3F, + 0x30, 0xF8, 0xFF, 0xFF, + 0x8F, 0xC2, 0xF5, 0x3C, + 0x88, 0xFA, 0xFF, 0xFF, + 0x8F, 0xC2, 0x75, 0x3D, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly XAUDIO2FX_REVERB_I3DL2_PARAMETERS XAUDIO2FX_I3DL2_PRESET_PLATE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0xC8, 0x42, + 0x18, 0xFC, 0xFF, 0xFF, + 0x38, 0xFF, 0xFF, 0xFF, + 0x00, 0x00, 0x00, 0x00, + 0x66, 0x66, 0xA6, 0x3F, + 0x66, 0x66, 0x66, 0x3F, + 0x00, 0x00, 0x00, 0x00, + 0x6F, 0x12, 0x03, 0x3B, + 0x00, 0x00, 0x00, 0x00, + 0x0A, 0xD7, 0x23, 0x3C, + 0x00, 0x00, 0xC8, 0x42, + 0x00, 0x00, 0x96, 0x42, + 0x00, 0x40, 0x9C, 0x45 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/DirectX/um/xaudio2fx/XAUDIO2FX.cs b/sources/Interop/Windows/DirectX/um/xaudio2fx/XAUDIO2FX.cs new file mode 100644 index 0000000000..84913270df --- /dev/null +++ b/sources/Interop/Windows/DirectX/um/xaudio2fx/XAUDIO2FX.cs @@ -0,0 +1,202 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/xaudio2fx.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.DirectX +{ + public static partial class XAUDIO2FX + { + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_FRAMERATE 20000")] + public const int XAUDIO2FX_REVERB_MIN_FRAMERATE = 20000; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_FRAMERATE 48000")] + public const int XAUDIO2FX_REVERB_MAX_FRAMERATE = 48000; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_WET_DRY_MIX 0.0f")] + public const float XAUDIO2FX_REVERB_MIN_WET_DRY_MIX = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REFLECTIONS_DELAY 0")] + public const int XAUDIO2FX_REVERB_MIN_REFLECTIONS_DELAY = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REVERB_DELAY 0")] + public const int XAUDIO2FX_REVERB_MIN_REVERB_DELAY = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REAR_DELAY 0")] + public const int XAUDIO2FX_REVERB_MIN_REAR_DELAY = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_7POINT1_SIDE_DELAY 0")] + public const int XAUDIO2FX_REVERB_MIN_7POINT1_SIDE_DELAY = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_7POINT1_REAR_DELAY 0")] + public const int XAUDIO2FX_REVERB_MIN_7POINT1_REAR_DELAY = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_POSITION 0")] + public const int XAUDIO2FX_REVERB_MIN_POSITION = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_DIFFUSION 0")] + public const int XAUDIO2FX_REVERB_MIN_DIFFUSION = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_LOW_EQ_GAIN 0")] + public const int XAUDIO2FX_REVERB_MIN_LOW_EQ_GAIN = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_LOW_EQ_CUTOFF 0")] + public const int XAUDIO2FX_REVERB_MIN_LOW_EQ_CUTOFF = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_HIGH_EQ_GAIN 0")] + public const int XAUDIO2FX_REVERB_MIN_HIGH_EQ_GAIN = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_HIGH_EQ_CUTOFF 0")] + public const int XAUDIO2FX_REVERB_MIN_HIGH_EQ_CUTOFF = 0; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_FILTER_FREQ 20.0f")] + public const float XAUDIO2FX_REVERB_MIN_ROOM_FILTER_FREQ = 20.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_FILTER_MAIN -100.0f")] + public const float XAUDIO2FX_REVERB_MIN_ROOM_FILTER_MAIN = -100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_FILTER_HF -100.0f")] + public const float XAUDIO2FX_REVERB_MIN_ROOM_FILTER_HF = -100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REFLECTIONS_GAIN -100.0f")] + public const float XAUDIO2FX_REVERB_MIN_REFLECTIONS_GAIN = -100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_REVERB_GAIN -100.0f")] + public const float XAUDIO2FX_REVERB_MIN_REVERB_GAIN = -100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_DECAY_TIME 0.1f")] + public const float XAUDIO2FX_REVERB_MIN_DECAY_TIME = 0.1f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_DENSITY 0.0f")] + public const float XAUDIO2FX_REVERB_MIN_DENSITY = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MIN_ROOM_SIZE 0.0f")] + public const float XAUDIO2FX_REVERB_MIN_ROOM_SIZE = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_WET_DRY_MIX 100.0f")] + public const float XAUDIO2FX_REVERB_MAX_WET_DRY_MIX = 100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REFLECTIONS_DELAY 300")] + public const int XAUDIO2FX_REVERB_MAX_REFLECTIONS_DELAY = 300; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REVERB_DELAY 85")] + public const int XAUDIO2FX_REVERB_MAX_REVERB_DELAY = 85; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REAR_DELAY 5")] + public const int XAUDIO2FX_REVERB_MAX_REAR_DELAY = 5; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_7POINT1_SIDE_DELAY 5")] + public const int XAUDIO2FX_REVERB_MAX_7POINT1_SIDE_DELAY = 5; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_7POINT1_REAR_DELAY 20")] + public const int XAUDIO2FX_REVERB_MAX_7POINT1_REAR_DELAY = 20; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_POSITION 30")] + public const int XAUDIO2FX_REVERB_MAX_POSITION = 30; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_DIFFUSION 15")] + public const int XAUDIO2FX_REVERB_MAX_DIFFUSION = 15; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_LOW_EQ_GAIN 12")] + public const int XAUDIO2FX_REVERB_MAX_LOW_EQ_GAIN = 12; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_LOW_EQ_CUTOFF 9")] + public const int XAUDIO2FX_REVERB_MAX_LOW_EQ_CUTOFF = 9; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_HIGH_EQ_GAIN 8")] + public const int XAUDIO2FX_REVERB_MAX_HIGH_EQ_GAIN = 8; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_HIGH_EQ_CUTOFF 14")] + public const int XAUDIO2FX_REVERB_MAX_HIGH_EQ_CUTOFF = 14; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_FILTER_FREQ 20000.0f")] + public const float XAUDIO2FX_REVERB_MAX_ROOM_FILTER_FREQ = 20000.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_FILTER_MAIN 0.0f")] + public const float XAUDIO2FX_REVERB_MAX_ROOM_FILTER_MAIN = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_FILTER_HF 0.0f")] + public const float XAUDIO2FX_REVERB_MAX_ROOM_FILTER_HF = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REFLECTIONS_GAIN 20.0f")] + public const float XAUDIO2FX_REVERB_MAX_REFLECTIONS_GAIN = 20.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_REVERB_GAIN 20.0f")] + public const float XAUDIO2FX_REVERB_MAX_REVERB_GAIN = 20.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_DENSITY 100.0f")] + public const float XAUDIO2FX_REVERB_MAX_DENSITY = 100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_MAX_ROOM_SIZE 100.0f")] + public const float XAUDIO2FX_REVERB_MAX_ROOM_SIZE = 100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_WET_DRY_MIX 100.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_WET_DRY_MIX = 100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_DELAY 5")] + public const int XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_DELAY = 5; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REVERB_DELAY 5")] + public const int XAUDIO2FX_REVERB_DEFAULT_REVERB_DELAY = 5; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REAR_DELAY 5")] + public const int XAUDIO2FX_REVERB_DEFAULT_REAR_DELAY = 5; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_7POINT1_SIDE_DELAY 5")] + public const int XAUDIO2FX_REVERB_DEFAULT_7POINT1_SIDE_DELAY = 5; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_7POINT1_REAR_DELAY 20")] + public const int XAUDIO2FX_REVERB_DEFAULT_7POINT1_REAR_DELAY = 20; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_POSITION 6")] + public const int XAUDIO2FX_REVERB_DEFAULT_POSITION = 6; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_POSITION_MATRIX 27")] + public const int XAUDIO2FX_REVERB_DEFAULT_POSITION_MATRIX = 27; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_EARLY_DIFFUSION 8")] + public const int XAUDIO2FX_REVERB_DEFAULT_EARLY_DIFFUSION = 8; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_LATE_DIFFUSION 8")] + public const int XAUDIO2FX_REVERB_DEFAULT_LATE_DIFFUSION = 8; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_GAIN 8")] + public const int XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_GAIN = 8; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_CUTOFF 4")] + public const int XAUDIO2FX_REVERB_DEFAULT_LOW_EQ_CUTOFF = 4; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_GAIN 8")] + public const int XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_GAIN = 8; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_CUTOFF 4")] + public const int XAUDIO2FX_REVERB_DEFAULT_HIGH_EQ_CUTOFF = 4; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_FREQ 5000.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_FREQ = 5000.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_MAIN 0.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_MAIN = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_HF 0.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_FILTER_HF = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_GAIN 0.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_REFLECTIONS_GAIN = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_REVERB_GAIN 0.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_REVERB_GAIN = 0.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_DECAY_TIME 1.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_DECAY_TIME = 1.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_DENSITY 100.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_DENSITY = 100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_ROOM_SIZE 100.0f")] + public const float XAUDIO2FX_REVERB_DEFAULT_ROOM_SIZE = 100.0f; + + [NativeTypeName("#define XAUDIO2FX_REVERB_DEFAULT_DISABLE_LATE_FIELD FALSE")] + public const int XAUDIO2FX_REVERB_DEFAULT_DISABLE_LATE_FIELD = 0; + } +} diff --git a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorExecutionType.cs b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorExecutionType.cs index 607e8c14d7..c540f4bcd1 100644 --- a/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorExecutionType.cs +++ b/sources/Interop/Windows/WinRT/um/MLOperatorAuthor/MLOperatorExecutionType.cs @@ -3,6 +3,8 @@ // Ported from um/MLOperatorAuthor.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using TerraFX.Interop.DirectX; + namespace TerraFX.Interop.WinRT { [NativeTypeName("uint32_t")] diff --git a/sources/Interop/Windows/WinRT/winrt/DocumentSource/WinRT.cs b/sources/Interop/Windows/WinRT/winrt/DocumentSource/WinRT.cs deleted file mode 100644 index b9250d3d17..0000000000 --- a/sources/Interop/Windows/WinRT/winrt/DocumentSource/WinRT.cs +++ /dev/null @@ -1,13 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from winrt/DocumentSource.h in the Windows SDK for Windows 10.0.20348.0 -// Original source is Copyright © Microsoft. All rights reserved. - -namespace TerraFX.Interop.WinRT -{ - public static partial class WinRT - { - [NativeTypeName("#define JOB_PAGE_APPLICATION_DEFINED ( ( UINT32 )-1 )")] - public const uint JOB_PAGE_APPLICATION_DEFINED = unchecked((uint)(-1)); - } -} diff --git a/sources/Interop/Windows/WinRT/winrt/roerrorapi/EXCEPTION.cs b/sources/Interop/Windows/WinRT/winrt/roerrorapi/EXCEPTION.cs new file mode 100644 index 0000000000..45ad5ee8e6 --- /dev/null +++ b/sources/Interop/Windows/WinRT/winrt/roerrorapi/EXCEPTION.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from winrt/roerrorapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.WinRT; + +namespace TerraFX.Interop.Windows +{ + public static partial class EXCEPTION + { + [NativeTypeName("#define EXCEPTION_RO_ORIGINATEERROR ((DWORD)((0x1 << 30) | (FACILITY_WINDOWS << 16) | 0x201))")] + public const uint EXCEPTION_RO_ORIGINATEERROR = ((uint)((0x1 << 30) | (8 << 16) | 0x201)); + + [NativeTypeName("#define EXCEPTION_RO_TRANSFORMERROR ((DWORD)((0x1 << 30) | (FACILITY_WINDOWS << 16) | 0x202))")] + public const uint EXCEPTION_RO_TRANSFORMERROR = ((uint)((0x1 << 30) | (8 << 16) | 0x202)); + } +} diff --git a/sources/Interop/Windows/WinRT/winrt/roerrorapi/WinRT.cs b/sources/Interop/Windows/WinRT/winrt/roerrorapi/WinRT.cs index 757d49bf6a..b5c17a0100 100644 --- a/sources/Interop/Windows/WinRT/winrt/roerrorapi/WinRT.cs +++ b/sources/Interop/Windows/WinRT/winrt/roerrorapi/WinRT.cs @@ -113,11 +113,5 @@ public static BOOL TransformError(HRESULT oldError, HRESULT newError, HSTRING me [DllImport("combase", ExactSpelling = true)] public static extern BOOL IsErrorPropagationEnabled(); - - [NativeTypeName("#define EXCEPTION_RO_ORIGINATEERROR ((DWORD)((0x1 << 30) | (FACILITY_WINDOWS << 16) | 0x201))")] - public const uint EXCEPTION_RO_ORIGINATEERROR = ((uint)((0x1 << 30) | (8 << 16) | 0x201)); - - [NativeTypeName("#define EXCEPTION_RO_TRANSFORMERROR ((DWORD)((0x1 << 30) | (FACILITY_WINDOWS << 16) | 0x202))")] - public const uint EXCEPTION_RO_TRANSFORMERROR = ((uint)((0x1 << 30) | (8 << 16) | 0x202)); } } diff --git a/sources/Interop/Windows/Windows/other/dia2/Windows.Manual.cs b/sources/Interop/Windows/Windows/other/dia2/E.Manual.cs similarity index 94% rename from sources/Interop/Windows/Windows/other/dia2/Windows.Manual.cs rename to sources/Interop/Windows/Windows/other/dia2/E.Manual.cs index 7f182878df..cf38005d15 100644 --- a/sources/Interop/Windows/Windows/other/dia2/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/other/dia2/E.Manual.cs @@ -5,41 +5,68 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class E { - // __MIDL___MIDL_itf_dia2_0000_0000_0001 public const int E_PDB_OK = unchecked((int)((1u << 31) | (0x6Du << 16) | 1)); + public const int E_PDB_USAGE = E_PDB_OK + 1; + public const int E_PDB_OUT_OF_MEMORY = E_PDB_USAGE + 1; + public const int E_PDB_FILE_SYSTEM = E_PDB_OUT_OF_MEMORY + 1; + public const int E_PDB_NOT_FOUND = E_PDB_FILE_SYSTEM + 1; + public const int E_PDB_INVALID_SIG = E_PDB_NOT_FOUND + 1; + public const int E_PDB_INVALID_AGE = E_PDB_INVALID_SIG + 1; + public const int E_PDB_PRECOMP_REQUIRED = E_PDB_INVALID_AGE + 1; + public const int E_PDB_OUT_OF_TI = E_PDB_PRECOMP_REQUIRED + 1; + public const int E_PDB_NOT_IMPLEMENTED = E_PDB_OUT_OF_TI + 1; + public const int E_PDB_V1_PDB = E_PDB_NOT_IMPLEMENTED + 1; + public const int E_PDB_FORMAT = E_PDB_V1_PDB + 1; + public const int E_PDB_LIMIT = E_PDB_FORMAT + 1; + public const int E_PDB_CORRUPT = E_PDB_LIMIT + 1; + public const int E_PDB_TI16 = E_PDB_CORRUPT + 1; + public const int E_PDB_ACCESS_DENIED = E_PDB_TI16 + 1; + public const int E_PDB_ILLEGAL_TYPE_EDIT = E_PDB_ACCESS_DENIED + 1; + public const int E_PDB_INVALID_EXECUTABLE = E_PDB_ILLEGAL_TYPE_EDIT + 1; + public const int E_PDB_DBG_NOT_FOUND = E_PDB_INVALID_EXECUTABLE + 1; + public const int E_PDB_NO_DEBUG_INFO = E_PDB_DBG_NOT_FOUND + 1; + public const int E_PDB_INVALID_EXE_TIMESTAMP = E_PDB_NO_DEBUG_INFO + 1; + public const int E_PDB_RESERVED = E_PDB_INVALID_EXE_TIMESTAMP + 1; + public const int E_PDB_DEBUG_INFO_NOT_IN_PDB = E_PDB_RESERVED + 1; + public const int E_PDB_SYMSRV_BAD_CACHE_PATH = E_PDB_DEBUG_INFO_NOT_IN_PDB + 1; + public const int E_PDB_SYMSRV_CACHE_FULL = E_PDB_SYMSRV_BAD_CACHE_PATH + 1; + public const int E_PDB_OBJECT_DISPOSED = E_PDB_SYMSRV_CACHE_FULL + 1; + public const int E_PDB_MAX = E_PDB_OBJECT_DISPOSED + 1; - // __MIDL___MIDL_itf_dia2_0000_0033_0001 public const int E_DIA_INPROLOG = unchecked((int)((1u << 31) | (0x6Du << 16) | 100)); + public const int E_DIA_SYNTAX = E_DIA_INPROLOG + 1; + public const int E_DIA_FRAME_ACCESS = E_DIA_SYNTAX + 1; + public const int E_DIA_VALUE = E_DIA_FRAME_ACCESS + 1; } } diff --git a/sources/Interop/Windows/Windows/other/mssign32/SIGNER.cs b/sources/Interop/Windows/Windows/other/mssign32/SIGNER.cs new file mode 100644 index 0000000000..cb9a4e41ef --- /dev/null +++ b/sources/Interop/Windows/Windows/other/mssign32/SIGNER.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from https://docs.microsoft.com/en-us/windows/win32/appxpkg/how-to-programmatically-sign-a-package +// Original source is Copyright © Microsoft. All rights reserved. Licensed under the MIT License (MIT). + +namespace TerraFX.Interop.Windows +{ + public static partial class SIGNER + { + [NativeTypeName("#define SIGNER_SUBJECT_FILE 0x01")] + public const int SIGNER_SUBJECT_FILE = 0x01; + + [NativeTypeName("#define SIGNER_SUBJECT_BLOB 0x02")] + public const int SIGNER_SUBJECT_BLOB = 0x02; + + [NativeTypeName("#define SIGNER_NO_ATTR 0x00")] + public const int SIGNER_NO_ATTR = 0x00; + + [NativeTypeName("#define SIGNER_AUTHCODE_ATTR 0x01")] + public const int SIGNER_AUTHCODE_ATTR = 0x01; + + [NativeTypeName("#define SIGNER_CERT_POLICY_STORE 0x01")] + public const int SIGNER_CERT_POLICY_STORE = 0x01; + + [NativeTypeName("#define SIGNER_CERT_POLICY_CHAIN 0x02")] + public const int SIGNER_CERT_POLICY_CHAIN = 0x02; + + [NativeTypeName("#define SIGNER_CERT_POLICY_SPC 0x04")] + public const int SIGNER_CERT_POLICY_SPC = 0x04; + + [NativeTypeName("#define SIGNER_CERT_POLICY_CHAIN_NO_ROOT 0x08")] + public const int SIGNER_CERT_POLICY_CHAIN_NO_ROOT = 0x08; + + [NativeTypeName("#define SIGNER_CERT_SPC_FILE 0x01")] + public const int SIGNER_CERT_SPC_FILE = 0x01; + + [NativeTypeName("#define SIGNER_CERT_STORE 0x02")] + public const int SIGNER_CERT_STORE = 0x02; + + [NativeTypeName("#define SIGNER_CERT_SPC_CHAIN 0x03")] + public const int SIGNER_CERT_SPC_CHAIN = 0x03; + } +} diff --git a/sources/Interop/Windows/Windows/other/mssign32/Windows.cs b/sources/Interop/Windows/Windows/other/mssign32/Windows.cs index 6d4aea69b6..ae1fe0ff52 100644 --- a/sources/Interop/Windows/Windows/other/mssign32/Windows.cs +++ b/sources/Interop/Windows/Windows/other/mssign32/Windows.cs @@ -12,43 +12,10 @@ public static unsafe partial class Windows [DllImport("mssign32", ExactSpelling = true)] public static extern HRESULT SignerSignEx2([NativeTypeName("DWORD")] uint dwFlags, SIGNER_SUBJECT_INFO* pSubjectInfo, SIGNER_CERT* pSignerCert, SIGNER_SIGNATURE_INFO* pSignatureInfo, SIGNER_PROVIDER_INFO* pProviderInfo, [NativeTypeName("DWORD")] uint dwTimestampFlags, [NativeTypeName("PCSTR")] sbyte* pszTimestampAlgorithmOid, [NativeTypeName("PCWSTR")] ushort* pwszHttpTimeStamp, [NativeTypeName("PCRYPT_ATTRIBUTES")] CRYPT_ATTRIBUTES* psRequest, [NativeTypeName("PVOID")] void* pSipData, SIGNER_CONTEXT** ppSignerContext, [NativeTypeName("PCERT_STRONG_SIGN_PARA")] CERT_STRONG_SIGN_PARA* pCryptoPolicy, [NativeTypeName("PVOID")] void* pReserved); - [NativeTypeName("#define SIGNER_SUBJECT_FILE 0x01")] - public const int SIGNER_SUBJECT_FILE = 0x01; - - [NativeTypeName("#define SIGNER_SUBJECT_BLOB 0x02")] - public const int SIGNER_SUBJECT_BLOB = 0x02; - - [NativeTypeName("#define SIGNER_NO_ATTR 0x00")] - public const int SIGNER_NO_ATTR = 0x00; - - [NativeTypeName("#define SIGNER_AUTHCODE_ATTR 0x01")] - public const int SIGNER_AUTHCODE_ATTR = 0x01; - [NativeTypeName("#define PVK_TYPE_FILE_NAME 0x01")] public const int PVK_TYPE_FILE_NAME = 0x01; [NativeTypeName("#define PVK_TYPE_KEYCONTAINER 0x02")] public const int PVK_TYPE_KEYCONTAINER = 0x02; - - [NativeTypeName("#define SIGNER_CERT_POLICY_STORE 0x01")] - public const int SIGNER_CERT_POLICY_STORE = 0x01; - - [NativeTypeName("#define SIGNER_CERT_POLICY_CHAIN 0x02")] - public const int SIGNER_CERT_POLICY_CHAIN = 0x02; - - [NativeTypeName("#define SIGNER_CERT_POLICY_SPC 0x04")] - public const int SIGNER_CERT_POLICY_SPC = 0x04; - - [NativeTypeName("#define SIGNER_CERT_POLICY_CHAIN_NO_ROOT 0x08")] - public const int SIGNER_CERT_POLICY_CHAIN_NO_ROOT = 0x08; - - [NativeTypeName("#define SIGNER_CERT_SPC_FILE 0x01")] - public const int SIGNER_CERT_SPC_FILE = 0x01; - - [NativeTypeName("#define SIGNER_CERT_STORE 0x02")] - public const int SIGNER_CERT_STORE = 0x02; - - [NativeTypeName("#define SIGNER_CERT_SPC_CHAIN 0x03")] - public const int SIGNER_CERT_SPC_CHAIN = 0x03; } } diff --git a/sources/Interop/Windows/Windows/shared/Iprtrmib/MCAST.cs b/sources/Interop/Windows/Windows/shared/Iprtrmib/MCAST.cs new file mode 100644 index 0000000000..9d281a6035 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/Iprtrmib/MCAST.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/Iprtrmib.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MCAST + { + [NativeTypeName("#define MCAST_MFE (UDP_ROW + 1)")] + public const int MCAST_MFE = ((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define MCAST_MFE_STATS (MCAST_MFE + 1)")] + public const int MCAST_MFE_STATS = (((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define MCAST_IF_ENTRY (PROXY_ARP + 1)")] + public const int MCAST_IF_ENTRY = (((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define MCAST_GLOBAL (MCAST_IF_ENTRY + 1)")] + public const int MCAST_GLOBAL = ((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define MCAST_BOUNDARY (IF_STATUS + 1)")] + public const int MCAST_BOUNDARY = ((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define MCAST_SCOPE (MCAST_BOUNDARY + 1)")] + public const int MCAST_SCOPE = (((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define MCAST_MFE_STATS_EX (ROUTE_STATE + 1)")] + public const int MCAST_MFE_STATS_EX = (((((((((((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + } +} diff --git a/sources/Interop/Windows/Windows/shared/Iprtrmib/TCP.cs b/sources/Interop/Windows/Windows/shared/Iprtrmib/TCP.cs new file mode 100644 index 0000000000..cc803063e5 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/Iprtrmib/TCP.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/Iprtrmib.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TCP + { + [NativeTypeName("#define TCP_STATS (ICMP_STATS + 1)")] + public const int TCP_STATS = ((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define TCP_TABLE (TCP_STATS + 1)")] + public const int TCP_TABLE = (((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + + [NativeTypeName("#define TCP_ROW (TCP_TABLE + 1)")] + public const int TCP_ROW = ((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); + } +} diff --git a/sources/Interop/Windows/Windows/shared/Iprtrmib/Windows.cs b/sources/Interop/Windows/Windows/shared/Iprtrmib/Windows.cs index 2d4667add8..d887a5ba5c 100644 --- a/sources/Interop/Windows/Windows/shared/Iprtrmib/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/Iprtrmib/Windows.cs @@ -13,15 +13,6 @@ public static partial class Windows [NativeTypeName("#define ICMP_STATS (IP_NETROW + 1)")] public const int ICMP_STATS = (((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define TCP_STATS (ICMP_STATS + 1)")] - public const int TCP_STATS = ((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - - [NativeTypeName("#define TCP_TABLE (TCP_STATS + 1)")] - public const int TCP_TABLE = (((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - - [NativeTypeName("#define TCP_ROW (TCP_TABLE + 1)")] - public const int TCP_ROW = ((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define UDP_STATS (TCP_ROW + 1)")] public const int UDP_STATS = (((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); @@ -31,12 +22,6 @@ public static partial class Windows [NativeTypeName("#define UDP_ROW (UDP_TABLE + 1)")] public const int UDP_ROW = (((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define MCAST_MFE (UDP_ROW + 1)")] - public const int MCAST_MFE = ((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - - [NativeTypeName("#define MCAST_MFE_STATS (MCAST_MFE + 1)")] - public const int MCAST_MFE_STATS = (((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define BEST_IF (MCAST_MFE_STATS + 1)")] public const int BEST_IF = ((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); @@ -46,18 +31,6 @@ public static partial class Windows [NativeTypeName("#define PROXY_ARP (BEST_ROUTE + 1)")] public const int PROXY_ARP = ((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define MCAST_IF_ENTRY (PROXY_ARP + 1)")] - public const int MCAST_IF_ENTRY = (((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - - [NativeTypeName("#define MCAST_GLOBAL (MCAST_IF_ENTRY + 1)")] - public const int MCAST_GLOBAL = ((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - - [NativeTypeName("#define MCAST_BOUNDARY (IF_STATUS + 1)")] - public const int MCAST_BOUNDARY = ((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - - [NativeTypeName("#define MCAST_SCOPE (MCAST_BOUNDARY + 1)")] - public const int MCAST_SCOPE = (((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define DEST_MATCHING (MCAST_SCOPE + 1)")] public const int DEST_MATCHING = ((((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); @@ -79,9 +52,6 @@ public static partial class Windows [NativeTypeName("#define ROUTE_STATE (ROUTE_SHORTER + 1)")] public const int ROUTE_STATE = ((((((((((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define MCAST_MFE_STATS_EX (ROUTE_STATE + 1)")] - public const int MCAST_MFE_STATS_EX = (((((((((((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); - [NativeTypeName("#define IP6_STATS (MCAST_MFE_STATS_EX + 1)")] public const int IP6_STATS = ((((((((((((((((((((((((((((((((((((0 + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1) + 1); diff --git a/sources/Interop/Windows/Windows/shared/devpropdef/DEVPROP.cs b/sources/Interop/Windows/Windows/shared/devpropdef/DEVPROP.cs new file mode 100644 index 0000000000..700d819690 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/devpropdef/DEVPROP.cs @@ -0,0 +1,112 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/devpropdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVPROP + { + [NativeTypeName("#define DEVPROP_TYPEMOD_ARRAY 0x00001000")] + public const int DEVPROP_TYPEMOD_ARRAY = 0x00001000; + + [NativeTypeName("#define DEVPROP_TYPEMOD_LIST 0x00002000")] + public const int DEVPROP_TYPEMOD_LIST = 0x00002000; + + [NativeTypeName("#define DEVPROP_TYPE_EMPTY 0x00000000")] + public const int DEVPROP_TYPE_EMPTY = 0x00000000; + + [NativeTypeName("#define DEVPROP_TYPE_NULL 0x00000001")] + public const int DEVPROP_TYPE_NULL = 0x00000001; + + [NativeTypeName("#define DEVPROP_TYPE_SBYTE 0x00000002")] + public const int DEVPROP_TYPE_SBYTE = 0x00000002; + + [NativeTypeName("#define DEVPROP_TYPE_BYTE 0x00000003")] + public const int DEVPROP_TYPE_BYTE = 0x00000003; + + [NativeTypeName("#define DEVPROP_TYPE_INT16 0x00000004")] + public const int DEVPROP_TYPE_INT16 = 0x00000004; + + [NativeTypeName("#define DEVPROP_TYPE_UINT16 0x00000005")] + public const int DEVPROP_TYPE_UINT16 = 0x00000005; + + [NativeTypeName("#define DEVPROP_TYPE_INT32 0x00000006")] + public const int DEVPROP_TYPE_INT32 = 0x00000006; + + [NativeTypeName("#define DEVPROP_TYPE_UINT32 0x00000007")] + public const int DEVPROP_TYPE_UINT32 = 0x00000007; + + [NativeTypeName("#define DEVPROP_TYPE_INT64 0x00000008")] + public const int DEVPROP_TYPE_INT64 = 0x00000008; + + [NativeTypeName("#define DEVPROP_TYPE_UINT64 0x00000009")] + public const int DEVPROP_TYPE_UINT64 = 0x00000009; + + [NativeTypeName("#define DEVPROP_TYPE_FLOAT 0x0000000A")] + public const int DEVPROP_TYPE_FLOAT = 0x0000000A; + + [NativeTypeName("#define DEVPROP_TYPE_DOUBLE 0x0000000B")] + public const int DEVPROP_TYPE_DOUBLE = 0x0000000B; + + [NativeTypeName("#define DEVPROP_TYPE_DECIMAL 0x0000000C")] + public const int DEVPROP_TYPE_DECIMAL = 0x0000000C; + + [NativeTypeName("#define DEVPROP_TYPE_GUID 0x0000000D")] + public const int DEVPROP_TYPE_GUID = 0x0000000D; + + [NativeTypeName("#define DEVPROP_TYPE_CURRENCY 0x0000000E")] + public const int DEVPROP_TYPE_CURRENCY = 0x0000000E; + + [NativeTypeName("#define DEVPROP_TYPE_DATE 0x0000000F")] + public const int DEVPROP_TYPE_DATE = 0x0000000F; + + [NativeTypeName("#define DEVPROP_TYPE_FILETIME 0x00000010")] + public const int DEVPROP_TYPE_FILETIME = 0x00000010; + + [NativeTypeName("#define DEVPROP_TYPE_BOOLEAN 0x00000011")] + public const int DEVPROP_TYPE_BOOLEAN = 0x00000011; + + [NativeTypeName("#define DEVPROP_TYPE_STRING 0x00000012")] + public const int DEVPROP_TYPE_STRING = 0x00000012; + + [NativeTypeName("#define DEVPROP_TYPE_STRING_LIST (DEVPROP_TYPE_STRING|DEVPROP_TYPEMOD_LIST)")] + public const int DEVPROP_TYPE_STRING_LIST = (0x00000012 | 0x00002000); + + [NativeTypeName("#define DEVPROP_TYPE_SECURITY_DESCRIPTOR 0x00000013")] + public const int DEVPROP_TYPE_SECURITY_DESCRIPTOR = 0x00000013; + + [NativeTypeName("#define DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING 0x00000014")] + public const int DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING = 0x00000014; + + [NativeTypeName("#define DEVPROP_TYPE_DEVPROPKEY 0x00000015")] + public const int DEVPROP_TYPE_DEVPROPKEY = 0x00000015; + + [NativeTypeName("#define DEVPROP_TYPE_DEVPROPTYPE 0x00000016")] + public const int DEVPROP_TYPE_DEVPROPTYPE = 0x00000016; + + [NativeTypeName("#define DEVPROP_TYPE_BINARY (DEVPROP_TYPE_BYTE|DEVPROP_TYPEMOD_ARRAY)")] + public const int DEVPROP_TYPE_BINARY = (0x00000003 | 0x00001000); + + [NativeTypeName("#define DEVPROP_TYPE_ERROR 0x00000017")] + public const int DEVPROP_TYPE_ERROR = 0x00000017; + + [NativeTypeName("#define DEVPROP_TYPE_NTSTATUS 0x00000018")] + public const int DEVPROP_TYPE_NTSTATUS = 0x00000018; + + [NativeTypeName("#define DEVPROP_TYPE_STRING_INDIRECT 0x00000019")] + public const int DEVPROP_TYPE_STRING_INDIRECT = 0x00000019; + + [NativeTypeName("#define DEVPROP_MASK_TYPE 0x00000FFF")] + public const int DEVPROP_MASK_TYPE = 0x00000FFF; + + [NativeTypeName("#define DEVPROP_MASK_TYPEMOD 0x0000F000")] + public const int DEVPROP_MASK_TYPEMOD = 0x0000F000; + + [NativeTypeName("#define DEVPROP_TRUE ((DEVPROP_BOOLEAN)-1)")] + public const sbyte DEVPROP_TRUE = ((sbyte)(-1)); + + [NativeTypeName("#define DEVPROP_FALSE ((DEVPROP_BOOLEAN) 0)")] + public const sbyte DEVPROP_FALSE = ((sbyte)(0)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/devpropdef/Windows.cs b/sources/Interop/Windows/Windows/shared/devpropdef/Windows.cs index 92b2a5c03b..b0e020f4be 100644 --- a/sources/Interop/Windows/Windows/shared/devpropdef/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/devpropdef/Windows.cs @@ -7,108 +7,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define DEVPROP_TYPEMOD_ARRAY 0x00001000")] - public const int DEVPROP_TYPEMOD_ARRAY = 0x00001000; - - [NativeTypeName("#define DEVPROP_TYPEMOD_LIST 0x00002000")] - public const int DEVPROP_TYPEMOD_LIST = 0x00002000; - - [NativeTypeName("#define DEVPROP_TYPE_EMPTY 0x00000000")] - public const int DEVPROP_TYPE_EMPTY = 0x00000000; - - [NativeTypeName("#define DEVPROP_TYPE_NULL 0x00000001")] - public const int DEVPROP_TYPE_NULL = 0x00000001; - - [NativeTypeName("#define DEVPROP_TYPE_SBYTE 0x00000002")] - public const int DEVPROP_TYPE_SBYTE = 0x00000002; - - [NativeTypeName("#define DEVPROP_TYPE_BYTE 0x00000003")] - public const int DEVPROP_TYPE_BYTE = 0x00000003; - - [NativeTypeName("#define DEVPROP_TYPE_INT16 0x00000004")] - public const int DEVPROP_TYPE_INT16 = 0x00000004; - - [NativeTypeName("#define DEVPROP_TYPE_UINT16 0x00000005")] - public const int DEVPROP_TYPE_UINT16 = 0x00000005; - - [NativeTypeName("#define DEVPROP_TYPE_INT32 0x00000006")] - public const int DEVPROP_TYPE_INT32 = 0x00000006; - - [NativeTypeName("#define DEVPROP_TYPE_UINT32 0x00000007")] - public const int DEVPROP_TYPE_UINT32 = 0x00000007; - - [NativeTypeName("#define DEVPROP_TYPE_INT64 0x00000008")] - public const int DEVPROP_TYPE_INT64 = 0x00000008; - - [NativeTypeName("#define DEVPROP_TYPE_UINT64 0x00000009")] - public const int DEVPROP_TYPE_UINT64 = 0x00000009; - - [NativeTypeName("#define DEVPROP_TYPE_FLOAT 0x0000000A")] - public const int DEVPROP_TYPE_FLOAT = 0x0000000A; - - [NativeTypeName("#define DEVPROP_TYPE_DOUBLE 0x0000000B")] - public const int DEVPROP_TYPE_DOUBLE = 0x0000000B; - - [NativeTypeName("#define DEVPROP_TYPE_DECIMAL 0x0000000C")] - public const int DEVPROP_TYPE_DECIMAL = 0x0000000C; - - [NativeTypeName("#define DEVPROP_TYPE_GUID 0x0000000D")] - public const int DEVPROP_TYPE_GUID = 0x0000000D; - - [NativeTypeName("#define DEVPROP_TYPE_CURRENCY 0x0000000E")] - public const int DEVPROP_TYPE_CURRENCY = 0x0000000E; - - [NativeTypeName("#define DEVPROP_TYPE_DATE 0x0000000F")] - public const int DEVPROP_TYPE_DATE = 0x0000000F; - - [NativeTypeName("#define DEVPROP_TYPE_FILETIME 0x00000010")] - public const int DEVPROP_TYPE_FILETIME = 0x00000010; - - [NativeTypeName("#define DEVPROP_TYPE_BOOLEAN 0x00000011")] - public const int DEVPROP_TYPE_BOOLEAN = 0x00000011; - - [NativeTypeName("#define DEVPROP_TYPE_STRING 0x00000012")] - public const int DEVPROP_TYPE_STRING = 0x00000012; - - [NativeTypeName("#define DEVPROP_TYPE_STRING_LIST (DEVPROP_TYPE_STRING|DEVPROP_TYPEMOD_LIST)")] - public const int DEVPROP_TYPE_STRING_LIST = (0x00000012 | 0x00002000); - - [NativeTypeName("#define DEVPROP_TYPE_SECURITY_DESCRIPTOR 0x00000013")] - public const int DEVPROP_TYPE_SECURITY_DESCRIPTOR = 0x00000013; - - [NativeTypeName("#define DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING 0x00000014")] - public const int DEVPROP_TYPE_SECURITY_DESCRIPTOR_STRING = 0x00000014; - - [NativeTypeName("#define DEVPROP_TYPE_DEVPROPKEY 0x00000015")] - public const int DEVPROP_TYPE_DEVPROPKEY = 0x00000015; - - [NativeTypeName("#define DEVPROP_TYPE_DEVPROPTYPE 0x00000016")] - public const int DEVPROP_TYPE_DEVPROPTYPE = 0x00000016; - - [NativeTypeName("#define DEVPROP_TYPE_BINARY (DEVPROP_TYPE_BYTE|DEVPROP_TYPEMOD_ARRAY)")] - public const int DEVPROP_TYPE_BINARY = (0x00000003 | 0x00001000); - - [NativeTypeName("#define DEVPROP_TYPE_ERROR 0x00000017")] - public const int DEVPROP_TYPE_ERROR = 0x00000017; - - [NativeTypeName("#define DEVPROP_TYPE_NTSTATUS 0x00000018")] - public const int DEVPROP_TYPE_NTSTATUS = 0x00000018; - - [NativeTypeName("#define DEVPROP_TYPE_STRING_INDIRECT 0x00000019")] - public const int DEVPROP_TYPE_STRING_INDIRECT = 0x00000019; - - [NativeTypeName("#define DEVPROP_MASK_TYPE 0x00000FFF")] - public const int DEVPROP_MASK_TYPE = 0x00000FFF; - - [NativeTypeName("#define DEVPROP_MASK_TYPEMOD 0x0000F000")] - public const int DEVPROP_MASK_TYPEMOD = 0x0000F000; - - [NativeTypeName("#define DEVPROP_TRUE ((DEVPROP_BOOLEAN)-1)")] - public const sbyte DEVPROP_TRUE = ((sbyte)(-1)); - - [NativeTypeName("#define DEVPROP_FALSE ((DEVPROP_BOOLEAN) 0)")] - public const sbyte DEVPROP_FALSE = ((sbyte)(0)); - [NativeTypeName("#define DEVPROPID_FIRST_USABLE 2")] public const int DEVPROPID_FIRST_USABLE = 2; } diff --git a/sources/Interop/Windows/Windows/shared/hidclass/Windows.cs b/sources/Interop/Windows/Windows/shared/hidclass/GUID.cs similarity index 98% rename from sources/Interop/Windows/Windows/shared/hidclass/Windows.cs rename to sources/Interop/Windows/Windows/shared/hidclass/GUID.cs index 0bcf68a771..9b516b964c 100644 --- a/sources/Interop/Windows/Windows/shared/hidclass/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/hidclass/GUID.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class GUID { [NativeTypeName("const GUID")] public static ref readonly Guid GUID_DEVINTERFACE_HID diff --git a/sources/Interop/Windows/Windows/shared/hidpi/HIDP.cs b/sources/Interop/Windows/Windows/shared/hidpi/HIDP.cs new file mode 100644 index 0000000000..67a83843f4 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/hidpi/HIDP.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/hidpi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HIDP + { + [NativeTypeName("#define HIDP_LINK_COLLECTION_ROOT ((USHORT) -1)")] + public const ushort HIDP_LINK_COLLECTION_ROOT = unchecked((ushort)(-1)); + + [NativeTypeName("#define HIDP_LINK_COLLECTION_UNSPECIFIED ((USHORT) 0)")] + public const ushort HIDP_LINK_COLLECTION_UNSPECIFIED = ((ushort)(0)); + + [NativeTypeName("#define HIDP_STATUS_SUCCESS (HIDP_ERROR_CODES(0x0,0))")] + public const int HIDP_STATUS_SUCCESS = (((int)(((0x0) << 28) | (0x11 << 16) | (0)))); + + [NativeTypeName("#define HIDP_STATUS_NULL (HIDP_ERROR_CODES(0x8,1))")] + public const int HIDP_STATUS_NULL = (((int)(((0x8) << 28) | (0x11 << 16) | (1)))); + + [NativeTypeName("#define HIDP_STATUS_INVALID_PREPARSED_DATA (HIDP_ERROR_CODES(0xC,1))")] + public const int HIDP_STATUS_INVALID_PREPARSED_DATA = (((int)(((0xC) << 28) | (0x11 << 16) | (1)))); + + [NativeTypeName("#define HIDP_STATUS_INVALID_REPORT_TYPE (HIDP_ERROR_CODES(0xC,2))")] + public const int HIDP_STATUS_INVALID_REPORT_TYPE = (((int)(((0xC) << 28) | (0x11 << 16) | (2)))); + + [NativeTypeName("#define HIDP_STATUS_INVALID_REPORT_LENGTH (HIDP_ERROR_CODES(0xC,3))")] + public const int HIDP_STATUS_INVALID_REPORT_LENGTH = (((int)(((0xC) << 28) | (0x11 << 16) | (3)))); + + [NativeTypeName("#define HIDP_STATUS_USAGE_NOT_FOUND (HIDP_ERROR_CODES(0xC,4))")] + public const int HIDP_STATUS_USAGE_NOT_FOUND = (((int)(((0xC) << 28) | (0x11 << 16) | (4)))); + + [NativeTypeName("#define HIDP_STATUS_VALUE_OUT_OF_RANGE (HIDP_ERROR_CODES(0xC,5))")] + public const int HIDP_STATUS_VALUE_OUT_OF_RANGE = (((int)(((0xC) << 28) | (0x11 << 16) | (5)))); + + [NativeTypeName("#define HIDP_STATUS_BAD_LOG_PHY_VALUES (HIDP_ERROR_CODES(0xC,6))")] + public const int HIDP_STATUS_BAD_LOG_PHY_VALUES = (((int)(((0xC) << 28) | (0x11 << 16) | (6)))); + + [NativeTypeName("#define HIDP_STATUS_BUFFER_TOO_SMALL (HIDP_ERROR_CODES(0xC,7))")] + public const int HIDP_STATUS_BUFFER_TOO_SMALL = (((int)(((0xC) << 28) | (0x11 << 16) | (7)))); + + [NativeTypeName("#define HIDP_STATUS_INTERNAL_ERROR (HIDP_ERROR_CODES(0xC,8))")] + public const int HIDP_STATUS_INTERNAL_ERROR = (((int)(((0xC) << 28) | (0x11 << 16) | (8)))); + + [NativeTypeName("#define HIDP_STATUS_I8042_TRANS_UNKNOWN (HIDP_ERROR_CODES(0xC,9))")] + public const int HIDP_STATUS_I8042_TRANS_UNKNOWN = (((int)(((0xC) << 28) | (0x11 << 16) | (9)))); + + [NativeTypeName("#define HIDP_STATUS_INCOMPATIBLE_REPORT_ID (HIDP_ERROR_CODES(0xC,0xA))")] + public const int HIDP_STATUS_INCOMPATIBLE_REPORT_ID = (((int)(((0xC) << 28) | (0x11 << 16) | (0xA)))); + + [NativeTypeName("#define HIDP_STATUS_NOT_VALUE_ARRAY (HIDP_ERROR_CODES(0xC,0xB))")] + public const int HIDP_STATUS_NOT_VALUE_ARRAY = (((int)(((0xC) << 28) | (0x11 << 16) | (0xB)))); + + [NativeTypeName("#define HIDP_STATUS_IS_VALUE_ARRAY (HIDP_ERROR_CODES(0xC,0xC))")] + public const int HIDP_STATUS_IS_VALUE_ARRAY = (((int)(((0xC) << 28) | (0x11 << 16) | (0xC)))); + + [NativeTypeName("#define HIDP_STATUS_DATA_INDEX_NOT_FOUND (HIDP_ERROR_CODES(0xC,0xD))")] + public const int HIDP_STATUS_DATA_INDEX_NOT_FOUND = (((int)(((0xC) << 28) | (0x11 << 16) | (0xD)))); + + [NativeTypeName("#define HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE (HIDP_ERROR_CODES(0xC,0xE))")] + public const int HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE = (((int)(((0xC) << 28) | (0x11 << 16) | (0xE)))); + + [NativeTypeName("#define HIDP_STATUS_BUTTON_NOT_PRESSED (HIDP_ERROR_CODES(0xC,0xF))")] + public const int HIDP_STATUS_BUTTON_NOT_PRESSED = (((int)(((0xC) << 28) | (0x11 << 16) | (0xF)))); + + [NativeTypeName("#define HIDP_STATUS_REPORT_DOES_NOT_EXIST (HIDP_ERROR_CODES(0xC,0x10))")] + public const int HIDP_STATUS_REPORT_DOES_NOT_EXIST = (((int)(((0xC) << 28) | (0x11 << 16) | (0x10)))); + + [NativeTypeName("#define HIDP_STATUS_NOT_IMPLEMENTED (HIDP_ERROR_CODES(0xC,0x20))")] + public const int HIDP_STATUS_NOT_IMPLEMENTED = (((int)(((0xC) << 28) | (0x11 << 16) | (0x20)))); + + [NativeTypeName("#define HIDP_STATUS_I8242_TRANS_UNKNOWN HIDP_STATUS_I8042_TRANS_UNKNOWN")] + public const int HIDP_STATUS_I8242_TRANS_UNKNOWN = (((int)(((0xC) << 28) | (0x11 << 16) | (9)))); + } +} diff --git a/sources/Interop/Windows/Windows/shared/hidpi/Windows.cs b/sources/Interop/Windows/Windows/shared/hidpi/Windows.cs index c1aa3c6b66..ed4c4126ba 100644 --- a/sources/Interop/Windows/Windows/shared/hidpi/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/hidpi/Windows.cs @@ -104,71 +104,5 @@ public static unsafe partial class Windows [DllImport("hid", ExactSpelling = true)] [return: NativeTypeName("NTSTATUS")] public static extern int HidP_TranslateUsagesToI8042ScanCodes([NativeTypeName("PUSAGE")] ushort* ChangedUsageList, [NativeTypeName("ULONG")] uint UsageListLength, HIDP_KEYBOARD_DIRECTION KeyAction, [NativeTypeName("PHIDP_KEYBOARD_MODIFIER_STATE")] HIDP_KEYBOARD_MODIFIER_STATE* ModifierState, [NativeTypeName("PHIDP_INSERT_SCANCODES")] delegate* unmanaged InsertCodesProcedure, [NativeTypeName("PVOID")] void* InsertCodesContext); - - [NativeTypeName("#define HIDP_LINK_COLLECTION_ROOT ((USHORT) -1)")] - public const ushort HIDP_LINK_COLLECTION_ROOT = unchecked((ushort)(-1)); - - [NativeTypeName("#define HIDP_LINK_COLLECTION_UNSPECIFIED ((USHORT) 0)")] - public const ushort HIDP_LINK_COLLECTION_UNSPECIFIED = ((ushort)(0)); - - [NativeTypeName("#define HIDP_STATUS_SUCCESS (HIDP_ERROR_CODES(0x0,0))")] - public const int HIDP_STATUS_SUCCESS = (((int)(((0x0) << 28) | (0x11 << 16) | (0)))); - - [NativeTypeName("#define HIDP_STATUS_NULL (HIDP_ERROR_CODES(0x8,1))")] - public const int HIDP_STATUS_NULL = (((int)(((0x8) << 28) | (0x11 << 16) | (1)))); - - [NativeTypeName("#define HIDP_STATUS_INVALID_PREPARSED_DATA (HIDP_ERROR_CODES(0xC,1))")] - public const int HIDP_STATUS_INVALID_PREPARSED_DATA = (((int)(((0xC) << 28) | (0x11 << 16) | (1)))); - - [NativeTypeName("#define HIDP_STATUS_INVALID_REPORT_TYPE (HIDP_ERROR_CODES(0xC,2))")] - public const int HIDP_STATUS_INVALID_REPORT_TYPE = (((int)(((0xC) << 28) | (0x11 << 16) | (2)))); - - [NativeTypeName("#define HIDP_STATUS_INVALID_REPORT_LENGTH (HIDP_ERROR_CODES(0xC,3))")] - public const int HIDP_STATUS_INVALID_REPORT_LENGTH = (((int)(((0xC) << 28) | (0x11 << 16) | (3)))); - - [NativeTypeName("#define HIDP_STATUS_USAGE_NOT_FOUND (HIDP_ERROR_CODES(0xC,4))")] - public const int HIDP_STATUS_USAGE_NOT_FOUND = (((int)(((0xC) << 28) | (0x11 << 16) | (4)))); - - [NativeTypeName("#define HIDP_STATUS_VALUE_OUT_OF_RANGE (HIDP_ERROR_CODES(0xC,5))")] - public const int HIDP_STATUS_VALUE_OUT_OF_RANGE = (((int)(((0xC) << 28) | (0x11 << 16) | (5)))); - - [NativeTypeName("#define HIDP_STATUS_BAD_LOG_PHY_VALUES (HIDP_ERROR_CODES(0xC,6))")] - public const int HIDP_STATUS_BAD_LOG_PHY_VALUES = (((int)(((0xC) << 28) | (0x11 << 16) | (6)))); - - [NativeTypeName("#define HIDP_STATUS_BUFFER_TOO_SMALL (HIDP_ERROR_CODES(0xC,7))")] - public const int HIDP_STATUS_BUFFER_TOO_SMALL = (((int)(((0xC) << 28) | (0x11 << 16) | (7)))); - - [NativeTypeName("#define HIDP_STATUS_INTERNAL_ERROR (HIDP_ERROR_CODES(0xC,8))")] - public const int HIDP_STATUS_INTERNAL_ERROR = (((int)(((0xC) << 28) | (0x11 << 16) | (8)))); - - [NativeTypeName("#define HIDP_STATUS_I8042_TRANS_UNKNOWN (HIDP_ERROR_CODES(0xC,9))")] - public const int HIDP_STATUS_I8042_TRANS_UNKNOWN = (((int)(((0xC) << 28) | (0x11 << 16) | (9)))); - - [NativeTypeName("#define HIDP_STATUS_INCOMPATIBLE_REPORT_ID (HIDP_ERROR_CODES(0xC,0xA))")] - public const int HIDP_STATUS_INCOMPATIBLE_REPORT_ID = (((int)(((0xC) << 28) | (0x11 << 16) | (0xA)))); - - [NativeTypeName("#define HIDP_STATUS_NOT_VALUE_ARRAY (HIDP_ERROR_CODES(0xC,0xB))")] - public const int HIDP_STATUS_NOT_VALUE_ARRAY = (((int)(((0xC) << 28) | (0x11 << 16) | (0xB)))); - - [NativeTypeName("#define HIDP_STATUS_IS_VALUE_ARRAY (HIDP_ERROR_CODES(0xC,0xC))")] - public const int HIDP_STATUS_IS_VALUE_ARRAY = (((int)(((0xC) << 28) | (0x11 << 16) | (0xC)))); - - [NativeTypeName("#define HIDP_STATUS_DATA_INDEX_NOT_FOUND (HIDP_ERROR_CODES(0xC,0xD))")] - public const int HIDP_STATUS_DATA_INDEX_NOT_FOUND = (((int)(((0xC) << 28) | (0x11 << 16) | (0xD)))); - - [NativeTypeName("#define HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE (HIDP_ERROR_CODES(0xC,0xE))")] - public const int HIDP_STATUS_DATA_INDEX_OUT_OF_RANGE = (((int)(((0xC) << 28) | (0x11 << 16) | (0xE)))); - - [NativeTypeName("#define HIDP_STATUS_BUTTON_NOT_PRESSED (HIDP_ERROR_CODES(0xC,0xF))")] - public const int HIDP_STATUS_BUTTON_NOT_PRESSED = (((int)(((0xC) << 28) | (0x11 << 16) | (0xF)))); - - [NativeTypeName("#define HIDP_STATUS_REPORT_DOES_NOT_EXIST (HIDP_ERROR_CODES(0xC,0x10))")] - public const int HIDP_STATUS_REPORT_DOES_NOT_EXIST = (((int)(((0xC) << 28) | (0x11 << 16) | (0x10)))); - - [NativeTypeName("#define HIDP_STATUS_NOT_IMPLEMENTED (HIDP_ERROR_CODES(0xC,0x20))")] - public const int HIDP_STATUS_NOT_IMPLEMENTED = (((int)(((0xC) << 28) | (0x11 << 16) | (0x20)))); - - [NativeTypeName("#define HIDP_STATUS_I8242_TRANS_UNKNOWN HIDP_STATUS_I8042_TRANS_UNKNOWN")] - public const int HIDP_STATUS_I8242_TRANS_UNKNOWN = (((int)(((0xC) << 28) | (0x11 << 16) | (9)))); } } diff --git a/sources/Interop/Windows/Windows/shared/ifdef/NET.cs b/sources/Interop/Windows/Windows/shared/ifdef/NET.cs new file mode 100644 index 0000000000..8d32312bca --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ifdef/NET.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ifdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NET + { + [NativeTypeName("#define NET_IF_COMPARTMENT_ID_UNSPECIFIED (NET_IF_COMPARTMENT_ID)0")] + public const uint NET_IF_COMPARTMENT_ID_UNSPECIFIED = (uint)(0); + + [NativeTypeName("#define NET_IF_COMPARTMENT_ID_PRIMARY (NET_IF_COMPARTMENT_ID)1")] + public const uint NET_IF_COMPARTMENT_ID_PRIMARY = (uint)(1); + + [NativeTypeName("#define NET_IF_OPER_STATUS_DOWN_NOT_AUTHENTICATED 0x00000001")] + public const int NET_IF_OPER_STATUS_DOWN_NOT_AUTHENTICATED = 0x00000001; + + [NativeTypeName("#define NET_IF_OPER_STATUS_DOWN_NOT_MEDIA_CONNECTED 0x00000002")] + public const int NET_IF_OPER_STATUS_DOWN_NOT_MEDIA_CONNECTED = 0x00000002; + + [NativeTypeName("#define NET_IF_OPER_STATUS_DORMANT_PAUSED 0x00000004")] + public const int NET_IF_OPER_STATUS_DORMANT_PAUSED = 0x00000004; + + [NativeTypeName("#define NET_IF_OPER_STATUS_DORMANT_LOW_POWER 0x00000008")] + public const int NET_IF_OPER_STATUS_DORMANT_LOW_POWER = 0x00000008; + + [NativeTypeName("#define NET_IF_COMPARTMENT_SCOPE_UNSPECIFIED (NET_IF_COMPARTMENT_SCOPE)0")] + public const uint NET_IF_COMPARTMENT_SCOPE_UNSPECIFIED = (uint)(0); + + [NativeTypeName("#define NET_IF_COMPARTMENT_SCOPE_ALL ((NET_IF_COMPARTMENT_SCOPE)-1)")] + public const uint NET_IF_COMPARTMENT_SCOPE_ALL = unchecked((uint)(-1)); + + [NativeTypeName("#define NET_IF_OID_IF_ALIAS 0x00000001")] + public const int NET_IF_OID_IF_ALIAS = 0x00000001; + + [NativeTypeName("#define NET_IF_OID_COMPARTMENT_ID 0x00000002")] + public const int NET_IF_OID_COMPARTMENT_ID = 0x00000002; + + [NativeTypeName("#define NET_IF_OID_NETWORK_GUID 0x00000003")] + public const int NET_IF_OID_NETWORK_GUID = 0x00000003; + + [NativeTypeName("#define NET_IF_OID_IF_ENTRY 0x00000004")] + public const int NET_IF_OID_IF_ENTRY = 0x00000004; + + [NativeTypeName("#define NET_SITEID_UNSPECIFIED (0)")] + public const int NET_SITEID_UNSPECIFIED = (0); + + [NativeTypeName("#define NET_SITEID_MAXUSER (0x07ffffff)")] + public const int NET_SITEID_MAXUSER = (0x07ffffff); + + [NativeTypeName("#define NET_SITEID_MAXSYSTEM (0x0fffffff)")] + public const int NET_SITEID_MAXSYSTEM = (0x0fffffff); + + [NativeTypeName("#define NET_IFINDEX_UNSPECIFIED (NET_IFINDEX)(0)")] + public const uint NET_IFINDEX_UNSPECIFIED = (uint)(0); + + [NativeTypeName("#define NET_IFLUID_UNSPECIFIED (0)")] + public const int NET_IFLUID_UNSPECIFIED = (0); + + [NativeTypeName("#define NET_IF_LINK_SPEED_UNKNOWN ((ULONG64)(-1))")] + public const ulong NET_IF_LINK_SPEED_UNKNOWN = unchecked((ulong)(-1)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ifdef/NIIF.cs b/sources/Interop/Windows/Windows/shared/ifdef/NIIF.cs new file mode 100644 index 0000000000..774128d545 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ifdef/NIIF.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ifdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NIIF + { + [NativeTypeName("#define NIIF_HARDWARE_INTERFACE 0x00000001")] + public const int NIIF_HARDWARE_INTERFACE = 0x00000001; + + [NativeTypeName("#define NIIF_FILTER_INTERFACE 0x00000002")] + public const int NIIF_FILTER_INTERFACE = 0x00000002; + + [NativeTypeName("#define NIIF_NDIS_RESERVED1 0x00000004")] + public const int NIIF_NDIS_RESERVED1 = 0x00000004; + + [NativeTypeName("#define NIIF_NDIS_RESERVED2 0x00000008")] + public const int NIIF_NDIS_RESERVED2 = 0x00000008; + + [NativeTypeName("#define NIIF_NDIS_RESERVED3 0x00000010")] + public const int NIIF_NDIS_RESERVED3 = 0x00000010; + + [NativeTypeName("#define NIIF_NDIS_WDM_INTERFACE 0x00000020")] + public const int NIIF_NDIS_WDM_INTERFACE = 0x00000020; + + [NativeTypeName("#define NIIF_NDIS_ENDPOINT_INTERFACE 0x00000040")] + public const int NIIF_NDIS_ENDPOINT_INTERFACE = 0x00000040; + + [NativeTypeName("#define NIIF_NDIS_ISCSI_INTERFACE 0x00000080")] + public const int NIIF_NDIS_ISCSI_INTERFACE = 0x00000080; + + [NativeTypeName("#define NIIF_NDIS_RESERVED4 0x00000100")] + public const int NIIF_NDIS_RESERVED4 = 0x00000100; + + [NativeTypeName("#define NIIF_WAN_TUNNEL_TYPE_UNKNOWN ((ULONG)(-1))")] + public const uint NIIF_WAN_TUNNEL_TYPE_UNKNOWN = unchecked((uint)(-1)); + + [NativeTypeName("#define NIIF_BUS_NUMBER_UNKNOWN ((ULONG)(-1))")] + public const uint NIIF_BUS_NUMBER_UNKNOWN = unchecked((uint)(-1)); + + [NativeTypeName("#define NIIF_SLOT_NUMBER_UNKNOWN ((ULONG)(-1))")] + public const uint NIIF_SLOT_NUMBER_UNKNOWN = unchecked((uint)(-1)); + + [NativeTypeName("#define NIIF_FUNCTION_NUMBER_UNKNOWN ((ULONG)(-1))")] + public const uint NIIF_FUNCTION_NUMBER_UNKNOWN = unchecked((uint)(-1)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ifdef/Windows.cs b/sources/Interop/Windows/Windows/shared/ifdef/Windows.cs index 442049088b..4e0612ed37 100644 --- a/sources/Interop/Windows/Windows/shared/ifdef/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/ifdef/Windows.cs @@ -7,100 +7,7 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define NET_IF_COMPARTMENT_ID_UNSPECIFIED (NET_IF_COMPARTMENT_ID)0")] - public const uint NET_IF_COMPARTMENT_ID_UNSPECIFIED = (uint)(0); - - [NativeTypeName("#define NET_IF_COMPARTMENT_ID_PRIMARY (NET_IF_COMPARTMENT_ID)1")] - public const uint NET_IF_COMPARTMENT_ID_PRIMARY = (uint)(1); - - [NativeTypeName("#define NET_IF_OPER_STATUS_DOWN_NOT_AUTHENTICATED 0x00000001")] - public const int NET_IF_OPER_STATUS_DOWN_NOT_AUTHENTICATED = 0x00000001; - - [NativeTypeName("#define NET_IF_OPER_STATUS_DOWN_NOT_MEDIA_CONNECTED 0x00000002")] - public const int NET_IF_OPER_STATUS_DOWN_NOT_MEDIA_CONNECTED = 0x00000002; - - [NativeTypeName("#define NET_IF_OPER_STATUS_DORMANT_PAUSED 0x00000004")] - public const int NET_IF_OPER_STATUS_DORMANT_PAUSED = 0x00000004; - - [NativeTypeName("#define NET_IF_OPER_STATUS_DORMANT_LOW_POWER 0x00000008")] - public const int NET_IF_OPER_STATUS_DORMANT_LOW_POWER = 0x00000008; - - [NativeTypeName("#define NET_IF_COMPARTMENT_SCOPE_UNSPECIFIED (NET_IF_COMPARTMENT_SCOPE)0")] - public const uint NET_IF_COMPARTMENT_SCOPE_UNSPECIFIED = (uint)(0); - - [NativeTypeName("#define NET_IF_COMPARTMENT_SCOPE_ALL ((NET_IF_COMPARTMENT_SCOPE)-1)")] - public const uint NET_IF_COMPARTMENT_SCOPE_ALL = unchecked((uint)(-1)); - - [NativeTypeName("#define NET_IF_OID_IF_ALIAS 0x00000001")] - public const int NET_IF_OID_IF_ALIAS = 0x00000001; - - [NativeTypeName("#define NET_IF_OID_COMPARTMENT_ID 0x00000002")] - public const int NET_IF_OID_COMPARTMENT_ID = 0x00000002; - - [NativeTypeName("#define NET_IF_OID_NETWORK_GUID 0x00000003")] - public const int NET_IF_OID_NETWORK_GUID = 0x00000003; - - [NativeTypeName("#define NET_IF_OID_IF_ENTRY 0x00000004")] - public const int NET_IF_OID_IF_ENTRY = 0x00000004; - - [NativeTypeName("#define NET_SITEID_UNSPECIFIED (0)")] - public const int NET_SITEID_UNSPECIFIED = (0); - - [NativeTypeName("#define NET_SITEID_MAXUSER (0x07ffffff)")] - public const int NET_SITEID_MAXUSER = (0x07ffffff); - - [NativeTypeName("#define NET_SITEID_MAXSYSTEM (0x0fffffff)")] - public const int NET_SITEID_MAXSYSTEM = (0x0fffffff); - - [NativeTypeName("#define NET_IFINDEX_UNSPECIFIED (NET_IFINDEX)(0)")] - public const uint NET_IFINDEX_UNSPECIFIED = (uint)(0); - - [NativeTypeName("#define NET_IFLUID_UNSPECIFIED (0)")] - public const int NET_IFLUID_UNSPECIFIED = (0); - [NativeTypeName("#define IFI_UNSPECIFIED NET_IFINDEX_UNSPECIFIED")] public const uint IFI_UNSPECIFIED = (uint)(0); - - [NativeTypeName("#define NIIF_HARDWARE_INTERFACE 0x00000001")] - public const int NIIF_HARDWARE_INTERFACE = 0x00000001; - - [NativeTypeName("#define NIIF_FILTER_INTERFACE 0x00000002")] - public const int NIIF_FILTER_INTERFACE = 0x00000002; - - [NativeTypeName("#define NIIF_NDIS_RESERVED1 0x00000004")] - public const int NIIF_NDIS_RESERVED1 = 0x00000004; - - [NativeTypeName("#define NIIF_NDIS_RESERVED2 0x00000008")] - public const int NIIF_NDIS_RESERVED2 = 0x00000008; - - [NativeTypeName("#define NIIF_NDIS_RESERVED3 0x00000010")] - public const int NIIF_NDIS_RESERVED3 = 0x00000010; - - [NativeTypeName("#define NIIF_NDIS_WDM_INTERFACE 0x00000020")] - public const int NIIF_NDIS_WDM_INTERFACE = 0x00000020; - - [NativeTypeName("#define NIIF_NDIS_ENDPOINT_INTERFACE 0x00000040")] - public const int NIIF_NDIS_ENDPOINT_INTERFACE = 0x00000040; - - [NativeTypeName("#define NIIF_NDIS_ISCSI_INTERFACE 0x00000080")] - public const int NIIF_NDIS_ISCSI_INTERFACE = 0x00000080; - - [NativeTypeName("#define NIIF_NDIS_RESERVED4 0x00000100")] - public const int NIIF_NDIS_RESERVED4 = 0x00000100; - - [NativeTypeName("#define NIIF_WAN_TUNNEL_TYPE_UNKNOWN ((ULONG)(-1))")] - public const uint NIIF_WAN_TUNNEL_TYPE_UNKNOWN = unchecked((uint)(-1)); - - [NativeTypeName("#define NET_IF_LINK_SPEED_UNKNOWN ((ULONG64)(-1))")] - public const ulong NET_IF_LINK_SPEED_UNKNOWN = unchecked((ulong)(-1)); - - [NativeTypeName("#define NIIF_BUS_NUMBER_UNKNOWN ((ULONG)(-1))")] - public const uint NIIF_BUS_NUMBER_UNKNOWN = unchecked((uint)(-1)); - - [NativeTypeName("#define NIIF_SLOT_NUMBER_UNKNOWN ((ULONG)(-1))")] - public const uint NIIF_SLOT_NUMBER_UNKNOWN = unchecked((uint)(-1)); - - [NativeTypeName("#define NIIF_FUNCTION_NUMBER_UNKNOWN ((ULONG)(-1))")] - public const uint NIIF_FUNCTION_NUMBER_UNKNOWN = unchecked((uint)(-1)); } } diff --git a/sources/Interop/Windows/Windows/shared/ipifcons/MIB.cs b/sources/Interop/Windows/Windows/shared/ipifcons/MIB.cs new file mode 100644 index 0000000000..9cfcb123bd --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ipifcons/MIB.cs @@ -0,0 +1,60 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ipifcons.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using static TerraFX.Interop.Windows.INTERNAL_IF_OPER_STATUS; + +namespace TerraFX.Interop.Windows +{ + public static partial class MIB + { + [NativeTypeName("#define MIB_IF_TYPE_OTHER 1")] + public const int MIB_IF_TYPE_OTHER = 1; + + [NativeTypeName("#define MIB_IF_TYPE_ETHERNET 6")] + public const int MIB_IF_TYPE_ETHERNET = 6; + + [NativeTypeName("#define MIB_IF_TYPE_TOKENRING 9")] + public const int MIB_IF_TYPE_TOKENRING = 9; + + [NativeTypeName("#define MIB_IF_TYPE_FDDI 15")] + public const int MIB_IF_TYPE_FDDI = 15; + + [NativeTypeName("#define MIB_IF_TYPE_PPP 23")] + public const int MIB_IF_TYPE_PPP = 23; + + [NativeTypeName("#define MIB_IF_TYPE_LOOPBACK 24")] + public const int MIB_IF_TYPE_LOOPBACK = 24; + + [NativeTypeName("#define MIB_IF_TYPE_SLIP 28")] + public const int MIB_IF_TYPE_SLIP = 28; + + [NativeTypeName("#define MIB_IF_ADMIN_STATUS_UP 1")] + public const int MIB_IF_ADMIN_STATUS_UP = 1; + + [NativeTypeName("#define MIB_IF_ADMIN_STATUS_DOWN 2")] + public const int MIB_IF_ADMIN_STATUS_DOWN = 2; + + [NativeTypeName("#define MIB_IF_ADMIN_STATUS_TESTING 3")] + public const int MIB_IF_ADMIN_STATUS_TESTING = 3; + + [NativeTypeName("#define MIB_IF_OPER_STATUS_NON_OPERATIONAL IF_OPER_STATUS_NON_OPERATIONAL")] + public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_NON_OPERATIONAL = IF_OPER_STATUS_NON_OPERATIONAL; + + [NativeTypeName("#define MIB_IF_OPER_STATUS_UNREACHABLE IF_OPER_STATUS_UNREACHABLE")] + public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_UNREACHABLE = IF_OPER_STATUS_UNREACHABLE; + + [NativeTypeName("#define MIB_IF_OPER_STATUS_DISCONNECTED IF_OPER_STATUS_DISCONNECTED")] + public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_DISCONNECTED = IF_OPER_STATUS_DISCONNECTED; + + [NativeTypeName("#define MIB_IF_OPER_STATUS_CONNECTING IF_OPER_STATUS_CONNECTING")] + public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_CONNECTING = IF_OPER_STATUS_CONNECTING; + + [NativeTypeName("#define MIB_IF_OPER_STATUS_CONNECTED IF_OPER_STATUS_CONNECTED")] + public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_CONNECTED = IF_OPER_STATUS_CONNECTED; + + [NativeTypeName("#define MIB_IF_OPER_STATUS_OPERATIONAL IF_OPER_STATUS_OPERATIONAL")] + public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_OPERATIONAL = IF_OPER_STATUS_OPERATIONAL; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ipifcons/Windows.cs b/sources/Interop/Windows/Windows/shared/ipifcons/Windows.cs index 56bb4637ca..474421d510 100644 --- a/sources/Interop/Windows/Windows/shared/ipifcons/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/ipifcons/Windows.cs @@ -3,61 +3,11 @@ // Ported from shared/ipifcons.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using static TerraFX.Interop.Windows.INTERNAL_IF_OPER_STATUS; - namespace TerraFX.Interop.Windows { public static partial class Windows { [NativeTypeName("#define MIN_IF_TYPE 1")] public const int MIN_IF_TYPE = 1; - - [NativeTypeName("#define MIB_IF_TYPE_OTHER 1")] - public const int MIB_IF_TYPE_OTHER = 1; - - [NativeTypeName("#define MIB_IF_TYPE_ETHERNET 6")] - public const int MIB_IF_TYPE_ETHERNET = 6; - - [NativeTypeName("#define MIB_IF_TYPE_TOKENRING 9")] - public const int MIB_IF_TYPE_TOKENRING = 9; - - [NativeTypeName("#define MIB_IF_TYPE_FDDI 15")] - public const int MIB_IF_TYPE_FDDI = 15; - - [NativeTypeName("#define MIB_IF_TYPE_PPP 23")] - public const int MIB_IF_TYPE_PPP = 23; - - [NativeTypeName("#define MIB_IF_TYPE_LOOPBACK 24")] - public const int MIB_IF_TYPE_LOOPBACK = 24; - - [NativeTypeName("#define MIB_IF_TYPE_SLIP 28")] - public const int MIB_IF_TYPE_SLIP = 28; - - [NativeTypeName("#define MIB_IF_ADMIN_STATUS_UP 1")] - public const int MIB_IF_ADMIN_STATUS_UP = 1; - - [NativeTypeName("#define MIB_IF_ADMIN_STATUS_DOWN 2")] - public const int MIB_IF_ADMIN_STATUS_DOWN = 2; - - [NativeTypeName("#define MIB_IF_ADMIN_STATUS_TESTING 3")] - public const int MIB_IF_ADMIN_STATUS_TESTING = 3; - - [NativeTypeName("#define MIB_IF_OPER_STATUS_NON_OPERATIONAL IF_OPER_STATUS_NON_OPERATIONAL")] - public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_NON_OPERATIONAL = IF_OPER_STATUS_NON_OPERATIONAL; - - [NativeTypeName("#define MIB_IF_OPER_STATUS_UNREACHABLE IF_OPER_STATUS_UNREACHABLE")] - public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_UNREACHABLE = IF_OPER_STATUS_UNREACHABLE; - - [NativeTypeName("#define MIB_IF_OPER_STATUS_DISCONNECTED IF_OPER_STATUS_DISCONNECTED")] - public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_DISCONNECTED = IF_OPER_STATUS_DISCONNECTED; - - [NativeTypeName("#define MIB_IF_OPER_STATUS_CONNECTING IF_OPER_STATUS_CONNECTING")] - public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_CONNECTING = IF_OPER_STATUS_CONNECTING; - - [NativeTypeName("#define MIB_IF_OPER_STATUS_CONNECTED IF_OPER_STATUS_CONNECTED")] - public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_CONNECTED = IF_OPER_STATUS_CONNECTED; - - [NativeTypeName("#define MIB_IF_OPER_STATUS_OPERATIONAL IF_OPER_STATUS_OPERATIONAL")] - public const INTERNAL_IF_OPER_STATUS MIB_IF_OPER_STATUS_OPERATIONAL = IF_OPER_STATUS_OPERATIONAL; } } diff --git a/sources/Interop/Windows/Windows/shared/ipmib/MIB.cs b/sources/Interop/Windows/Windows/shared/ipmib/MIB.cs new file mode 100644 index 0000000000..146db02c6c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ipmib/MIB.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ipmib.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIB + { + [NativeTypeName("#define MIB_IPADDR_PRIMARY 0x0001")] + public const int MIB_IPADDR_PRIMARY = 0x0001; + + [NativeTypeName("#define MIB_IPADDR_DYNAMIC 0x0004")] + public const int MIB_IPADDR_DYNAMIC = 0x0004; + + [NativeTypeName("#define MIB_IPADDR_DISCONNECTED 0x0008")] + public const int MIB_IPADDR_DISCONNECTED = 0x0008; + + [NativeTypeName("#define MIB_IPADDR_DELETED 0x0040")] + public const int MIB_IPADDR_DELETED = 0x0040; + + [NativeTypeName("#define MIB_IPADDR_TRANSIENT 0x0080")] + public const int MIB_IPADDR_TRANSIENT = 0x0080; + + [NativeTypeName("#define MIB_IPADDR_DNS_ELIGIBLE 0X0100")] + public const int MIB_IPADDR_DNS_ELIGIBLE = 0X0100; + + [NativeTypeName("#define MIB_IPROUTE_TYPE_OTHER 1")] + public const int MIB_IPROUTE_TYPE_OTHER = 1; + + [NativeTypeName("#define MIB_IPROUTE_TYPE_INVALID 2")] + public const int MIB_IPROUTE_TYPE_INVALID = 2; + + [NativeTypeName("#define MIB_IPROUTE_TYPE_DIRECT 3")] + public const int MIB_IPROUTE_TYPE_DIRECT = 3; + + [NativeTypeName("#define MIB_IPROUTE_TYPE_INDIRECT 4")] + public const int MIB_IPROUTE_TYPE_INDIRECT = 4; + + [NativeTypeName("#define MIB_IPROUTE_METRIC_UNUSED (DWORD)-1")] + public const uint MIB_IPROUTE_METRIC_UNUSED = unchecked((uint)(-1)); + + [NativeTypeName("#define MIB_USE_CURRENT_TTL ((DWORD)-1)")] + public const uint MIB_USE_CURRENT_TTL = unchecked((uint)(-1)); + + [NativeTypeName("#define MIB_USE_CURRENT_FORWARDING ((DWORD)-1)")] + public const uint MIB_USE_CURRENT_FORWARDING = unchecked((uint)(-1)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ipmib/Windows.cs b/sources/Interop/Windows/Windows/shared/ipmib/Windows.cs index 3fb370c185..d035c08fa7 100644 --- a/sources/Interop/Windows/Windows/shared/ipmib/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/ipmib/Windows.cs @@ -9,45 +9,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define MIB_IPADDR_PRIMARY 0x0001")] - public const int MIB_IPADDR_PRIMARY = 0x0001; - - [NativeTypeName("#define MIB_IPADDR_DYNAMIC 0x0004")] - public const int MIB_IPADDR_DYNAMIC = 0x0004; - - [NativeTypeName("#define MIB_IPADDR_DISCONNECTED 0x0008")] - public const int MIB_IPADDR_DISCONNECTED = 0x0008; - - [NativeTypeName("#define MIB_IPADDR_DELETED 0x0040")] - public const int MIB_IPADDR_DELETED = 0x0040; - - [NativeTypeName("#define MIB_IPADDR_TRANSIENT 0x0080")] - public const int MIB_IPADDR_TRANSIENT = 0x0080; - - [NativeTypeName("#define MIB_IPADDR_DNS_ELIGIBLE 0X0100")] - public const int MIB_IPADDR_DNS_ELIGIBLE = 0X0100; - - [NativeTypeName("#define MIB_IPROUTE_TYPE_OTHER 1")] - public const int MIB_IPROUTE_TYPE_OTHER = 1; - - [NativeTypeName("#define MIB_IPROUTE_TYPE_INVALID 2")] - public const int MIB_IPROUTE_TYPE_INVALID = 2; - - [NativeTypeName("#define MIB_IPROUTE_TYPE_DIRECT 3")] - public const int MIB_IPROUTE_TYPE_DIRECT = 3; - - [NativeTypeName("#define MIB_IPROUTE_TYPE_INDIRECT 4")] - public const int MIB_IPROUTE_TYPE_INDIRECT = 4; - - [NativeTypeName("#define MIB_IPROUTE_METRIC_UNUSED (DWORD)-1")] - public const uint MIB_IPROUTE_METRIC_UNUSED = unchecked((uint)(-1)); - - [NativeTypeName("#define MIB_USE_CURRENT_TTL ((DWORD)-1)")] - public const uint MIB_USE_CURRENT_TTL = unchecked((uint)(-1)); - - [NativeTypeName("#define MIB_USE_CURRENT_FORWARDING ((DWORD)-1)")] - public const uint MIB_USE_CURRENT_FORWARDING = unchecked((uint)(-1)); - [NativeTypeName("#define ICMP6_INFOMSG_MASK 0x80")] public const int ICMP6_INFOMSG_MASK = 0x80; diff --git a/sources/Interop/Windows/Windows/shared/ktmtypes/ENLISTMENT.cs b/sources/Interop/Windows/Windows/shared/ktmtypes/ENLISTMENT.cs new file mode 100644 index 0000000000..55ddaf4d90 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ktmtypes/ENLISTMENT.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ktmtypes.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ENLISTMENT + { + [NativeTypeName("#define ENLISTMENT_SUPERIOR 0x00000001")] + public const int ENLISTMENT_SUPERIOR = 0x00000001; + + [NativeTypeName("#define ENLISTMENT_MAXIMUM_OPTION 0x00000001")] + public const int ENLISTMENT_MAXIMUM_OPTION = 0x00000001; + + [NativeTypeName("#define ENLISTMENT_OBJECT_PATH L\"\\\\Enlistment\\\\\"")] + public const string ENLISTMENT_OBJECT_PATH = "\\Enlistment\\"; + + [NativeTypeName("#define ENLISTMENT_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(ENLISTMENT_OBJECT_PATH)+(38*sizeof(WCHAR)))")] + public const uint ENLISTMENT_OBJECT_NAME_LENGTH_IN_BYTES = (26 + (38 * 2)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ktmtypes/RESOURCE.cs b/sources/Interop/Windows/Windows/shared/ktmtypes/RESOURCE.cs new file mode 100644 index 0000000000..85530ea8b9 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ktmtypes/RESOURCE.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ktmtypes.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RESOURCE + { + [NativeTypeName("#define RESOURCE_MANAGER_VOLATILE 0x00000001")] + public const int RESOURCE_MANAGER_VOLATILE = 0x00000001; + + [NativeTypeName("#define RESOURCE_MANAGER_COMMUNICATION 0x00000002")] + public const int RESOURCE_MANAGER_COMMUNICATION = 0x00000002; + + [NativeTypeName("#define RESOURCE_MANAGER_MAXIMUM_OPTION 0x00000003")] + public const int RESOURCE_MANAGER_MAXIMUM_OPTION = 0x00000003; + + [NativeTypeName("#define RESOURCE_MANAGER_OBJECT_PATH L\"\\\\ResourceManager\\\\\"")] + public const string RESOURCE_MANAGER_OBJECT_PATH = "\\ResourceManager\\"; + + [NativeTypeName("#define RESOURCE_MANAGER_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(RESOURCE_MANAGER_OBJECT_PATH)+(38*sizeof(WCHAR)))")] + public const uint RESOURCE_MANAGER_OBJECT_NAME_LENGTH_IN_BYTES = (36 + (38 * 2)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ktmtypes/TRANSACTIONMANAGER.cs b/sources/Interop/Windows/Windows/shared/ktmtypes/TRANSACTIONMANAGER.cs new file mode 100644 index 0000000000..15a4d453bb --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ktmtypes/TRANSACTIONMANAGER.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ktmtypes.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TRANSACTIONMANAGER + { + [NativeTypeName("#define TRANSACTIONMANAGER_OBJECT_PATH L\"\\\\TransactionManager\\\\\"")] + public const string TRANSACTIONMANAGER_OBJECT_PATH = "\\TransactionManager\\"; + + [NativeTypeName("#define TRANSACTIONMANAGER_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(TRANSACTIONMANAGER_OBJECT_PATH)+(38*sizeof(WCHAR)))")] + public const uint TRANSACTIONMANAGER_OBJECT_NAME_LENGTH_IN_BYTES = (42 + (38 * 2)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ktmtypes/Windows.cs b/sources/Interop/Windows/Windows/shared/ktmtypes/Windows.cs index 562379b164..abee2c6c2a 100644 --- a/sources/Interop/Windows/Windows/shared/ktmtypes/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/ktmtypes/Windows.cs @@ -7,15 +7,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define RESOURCE_MANAGER_VOLATILE 0x00000001")] - public const int RESOURCE_MANAGER_VOLATILE = 0x00000001; - - [NativeTypeName("#define RESOURCE_MANAGER_COMMUNICATION 0x00000002")] - public const int RESOURCE_MANAGER_COMMUNICATION = 0x00000002; - - [NativeTypeName("#define RESOURCE_MANAGER_MAXIMUM_OPTION 0x00000003")] - public const int RESOURCE_MANAGER_MAXIMUM_OPTION = 0x00000003; - [NativeTypeName("#define CRM_PROTOCOL_EXPLICIT_MARSHAL_ONLY 0x00000001")] public const int CRM_PROTOCOL_EXPLICIT_MARSHAL_ONLY = 0x00000001; @@ -25,30 +16,6 @@ public static partial class Windows [NativeTypeName("#define CRM_PROTOCOL_MAXIMUM_OPTION 0x00000003")] public const int CRM_PROTOCOL_MAXIMUM_OPTION = 0x00000003; - [NativeTypeName("#define ENLISTMENT_SUPERIOR 0x00000001")] - public const int ENLISTMENT_SUPERIOR = 0x00000001; - - [NativeTypeName("#define ENLISTMENT_MAXIMUM_OPTION 0x00000001")] - public const int ENLISTMENT_MAXIMUM_OPTION = 0x00000001; - - [NativeTypeName("#define TRANSACTIONMANAGER_OBJECT_PATH L\"\\\\TransactionManager\\\\\"")] - public const string TRANSACTIONMANAGER_OBJECT_PATH = "\\TransactionManager\\"; - - [NativeTypeName("#define ENLISTMENT_OBJECT_PATH L\"\\\\Enlistment\\\\\"")] - public const string ENLISTMENT_OBJECT_PATH = "\\Enlistment\\"; - - [NativeTypeName("#define RESOURCE_MANAGER_OBJECT_PATH L\"\\\\ResourceManager\\\\\"")] - public const string RESOURCE_MANAGER_OBJECT_PATH = "\\ResourceManager\\"; - - [NativeTypeName("#define TRANSACTIONMANAGER_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(TRANSACTIONMANAGER_OBJECT_PATH)+(38*sizeof(WCHAR)))")] - public const uint TRANSACTIONMANAGER_OBJECT_NAME_LENGTH_IN_BYTES = (42 + (38 * 2)); - - [NativeTypeName("#define ENLISTMENT_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(ENLISTMENT_OBJECT_PATH)+(38*sizeof(WCHAR)))")] - public const uint ENLISTMENT_OBJECT_NAME_LENGTH_IN_BYTES = (26 + (38 * 2)); - - [NativeTypeName("#define RESOURCE_MANAGER_OBJECT_NAME_LENGTH_IN_BYTES (sizeof(RESOURCE_MANAGER_OBJECT_PATH)+(38*sizeof(WCHAR)))")] - public const uint RESOURCE_MANAGER_OBJECT_NAME_LENGTH_IN_BYTES = (36 + (38 * 2)); - [NativeTypeName("#define KTM_MARSHAL_BLOB_VERSION_MAJOR 1")] public const int KTM_MARSHAL_BLOB_VERSION_MAJOR = 1; diff --git a/sources/Interop/Windows/Windows/shared/mmreg/ACM.cs b/sources/Interop/Windows/Windows/shared/mmreg/ACM.cs new file mode 100644 index 0000000000..a9723ba639 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/mmreg/ACM.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ACM + { + [NativeTypeName("#define ACM_MPEG_LAYER1 (0x0001)")] + public const int ACM_MPEG_LAYER1 = (0x0001); + + [NativeTypeName("#define ACM_MPEG_LAYER2 (0x0002)")] + public const int ACM_MPEG_LAYER2 = (0x0002); + + [NativeTypeName("#define ACM_MPEG_LAYER3 (0x0004)")] + public const int ACM_MPEG_LAYER3 = (0x0004); + + [NativeTypeName("#define ACM_MPEG_STEREO (0x0001)")] + public const int ACM_MPEG_STEREO = (0x0001); + + [NativeTypeName("#define ACM_MPEG_JOINTSTEREO (0x0002)")] + public const int ACM_MPEG_JOINTSTEREO = (0x0002); + + [NativeTypeName("#define ACM_MPEG_DUALCHANNEL (0x0004)")] + public const int ACM_MPEG_DUALCHANNEL = (0x0004); + + [NativeTypeName("#define ACM_MPEG_SINGLECHANNEL (0x0008)")] + public const int ACM_MPEG_SINGLECHANNEL = (0x0008); + + [NativeTypeName("#define ACM_MPEG_PRIVATEBIT (0x0001)")] + public const int ACM_MPEG_PRIVATEBIT = (0x0001); + + [NativeTypeName("#define ACM_MPEG_COPYRIGHT (0x0002)")] + public const int ACM_MPEG_COPYRIGHT = (0x0002); + + [NativeTypeName("#define ACM_MPEG_ORIGINALHOME (0x0004)")] + public const int ACM_MPEG_ORIGINALHOME = (0x0004); + + [NativeTypeName("#define ACM_MPEG_PROTECTIONBIT (0x0008)")] + public const int ACM_MPEG_PROTECTIONBIT = (0x0008); + + [NativeTypeName("#define ACM_MPEG_ID_MPEG1 (0x0010)")] + public const int ACM_MPEG_ID_MPEG1 = (0x0010); + } +} diff --git a/sources/Interop/Windows/Windows/shared/mmreg/RIFFCPPO.cs b/sources/Interop/Windows/Windows/shared/mmreg/RIFFCPPO.cs new file mode 100644 index 0000000000..4a667d24dd --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/mmreg/RIFFCPPO.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RIFFCPPO + { + [NativeTypeName("#define RIFFCPPO_objr mmioFOURCC('o','b','j','r')")] + public const uint RIFFCPPO_objr = ((uint)((byte)('o')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('j')) << 16) | ((uint)((byte)('r')) << 24)); + + [NativeTypeName("#define RIFFCPPO_obji mmioFOURCC('o','b','j','i')")] + public const uint RIFFCPPO_obji = ((uint)((byte)('o')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('j')) << 16) | ((uint)((byte)('i')) << 24)); + + [NativeTypeName("#define RIFFCPPO_clsr mmioFOURCC('c','l','s','r')")] + public const uint RIFFCPPO_clsr = ((uint)((byte)('c')) | ((uint)((byte)('l')) << 8) | ((uint)((byte)('s')) << 16) | ((uint)((byte)('r')) << 24)); + + [NativeTypeName("#define RIFFCPPO_clsi mmioFOURCC('c','l','s','i')")] + public const uint RIFFCPPO_clsi = ((uint)((byte)('c')) | ((uint)((byte)('l')) << 8) | ((uint)((byte)('s')) << 16) | ((uint)((byte)('i')) << 24)); + + [NativeTypeName("#define RIFFCPPO_mbr mmioFOURCC('m','b','r',' ')")] + public const uint RIFFCPPO_mbr = ((uint)((byte)('m')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)(' ')) << 24)); + + [NativeTypeName("#define RIFFCPPO_char mmioFOURCC('c','h','a','r')")] + public const uint RIFFCPPO_char = ((uint)((byte)('c')) | ((uint)((byte)('h')) << 8) | ((uint)((byte)('a')) << 16) | ((uint)((byte)('r')) << 24)); + + [NativeTypeName("#define RIFFCPPO_byte mmioFOURCC('b','y','t','e')")] + public const uint RIFFCPPO_byte = ((uint)((byte)('b')) | ((uint)((byte)('y')) << 8) | ((uint)((byte)('t')) << 16) | ((uint)((byte)('e')) << 24)); + + [NativeTypeName("#define RIFFCPPO_int mmioFOURCC('i','n','t',' ')")] + public const uint RIFFCPPO_int = ((uint)((byte)('i')) | ((uint)((byte)('n')) << 8) | ((uint)((byte)('t')) << 16) | ((uint)((byte)(' ')) << 24)); + + [NativeTypeName("#define RIFFCPPO_word mmioFOURCC('w','o','r','d')")] + public const uint RIFFCPPO_word = ((uint)((byte)('w')) | ((uint)((byte)('o')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)('d')) << 24)); + + [NativeTypeName("#define RIFFCPPO_long mmioFOURCC('l','o','n','g')")] + public const uint RIFFCPPO_long = ((uint)((byte)('l')) | ((uint)((byte)('o')) << 8) | ((uint)((byte)('n')) << 16) | ((uint)((byte)('g')) << 24)); + + [NativeTypeName("#define RIFFCPPO_dwrd mmioFOURCC('d','w','r','d')")] + public const uint RIFFCPPO_dwrd = ((uint)((byte)('d')) | ((uint)((byte)('w')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)('d')) << 24)); + + [NativeTypeName("#define RIFFCPPO_flt mmioFOURCC('f','l','t',' ')")] + public const uint RIFFCPPO_flt = ((uint)((byte)('f')) | ((uint)((byte)('l')) << 8) | ((uint)((byte)('t')) << 16) | ((uint)((byte)(' ')) << 24)); + + [NativeTypeName("#define RIFFCPPO_dbl mmioFOURCC('d','b','l',' ')")] + public const uint RIFFCPPO_dbl = ((uint)((byte)('d')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('l')) << 16) | ((uint)((byte)(' ')) << 24)); + + [NativeTypeName("#define RIFFCPPO_str mmioFOURCC('s','t','r',' ')")] + public const uint RIFFCPPO_str = ((uint)((byte)('s')) | ((uint)((byte)('t')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)(' ')) << 24)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/mmreg/RIFFINFO.cs b/sources/Interop/Windows/Windows/shared/mmreg/RIFFINFO.cs new file mode 100644 index 0000000000..4a451a3b85 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/mmreg/RIFFINFO.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RIFFINFO + { + [NativeTypeName("#define RIFFINFO_IARL mmioFOURCC ('I', 'A', 'R', 'L')")] + public const uint RIFFINFO_IARL = ((uint)((byte)('I')) | ((uint)((byte)('A')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('L')) << 24)); + + [NativeTypeName("#define RIFFINFO_IART mmioFOURCC ('I', 'A', 'R', 'T')")] + public const uint RIFFINFO_IART = ((uint)((byte)('I')) | ((uint)((byte)('A')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('T')) << 24)); + + [NativeTypeName("#define RIFFINFO_ICMS mmioFOURCC ('I', 'C', 'M', 'S')")] + public const uint RIFFINFO_ICMS = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('M')) << 16) | ((uint)((byte)('S')) << 24)); + + [NativeTypeName("#define RIFFINFO_ICMT mmioFOURCC ('I', 'C', 'M', 'T')")] + public const uint RIFFINFO_ICMT = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('M')) << 16) | ((uint)((byte)('T')) << 24)); + + [NativeTypeName("#define RIFFINFO_ICOP mmioFOURCC ('I', 'C', 'O', 'P')")] + public const uint RIFFINFO_ICOP = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('O')) << 16) | ((uint)((byte)('P')) << 24)); + + [NativeTypeName("#define RIFFINFO_ICRD mmioFOURCC ('I', 'C', 'R', 'D')")] + public const uint RIFFINFO_ICRD = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('D')) << 24)); + + [NativeTypeName("#define RIFFINFO_ICRP mmioFOURCC ('I', 'C', 'R', 'P')")] + public const uint RIFFINFO_ICRP = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('P')) << 24)); + + [NativeTypeName("#define RIFFINFO_IDIM mmioFOURCC ('I', 'D', 'I', 'M')")] + public const uint RIFFINFO_IDIM = ((uint)((byte)('I')) | ((uint)((byte)('D')) << 8) | ((uint)((byte)('I')) << 16) | ((uint)((byte)('M')) << 24)); + + [NativeTypeName("#define RIFFINFO_IDPI mmioFOURCC ('I', 'D', 'P', 'I')")] + public const uint RIFFINFO_IDPI = ((uint)((byte)('I')) | ((uint)((byte)('D')) << 8) | ((uint)((byte)('P')) << 16) | ((uint)((byte)('I')) << 24)); + + [NativeTypeName("#define RIFFINFO_IENG mmioFOURCC ('I', 'E', 'N', 'G')")] + public const uint RIFFINFO_IENG = ((uint)((byte)('I')) | ((uint)((byte)('E')) << 8) | ((uint)((byte)('N')) << 16) | ((uint)((byte)('G')) << 24)); + + [NativeTypeName("#define RIFFINFO_IGNR mmioFOURCC ('I', 'G', 'N', 'R')")] + public const uint RIFFINFO_IGNR = ((uint)((byte)('I')) | ((uint)((byte)('G')) << 8) | ((uint)((byte)('N')) << 16) | ((uint)((byte)('R')) << 24)); + + [NativeTypeName("#define RIFFINFO_IKEY mmioFOURCC ('I', 'K', 'E', 'Y')")] + public const uint RIFFINFO_IKEY = ((uint)((byte)('I')) | ((uint)((byte)('K')) << 8) | ((uint)((byte)('E')) << 16) | ((uint)((byte)('Y')) << 24)); + + [NativeTypeName("#define RIFFINFO_ILGT mmioFOURCC ('I', 'L', 'G', 'T')")] + public const uint RIFFINFO_ILGT = ((uint)((byte)('I')) | ((uint)((byte)('L')) << 8) | ((uint)((byte)('G')) << 16) | ((uint)((byte)('T')) << 24)); + + [NativeTypeName("#define RIFFINFO_IMED mmioFOURCC ('I', 'M', 'E', 'D')")] + public const uint RIFFINFO_IMED = ((uint)((byte)('I')) | ((uint)((byte)('M')) << 8) | ((uint)((byte)('E')) << 16) | ((uint)((byte)('D')) << 24)); + + [NativeTypeName("#define RIFFINFO_INAM mmioFOURCC ('I', 'N', 'A', 'M')")] + public const uint RIFFINFO_INAM = ((uint)((byte)('I')) | ((uint)((byte)('N')) << 8) | ((uint)((byte)('A')) << 16) | ((uint)((byte)('M')) << 24)); + + [NativeTypeName("#define RIFFINFO_IPLT mmioFOURCC ('I', 'P', 'L', 'T')")] + public const uint RIFFINFO_IPLT = ((uint)((byte)('I')) | ((uint)((byte)('P')) << 8) | ((uint)((byte)('L')) << 16) | ((uint)((byte)('T')) << 24)); + + [NativeTypeName("#define RIFFINFO_IPRD mmioFOURCC ('I', 'P', 'R', 'D')")] + public const uint RIFFINFO_IPRD = ((uint)((byte)('I')) | ((uint)((byte)('P')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('D')) << 24)); + + [NativeTypeName("#define RIFFINFO_ISBJ mmioFOURCC ('I', 'S', 'B', 'J')")] + public const uint RIFFINFO_ISBJ = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('B')) << 16) | ((uint)((byte)('J')) << 24)); + + [NativeTypeName("#define RIFFINFO_ISFT mmioFOURCC ('I', 'S', 'F', 'T')")] + public const uint RIFFINFO_ISFT = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('F')) << 16) | ((uint)((byte)('T')) << 24)); + + [NativeTypeName("#define RIFFINFO_ISHP mmioFOURCC ('I', 'S', 'H', 'P')")] + public const uint RIFFINFO_ISHP = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('H')) << 16) | ((uint)((byte)('P')) << 24)); + + [NativeTypeName("#define RIFFINFO_ISRC mmioFOURCC ('I', 'S', 'R', 'C')")] + public const uint RIFFINFO_ISRC = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('C')) << 24)); + + [NativeTypeName("#define RIFFINFO_ISRF mmioFOURCC ('I', 'S', 'R', 'F')")] + public const uint RIFFINFO_ISRF = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('F')) << 24)); + + [NativeTypeName("#define RIFFINFO_ITCH mmioFOURCC ('I', 'T', 'C', 'H')")] + public const uint RIFFINFO_ITCH = ((uint)((byte)('I')) | ((uint)((byte)('T')) << 8) | ((uint)((byte)('C')) << 16) | ((uint)((byte)('H')) << 24)); + + [NativeTypeName("#define RIFFINFO_ISMP mmioFOURCC ('I', 'S', 'M', 'P')")] + public const uint RIFFINFO_ISMP = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('M')) << 16) | ((uint)((byte)('P')) << 24)); + + [NativeTypeName("#define RIFFINFO_IDIT mmioFOURCC ('I', 'D', 'I', 'T')")] + public const uint RIFFINFO_IDIT = ((uint)((byte)('I')) | ((uint)((byte)('D')) << 8) | ((uint)((byte)('I')) << 16) | ((uint)((byte)('T')) << 24)); + + [NativeTypeName("#define RIFFINFO_ITRK mmioFOURCC ('I', 'T', 'R', 'K')")] + public const uint RIFFINFO_ITRK = ((uint)((byte)('I')) | ((uint)((byte)('T')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('K')) << 24)); + + [NativeTypeName("#define RIFFINFO_ITOC mmioFOURCC ('I', 'T', 'O', 'C')")] + public const uint RIFFINFO_ITOC = ((uint)((byte)('I')) | ((uint)((byte)('T')) << 8) | ((uint)((byte)('O')) << 16) | ((uint)((byte)('C')) << 24)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/mmreg/ROCKWELL.cs b/sources/Interop/Windows/Windows/shared/mmreg/ROCKWELL.cs new file mode 100644 index 0000000000..0a1688ac26 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/mmreg/ROCKWELL.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ROCKWELL + { + [NativeTypeName("#define ROCKWELL_WA1_WAVEIN 100")] + public const int ROCKWELL_WA1_WAVEIN = 100; + + [NativeTypeName("#define ROCKWELL_WA1_WAVEOUT 101")] + public const int ROCKWELL_WA1_WAVEOUT = 101; + + [NativeTypeName("#define ROCKWELL_WA1_SYNTH 102")] + public const int ROCKWELL_WA1_SYNTH = 102; + + [NativeTypeName("#define ROCKWELL_WA1_MIXER 103")] + public const int ROCKWELL_WA1_MIXER = 103; + + [NativeTypeName("#define ROCKWELL_WA1_MPU401_IN 104")] + public const int ROCKWELL_WA1_MPU401_IN = 104; + + [NativeTypeName("#define ROCKWELL_WA1_MPU401_OUT 105")] + public const int ROCKWELL_WA1_MPU401_OUT = 105; + + [NativeTypeName("#define ROCKWELL_WA2_WAVEIN 200")] + public const int ROCKWELL_WA2_WAVEIN = 200; + + [NativeTypeName("#define ROCKWELL_WA2_WAVEOUT 201")] + public const int ROCKWELL_WA2_WAVEOUT = 201; + + [NativeTypeName("#define ROCKWELL_WA2_SYNTH 202")] + public const int ROCKWELL_WA2_SYNTH = 202; + + [NativeTypeName("#define ROCKWELL_WA2_MIXER 203")] + public const int ROCKWELL_WA2_MIXER = 203; + + [NativeTypeName("#define ROCKWELL_WA2_MPU401_IN 204")] + public const int ROCKWELL_WA2_MPU401_IN = 204; + + [NativeTypeName("#define ROCKWELL_WA2_MPU401_OUT 205")] + public const int ROCKWELL_WA2_MPU401_OUT = 205; + } +} diff --git a/sources/Interop/Windows/Windows/shared/mmreg/SPEAKER.cs b/sources/Interop/Windows/Windows/shared/mmreg/SPEAKER.cs new file mode 100644 index 0000000000..f491f0ceaa --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/mmreg/SPEAKER.cs @@ -0,0 +1,70 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/mmreg.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPEAKER + { + [NativeTypeName("#define SPEAKER_FRONT_LEFT 0x1")] + public const int SPEAKER_FRONT_LEFT = 0x1; + + [NativeTypeName("#define SPEAKER_FRONT_RIGHT 0x2")] + public const int SPEAKER_FRONT_RIGHT = 0x2; + + [NativeTypeName("#define SPEAKER_FRONT_CENTER 0x4")] + public const int SPEAKER_FRONT_CENTER = 0x4; + + [NativeTypeName("#define SPEAKER_LOW_FREQUENCY 0x8")] + public const int SPEAKER_LOW_FREQUENCY = 0x8; + + [NativeTypeName("#define SPEAKER_BACK_LEFT 0x10")] + public const int SPEAKER_BACK_LEFT = 0x10; + + [NativeTypeName("#define SPEAKER_BACK_RIGHT 0x20")] + public const int SPEAKER_BACK_RIGHT = 0x20; + + [NativeTypeName("#define SPEAKER_FRONT_LEFT_OF_CENTER 0x40")] + public const int SPEAKER_FRONT_LEFT_OF_CENTER = 0x40; + + [NativeTypeName("#define SPEAKER_FRONT_RIGHT_OF_CENTER 0x80")] + public const int SPEAKER_FRONT_RIGHT_OF_CENTER = 0x80; + + [NativeTypeName("#define SPEAKER_BACK_CENTER 0x100")] + public const int SPEAKER_BACK_CENTER = 0x100; + + [NativeTypeName("#define SPEAKER_SIDE_LEFT 0x200")] + public const int SPEAKER_SIDE_LEFT = 0x200; + + [NativeTypeName("#define SPEAKER_SIDE_RIGHT 0x400")] + public const int SPEAKER_SIDE_RIGHT = 0x400; + + [NativeTypeName("#define SPEAKER_TOP_CENTER 0x800")] + public const int SPEAKER_TOP_CENTER = 0x800; + + [NativeTypeName("#define SPEAKER_TOP_FRONT_LEFT 0x1000")] + public const int SPEAKER_TOP_FRONT_LEFT = 0x1000; + + [NativeTypeName("#define SPEAKER_TOP_FRONT_CENTER 0x2000")] + public const int SPEAKER_TOP_FRONT_CENTER = 0x2000; + + [NativeTypeName("#define SPEAKER_TOP_FRONT_RIGHT 0x4000")] + public const int SPEAKER_TOP_FRONT_RIGHT = 0x4000; + + [NativeTypeName("#define SPEAKER_TOP_BACK_LEFT 0x8000")] + public const int SPEAKER_TOP_BACK_LEFT = 0x8000; + + [NativeTypeName("#define SPEAKER_TOP_BACK_CENTER 0x10000")] + public const int SPEAKER_TOP_BACK_CENTER = 0x10000; + + [NativeTypeName("#define SPEAKER_TOP_BACK_RIGHT 0x20000")] + public const int SPEAKER_TOP_BACK_RIGHT = 0x20000; + + [NativeTypeName("#define SPEAKER_RESERVED 0x7FFC0000")] + public const int SPEAKER_RESERVED = 0x7FFC0000; + + [NativeTypeName("#define SPEAKER_ALL 0x80000000")] + public const uint SPEAKER_ALL = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/shared/mmreg/Windows.cs b/sources/Interop/Windows/Windows/shared/mmreg/Windows.cs index 40e827bea7..f105e26f2c 100644 --- a/sources/Interop/Windows/Windows/shared/mmreg/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/mmreg/Windows.cs @@ -10,222 +10,9 @@ public static partial class Windows [NativeTypeName("#define _INC_MMREG 158")] public const int _INC_MMREG = 158; - [NativeTypeName("#define ROCKWELL_WA1_WAVEIN 100")] - public const int ROCKWELL_WA1_WAVEIN = 100; - - [NativeTypeName("#define ROCKWELL_WA1_WAVEOUT 101")] - public const int ROCKWELL_WA1_WAVEOUT = 101; - - [NativeTypeName("#define ROCKWELL_WA1_SYNTH 102")] - public const int ROCKWELL_WA1_SYNTH = 102; - - [NativeTypeName("#define ROCKWELL_WA1_MIXER 103")] - public const int ROCKWELL_WA1_MIXER = 103; - - [NativeTypeName("#define ROCKWELL_WA1_MPU401_IN 104")] - public const int ROCKWELL_WA1_MPU401_IN = 104; - - [NativeTypeName("#define ROCKWELL_WA1_MPU401_OUT 105")] - public const int ROCKWELL_WA1_MPU401_OUT = 105; - - [NativeTypeName("#define ROCKWELL_WA2_WAVEIN 200")] - public const int ROCKWELL_WA2_WAVEIN = 200; - - [NativeTypeName("#define ROCKWELL_WA2_WAVEOUT 201")] - public const int ROCKWELL_WA2_WAVEOUT = 201; - - [NativeTypeName("#define ROCKWELL_WA2_SYNTH 202")] - public const int ROCKWELL_WA2_SYNTH = 202; - - [NativeTypeName("#define ROCKWELL_WA2_MIXER 203")] - public const int ROCKWELL_WA2_MIXER = 203; - - [NativeTypeName("#define ROCKWELL_WA2_MPU401_IN 204")] - public const int ROCKWELL_WA2_MPU401_IN = 204; - - [NativeTypeName("#define ROCKWELL_WA2_MPU401_OUT 205")] - public const int ROCKWELL_WA2_MPU401_OUT = 205; - [NativeTypeName("#define CRYSTAL_NET_SFM_CODEC 1")] public const int CRYSTAL_NET_SFM_CODEC = 1; - [NativeTypeName("#define RIFFINFO_IARL mmioFOURCC ('I', 'A', 'R', 'L')")] - public const uint RIFFINFO_IARL = ((uint)((byte)('I')) | ((uint)((byte)('A')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('L')) << 24)); - - [NativeTypeName("#define RIFFINFO_IART mmioFOURCC ('I', 'A', 'R', 'T')")] - public const uint RIFFINFO_IART = ((uint)((byte)('I')) | ((uint)((byte)('A')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('T')) << 24)); - - [NativeTypeName("#define RIFFINFO_ICMS mmioFOURCC ('I', 'C', 'M', 'S')")] - public const uint RIFFINFO_ICMS = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('M')) << 16) | ((uint)((byte)('S')) << 24)); - - [NativeTypeName("#define RIFFINFO_ICMT mmioFOURCC ('I', 'C', 'M', 'T')")] - public const uint RIFFINFO_ICMT = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('M')) << 16) | ((uint)((byte)('T')) << 24)); - - [NativeTypeName("#define RIFFINFO_ICOP mmioFOURCC ('I', 'C', 'O', 'P')")] - public const uint RIFFINFO_ICOP = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('O')) << 16) | ((uint)((byte)('P')) << 24)); - - [NativeTypeName("#define RIFFINFO_ICRD mmioFOURCC ('I', 'C', 'R', 'D')")] - public const uint RIFFINFO_ICRD = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('D')) << 24)); - - [NativeTypeName("#define RIFFINFO_ICRP mmioFOURCC ('I', 'C', 'R', 'P')")] - public const uint RIFFINFO_ICRP = ((uint)((byte)('I')) | ((uint)((byte)('C')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('P')) << 24)); - - [NativeTypeName("#define RIFFINFO_IDIM mmioFOURCC ('I', 'D', 'I', 'M')")] - public const uint RIFFINFO_IDIM = ((uint)((byte)('I')) | ((uint)((byte)('D')) << 8) | ((uint)((byte)('I')) << 16) | ((uint)((byte)('M')) << 24)); - - [NativeTypeName("#define RIFFINFO_IDPI mmioFOURCC ('I', 'D', 'P', 'I')")] - public const uint RIFFINFO_IDPI = ((uint)((byte)('I')) | ((uint)((byte)('D')) << 8) | ((uint)((byte)('P')) << 16) | ((uint)((byte)('I')) << 24)); - - [NativeTypeName("#define RIFFINFO_IENG mmioFOURCC ('I', 'E', 'N', 'G')")] - public const uint RIFFINFO_IENG = ((uint)((byte)('I')) | ((uint)((byte)('E')) << 8) | ((uint)((byte)('N')) << 16) | ((uint)((byte)('G')) << 24)); - - [NativeTypeName("#define RIFFINFO_IGNR mmioFOURCC ('I', 'G', 'N', 'R')")] - public const uint RIFFINFO_IGNR = ((uint)((byte)('I')) | ((uint)((byte)('G')) << 8) | ((uint)((byte)('N')) << 16) | ((uint)((byte)('R')) << 24)); - - [NativeTypeName("#define RIFFINFO_IKEY mmioFOURCC ('I', 'K', 'E', 'Y')")] - public const uint RIFFINFO_IKEY = ((uint)((byte)('I')) | ((uint)((byte)('K')) << 8) | ((uint)((byte)('E')) << 16) | ((uint)((byte)('Y')) << 24)); - - [NativeTypeName("#define RIFFINFO_ILGT mmioFOURCC ('I', 'L', 'G', 'T')")] - public const uint RIFFINFO_ILGT = ((uint)((byte)('I')) | ((uint)((byte)('L')) << 8) | ((uint)((byte)('G')) << 16) | ((uint)((byte)('T')) << 24)); - - [NativeTypeName("#define RIFFINFO_IMED mmioFOURCC ('I', 'M', 'E', 'D')")] - public const uint RIFFINFO_IMED = ((uint)((byte)('I')) | ((uint)((byte)('M')) << 8) | ((uint)((byte)('E')) << 16) | ((uint)((byte)('D')) << 24)); - - [NativeTypeName("#define RIFFINFO_INAM mmioFOURCC ('I', 'N', 'A', 'M')")] - public const uint RIFFINFO_INAM = ((uint)((byte)('I')) | ((uint)((byte)('N')) << 8) | ((uint)((byte)('A')) << 16) | ((uint)((byte)('M')) << 24)); - - [NativeTypeName("#define RIFFINFO_IPLT mmioFOURCC ('I', 'P', 'L', 'T')")] - public const uint RIFFINFO_IPLT = ((uint)((byte)('I')) | ((uint)((byte)('P')) << 8) | ((uint)((byte)('L')) << 16) | ((uint)((byte)('T')) << 24)); - - [NativeTypeName("#define RIFFINFO_IPRD mmioFOURCC ('I', 'P', 'R', 'D')")] - public const uint RIFFINFO_IPRD = ((uint)((byte)('I')) | ((uint)((byte)('P')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('D')) << 24)); - - [NativeTypeName("#define RIFFINFO_ISBJ mmioFOURCC ('I', 'S', 'B', 'J')")] - public const uint RIFFINFO_ISBJ = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('B')) << 16) | ((uint)((byte)('J')) << 24)); - - [NativeTypeName("#define RIFFINFO_ISFT mmioFOURCC ('I', 'S', 'F', 'T')")] - public const uint RIFFINFO_ISFT = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('F')) << 16) | ((uint)((byte)('T')) << 24)); - - [NativeTypeName("#define RIFFINFO_ISHP mmioFOURCC ('I', 'S', 'H', 'P')")] - public const uint RIFFINFO_ISHP = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('H')) << 16) | ((uint)((byte)('P')) << 24)); - - [NativeTypeName("#define RIFFINFO_ISRC mmioFOURCC ('I', 'S', 'R', 'C')")] - public const uint RIFFINFO_ISRC = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('C')) << 24)); - - [NativeTypeName("#define RIFFINFO_ISRF mmioFOURCC ('I', 'S', 'R', 'F')")] - public const uint RIFFINFO_ISRF = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('F')) << 24)); - - [NativeTypeName("#define RIFFINFO_ITCH mmioFOURCC ('I', 'T', 'C', 'H')")] - public const uint RIFFINFO_ITCH = ((uint)((byte)('I')) | ((uint)((byte)('T')) << 8) | ((uint)((byte)('C')) << 16) | ((uint)((byte)('H')) << 24)); - - [NativeTypeName("#define RIFFINFO_ISMP mmioFOURCC ('I', 'S', 'M', 'P')")] - public const uint RIFFINFO_ISMP = ((uint)((byte)('I')) | ((uint)((byte)('S')) << 8) | ((uint)((byte)('M')) << 16) | ((uint)((byte)('P')) << 24)); - - [NativeTypeName("#define RIFFINFO_IDIT mmioFOURCC ('I', 'D', 'I', 'T')")] - public const uint RIFFINFO_IDIT = ((uint)((byte)('I')) | ((uint)((byte)('D')) << 8) | ((uint)((byte)('I')) << 16) | ((uint)((byte)('T')) << 24)); - - [NativeTypeName("#define RIFFINFO_ITRK mmioFOURCC ('I', 'T', 'R', 'K')")] - public const uint RIFFINFO_ITRK = ((uint)((byte)('I')) | ((uint)((byte)('T')) << 8) | ((uint)((byte)('R')) << 16) | ((uint)((byte)('K')) << 24)); - - [NativeTypeName("#define RIFFINFO_ITOC mmioFOURCC ('I', 'T', 'O', 'C')")] - public const uint RIFFINFO_ITOC = ((uint)((byte)('I')) | ((uint)((byte)('T')) << 8) | ((uint)((byte)('O')) << 16) | ((uint)((byte)('C')) << 24)); - - [NativeTypeName("#define SPEAKER_FRONT_LEFT 0x1")] - public const int SPEAKER_FRONT_LEFT = 0x1; - - [NativeTypeName("#define SPEAKER_FRONT_RIGHT 0x2")] - public const int SPEAKER_FRONT_RIGHT = 0x2; - - [NativeTypeName("#define SPEAKER_FRONT_CENTER 0x4")] - public const int SPEAKER_FRONT_CENTER = 0x4; - - [NativeTypeName("#define SPEAKER_LOW_FREQUENCY 0x8")] - public const int SPEAKER_LOW_FREQUENCY = 0x8; - - [NativeTypeName("#define SPEAKER_BACK_LEFT 0x10")] - public const int SPEAKER_BACK_LEFT = 0x10; - - [NativeTypeName("#define SPEAKER_BACK_RIGHT 0x20")] - public const int SPEAKER_BACK_RIGHT = 0x20; - - [NativeTypeName("#define SPEAKER_FRONT_LEFT_OF_CENTER 0x40")] - public const int SPEAKER_FRONT_LEFT_OF_CENTER = 0x40; - - [NativeTypeName("#define SPEAKER_FRONT_RIGHT_OF_CENTER 0x80")] - public const int SPEAKER_FRONT_RIGHT_OF_CENTER = 0x80; - - [NativeTypeName("#define SPEAKER_BACK_CENTER 0x100")] - public const int SPEAKER_BACK_CENTER = 0x100; - - [NativeTypeName("#define SPEAKER_SIDE_LEFT 0x200")] - public const int SPEAKER_SIDE_LEFT = 0x200; - - [NativeTypeName("#define SPEAKER_SIDE_RIGHT 0x400")] - public const int SPEAKER_SIDE_RIGHT = 0x400; - - [NativeTypeName("#define SPEAKER_TOP_CENTER 0x800")] - public const int SPEAKER_TOP_CENTER = 0x800; - - [NativeTypeName("#define SPEAKER_TOP_FRONT_LEFT 0x1000")] - public const int SPEAKER_TOP_FRONT_LEFT = 0x1000; - - [NativeTypeName("#define SPEAKER_TOP_FRONT_CENTER 0x2000")] - public const int SPEAKER_TOP_FRONT_CENTER = 0x2000; - - [NativeTypeName("#define SPEAKER_TOP_FRONT_RIGHT 0x4000")] - public const int SPEAKER_TOP_FRONT_RIGHT = 0x4000; - - [NativeTypeName("#define SPEAKER_TOP_BACK_LEFT 0x8000")] - public const int SPEAKER_TOP_BACK_LEFT = 0x8000; - - [NativeTypeName("#define SPEAKER_TOP_BACK_CENTER 0x10000")] - public const int SPEAKER_TOP_BACK_CENTER = 0x10000; - - [NativeTypeName("#define SPEAKER_TOP_BACK_RIGHT 0x20000")] - public const int SPEAKER_TOP_BACK_RIGHT = 0x20000; - - [NativeTypeName("#define SPEAKER_RESERVED 0x7FFC0000")] - public const int SPEAKER_RESERVED = 0x7FFC0000; - - [NativeTypeName("#define SPEAKER_ALL 0x80000000")] - public const uint SPEAKER_ALL = 0x80000000; - - [NativeTypeName("#define ACM_MPEG_LAYER1 (0x0001)")] - public const int ACM_MPEG_LAYER1 = (0x0001); - - [NativeTypeName("#define ACM_MPEG_LAYER2 (0x0002)")] - public const int ACM_MPEG_LAYER2 = (0x0002); - - [NativeTypeName("#define ACM_MPEG_LAYER3 (0x0004)")] - public const int ACM_MPEG_LAYER3 = (0x0004); - - [NativeTypeName("#define ACM_MPEG_STEREO (0x0001)")] - public const int ACM_MPEG_STEREO = (0x0001); - - [NativeTypeName("#define ACM_MPEG_JOINTSTEREO (0x0002)")] - public const int ACM_MPEG_JOINTSTEREO = (0x0002); - - [NativeTypeName("#define ACM_MPEG_DUALCHANNEL (0x0004)")] - public const int ACM_MPEG_DUALCHANNEL = (0x0004); - - [NativeTypeName("#define ACM_MPEG_SINGLECHANNEL (0x0008)")] - public const int ACM_MPEG_SINGLECHANNEL = (0x0008); - - [NativeTypeName("#define ACM_MPEG_PRIVATEBIT (0x0001)")] - public const int ACM_MPEG_PRIVATEBIT = (0x0001); - - [NativeTypeName("#define ACM_MPEG_COPYRIGHT (0x0002)")] - public const int ACM_MPEG_COPYRIGHT = (0x0002); - - [NativeTypeName("#define ACM_MPEG_ORIGINALHOME (0x0004)")] - public const int ACM_MPEG_ORIGINALHOME = (0x0004); - - [NativeTypeName("#define ACM_MPEG_PROTECTIONBIT (0x0008)")] - public const int ACM_MPEG_PROTECTIONBIT = (0x0008); - - [NativeTypeName("#define ACM_MPEG_ID_MPEG1 (0x0010)")] - public const int ACM_MPEG_ID_MPEG1 = (0x0010); - [NativeTypeName("#define MPEGLAYER3_WFX_EXTRA_BYTES 12")] public const int MPEGLAYER3_WFX_EXTRA_BYTES = 12; @@ -271,48 +58,6 @@ public static partial class Windows [NativeTypeName("#define RIFFCPPO mmioFOURCC('C','P','P','O')")] public const uint RIFFCPPO = ((uint)((byte)('C')) | ((uint)((byte)('P')) << 8) | ((uint)((byte)('P')) << 16) | ((uint)((byte)('O')) << 24)); - [NativeTypeName("#define RIFFCPPO_objr mmioFOURCC('o','b','j','r')")] - public const uint RIFFCPPO_objr = ((uint)((byte)('o')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('j')) << 16) | ((uint)((byte)('r')) << 24)); - - [NativeTypeName("#define RIFFCPPO_obji mmioFOURCC('o','b','j','i')")] - public const uint RIFFCPPO_obji = ((uint)((byte)('o')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('j')) << 16) | ((uint)((byte)('i')) << 24)); - - [NativeTypeName("#define RIFFCPPO_clsr mmioFOURCC('c','l','s','r')")] - public const uint RIFFCPPO_clsr = ((uint)((byte)('c')) | ((uint)((byte)('l')) << 8) | ((uint)((byte)('s')) << 16) | ((uint)((byte)('r')) << 24)); - - [NativeTypeName("#define RIFFCPPO_clsi mmioFOURCC('c','l','s','i')")] - public const uint RIFFCPPO_clsi = ((uint)((byte)('c')) | ((uint)((byte)('l')) << 8) | ((uint)((byte)('s')) << 16) | ((uint)((byte)('i')) << 24)); - - [NativeTypeName("#define RIFFCPPO_mbr mmioFOURCC('m','b','r',' ')")] - public const uint RIFFCPPO_mbr = ((uint)((byte)('m')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)(' ')) << 24)); - - [NativeTypeName("#define RIFFCPPO_char mmioFOURCC('c','h','a','r')")] - public const uint RIFFCPPO_char = ((uint)((byte)('c')) | ((uint)((byte)('h')) << 8) | ((uint)((byte)('a')) << 16) | ((uint)((byte)('r')) << 24)); - - [NativeTypeName("#define RIFFCPPO_byte mmioFOURCC('b','y','t','e')")] - public const uint RIFFCPPO_byte = ((uint)((byte)('b')) | ((uint)((byte)('y')) << 8) | ((uint)((byte)('t')) << 16) | ((uint)((byte)('e')) << 24)); - - [NativeTypeName("#define RIFFCPPO_int mmioFOURCC('i','n','t',' ')")] - public const uint RIFFCPPO_int = ((uint)((byte)('i')) | ((uint)((byte)('n')) << 8) | ((uint)((byte)('t')) << 16) | ((uint)((byte)(' ')) << 24)); - - [NativeTypeName("#define RIFFCPPO_word mmioFOURCC('w','o','r','d')")] - public const uint RIFFCPPO_word = ((uint)((byte)('w')) | ((uint)((byte)('o')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)('d')) << 24)); - - [NativeTypeName("#define RIFFCPPO_long mmioFOURCC('l','o','n','g')")] - public const uint RIFFCPPO_long = ((uint)((byte)('l')) | ((uint)((byte)('o')) << 8) | ((uint)((byte)('n')) << 16) | ((uint)((byte)('g')) << 24)); - - [NativeTypeName("#define RIFFCPPO_dwrd mmioFOURCC('d','w','r','d')")] - public const uint RIFFCPPO_dwrd = ((uint)((byte)('d')) | ((uint)((byte)('w')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)('d')) << 24)); - - [NativeTypeName("#define RIFFCPPO_flt mmioFOURCC('f','l','t',' ')")] - public const uint RIFFCPPO_flt = ((uint)((byte)('f')) | ((uint)((byte)('l')) << 8) | ((uint)((byte)('t')) << 16) | ((uint)((byte)(' ')) << 24)); - - [NativeTypeName("#define RIFFCPPO_dbl mmioFOURCC('d','b','l',' ')")] - public const uint RIFFCPPO_dbl = ((uint)((byte)('d')) | ((uint)((byte)('b')) << 8) | ((uint)((byte)('l')) << 16) | ((uint)((byte)(' ')) << 24)); - - [NativeTypeName("#define RIFFCPPO_str mmioFOURCC('s','t','r',' ')")] - public const uint RIFFCPPO_str = ((uint)((byte)('s')) | ((uint)((byte)('t')) << 8) | ((uint)((byte)('r')) << 16) | ((uint)((byte)(' ')) << 24)); - [NativeTypeName("#define BICOMP_IBMULTIMOTION mmioFOURCC('U', 'L', 'T', 'I')")] public const uint BICOMP_IBMULTIMOTION = ((uint)((byte)('U')) | ((uint)((byte)('L')) << 8) | ((uint)((byte)('T')) << 16) | ((uint)((byte)('I')) << 24)); diff --git a/sources/Interop/Windows/Windows/shared/nldef/NET.cs b/sources/Interop/Windows/Windows/shared/nldef/NET.cs new file mode 100644 index 0000000000..df5d0b4d3d --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/nldef/NET.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/nldef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NET + { + [NativeTypeName("#define NET_IF_CURRENT_SESSION ((ULONG)-1)")] + public const uint NET_IF_CURRENT_SESSION = unchecked((uint)(-1)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/nldef/Windows.cs b/sources/Interop/Windows/Windows/shared/nldef/Windows.cs index d475ed252c..c6050ed6b7 100644 --- a/sources/Interop/Windows/Windows/shared/nldef/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/nldef/Windows.cs @@ -26,8 +26,5 @@ public static partial class Windows [NativeTypeName("#define NL_MAX_METRIC_COMPONENT ((((ULONG) 1) << 31) - 1)")] public const uint NL_MAX_METRIC_COMPONENT = ((((uint)(1)) << 31) - 1); - - [NativeTypeName("#define NET_IF_CURRENT_SESSION ((ULONG)-1)")] - public const uint NET_IF_CURRENT_SESSION = unchecked((uint)(-1)); } } diff --git a/sources/Interop/Windows/Windows/shared/ntstatus/DBG.cs b/sources/Interop/Windows/Windows/shared/ntstatus/DBG.cs new file mode 100644 index 0000000000..80cf3ab865 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ntstatus/DBG.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ntstatus.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DBG + { + [NativeTypeName("#define DBG_UNABLE_TO_PROVIDE_HANDLE ((NTSTATUS)0x40010002L)")] + public const int DBG_UNABLE_TO_PROVIDE_HANDLE = ((int)(0x40010002)); + + [NativeTypeName("#define DBG_NO_STATE_CHANGE ((NTSTATUS)0xC0010001L)")] + public const int DBG_NO_STATE_CHANGE = unchecked((int)(0xC0010001)); + + [NativeTypeName("#define DBG_APP_NOT_IDLE ((NTSTATUS)0xC0010002L)")] + public const int DBG_APP_NOT_IDLE = unchecked((int)(0xC0010002)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ntstatus/Windows.cs b/sources/Interop/Windows/Windows/shared/ntstatus/Windows.cs index 42ef77e23d..53d1f11b7a 100644 --- a/sources/Interop/Windows/Windows/shared/ntstatus/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/ntstatus/Windows.cs @@ -10,15 +10,6 @@ public static partial class Windows [NativeTypeName("#define FACILTIY_MUI_ERROR_CODE 0xB")] public const int FACILTIY_MUI_ERROR_CODE = 0xB; - [NativeTypeName("#define DBG_UNABLE_TO_PROVIDE_HANDLE ((NTSTATUS)0x40010002L)")] - public const int DBG_UNABLE_TO_PROVIDE_HANDLE = ((int)(0x40010002)); - - [NativeTypeName("#define DBG_NO_STATE_CHANGE ((NTSTATUS)0xC0010001L)")] - public const int DBG_NO_STATE_CHANGE = unchecked((int)(0xC0010001)); - - [NativeTypeName("#define DBG_APP_NOT_IDLE ((NTSTATUS)0xC0010002L)")] - public const int DBG_APP_NOT_IDLE = unchecked((int)(0xC0010002)); - [NativeTypeName("#define EPT_NT_INVALID_ENTRY ((NTSTATUS)0xC0020034L)")] public const int EPT_NT_INVALID_ENTRY = unchecked((int)(0xC0020034)); diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/MIB.cs b/sources/Interop/Windows/Windows/shared/tcpmib/MIB.cs new file mode 100644 index 0000000000..db7933616b --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/tcpmib/MIB.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/tcpmib.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIB + { + [NativeTypeName("#define MIB_TCP_MAXCONN_DYNAMIC ((ULONG)-1)")] + public const uint MIB_TCP_MAXCONN_DYNAMIC = unchecked((uint)(-1)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/tcpmib/Windows.cs b/sources/Interop/Windows/Windows/shared/tcpmib/Windows.cs index 3242248f51..b2167e0bab 100644 --- a/sources/Interop/Windows/Windows/shared/tcpmib/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/tcpmib/Windows.cs @@ -9,8 +9,5 @@ public static partial class Windows { [NativeTypeName("#define TCPIP_OWNING_MODULE_SIZE 16")] public const int TCPIP_OWNING_MODULE_SIZE = 16; - - [NativeTypeName("#define MIB_TCP_MAXCONN_DYNAMIC ((ULONG)-1)")] - public const uint MIB_TCP_MAXCONN_DYNAMIC = unchecked((uint)(-1)); } } diff --git a/sources/Interop/Windows/Windows/shared/tvout/Windows.cs b/sources/Interop/Windows/Windows/shared/tvout/VP.cs similarity index 99% rename from sources/Interop/Windows/Windows/shared/tvout/Windows.cs rename to sources/Interop/Windows/Windows/shared/tvout/VP.cs index a26b900cf6..a93bb6051f 100644 --- a/sources/Interop/Windows/Windows/shared/tvout/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/tvout/VP.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class VP { [NativeTypeName("#define VP_COMMAND_GET 0x0001")] public const int VP_COMMAND_GET = 0x0001; diff --git a/sources/Interop/Windows/Windows/shared/uuids/MEDIASUBTYPE.cs b/sources/Interop/Windows/Windows/shared/uuids/MEDIASUBTYPE.cs new file mode 100644 index 0000000000..a6314b306b --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/uuids/MEDIASUBTYPE.cs @@ -0,0 +1,3340 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/uuids.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class MEDIASUBTYPE + { + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_None + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8E, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DVB_SUBTITLES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0xCB, 0xFF, 0x34, + 0xB3, 0xD5, + 0x71, 0x41, + 0x90, + 0x02, + 0xD4, + 0xC6, + 0x03, + 0x01, + 0x69, + 0x7F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ISDB_CAPTIONS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0xD6, 0x9D, 0x05, + 0x55, 0x2E, + 0x41, 0x4D, + 0x8D, + 0x1B, + 0x01, + 0xF5, + 0xE4, + 0xF5, + 0x06, + 0x07 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ISDB_SUPERIMPOSE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x28, 0x6D, 0xDC, 0x36, + 0xA6, 0xF1, + 0x16, 0x42, + 0x90, + 0x48, + 0x9C, + 0xFC, + 0xEF, + 0xEB, + 0x5E, + 0xBA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_CLPL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x43, 0x4C, 0x50, 0x4C, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_YUYV + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x55, 0x59, 0x56, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IYUV + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x59, 0x55, 0x56, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_YVU9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x56, 0x55, 0x39, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Y411 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x34, 0x31, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Y41P + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x34, 0x31, 0x50, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_YUY2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x55, 0x59, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_YVYU + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x56, 0x59, 0x55, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_UYVY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x55, 0x59, 0x56, 0x59, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Y211 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x32, 0x31, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_CLJR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x43, 0x4C, 0x4A, 0x52, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IF09 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x46, 0x30, 0x39, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_CPLA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x43, 0x50, 0x4C, 0x41, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MJPG + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x4A, 0x50, 0x47, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_TVMJ + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x54, 0x56, 0x4D, 0x4A, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_WAKE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x57, 0x41, 0x4B, 0x45, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_CFCC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x43, 0x46, 0x43, 0x43, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IJPG + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x4A, 0x50, 0x47, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Plum + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x6C, 0x75, 0x6D, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DVCS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0x56, 0x43, 0x53, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_H264 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x32, 0x36, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DVSD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0x56, 0x53, 0x44, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MDVF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x44, 0x56, 0x46, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x78, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x79, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7A, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB565 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7B, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB555 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7C, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB24 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB32 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7E, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB1555 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAF, 0x55, 0x7C, 0x29, + 0x09, 0xE2, + 0xB3, 0x4C, + 0xB7, + 0x57, + 0xC7, + 0x6D, + 0x6B, + 0x9C, + 0x88, + 0xA8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB4444 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE6, 0x15, 0x64, 0x6E, + 0x24, 0x5C, + 0x5F, 0x42, + 0x93, + 0xCD, + 0x80, + 0x10, + 0x2B, + 0x3D, + 0x1C, + 0xCA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB32 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC0, 0x9A, 0x3C, 0x77, + 0x74, 0x32, + 0xD0, 0x11, + 0xB7, + 0x24, + 0x00, + 0xAA, + 0x00, + 0x6C, + 0x1A, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_A2R10G10B10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6D, 0xB7, 0x8B, 0x2F, + 0x44, 0xB6, + 0x50, 0x45, + 0xAC, + 0xF3, + 0xD3, + 0x0C, + 0xAA, + 0x65, + 0xD5, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_A2B10G10R10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x93, 0x78, 0x6F, 0x57, + 0xF6, 0xBD, + 0xC4, 0x48, + 0x87, + 0x5F, + 0xAE, + 0x7B, + 0x81, + 0x83, + 0x45, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AYUV + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x59, 0x55, 0x56, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AI44 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x49, 0x34, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IA44 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x41, 0x34, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB32_D3D_DX7_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x52, 0x33, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB16_D3D_DX7_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x52, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB32_D3D_DX7_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x41, 0x38, 0x38, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB4444_D3D_DX7_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x41, 0x34, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB1555_D3D_DX7_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x37, 0x41, 0x31, 0x35, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB32_D3D_DX9_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x39, 0x52, 0x33, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RGB16_D3D_DX9_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x39, 0x52, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB32_D3D_DX9_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x39, 0x41, 0x38, 0x38, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB4444_D3D_DX9_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x39, 0x41, 0x34, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_ARGB1555_D3D_DX9_RT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x39, 0x41, 0x31, 0x35, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_YV12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x56, 0x31, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_NV12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x56, 0x31, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_NV11 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x56, 0x31, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_P208 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x32, 0x30, 0x38, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_P210 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x32, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_P216 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x32, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_P010 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x30, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_P016 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x30, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Y210 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x32, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Y216 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x32, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_P408 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x34, 0x30, 0x38, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_NV24 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x56, 0x32, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_420O + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x34, 0x32, 0x30, 0x4F, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IMC1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x4D, 0x43, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IMC2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x4D, 0x43, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IMC3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x4D, 0x43, 0x33, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IMC4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x4D, 0x43, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_S340 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x33, 0x34, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_S342 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x33, 0x34, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Overlay + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7F, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MPEG1Packet + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MPEG1Payload + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x81, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MPEG1AudioPayload + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MPEG1System + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x84, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MPEG1VideoCD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x85, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MPEG1Video + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x86, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_MPEG1Audio + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x87, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Avi + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x88, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Asf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x90, 0x0F, 0xB8, 0x3D, + 0x12, 0x94, + 0xD1, 0x11, + 0xAD, + 0xED, + 0x00, + 0x00, + 0xF8, + 0x75, + 0x4B, + 0x99 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_QTMovie + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x89, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_QTRpza + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x72, 0x70, 0x7A, 0x61, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_QTSmc + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x73, 0x6D, 0x63, 0x20, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_QTRle + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x72, 0x6C, 0x65, 0x20, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_QTJpeg + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6A, 0x70, 0x65, 0x67, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_PCMAudio_Obsolete + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_PCM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_WAVE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8B, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AU + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8C, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AIFF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8D, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, + 0x00, + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_dvsd + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x73, 0x64, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_dvhd + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x68, 0x64, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_dvsl + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x73, 0x6C, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_dv25 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x32, 0x35, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_dv50 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x35, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_dvh1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x68, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Line21_BytePair + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x22, 0x4A, 0x8D, 0x6E, + 0x0C, 0x31, + 0xD0, 0x11, + 0xB7, + 0x9A, + 0x00, + 0xAA, + 0x00, + 0x37, + 0x67, + 0xA7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Line21_GOPPacket + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x23, 0x4A, 0x8D, 0x6E, + 0x0C, 0x31, + 0xD0, 0x11, + 0xB7, + 0x9A, + 0x00, + 0xAA, + 0x00, + 0x37, + 0x67, + 0xA7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_Line21_VBIRawData + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0x4A, 0x8D, 0x6E, + 0x0C, 0x31, + 0xD0, 0x11, + 0xB7, + 0x9A, + 0x00, + 0xAA, + 0x00, + 0x37, + 0x67, + 0xA7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_708_608Data + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBC, 0x14, 0xF4, 0x0A, + 0xD2, 0x4E, + 0x5E, 0x44, + 0x98, + 0x39, + 0x8F, + 0x09, + 0x55, + 0x68, + 0xAB, + 0x3C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DtvCcData + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0xDD, 0x2A, 0xF5, + 0xF0, 0x36, + 0xF5, 0x43, + 0x95, + 0xEA, + 0x6D, + 0x86, + 0x64, + 0x84, + 0x26, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_CC_CONTAINER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0x26, 0xA6, 0x7E, + 0xDA, 0x54, + 0x7B, 0x43, + 0xBE, + 0x9F, + 0xF7, + 0x30, + 0x73, + 0xAD, + 0xFA, + 0x3C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_TELETEXT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE3, 0x76, 0x2A, 0xF7, + 0x0A, 0xEB, + 0xD0, 0x11, + 0xAC, + 0xE4, + 0x00, + 0x00, + 0xC0, + 0xCC, + 0x16, + 0xBA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_VBI + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3C, 0xA4, 0x3D, 0x66, + 0xE8, 0x03, + 0x9A, 0x4E, + 0x9C, + 0xD5, + 0xBF, + 0x11, + 0xED, + 0x0D, + 0xEF, + 0x76 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_WSS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x76, 0xD5, 0x91, 0x27, + 0x7A, 0x8E, + 0x6F, 0x46, + 0x9E, + 0x90, + 0x5D, + 0x3F, + 0x30, + 0x83, + 0x73, + 0x8B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_XDS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE3, 0x73, 0xCA, 0x01, + 0xE6, 0xDC, + 0x75, 0x45, + 0xAF, + 0xE1, + 0x2B, + 0xF1, + 0xC9, + 0x02, + 0xCA, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_VPS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x20, 0xF6, 0xB3, 0xA1, + 0x92, 0x97, + 0x8D, 0x4D, + 0x81, + 0xA4, + 0x86, + 0xAF, + 0x25, + 0x77, + 0x20, + 0x90 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DRM_Audio + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_IEEE_FLOAT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x03, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DOLBY_AC3_SPDIF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x92, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_RAW_SPORT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0x02, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_SPDIF_TAG_241h + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x02, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DssVideo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x81, 0x4F, 0xAF, 0xA0, + 0x63, 0xE1, + 0xD0, 0x11, + 0xBA, + 0xD9, + 0x00, + 0x60, + 0x97, + 0x44, + 0x11, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_DssAudio + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x82, 0x4F, 0xAF, 0xA0, + 0x63, 0xE1, + 0xD0, 0x11, + 0xBA, + 0xD9, + 0x00, + 0x60, + 0x97, + 0x44, + 0x11, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_VPVideo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0x6A, 0x9B, 0x5A, + 0x22, 0x1A, + 0xD1, 0x11, + 0xBA, + 0xD9, + 0x00, + 0x60, + 0x97, + 0x44, + 0x11, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_VPVBI + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x6A, 0x9B, 0x5A, + 0x22, 0x1A, + 0xD1, 0x11, + 0xBA, + 0xD9, + 0x00, + 0x60, + 0x97, + 0x44, + 0x11, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_NTSC_M + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE2, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_B + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE5, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_D + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE6, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_G + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE7, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_H + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE8, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_I + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE9, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_M + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEA, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_N + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEB, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_N_COMBO + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEC, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_B + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF0, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_D + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF1, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_G + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF2, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_H + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF3, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_K + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_K1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF5, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_L + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF6, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, + 0x00, + 0xAA, + 0x00, + 0x6E, + 0xCB, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/shared/uuids/Windows.cs b/sources/Interop/Windows/Windows/shared/uuids/Windows.cs index a4f574f3bd..d7a05ca6f4 100644 --- a/sources/Interop/Windows/Windows/shared/uuids/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/uuids/Windows.cs @@ -12,31 +12,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_None - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8E, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("const GUID")] public static ref readonly Guid MEDIATYPE_Video { @@ -387,81 +362,6 @@ public static ref readonly Guid MEDIATYPE_VBI } } - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DVB_SUBTITLES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0xCB, 0xFF, 0x34, - 0xB3, 0xD5, - 0x71, 0x41, - 0x90, - 0x02, - 0xD4, - 0xC6, - 0x03, - 0x01, - 0x69, - 0x7F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ISDB_CAPTIONS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0xD6, 0x9D, 0x05, - 0x55, 0x2E, - 0x41, 0x4D, - 0x8D, - 0x1B, - 0x01, - 0xF5, - 0xE4, - 0xF5, - 0x06, - 0x07 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ISDB_SUPERIMPOSE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x28, 0x6D, 0xDC, 0x36, - 0xA6, 0xF1, - 0x16, 0x42, - 0x90, - 0x48, - 0x9C, - 0xFC, - 0xEF, - 0xEB, - 0x5E, - 0xBA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("const GUID")] public static ref readonly Guid MEDIATYPE_Timecode { @@ -538,23 +438,23 @@ public static ref readonly Guid MEDIATYPE_URL_STREAM } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_CLPL + public static ref readonly Guid MEDIATYPE_MPEG1SystemStream { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x43, 0x4C, 0x50, 0x4C, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, + 0x82, 0xEB, 0x36, 0xE4, + 0x4F, 0x52, + 0xCE, 0x11, + 0x9F, + 0x53, 0x00, - 0x38, - 0x9B, - 0x71 + 0x20, + 0xAF, + 0x0B, + 0xA7, + 0x70 }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -563,23 +463,23 @@ public static ref readonly Guid MEDIASUBTYPE_CLPL } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_YUYV + public static ref readonly Guid FORMAT_None { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x59, 0x55, 0x59, 0x56, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, + 0xD6, 0x17, 0x64, 0x0F, + 0x18, 0xC3, + 0xD0, 0x11, + 0xA4, + 0x3F, 0x00, - 0x38, - 0x9B, - 0x71 + 0xA0, + 0xC9, + 0x22, + 0x31, + 0x96 }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -588,23 +488,23 @@ public static ref readonly Guid MEDIASUBTYPE_YUYV } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IYUV + public static ref readonly Guid FORMAT_VideoInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x49, 0x59, 0x55, 0x56, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, + 0x80, 0x9F, 0x58, 0x05, + 0x56, 0xC3, + 0xCE, 0x11, + 0xBF, + 0x01, 0x00, 0xAA, 0x00, - 0x38, - 0x9B, - 0x71 + 0x55, + 0x59, + 0x5A }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -613,23 +513,23 @@ public static ref readonly Guid MEDIASUBTYPE_IYUV } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_YVU9 + public static ref readonly Guid FORMAT_VideoInfo2 { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x59, 0x56, 0x55, 0x39, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, + 0xA0, 0x76, 0x2A, 0xF7, + 0x0A, 0xEB, + 0xD0, 0x11, + 0xAC, + 0xE4, 0x00, - 0xAA, 0x00, - 0x38, - 0x9B, - 0x71 + 0xC0, + 0xCC, + 0x16, + 0xBA }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -638,23 +538,23 @@ public static ref readonly Guid MEDIASUBTYPE_YVU9 } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Y411 + public static ref readonly Guid FORMAT_WaveFormatEx { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x59, 0x34, 0x31, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, + 0x81, 0x9F, 0x58, 0x05, + 0x56, 0xC3, + 0xCE, 0x11, + 0xBF, + 0x01, 0x00, 0xAA, 0x00, - 0x38, - 0x9B, - 0x71 + 0x55, + 0x59, + 0x5A }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -663,23 +563,23 @@ public static ref readonly Guid MEDIASUBTYPE_Y411 } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Y41P + public static ref readonly Guid FORMAT_MPEGVideo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x59, 0x34, 0x31, 0x50, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, + 0x82, 0x9F, 0x58, 0x05, + 0x56, 0xC3, + 0xCE, 0x11, + 0xBF, + 0x01, 0x00, 0xAA, 0x00, - 0x38, - 0x9B, - 0x71 + 0x55, + 0x59, + 0x5A }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -688,23 +588,23 @@ public static ref readonly Guid MEDIASUBTYPE_Y41P } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_YUY2 + public static ref readonly Guid FORMAT_MPEGStreams { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x59, 0x55, 0x59, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, + 0x83, 0x9F, 0x58, 0x05, + 0x56, 0xC3, + 0xCE, 0x11, + 0xBF, + 0x01, 0x00, 0xAA, 0x00, - 0x38, - 0x9B, - 0x71 + 0x55, + 0x59, + 0x5A }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -713,23 +613,23 @@ public static ref readonly Guid MEDIASUBTYPE_YUY2 } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_YVYU + public static ref readonly Guid FORMAT_DvInfo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x59, 0x56, 0x59, 0x55, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, + 0x84, 0x9F, 0x58, 0x05, + 0x56, 0xC3, + 0xCE, 0x11, + 0xBF, + 0x01, 0x00, 0xAA, 0x00, - 0x38, - 0x9B, - 0x71 + 0x55, + 0x59, + 0x5A }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -738,23 +638,23 @@ public static ref readonly Guid MEDIASUBTYPE_YVYU } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_UYVY + public static ref readonly Guid FORMAT_525WSS { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x55, 0x59, 0x56, 0x59, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 + 0x4D, 0xF0, 0xEC, 0xC7, + 0x82, 0x45, + 0x69, 0x48, + 0x9A, + 0xBB, + 0xBF, + 0xB5, + 0x23, + 0xB6, + 0x2E, + 0xDF }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -763,23 +663,23 @@ public static ref readonly Guid MEDIASUBTYPE_UYVY } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Y211 + public static ref readonly Guid FORMAT_AnalogVideo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x59, 0x32, 0x31, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, + 0xE0, 0xDD, 0x82, 0x04, + 0x17, 0x78, + 0xCF, 0x11, + 0x8A, + 0x03, 0x00, 0xAA, 0x00, - 0x38, - 0x9B, - 0x71 + 0x6E, + 0xCB, + 0x65 }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -788,3238 +688,13 @@ public static ref readonly Guid MEDIASUBTYPE_Y211 } [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_CLJR + public static ref readonly Guid MEDIATYPE_AnalogVideo { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x43, 0x4C, 0x4A, 0x52, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IF09 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x46, 0x30, 0x39, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_CPLA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x43, 0x50, 0x4C, 0x41, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MJPG - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x4A, 0x50, 0x47, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_TVMJ - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x54, 0x56, 0x4D, 0x4A, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_WAKE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x57, 0x41, 0x4B, 0x45, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_CFCC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x43, 0x46, 0x43, 0x43, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IJPG - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x4A, 0x50, 0x47, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Plum - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x6C, 0x75, 0x6D, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DVCS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0x56, 0x43, 0x53, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_H264 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x32, 0x36, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DVSD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0x56, 0x53, 0x44, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MDVF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x44, 0x56, 0x46, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x78, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x79, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7A, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB565 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7B, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB555 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7C, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB24 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB32 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7E, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB1555 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAF, 0x55, 0x7C, 0x29, - 0x09, 0xE2, - 0xB3, 0x4C, - 0xB7, - 0x57, - 0xC7, - 0x6D, - 0x6B, - 0x9C, - 0x88, - 0xA8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB4444 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE6, 0x15, 0x64, 0x6E, - 0x24, 0x5C, - 0x5F, 0x42, - 0x93, - 0xCD, - 0x80, - 0x10, - 0x2B, - 0x3D, - 0x1C, - 0xCA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB32 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC0, 0x9A, 0x3C, 0x77, - 0x74, 0x32, - 0xD0, 0x11, - 0xB7, - 0x24, - 0x00, - 0xAA, - 0x00, - 0x6C, - 0x1A, - 0x01 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_A2R10G10B10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6D, 0xB7, 0x8B, 0x2F, - 0x44, 0xB6, - 0x50, 0x45, - 0xAC, - 0xF3, - 0xD3, - 0x0C, - 0xAA, - 0x65, - 0xD5, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_A2B10G10R10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x93, 0x78, 0x6F, 0x57, - 0xF6, 0xBD, - 0xC4, 0x48, - 0x87, - 0x5F, - 0xAE, - 0x7B, - 0x81, - 0x83, - 0x45, - 0x67 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AYUV - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x59, 0x55, 0x56, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AI44 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x49, 0x34, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IA44 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x41, 0x34, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB32_D3D_DX7_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x52, 0x33, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB16_D3D_DX7_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x52, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB32_D3D_DX7_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x41, 0x38, 0x38, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB4444_D3D_DX7_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x41, 0x34, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB1555_D3D_DX7_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x37, 0x41, 0x31, 0x35, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB32_D3D_DX9_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x39, 0x52, 0x33, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RGB16_D3D_DX9_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x39, 0x52, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB32_D3D_DX9_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x39, 0x41, 0x38, 0x38, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB4444_D3D_DX9_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x39, 0x41, 0x34, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_ARGB1555_D3D_DX9_RT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x39, 0x41, 0x31, 0x35, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_YV12 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x56, 0x31, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_NV12 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x56, 0x31, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_NV11 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x56, 0x31, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_P208 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x32, 0x30, 0x38, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_P210 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x32, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_P216 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x32, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_P010 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x30, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_P016 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x30, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Y210 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x32, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Y216 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x32, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_P408 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x34, 0x30, 0x38, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_NV24 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x56, 0x32, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_420O - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x34, 0x32, 0x30, 0x4F, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IMC1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x4D, 0x43, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IMC2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x4D, 0x43, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IMC3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x4D, 0x43, 0x33, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IMC4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x4D, 0x43, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_S340 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x53, 0x33, 0x34, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_S342 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x53, 0x33, 0x34, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Overlay - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7F, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MPEG1Packet - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x80, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MPEG1Payload - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x81, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MPEG1AudioPayload - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIATYPE_MPEG1SystemStream - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x82, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MPEG1System - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x84, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MPEG1VideoCD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x85, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MPEG1Video - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x86, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_MPEG1Audio - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x87, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Avi - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x88, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Asf - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x90, 0x0F, 0xB8, 0x3D, - 0x12, 0x94, - 0xD1, 0x11, - 0xAD, - 0xED, - 0x00, - 0x00, - 0xF8, - 0x75, - 0x4B, - 0x99 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_QTMovie - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x89, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_QTRpza - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x72, 0x70, 0x7A, 0x61, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_QTSmc - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x73, 0x6D, 0x63, 0x20, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_QTRle - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x72, 0x6C, 0x65, 0x20, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_QTJpeg - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6A, 0x70, 0x65, 0x67, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_PCMAudio_Obsolete - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_PCM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_WAVE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8B, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AU - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8C, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AIFF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8D, 0xEB, 0x36, 0xE4, - 0x4F, 0x52, - 0xCE, 0x11, - 0x9F, - 0x53, - 0x00, - 0x20, - 0xAF, - 0x0B, - 0xA7, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_dvsd - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x73, 0x64, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_dvhd - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x68, 0x64, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_dvsl - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x73, 0x6C, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_dv25 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x32, 0x35, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_dv50 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x35, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_dvh1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x68, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Line21_BytePair - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x22, 0x4A, 0x8D, 0x6E, - 0x0C, 0x31, - 0xD0, 0x11, - 0xB7, - 0x9A, - 0x00, - 0xAA, - 0x00, - 0x37, - 0x67, - 0xA7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Line21_GOPPacket - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x23, 0x4A, 0x8D, 0x6E, - 0x0C, 0x31, - 0xD0, 0x11, - 0xB7, - 0x9A, - 0x00, - 0xAA, - 0x00, - 0x37, - 0x67, - 0xA7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_Line21_VBIRawData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0x4A, 0x8D, 0x6E, - 0x0C, 0x31, - 0xD0, 0x11, - 0xB7, - 0x9A, - 0x00, - 0xAA, - 0x00, - 0x37, - 0x67, - 0xA7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_708_608Data - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBC, 0x14, 0xF4, 0x0A, - 0xD2, 0x4E, - 0x5E, 0x44, - 0x98, - 0x39, - 0x8F, - 0x09, - 0x55, - 0x68, - 0xAB, - 0x3C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DtvCcData - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0xDD, 0x2A, 0xF5, - 0xF0, 0x36, - 0xF5, 0x43, - 0x95, - 0xEA, - 0x6D, - 0x86, - 0x64, - 0x84, - 0x26, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_CC_CONTAINER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0x26, 0xA6, 0x7E, - 0xDA, 0x54, - 0x7B, 0x43, - 0xBE, - 0x9F, - 0xF7, - 0x30, - 0x73, - 0xAD, - 0xFA, - 0x3C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_TELETEXT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE3, 0x76, 0x2A, 0xF7, - 0x0A, 0xEB, - 0xD0, 0x11, - 0xAC, - 0xE4, - 0x00, - 0x00, - 0xC0, - 0xCC, - 0x16, - 0xBA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_VBI - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3C, 0xA4, 0x3D, 0x66, - 0xE8, 0x03, - 0x9A, 0x4E, - 0x9C, - 0xD5, - 0xBF, - 0x11, - 0xED, - 0x0D, - 0xEF, - 0x76 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_WSS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x76, 0xD5, 0x91, 0x27, - 0x7A, 0x8E, - 0x6F, 0x46, - 0x9E, - 0x90, - 0x5D, - 0x3F, - 0x30, - 0x83, - 0x73, - 0x8B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_XDS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE3, 0x73, 0xCA, 0x01, - 0xE6, 0xDC, - 0x75, 0x45, - 0xAF, - 0xE1, - 0x2B, - 0xF1, - 0xC9, - 0x02, - 0xCA, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_VPS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x20, 0xF6, 0xB3, 0xA1, - 0x92, 0x97, - 0x8D, 0x4D, - 0x81, - 0xA4, - 0x86, - 0xAF, - 0x25, - 0x77, - 0x20, - 0x90 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DRM_Audio - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x09, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_IEEE_FLOAT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x03, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DOLBY_AC3_SPDIF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x92, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_RAW_SPORT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0x02, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_SPDIF_TAG_241h - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x02, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DssVideo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x81, 0x4F, 0xAF, 0xA0, - 0x63, 0xE1, - 0xD0, 0x11, - 0xBA, - 0xD9, - 0x00, - 0x60, - 0x97, - 0x44, - 0x11, - 0x1A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_DssAudio - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x82, 0x4F, 0xAF, 0xA0, - 0x63, 0xE1, - 0xD0, 0x11, - 0xBA, - 0xD9, - 0x00, - 0x60, - 0x97, - 0x44, - 0x11, - 0x1A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_VPVideo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0x6A, 0x9B, 0x5A, - 0x22, 0x1A, - 0xD1, 0x11, - 0xBA, - 0xD9, - 0x00, - 0x60, - 0x97, - 0x44, - 0x11, - 0x1A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_VPVBI - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x6A, 0x9B, 0x5A, - 0x22, 0x1A, - 0xD1, 0x11, - 0xBA, - 0xD9, - 0x00, - 0x60, - 0x97, - 0x44, - 0x11, - 0x1A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_None - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD6, 0x17, 0x64, 0x0F, - 0x18, 0xC3, - 0xD0, 0x11, - 0xA4, - 0x3F, - 0x00, - 0xA0, - 0xC9, - 0x22, - 0x31, - 0x96 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_VideoInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x80, 0x9F, 0x58, 0x05, - 0x56, 0xC3, - 0xCE, 0x11, - 0xBF, - 0x01, - 0x00, - 0xAA, - 0x00, - 0x55, - 0x59, - 0x5A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_VideoInfo2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA0, 0x76, 0x2A, 0xF7, - 0x0A, 0xEB, - 0xD0, 0x11, - 0xAC, - 0xE4, - 0x00, - 0x00, - 0xC0, - 0xCC, - 0x16, - 0xBA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_WaveFormatEx - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x81, 0x9F, 0x58, 0x05, - 0x56, 0xC3, - 0xCE, 0x11, - 0xBF, - 0x01, - 0x00, - 0xAA, - 0x00, - 0x55, - 0x59, - 0x5A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_MPEGVideo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x82, 0x9F, 0x58, 0x05, - 0x56, 0xC3, - 0xCE, 0x11, - 0xBF, - 0x01, - 0x00, - 0xAA, - 0x00, - 0x55, - 0x59, - 0x5A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_MPEGStreams - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x83, 0x9F, 0x58, 0x05, - 0x56, 0xC3, - 0xCE, 0x11, - 0xBF, - 0x01, - 0x00, - 0xAA, - 0x00, - 0x55, - 0x59, - 0x5A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_DvInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x84, 0x9F, 0x58, 0x05, - 0x56, 0xC3, - 0xCE, 0x11, - 0xBF, - 0x01, - 0x00, - 0xAA, - 0x00, - 0x55, - 0x59, - 0x5A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_525WSS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0xF0, 0xEC, 0xC7, - 0x82, 0x45, - 0x69, 0x48, - 0x9A, - 0xBB, - 0xBF, - 0xB5, - 0x23, - 0xB6, - 0x2E, - 0xDF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid FORMAT_AnalogVideo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE0, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIATYPE_AnalogVideo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE1, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_NTSC_M - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE2, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_B - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE5, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE6, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_G - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE7, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_H - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE8, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_I - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE9, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_M - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEA, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_N - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEB, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_PAL_N_COMBO - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEC, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_B - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF0, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_D - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF1, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_G - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF2, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_H - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF3, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_K - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF4, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_K1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF5, 0xDD, 0x82, 0x04, - 0x17, 0x78, - 0xCF, 0x11, - 0x8A, - 0x03, - 0x00, - 0xAA, - 0x00, - 0x6E, - 0xCB, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MEDIASUBTYPE_AnalogVideo_SECAM_L - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF6, 0xDD, 0x82, 0x04, + 0xE1, 0xDD, 0x82, 0x04, 0x17, 0x78, 0xCF, 0x11, 0x8A, diff --git a/sources/Interop/Windows/Windows/shared/windowsx/Windows.Manual.cs b/sources/Interop/Windows/Windows/shared/windowsx/Windows.Manual.cs index 3468d2f11f..d9bcc1c3b8 100644 --- a/sources/Interop/Windows/Windows/shared/windowsx/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/shared/windowsx/Windows.Manual.cs @@ -3,10 +3,13 @@ // Ported from shared/windowsx.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. +using static TerraFX.Interop.Windows.CB; using static TerraFX.Interop.Windows.EM; +using static TerraFX.Interop.Windows.LB; using static TerraFX.Interop.Windows.MF; using static TerraFX.Interop.Windows.VK; using static TerraFX.Interop.Windows.SB; +using static TerraFX.Interop.Windows.SW; using static TerraFX.Interop.Windows.WM; using static TerraFX.Interop.Windows.WS; diff --git a/sources/Interop/Windows/Windows/shared/winerror/APPX.cs b/sources/Interop/Windows/Windows/shared/winerror/APPX.cs new file mode 100644 index 0000000000..b9338ceae8 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/APPX.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class APPX + { + [NativeTypeName("#define APPX_E_PACKAGING_INTERNAL _HRESULT_TYPEDEF_(0x80080200L)")] + public const int APPX_E_PACKAGING_INTERNAL = unchecked((int)(0x80080200)); + + [NativeTypeName("#define APPX_E_INTERLEAVING_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080201L)")] + public const int APPX_E_INTERLEAVING_NOT_ALLOWED = unchecked((int)(0x80080201)); + + [NativeTypeName("#define APPX_E_RELATIONSHIPS_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080202L)")] + public const int APPX_E_RELATIONSHIPS_NOT_ALLOWED = unchecked((int)(0x80080202)); + + [NativeTypeName("#define APPX_E_MISSING_REQUIRED_FILE _HRESULT_TYPEDEF_(0x80080203L)")] + public const int APPX_E_MISSING_REQUIRED_FILE = unchecked((int)(0x80080203)); + + [NativeTypeName("#define APPX_E_INVALID_MANIFEST _HRESULT_TYPEDEF_(0x80080204L)")] + public const int APPX_E_INVALID_MANIFEST = unchecked((int)(0x80080204)); + + [NativeTypeName("#define APPX_E_INVALID_BLOCKMAP _HRESULT_TYPEDEF_(0x80080205L)")] + public const int APPX_E_INVALID_BLOCKMAP = unchecked((int)(0x80080205)); + + [NativeTypeName("#define APPX_E_CORRUPT_CONTENT _HRESULT_TYPEDEF_(0x80080206L)")] + public const int APPX_E_CORRUPT_CONTENT = unchecked((int)(0x80080206)); + + [NativeTypeName("#define APPX_E_BLOCK_HASH_INVALID _HRESULT_TYPEDEF_(0x80080207L)")] + public const int APPX_E_BLOCK_HASH_INVALID = unchecked((int)(0x80080207)); + + [NativeTypeName("#define APPX_E_REQUESTED_RANGE_TOO_LARGE _HRESULT_TYPEDEF_(0x80080208L)")] + public const int APPX_E_REQUESTED_RANGE_TOO_LARGE = unchecked((int)(0x80080208)); + + [NativeTypeName("#define APPX_E_INVALID_SIP_CLIENT_DATA _HRESULT_TYPEDEF_(0x80080209L)")] + public const int APPX_E_INVALID_SIP_CLIENT_DATA = unchecked((int)(0x80080209)); + + [NativeTypeName("#define APPX_E_INVALID_KEY_INFO _HRESULT_TYPEDEF_(0x8008020AL)")] + public const int APPX_E_INVALID_KEY_INFO = unchecked((int)(0x8008020A)); + + [NativeTypeName("#define APPX_E_INVALID_CONTENTGROUPMAP _HRESULT_TYPEDEF_(0x8008020BL)")] + public const int APPX_E_INVALID_CONTENTGROUPMAP = unchecked((int)(0x8008020B)); + + [NativeTypeName("#define APPX_E_INVALID_APPINSTALLER _HRESULT_TYPEDEF_(0x8008020CL)")] + public const int APPX_E_INVALID_APPINSTALLER = unchecked((int)(0x8008020C)); + + [NativeTypeName("#define APPX_E_DELTA_BASELINE_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x8008020DL)")] + public const int APPX_E_DELTA_BASELINE_VERSION_MISMATCH = unchecked((int)(0x8008020D)); + + [NativeTypeName("#define APPX_E_DELTA_PACKAGE_MISSING_FILE _HRESULT_TYPEDEF_(0x8008020EL)")] + public const int APPX_E_DELTA_PACKAGE_MISSING_FILE = unchecked((int)(0x8008020E)); + + [NativeTypeName("#define APPX_E_INVALID_DELTA_PACKAGE _HRESULT_TYPEDEF_(0x8008020FL)")] + public const int APPX_E_INVALID_DELTA_PACKAGE = unchecked((int)(0x8008020F)); + + [NativeTypeName("#define APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080210L)")] + public const int APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED = unchecked((int)(0x80080210)); + + [NativeTypeName("#define APPX_E_INVALID_PACKAGING_LAYOUT _HRESULT_TYPEDEF_(0x80080211L)")] + public const int APPX_E_INVALID_PACKAGING_LAYOUT = unchecked((int)(0x80080211)); + + [NativeTypeName("#define APPX_E_INVALID_PACKAGESIGNCONFIG _HRESULT_TYPEDEF_(0x80080212L)")] + public const int APPX_E_INVALID_PACKAGESIGNCONFIG = unchecked((int)(0x80080212)); + + [NativeTypeName("#define APPX_E_RESOURCESPRI_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080213L)")] + public const int APPX_E_RESOURCESPRI_NOT_ALLOWED = unchecked((int)(0x80080213)); + + [NativeTypeName("#define APPX_E_FILE_COMPRESSION_MISMATCH _HRESULT_TYPEDEF_(0x80080214L)")] + public const int APPX_E_FILE_COMPRESSION_MISMATCH = unchecked((int)(0x80080214)); + + [NativeTypeName("#define APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION _HRESULT_TYPEDEF_(0x80080215L)")] + public const int APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION = unchecked((int)(0x80080215)); + + [NativeTypeName("#define APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST _HRESULT_TYPEDEF_(0x80080216L)")] + public const int APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST = unchecked((int)(0x80080216)); + + [NativeTypeName("#define APPX_E_INVALID_PACKAGE_FOLDER_ACLS _HRESULT_TYPEDEF_(0x80080217L)")] + public const int APPX_E_INVALID_PACKAGE_FOLDER_ACLS = unchecked((int)(0x80080217)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/CONVERT10.cs b/sources/Interop/Windows/Windows/shared/winerror/CONVERT10.cs new file mode 100644 index 0000000000..55e528a7d9 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/CONVERT10.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CONVERT10 + { + [NativeTypeName("#define CONVERT10_E_FIRST 0x800401C0L")] + public const uint CONVERT10_E_FIRST = 0x800401C0; + + [NativeTypeName("#define CONVERT10_E_LAST 0x800401CFL")] + public const uint CONVERT10_E_LAST = 0x800401CF; + + [NativeTypeName("#define CONVERT10_S_FIRST 0x000401C0L")] + public const int CONVERT10_S_FIRST = 0x000401C0; + + [NativeTypeName("#define CONVERT10_S_LAST 0x000401CFL")] + public const int CONVERT10_S_LAST = 0x000401CF; + + [NativeTypeName("#define CONVERT10_E_OLESTREAM_GET _HRESULT_TYPEDEF_(0x800401C0L)")] + public const int CONVERT10_E_OLESTREAM_GET = unchecked((int)(0x800401C0)); + + [NativeTypeName("#define CONVERT10_E_OLESTREAM_PUT _HRESULT_TYPEDEF_(0x800401C1L)")] + public const int CONVERT10_E_OLESTREAM_PUT = unchecked((int)(0x800401C1)); + + [NativeTypeName("#define CONVERT10_E_OLESTREAM_FMT _HRESULT_TYPEDEF_(0x800401C2L)")] + public const int CONVERT10_E_OLESTREAM_FMT = unchecked((int)(0x800401C2)); + + [NativeTypeName("#define CONVERT10_E_OLESTREAM_BITMAP_TO_DIB _HRESULT_TYPEDEF_(0x800401C3L)")] + public const int CONVERT10_E_OLESTREAM_BITMAP_TO_DIB = unchecked((int)(0x800401C3)); + + [NativeTypeName("#define CONVERT10_E_STG_FMT _HRESULT_TYPEDEF_(0x800401C4L)")] + public const int CONVERT10_E_STG_FMT = unchecked((int)(0x800401C4)); + + [NativeTypeName("#define CONVERT10_E_STG_NO_STD_STREAM _HRESULT_TYPEDEF_(0x800401C5L)")] + public const int CONVERT10_E_STG_NO_STD_STREAM = unchecked((int)(0x800401C5)); + + [NativeTypeName("#define CONVERT10_E_STG_DIB_TO_BITMAP _HRESULT_TYPEDEF_(0x800401C6L)")] + public const int CONVERT10_E_STG_DIB_TO_BITMAP = unchecked((int)(0x800401C6)); + + [NativeTypeName("#define CONVERT10_S_NO_PRESENTATION _HRESULT_TYPEDEF_(0x000401C0L)")] + public const int CONVERT10_S_NO_PRESENTATION = ((int)(0x000401C0)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/CS.cs b/sources/Interop/Windows/Windows/shared/winerror/CS.cs new file mode 100644 index 0000000000..c2969ef052 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/CS.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CS + { + [NativeTypeName("#define CS_E_FIRST 0x80040164L")] + public const uint CS_E_FIRST = 0x80040164; + + [NativeTypeName("#define CS_E_LAST 0x8004016FL")] + public const uint CS_E_LAST = 0x8004016F; + + [NativeTypeName("#define CS_E_PACKAGE_NOTFOUND _HRESULT_TYPEDEF_(0x80040164L)")] + public const int CS_E_PACKAGE_NOTFOUND = unchecked((int)(0x80040164)); + + [NativeTypeName("#define CS_E_NOT_DELETABLE _HRESULT_TYPEDEF_(0x80040165L)")] + public const int CS_E_NOT_DELETABLE = unchecked((int)(0x80040165)); + + [NativeTypeName("#define CS_E_CLASS_NOTFOUND _HRESULT_TYPEDEF_(0x80040166L)")] + public const int CS_E_CLASS_NOTFOUND = unchecked((int)(0x80040166)); + + [NativeTypeName("#define CS_E_INVALID_VERSION _HRESULT_TYPEDEF_(0x80040167L)")] + public const int CS_E_INVALID_VERSION = unchecked((int)(0x80040167)); + + [NativeTypeName("#define CS_E_NO_CLASSSTORE _HRESULT_TYPEDEF_(0x80040168L)")] + public const int CS_E_NO_CLASSSTORE = unchecked((int)(0x80040168)); + + [NativeTypeName("#define CS_E_OBJECT_NOTFOUND _HRESULT_TYPEDEF_(0x80040169L)")] + public const int CS_E_OBJECT_NOTFOUND = unchecked((int)(0x80040169)); + + [NativeTypeName("#define CS_E_OBJECT_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x8004016AL)")] + public const int CS_E_OBJECT_ALREADY_EXISTS = unchecked((int)(0x8004016A)); + + [NativeTypeName("#define CS_E_INVALID_PATH _HRESULT_TYPEDEF_(0x8004016BL)")] + public const int CS_E_INVALID_PATH = unchecked((int)(0x8004016B)); + + [NativeTypeName("#define CS_E_NETWORK_ERROR _HRESULT_TYPEDEF_(0x8004016CL)")] + public const int CS_E_NETWORK_ERROR = unchecked((int)(0x8004016C)); + + [NativeTypeName("#define CS_E_ADMIN_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8004016DL)")] + public const int CS_E_ADMIN_LIMIT_EXCEEDED = unchecked((int)(0x8004016D)); + + [NativeTypeName("#define CS_E_SCHEMA_MISMATCH _HRESULT_TYPEDEF_(0x8004016EL)")] + public const int CS_E_SCHEMA_MISMATCH = unchecked((int)(0x8004016E)); + + [NativeTypeName("#define CS_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x8004016FL)")] + public const int CS_E_INTERNAL_ERROR = unchecked((int)(0x8004016F)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/D2DERR.cs b/sources/Interop/Windows/Windows/shared/winerror/D2DERR.cs new file mode 100644 index 0000000000..147c7d5477 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/D2DERR.cs @@ -0,0 +1,150 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D2DERR + { + [NativeTypeName("#define D2DERR_WRONG_STATE _HRESULT_TYPEDEF_(0x88990001L)")] + public const int D2DERR_WRONG_STATE = unchecked((int)(0x88990001)); + + [NativeTypeName("#define D2DERR_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x88990002L)")] + public const int D2DERR_NOT_INITIALIZED = unchecked((int)(0x88990002)); + + [NativeTypeName("#define D2DERR_UNSUPPORTED_OPERATION _HRESULT_TYPEDEF_(0x88990003L)")] + public const int D2DERR_UNSUPPORTED_OPERATION = unchecked((int)(0x88990003)); + + [NativeTypeName("#define D2DERR_SCANNER_FAILED _HRESULT_TYPEDEF_(0x88990004L)")] + public const int D2DERR_SCANNER_FAILED = unchecked((int)(0x88990004)); + + [NativeTypeName("#define D2DERR_SCREEN_ACCESS_DENIED _HRESULT_TYPEDEF_(0x88990005L)")] + public const int D2DERR_SCREEN_ACCESS_DENIED = unchecked((int)(0x88990005)); + + [NativeTypeName("#define D2DERR_DISPLAY_STATE_INVALID _HRESULT_TYPEDEF_(0x88990006L)")] + public const int D2DERR_DISPLAY_STATE_INVALID = unchecked((int)(0x88990006)); + + [NativeTypeName("#define D2DERR_ZERO_VECTOR _HRESULT_TYPEDEF_(0x88990007L)")] + public const int D2DERR_ZERO_VECTOR = unchecked((int)(0x88990007)); + + [NativeTypeName("#define D2DERR_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x88990008L)")] + public const int D2DERR_INTERNAL_ERROR = unchecked((int)(0x88990008)); + + [NativeTypeName("#define D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88990009L)")] + public const int D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED = unchecked((int)(0x88990009)); + + [NativeTypeName("#define D2DERR_INVALID_CALL _HRESULT_TYPEDEF_(0x8899000AL)")] + public const int D2DERR_INVALID_CALL = unchecked((int)(0x8899000A)); + + [NativeTypeName("#define D2DERR_NO_HARDWARE_DEVICE _HRESULT_TYPEDEF_(0x8899000BL)")] + public const int D2DERR_NO_HARDWARE_DEVICE = unchecked((int)(0x8899000B)); + + [NativeTypeName("#define D2DERR_RECREATE_TARGET _HRESULT_TYPEDEF_(0x8899000CL)")] + public const int D2DERR_RECREATE_TARGET = unchecked((int)(0x8899000C)); + + [NativeTypeName("#define D2DERR_TOO_MANY_SHADER_ELEMENTS _HRESULT_TYPEDEF_(0x8899000DL)")] + public const int D2DERR_TOO_MANY_SHADER_ELEMENTS = unchecked((int)(0x8899000D)); + + [NativeTypeName("#define D2DERR_SHADER_COMPILE_FAILED _HRESULT_TYPEDEF_(0x8899000EL)")] + public const int D2DERR_SHADER_COMPILE_FAILED = unchecked((int)(0x8899000E)); + + [NativeTypeName("#define D2DERR_MAX_TEXTURE_SIZE_EXCEEDED _HRESULT_TYPEDEF_(0x8899000FL)")] + public const int D2DERR_MAX_TEXTURE_SIZE_EXCEEDED = unchecked((int)(0x8899000F)); + + [NativeTypeName("#define D2DERR_UNSUPPORTED_VERSION _HRESULT_TYPEDEF_(0x88990010L)")] + public const int D2DERR_UNSUPPORTED_VERSION = unchecked((int)(0x88990010)); + + [NativeTypeName("#define D2DERR_BAD_NUMBER _HRESULT_TYPEDEF_(0x88990011L)")] + public const int D2DERR_BAD_NUMBER = unchecked((int)(0x88990011)); + + [NativeTypeName("#define D2DERR_WRONG_FACTORY _HRESULT_TYPEDEF_(0x88990012L)")] + public const int D2DERR_WRONG_FACTORY = unchecked((int)(0x88990012)); + + [NativeTypeName("#define D2DERR_LAYER_ALREADY_IN_USE _HRESULT_TYPEDEF_(0x88990013L)")] + public const int D2DERR_LAYER_ALREADY_IN_USE = unchecked((int)(0x88990013)); + + [NativeTypeName("#define D2DERR_POP_CALL_DID_NOT_MATCH_PUSH _HRESULT_TYPEDEF_(0x88990014L)")] + public const int D2DERR_POP_CALL_DID_NOT_MATCH_PUSH = unchecked((int)(0x88990014)); + + [NativeTypeName("#define D2DERR_WRONG_RESOURCE_DOMAIN _HRESULT_TYPEDEF_(0x88990015L)")] + public const int D2DERR_WRONG_RESOURCE_DOMAIN = unchecked((int)(0x88990015)); + + [NativeTypeName("#define D2DERR_PUSH_POP_UNBALANCED _HRESULT_TYPEDEF_(0x88990016L)")] + public const int D2DERR_PUSH_POP_UNBALANCED = unchecked((int)(0x88990016)); + + [NativeTypeName("#define D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT _HRESULT_TYPEDEF_(0x88990017L)")] + public const int D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT = unchecked((int)(0x88990017)); + + [NativeTypeName("#define D2DERR_INCOMPATIBLE_BRUSH_TYPES _HRESULT_TYPEDEF_(0x88990018L)")] + public const int D2DERR_INCOMPATIBLE_BRUSH_TYPES = unchecked((int)(0x88990018)); + + [NativeTypeName("#define D2DERR_WIN32_ERROR _HRESULT_TYPEDEF_(0x88990019L)")] + public const int D2DERR_WIN32_ERROR = unchecked((int)(0x88990019)); + + [NativeTypeName("#define D2DERR_TARGET_NOT_GDI_COMPATIBLE _HRESULT_TYPEDEF_(0x8899001AL)")] + public const int D2DERR_TARGET_NOT_GDI_COMPATIBLE = unchecked((int)(0x8899001A)); + + [NativeTypeName("#define D2DERR_TEXT_EFFECT_IS_WRONG_TYPE _HRESULT_TYPEDEF_(0x8899001BL)")] + public const int D2DERR_TEXT_EFFECT_IS_WRONG_TYPE = unchecked((int)(0x8899001B)); + + [NativeTypeName("#define D2DERR_TEXT_RENDERER_NOT_RELEASED _HRESULT_TYPEDEF_(0x8899001CL)")] + public const int D2DERR_TEXT_RENDERER_NOT_RELEASED = unchecked((int)(0x8899001C)); + + [NativeTypeName("#define D2DERR_EXCEEDS_MAX_BITMAP_SIZE _HRESULT_TYPEDEF_(0x8899001DL)")] + public const int D2DERR_EXCEEDS_MAX_BITMAP_SIZE = unchecked((int)(0x8899001D)); + + [NativeTypeName("#define D2DERR_INVALID_GRAPH_CONFIGURATION _HRESULT_TYPEDEF_(0x8899001EL)")] + public const int D2DERR_INVALID_GRAPH_CONFIGURATION = unchecked((int)(0x8899001E)); + + [NativeTypeName("#define D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION _HRESULT_TYPEDEF_(0x8899001FL)")] + public const int D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION = unchecked((int)(0x8899001F)); + + [NativeTypeName("#define D2DERR_CYCLIC_GRAPH _HRESULT_TYPEDEF_(0x88990020L)")] + public const int D2DERR_CYCLIC_GRAPH = unchecked((int)(0x88990020)); + + [NativeTypeName("#define D2DERR_BITMAP_CANNOT_DRAW _HRESULT_TYPEDEF_(0x88990021L)")] + public const int D2DERR_BITMAP_CANNOT_DRAW = unchecked((int)(0x88990021)); + + [NativeTypeName("#define D2DERR_OUTSTANDING_BITMAP_REFERENCES _HRESULT_TYPEDEF_(0x88990022L)")] + public const int D2DERR_OUTSTANDING_BITMAP_REFERENCES = unchecked((int)(0x88990022)); + + [NativeTypeName("#define D2DERR_ORIGINAL_TARGET_NOT_BOUND _HRESULT_TYPEDEF_(0x88990023L)")] + public const int D2DERR_ORIGINAL_TARGET_NOT_BOUND = unchecked((int)(0x88990023)); + + [NativeTypeName("#define D2DERR_INVALID_TARGET _HRESULT_TYPEDEF_(0x88990024L)")] + public const int D2DERR_INVALID_TARGET = unchecked((int)(0x88990024)); + + [NativeTypeName("#define D2DERR_BITMAP_BOUND_AS_TARGET _HRESULT_TYPEDEF_(0x88990025L)")] + public const int D2DERR_BITMAP_BOUND_AS_TARGET = unchecked((int)(0x88990025)); + + [NativeTypeName("#define D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES _HRESULT_TYPEDEF_(0x88990026L)")] + public const int D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES = unchecked((int)(0x88990026)); + + [NativeTypeName("#define D2DERR_INTERMEDIATE_TOO_LARGE _HRESULT_TYPEDEF_(0x88990027L)")] + public const int D2DERR_INTERMEDIATE_TOO_LARGE = unchecked((int)(0x88990027)); + + [NativeTypeName("#define D2DERR_EFFECT_IS_NOT_REGISTERED _HRESULT_TYPEDEF_(0x88990028L)")] + public const int D2DERR_EFFECT_IS_NOT_REGISTERED = unchecked((int)(0x88990028)); + + [NativeTypeName("#define D2DERR_INVALID_PROPERTY _HRESULT_TYPEDEF_(0x88990029L)")] + public const int D2DERR_INVALID_PROPERTY = unchecked((int)(0x88990029)); + + [NativeTypeName("#define D2DERR_NO_SUBPROPERTIES _HRESULT_TYPEDEF_(0x8899002AL)")] + public const int D2DERR_NO_SUBPROPERTIES = unchecked((int)(0x8899002A)); + + [NativeTypeName("#define D2DERR_PRINT_JOB_CLOSED _HRESULT_TYPEDEF_(0x8899002BL)")] + public const int D2DERR_PRINT_JOB_CLOSED = unchecked((int)(0x8899002B)); + + [NativeTypeName("#define D2DERR_PRINT_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8899002CL)")] + public const int D2DERR_PRINT_FORMAT_NOT_SUPPORTED = unchecked((int)(0x8899002C)); + + [NativeTypeName("#define D2DERR_TOO_MANY_TRANSFORM_INPUTS _HRESULT_TYPEDEF_(0x8899002DL)")] + public const int D2DERR_TOO_MANY_TRANSFORM_INPUTS = unchecked((int)(0x8899002D)); + + [NativeTypeName("#define D2DERR_INVALID_GLYPH_IMAGE _HRESULT_TYPEDEF_(0x8899002EL)")] + public const int D2DERR_INVALID_GLYPH_IMAGE = unchecked((int)(0x8899002E)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/D3D10.cs b/sources/Interop/Windows/Windows/shared/winerror/D3D10.cs new file mode 100644 index 0000000000..078b3f410c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/D3D10.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D10 + { + [NativeTypeName("#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS _HRESULT_TYPEDEF_(0x88790001L)")] + public const int D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS = unchecked((int)(0x88790001)); + + [NativeTypeName("#define D3D10_ERROR_FILE_NOT_FOUND _HRESULT_TYPEDEF_(0x88790002L)")] + public const int D3D10_ERROR_FILE_NOT_FOUND = unchecked((int)(0x88790002)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/D3D11.cs b/sources/Interop/Windows/Windows/shared/winerror/D3D11.cs new file mode 100644 index 0000000000..5311d97949 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/D3D11.cs @@ -0,0 +1,24 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D11 + { + [NativeTypeName("#define D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS _HRESULT_TYPEDEF_(0x887C0001L)")] + public const int D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS = unchecked((int)(0x887C0001)); + + [NativeTypeName("#define D3D11_ERROR_FILE_NOT_FOUND _HRESULT_TYPEDEF_(0x887C0002L)")] + public const int D3D11_ERROR_FILE_NOT_FOUND = unchecked((int)(0x887C0002)); + + [NativeTypeName("#define D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS _HRESULT_TYPEDEF_(0x887C0003L)")] + public const int D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS = unchecked((int)(0x887C0003)); + + [NativeTypeName("#define D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD _HRESULT_TYPEDEF_(0x887C0004L)")] + public const int D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD = unchecked((int)(0x887C0004)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/D3D12.cs b/sources/Interop/Windows/Windows/shared/winerror/D3D12.cs new file mode 100644 index 0000000000..e5c5f0c2e7 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/D3D12.cs @@ -0,0 +1,21 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3D12 + { + [NativeTypeName("#define D3D12_ERROR_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x887E0001L)")] + public const int D3D12_ERROR_ADAPTER_NOT_FOUND = unchecked((int)(0x887E0001)); + + [NativeTypeName("#define D3D12_ERROR_DRIVER_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x887E0002L)")] + public const int D3D12_ERROR_DRIVER_VERSION_MISMATCH = unchecked((int)(0x887E0002)); + + [NativeTypeName("#define D3D12_ERROR_INVALID_REDIST _HRESULT_TYPEDEF_(0x887E0003L)")] + public const int D3D12_ERROR_INVALID_REDIST = unchecked((int)(0x887E0003)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/DISP.cs b/sources/Interop/Windows/Windows/shared/winerror/DISP.cs new file mode 100644 index 0000000000..47aedc3a4a --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/DISP.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DISP + { + [NativeTypeName("#define DISP_E_UNKNOWNINTERFACE _HRESULT_TYPEDEF_(0x80020001L)")] + public const int DISP_E_UNKNOWNINTERFACE = unchecked((int)(0x80020001)); + + [NativeTypeName("#define DISP_E_MEMBERNOTFOUND _HRESULT_TYPEDEF_(0x80020003L)")] + public const int DISP_E_MEMBERNOTFOUND = unchecked((int)(0x80020003)); + + [NativeTypeName("#define DISP_E_PARAMNOTFOUND _HRESULT_TYPEDEF_(0x80020004L)")] + public const int DISP_E_PARAMNOTFOUND = unchecked((int)(0x80020004)); + + [NativeTypeName("#define DISP_E_TYPEMISMATCH _HRESULT_TYPEDEF_(0x80020005L)")] + public const int DISP_E_TYPEMISMATCH = unchecked((int)(0x80020005)); + + [NativeTypeName("#define DISP_E_UNKNOWNNAME _HRESULT_TYPEDEF_(0x80020006L)")] + public const int DISP_E_UNKNOWNNAME = unchecked((int)(0x80020006)); + + [NativeTypeName("#define DISP_E_NONAMEDARGS _HRESULT_TYPEDEF_(0x80020007L)")] + public const int DISP_E_NONAMEDARGS = unchecked((int)(0x80020007)); + + [NativeTypeName("#define DISP_E_BADVARTYPE _HRESULT_TYPEDEF_(0x80020008L)")] + public const int DISP_E_BADVARTYPE = unchecked((int)(0x80020008)); + + [NativeTypeName("#define DISP_E_EXCEPTION _HRESULT_TYPEDEF_(0x80020009L)")] + public const int DISP_E_EXCEPTION = unchecked((int)(0x80020009)); + + [NativeTypeName("#define DISP_E_OVERFLOW _HRESULT_TYPEDEF_(0x8002000AL)")] + public const int DISP_E_OVERFLOW = unchecked((int)(0x8002000A)); + + [NativeTypeName("#define DISP_E_BADINDEX _HRESULT_TYPEDEF_(0x8002000BL)")] + public const int DISP_E_BADINDEX = unchecked((int)(0x8002000B)); + + [NativeTypeName("#define DISP_E_UNKNOWNLCID _HRESULT_TYPEDEF_(0x8002000CL)")] + public const int DISP_E_UNKNOWNLCID = unchecked((int)(0x8002000C)); + + [NativeTypeName("#define DISP_E_ARRAYISLOCKED _HRESULT_TYPEDEF_(0x8002000DL)")] + public const int DISP_E_ARRAYISLOCKED = unchecked((int)(0x8002000D)); + + [NativeTypeName("#define DISP_E_BADPARAMCOUNT _HRESULT_TYPEDEF_(0x8002000EL)")] + public const int DISP_E_BADPARAMCOUNT = unchecked((int)(0x8002000E)); + + [NativeTypeName("#define DISP_E_PARAMNOTOPTIONAL _HRESULT_TYPEDEF_(0x8002000FL)")] + public const int DISP_E_PARAMNOTOPTIONAL = unchecked((int)(0x8002000F)); + + [NativeTypeName("#define DISP_E_BADCALLEE _HRESULT_TYPEDEF_(0x80020010L)")] + public const int DISP_E_BADCALLEE = unchecked((int)(0x80020010)); + + [NativeTypeName("#define DISP_E_NOTACOLLECTION _HRESULT_TYPEDEF_(0x80020011L)")] + public const int DISP_E_NOTACOLLECTION = unchecked((int)(0x80020011)); + + [NativeTypeName("#define DISP_E_DIVBYZERO _HRESULT_TYPEDEF_(0x80020012L)")] + public const int DISP_E_DIVBYZERO = unchecked((int)(0x80020012)); + + [NativeTypeName("#define DISP_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80020013L)")] + public const int DISP_E_BUFFERTOOSMALL = unchecked((int)(0x80020013)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/DRAGDROP.cs b/sources/Interop/Windows/Windows/shared/winerror/DRAGDROP.cs new file mode 100644 index 0000000000..4c1f3e1036 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/DRAGDROP.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DRAGDROP + { + [NativeTypeName("#define DRAGDROP_E_FIRST 0x80040100L")] + public const uint DRAGDROP_E_FIRST = 0x80040100; + + [NativeTypeName("#define DRAGDROP_E_LAST 0x8004010FL")] + public const uint DRAGDROP_E_LAST = 0x8004010F; + + [NativeTypeName("#define DRAGDROP_S_FIRST 0x00040100L")] + public const int DRAGDROP_S_FIRST = 0x00040100; + + [NativeTypeName("#define DRAGDROP_S_LAST 0x0004010FL")] + public const int DRAGDROP_S_LAST = 0x0004010F; + + [NativeTypeName("#define DRAGDROP_E_NOTREGISTERED _HRESULT_TYPEDEF_(0x80040100L)")] + public const int DRAGDROP_E_NOTREGISTERED = unchecked((int)(0x80040100)); + + [NativeTypeName("#define DRAGDROP_E_ALREADYREGISTERED _HRESULT_TYPEDEF_(0x80040101L)")] + public const int DRAGDROP_E_ALREADYREGISTERED = unchecked((int)(0x80040101)); + + [NativeTypeName("#define DRAGDROP_E_INVALIDHWND _HRESULT_TYPEDEF_(0x80040102L)")] + public const int DRAGDROP_E_INVALIDHWND = unchecked((int)(0x80040102)); + + [NativeTypeName("#define DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED _HRESULT_TYPEDEF_(0x80040103L)")] + public const int DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED = unchecked((int)(0x80040103)); + + [NativeTypeName("#define DRAGDROP_S_DROP _HRESULT_TYPEDEF_(0x00040100L)")] + public const int DRAGDROP_S_DROP = ((int)(0x00040100)); + + [NativeTypeName("#define DRAGDROP_S_CANCEL _HRESULT_TYPEDEF_(0x00040101L)")] + public const int DRAGDROP_S_CANCEL = ((int)(0x00040101)); + + [NativeTypeName("#define DRAGDROP_S_USEDEFAULTCURSORS _HRESULT_TYPEDEF_(0x00040102L)")] + public const int DRAGDROP_S_USEDEFAULTCURSORS = ((int)(0x00040102)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/DS.cs b/sources/Interop/Windows/Windows/shared/winerror/DS.cs new file mode 100644 index 0000000000..4ff14a353d --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/DS.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DS + { + [NativeTypeName("#define DS_S_SUCCESS NO_ERROR")] + public const int DS_S_SUCCESS = 0; + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/DV.cs b/sources/Interop/Windows/Windows/shared/winerror/DV.cs new file mode 100644 index 0000000000..dd2dae63fe --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/DV.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DV + { + [NativeTypeName("#define DV_E_FORMATETC _HRESULT_TYPEDEF_(0x80040064L)")] + public const int DV_E_FORMATETC = unchecked((int)(0x80040064)); + + [NativeTypeName("#define DV_E_DVTARGETDEVICE _HRESULT_TYPEDEF_(0x80040065L)")] + public const int DV_E_DVTARGETDEVICE = unchecked((int)(0x80040065)); + + [NativeTypeName("#define DV_E_STGMEDIUM _HRESULT_TYPEDEF_(0x80040066L)")] + public const int DV_E_STGMEDIUM = unchecked((int)(0x80040066)); + + [NativeTypeName("#define DV_E_STATDATA _HRESULT_TYPEDEF_(0x80040067L)")] + public const int DV_E_STATDATA = unchecked((int)(0x80040067)); + + [NativeTypeName("#define DV_E_LINDEX _HRESULT_TYPEDEF_(0x80040068L)")] + public const int DV_E_LINDEX = unchecked((int)(0x80040068)); + + [NativeTypeName("#define DV_E_TYMED _HRESULT_TYPEDEF_(0x80040069L)")] + public const int DV_E_TYMED = unchecked((int)(0x80040069)); + + [NativeTypeName("#define DV_E_CLIPFORMAT _HRESULT_TYPEDEF_(0x8004006AL)")] + public const int DV_E_CLIPFORMAT = unchecked((int)(0x8004006A)); + + [NativeTypeName("#define DV_E_DVASPECT _HRESULT_TYPEDEF_(0x8004006BL)")] + public const int DV_E_DVASPECT = unchecked((int)(0x8004006B)); + + [NativeTypeName("#define DV_E_DVTARGETDEVICE_SIZE _HRESULT_TYPEDEF_(0x8004006CL)")] + public const int DV_E_DVTARGETDEVICE_SIZE = unchecked((int)(0x8004006C)); + + [NativeTypeName("#define DV_E_NOIVIEWOBJECT _HRESULT_TYPEDEF_(0x8004006DL)")] + public const int DV_E_NOIVIEWOBJECT = unchecked((int)(0x8004006D)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/DWM.cs b/sources/Interop/Windows/Windows/shared/winerror/DWM.cs new file mode 100644 index 0000000000..ef6bbba60e --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/DWM.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DWM + { + [NativeTypeName("#define DWM_E_COMPOSITIONDISABLED _HRESULT_TYPEDEF_(0x80263001L)")] + public const int DWM_E_COMPOSITIONDISABLED = unchecked((int)(0x80263001)); + + [NativeTypeName("#define DWM_E_REMOTING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80263002L)")] + public const int DWM_E_REMOTING_NOT_SUPPORTED = unchecked((int)(0x80263002)); + + [NativeTypeName("#define DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE _HRESULT_TYPEDEF_(0x80263003L)")] + public const int DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE = unchecked((int)(0x80263003)); + + [NativeTypeName("#define DWM_E_NOT_QUEUING_PRESENTS _HRESULT_TYPEDEF_(0x80263004L)")] + public const int DWM_E_NOT_QUEUING_PRESENTS = unchecked((int)(0x80263004)); + + [NativeTypeName("#define DWM_E_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x80263005L)")] + public const int DWM_E_ADAPTER_NOT_FOUND = unchecked((int)(0x80263005)); + + [NativeTypeName("#define DWM_S_GDI_REDIRECTION_SURFACE _HRESULT_TYPEDEF_(0x00263005L)")] + public const int DWM_S_GDI_REDIRECTION_SURFACE = ((int)(0x00263005)); + + [NativeTypeName("#define DWM_E_TEXTURE_TOO_LARGE _HRESULT_TYPEDEF_(0x80263007L)")] + public const int DWM_E_TEXTURE_TOO_LARGE = unchecked((int)(0x80263007)); + + [NativeTypeName("#define DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI _HRESULT_TYPEDEF_(0x00263008L)")] + public const int DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI = ((int)(0x00263008)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/DWRITE.cs b/sources/Interop/Windows/Windows/shared/winerror/DWRITE.cs new file mode 100644 index 0000000000..b00fc46f8c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/DWRITE.cs @@ -0,0 +1,63 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class DWRITE + { + [NativeTypeName("#define DWRITE_E_FILEFORMAT _HRESULT_TYPEDEF_(0x88985000L)")] + public const int DWRITE_E_FILEFORMAT = unchecked((int)(0x88985000)); + + [NativeTypeName("#define DWRITE_E_UNEXPECTED _HRESULT_TYPEDEF_(0x88985001L)")] + public const int DWRITE_E_UNEXPECTED = unchecked((int)(0x88985001)); + + [NativeTypeName("#define DWRITE_E_NOFONT _HRESULT_TYPEDEF_(0x88985002L)")] + public const int DWRITE_E_NOFONT = unchecked((int)(0x88985002)); + + [NativeTypeName("#define DWRITE_E_FILENOTFOUND _HRESULT_TYPEDEF_(0x88985003L)")] + public const int DWRITE_E_FILENOTFOUND = unchecked((int)(0x88985003)); + + [NativeTypeName("#define DWRITE_E_FILEACCESS _HRESULT_TYPEDEF_(0x88985004L)")] + public const int DWRITE_E_FILEACCESS = unchecked((int)(0x88985004)); + + [NativeTypeName("#define DWRITE_E_FONTCOLLECTIONOBSOLETE _HRESULT_TYPEDEF_(0x88985005L)")] + public const int DWRITE_E_FONTCOLLECTIONOBSOLETE = unchecked((int)(0x88985005)); + + [NativeTypeName("#define DWRITE_E_ALREADYREGISTERED _HRESULT_TYPEDEF_(0x88985006L)")] + public const int DWRITE_E_ALREADYREGISTERED = unchecked((int)(0x88985006)); + + [NativeTypeName("#define DWRITE_E_CACHEFORMAT _HRESULT_TYPEDEF_(0x88985007L)")] + public const int DWRITE_E_CACHEFORMAT = unchecked((int)(0x88985007)); + + [NativeTypeName("#define DWRITE_E_CACHEVERSION _HRESULT_TYPEDEF_(0x88985008L)")] + public const int DWRITE_E_CACHEVERSION = unchecked((int)(0x88985008)); + + [NativeTypeName("#define DWRITE_E_UNSUPPORTEDOPERATION _HRESULT_TYPEDEF_(0x88985009L)")] + public const int DWRITE_E_UNSUPPORTEDOPERATION = unchecked((int)(0x88985009)); + + [NativeTypeName("#define DWRITE_E_TEXTRENDERERINCOMPATIBLE _HRESULT_TYPEDEF_(0x8898500AL)")] + public const int DWRITE_E_TEXTRENDERERINCOMPATIBLE = unchecked((int)(0x8898500A)); + + [NativeTypeName("#define DWRITE_E_FLOWDIRECTIONCONFLICTS _HRESULT_TYPEDEF_(0x8898500BL)")] + public const int DWRITE_E_FLOWDIRECTIONCONFLICTS = unchecked((int)(0x8898500B)); + + [NativeTypeName("#define DWRITE_E_NOCOLOR _HRESULT_TYPEDEF_(0x8898500CL)")] + public const int DWRITE_E_NOCOLOR = unchecked((int)(0x8898500C)); + + [NativeTypeName("#define DWRITE_E_REMOTEFONT _HRESULT_TYPEDEF_(0x8898500DL)")] + public const int DWRITE_E_REMOTEFONT = unchecked((int)(0x8898500D)); + + [NativeTypeName("#define DWRITE_E_DOWNLOADCANCELLED _HRESULT_TYPEDEF_(0x8898500EL)")] + public const int DWRITE_E_DOWNLOADCANCELLED = unchecked((int)(0x8898500E)); + + [NativeTypeName("#define DWRITE_E_DOWNLOADFAILED _HRESULT_TYPEDEF_(0x8898500FL)")] + public const int DWRITE_E_DOWNLOADFAILED = unchecked((int)(0x8898500F)); + + [NativeTypeName("#define DWRITE_E_TOOMANYDOWNLOADS _HRESULT_TYPEDEF_(0x88985010L)")] + public const int DWRITE_E_TOOMANYDOWNLOADS = unchecked((int)(0x88985010)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/DXGI.cs b/sources/Interop/Windows/Windows/shared/winerror/DXGI.cs new file mode 100644 index 0000000000..b6aaaf9b11 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/DXGI.cs @@ -0,0 +1,147 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class DXGI + { + [NativeTypeName("#define DXGI_STATUS_OCCLUDED _HRESULT_TYPEDEF_(0x087A0001L)")] + public const int DXGI_STATUS_OCCLUDED = ((int)(0x087A0001)); + + [NativeTypeName("#define DXGI_STATUS_CLIPPED _HRESULT_TYPEDEF_(0x087A0002L)")] + public const int DXGI_STATUS_CLIPPED = ((int)(0x087A0002)); + + [NativeTypeName("#define DXGI_STATUS_NO_REDIRECTION _HRESULT_TYPEDEF_(0x087A0004L)")] + public const int DXGI_STATUS_NO_REDIRECTION = ((int)(0x087A0004)); + + [NativeTypeName("#define DXGI_STATUS_NO_DESKTOP_ACCESS _HRESULT_TYPEDEF_(0x087A0005L)")] + public const int DXGI_STATUS_NO_DESKTOP_ACCESS = ((int)(0x087A0005)); + + [NativeTypeName("#define DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x087A0006L)")] + public const int DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE = ((int)(0x087A0006)); + + [NativeTypeName("#define DXGI_STATUS_MODE_CHANGED _HRESULT_TYPEDEF_(0x087A0007L)")] + public const int DXGI_STATUS_MODE_CHANGED = ((int)(0x087A0007)); + + [NativeTypeName("#define DXGI_STATUS_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x087A0008L)")] + public const int DXGI_STATUS_MODE_CHANGE_IN_PROGRESS = ((int)(0x087A0008)); + + [NativeTypeName("#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887A0001L)")] + public const int DXGI_ERROR_INVALID_CALL = unchecked((int)(0x887A0001)); + + [NativeTypeName("#define DXGI_ERROR_NOT_FOUND _HRESULT_TYPEDEF_(0x887A0002L)")] + public const int DXGI_ERROR_NOT_FOUND = unchecked((int)(0x887A0002)); + + [NativeTypeName("#define DXGI_ERROR_MORE_DATA _HRESULT_TYPEDEF_(0x887A0003L)")] + public const int DXGI_ERROR_MORE_DATA = unchecked((int)(0x887A0003)); + + [NativeTypeName("#define DXGI_ERROR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887A0004L)")] + public const int DXGI_ERROR_UNSUPPORTED = unchecked((int)(0x887A0004)); + + [NativeTypeName("#define DXGI_ERROR_DEVICE_REMOVED _HRESULT_TYPEDEF_(0x887A0005L)")] + public const int DXGI_ERROR_DEVICE_REMOVED = unchecked((int)(0x887A0005)); + + [NativeTypeName("#define DXGI_ERROR_DEVICE_HUNG _HRESULT_TYPEDEF_(0x887A0006L)")] + public const int DXGI_ERROR_DEVICE_HUNG = unchecked((int)(0x887A0006)); + + [NativeTypeName("#define DXGI_ERROR_DEVICE_RESET _HRESULT_TYPEDEF_(0x887A0007L)")] + public const int DXGI_ERROR_DEVICE_RESET = unchecked((int)(0x887A0007)); + + [NativeTypeName("#define DXGI_ERROR_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x887A000AL)")] + public const int DXGI_ERROR_WAS_STILL_DRAWING = unchecked((int)(0x887A000A)); + + [NativeTypeName("#define DXGI_ERROR_FRAME_STATISTICS_DISJOINT _HRESULT_TYPEDEF_(0x887A000BL)")] + public const int DXGI_ERROR_FRAME_STATISTICS_DISJOINT = unchecked((int)(0x887A000B)); + + [NativeTypeName("#define DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x887A000CL)")] + public const int DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE = unchecked((int)(0x887A000C)); + + [NativeTypeName("#define DXGI_ERROR_DRIVER_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x887A0020L)")] + public const int DXGI_ERROR_DRIVER_INTERNAL_ERROR = unchecked((int)(0x887A0020)); + + [NativeTypeName("#define DXGI_ERROR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887A0021L)")] + public const int DXGI_ERROR_NONEXCLUSIVE = unchecked((int)(0x887A0021)); + + [NativeTypeName("#define DXGI_ERROR_NOT_CURRENTLY_AVAILABLE _HRESULT_TYPEDEF_(0x887A0022L)")] + public const int DXGI_ERROR_NOT_CURRENTLY_AVAILABLE = unchecked((int)(0x887A0022)); + + [NativeTypeName("#define DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0023L)")] + public const int DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED = unchecked((int)(0x887A0023)); + + [NativeTypeName("#define DXGI_ERROR_REMOTE_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0024L)")] + public const int DXGI_ERROR_REMOTE_OUTOFMEMORY = unchecked((int)(0x887A0024)); + + [NativeTypeName("#define DXGI_ERROR_ACCESS_LOST _HRESULT_TYPEDEF_(0x887A0026L)")] + public const int DXGI_ERROR_ACCESS_LOST = unchecked((int)(0x887A0026)); + + [NativeTypeName("#define DXGI_ERROR_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x887A0027L)")] + public const int DXGI_ERROR_WAIT_TIMEOUT = unchecked((int)(0x887A0027)); + + [NativeTypeName("#define DXGI_ERROR_SESSION_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0028L)")] + public const int DXGI_ERROR_SESSION_DISCONNECTED = unchecked((int)(0x887A0028)); + + [NativeTypeName("#define DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE _HRESULT_TYPEDEF_(0x887A0029L)")] + public const int DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE = unchecked((int)(0x887A0029)); + + [NativeTypeName("#define DXGI_ERROR_CANNOT_PROTECT_CONTENT _HRESULT_TYPEDEF_(0x887A002AL)")] + public const int DXGI_ERROR_CANNOT_PROTECT_CONTENT = unchecked((int)(0x887A002A)); + + [NativeTypeName("#define DXGI_ERROR_ACCESS_DENIED _HRESULT_TYPEDEF_(0x887A002BL)")] + public const int DXGI_ERROR_ACCESS_DENIED = unchecked((int)(0x887A002B)); + + [NativeTypeName("#define DXGI_ERROR_NAME_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A002CL)")] + public const int DXGI_ERROR_NAME_ALREADY_EXISTS = unchecked((int)(0x887A002C)); + + [NativeTypeName("#define DXGI_ERROR_SDK_COMPONENT_MISSING _HRESULT_TYPEDEF_(0x887A002DL)")] + public const int DXGI_ERROR_SDK_COMPONENT_MISSING = unchecked((int)(0x887A002D)); + + [NativeTypeName("#define DXGI_ERROR_NOT_CURRENT _HRESULT_TYPEDEF_(0x887A002EL)")] + public const int DXGI_ERROR_NOT_CURRENT = unchecked((int)(0x887A002E)); + + [NativeTypeName("#define DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0030L)")] + public const int DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY = unchecked((int)(0x887A0030)); + + [NativeTypeName("#define DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION _HRESULT_TYPEDEF_(0x887A0031L)")] + public const int DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION = unchecked((int)(0x887A0031)); + + [NativeTypeName("#define DXGI_ERROR_NON_COMPOSITED_UI _HRESULT_TYPEDEF_(0x887A0032L)")] + public const int DXGI_ERROR_NON_COMPOSITED_UI = unchecked((int)(0x887A0032)); + + [NativeTypeName("#define DXGI_STATUS_UNOCCLUDED _HRESULT_TYPEDEF_(0x087A0009L)")] + public const int DXGI_STATUS_UNOCCLUDED = ((int)(0x087A0009)); + + [NativeTypeName("#define DXGI_STATUS_DDA_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x087A000AL)")] + public const int DXGI_STATUS_DDA_WAS_STILL_DRAWING = ((int)(0x087A000A)); + + [NativeTypeName("#define DXGI_ERROR_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x887A0025L)")] + public const int DXGI_ERROR_MODE_CHANGE_IN_PROGRESS = unchecked((int)(0x887A0025)); + + [NativeTypeName("#define DXGI_STATUS_PRESENT_REQUIRED _HRESULT_TYPEDEF_(0x087A002FL)")] + public const int DXGI_STATUS_PRESENT_REQUIRED = ((int)(0x087A002F)); + + [NativeTypeName("#define DXGI_ERROR_CACHE_CORRUPT _HRESULT_TYPEDEF_(0x887A0033L)")] + public const int DXGI_ERROR_CACHE_CORRUPT = unchecked((int)(0x887A0033)); + + [NativeTypeName("#define DXGI_ERROR_CACHE_FULL _HRESULT_TYPEDEF_(0x887A0034L)")] + public const int DXGI_ERROR_CACHE_FULL = unchecked((int)(0x887A0034)); + + [NativeTypeName("#define DXGI_ERROR_CACHE_HASH_COLLISION _HRESULT_TYPEDEF_(0x887A0035L)")] + public const int DXGI_ERROR_CACHE_HASH_COLLISION = unchecked((int)(0x887A0035)); + + [NativeTypeName("#define DXGI_ERROR_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A0036L)")] + public const int DXGI_ERROR_ALREADY_EXISTS = unchecked((int)(0x887A0036)); + + [NativeTypeName("#define DXGI_DDI_ERR_WASSTILLDRAWING _HRESULT_TYPEDEF_(0x887B0001L)")] + public const int DXGI_DDI_ERR_WASSTILLDRAWING = unchecked((int)(0x887B0001)); + + [NativeTypeName("#define DXGI_DDI_ERR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887B0002L)")] + public const int DXGI_DDI_ERR_UNSUPPORTED = unchecked((int)(0x887B0002)); + + [NativeTypeName("#define DXGI_DDI_ERR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887B0003L)")] + public const int DXGI_DDI_ERR_NONEXCLUSIVE = unchecked((int)(0x887B0003)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/EAS.cs b/sources/Interop/Windows/Windows/shared/winerror/EAS.cs new file mode 100644 index 0000000000..79492719bc --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/EAS.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EAS + { + [NativeTypeName("#define EAS_E_POLICY_NOT_MANAGED_BY_OS _HRESULT_TYPEDEF_(0x80550001L)")] + public const int EAS_E_POLICY_NOT_MANAGED_BY_OS = unchecked((int)(0x80550001)); + + [NativeTypeName("#define EAS_E_POLICY_COMPLIANT_WITH_ACTIONS _HRESULT_TYPEDEF_(0x80550002L)")] + public const int EAS_E_POLICY_COMPLIANT_WITH_ACTIONS = unchecked((int)(0x80550002)); + + [NativeTypeName("#define EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE _HRESULT_TYPEDEF_(0x80550003L)")] + public const int EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE = unchecked((int)(0x80550003)); + + [NativeTypeName("#define EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD _HRESULT_TYPEDEF_(0x80550004L)")] + public const int EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD = unchecked((int)(0x80550004)); + + [NativeTypeName("#define EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE _HRESULT_TYPEDEF_(0x80550005L)")] + public const int EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE = unchecked((int)(0x80550005)); + + [NativeTypeName("#define EAS_E_USER_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550006L)")] + public const int EAS_E_USER_CANNOT_CHANGE_PASSWORD = unchecked((int)(0x80550006)); + + [NativeTypeName("#define EAS_E_ADMINS_HAVE_BLANK_PASSWORD _HRESULT_TYPEDEF_(0x80550007L)")] + public const int EAS_E_ADMINS_HAVE_BLANK_PASSWORD = unchecked((int)(0x80550007)); + + [NativeTypeName("#define EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550008L)")] + public const int EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD = unchecked((int)(0x80550008)); + + [NativeTypeName("#define EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550009L)")] + public const int EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD = unchecked((int)(0x80550009)); + + [NativeTypeName("#define EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS _HRESULT_TYPEDEF_(0x8055000AL)")] + public const int EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS = unchecked((int)(0x8055000A)); + + [NativeTypeName("#define EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x8055000BL)")] + public const int EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD = unchecked((int)(0x8055000B)); + + [NativeTypeName("#define EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER _HRESULT_TYPEDEF_(0x8055000CL)")] + public const int EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER = unchecked((int)(0x8055000C)); + + [NativeTypeName("#define EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x8055000DL)")] + public const int EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD = unchecked((int)(0x8055000D)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/FRS.cs b/sources/Interop/Windows/Windows/shared/winerror/FRS.cs new file mode 100644 index 0000000000..c7e9c5b6dd --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/FRS.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FRS + { + [NativeTypeName("#define FRS_ERR_INVALID_API_SEQUENCE 8001L")] + public const int FRS_ERR_INVALID_API_SEQUENCE = 8001; + + [NativeTypeName("#define FRS_ERR_STARTING_SERVICE 8002L")] + public const int FRS_ERR_STARTING_SERVICE = 8002; + + [NativeTypeName("#define FRS_ERR_STOPPING_SERVICE 8003L")] + public const int FRS_ERR_STOPPING_SERVICE = 8003; + + [NativeTypeName("#define FRS_ERR_INTERNAL_API 8004L")] + public const int FRS_ERR_INTERNAL_API = 8004; + + [NativeTypeName("#define FRS_ERR_INTERNAL 8005L")] + public const int FRS_ERR_INTERNAL = 8005; + + [NativeTypeName("#define FRS_ERR_SERVICE_COMM 8006L")] + public const int FRS_ERR_SERVICE_COMM = 8006; + + [NativeTypeName("#define FRS_ERR_INSUFFICIENT_PRIV 8007L")] + public const int FRS_ERR_INSUFFICIENT_PRIV = 8007; + + [NativeTypeName("#define FRS_ERR_AUTHENTICATION 8008L")] + public const int FRS_ERR_AUTHENTICATION = 8008; + + [NativeTypeName("#define FRS_ERR_PARENT_INSUFFICIENT_PRIV 8009L")] + public const int FRS_ERR_PARENT_INSUFFICIENT_PRIV = 8009; + + [NativeTypeName("#define FRS_ERR_PARENT_AUTHENTICATION 8010L")] + public const int FRS_ERR_PARENT_AUTHENTICATION = 8010; + + [NativeTypeName("#define FRS_ERR_CHILD_TO_PARENT_COMM 8011L")] + public const int FRS_ERR_CHILD_TO_PARENT_COMM = 8011; + + [NativeTypeName("#define FRS_ERR_PARENT_TO_CHILD_COMM 8012L")] + public const int FRS_ERR_PARENT_TO_CHILD_COMM = 8012; + + [NativeTypeName("#define FRS_ERR_SYSVOL_POPULATE 8013L")] + public const int FRS_ERR_SYSVOL_POPULATE = 8013; + + [NativeTypeName("#define FRS_ERR_SYSVOL_POPULATE_TIMEOUT 8014L")] + public const int FRS_ERR_SYSVOL_POPULATE_TIMEOUT = 8014; + + [NativeTypeName("#define FRS_ERR_SYSVOL_IS_BUSY 8015L")] + public const int FRS_ERR_SYSVOL_IS_BUSY = 8015; + + [NativeTypeName("#define FRS_ERR_SYSVOL_DEMOTE 8016L")] + public const int FRS_ERR_SYSVOL_DEMOTE = 8016; + + [NativeTypeName("#define FRS_ERR_INVALID_SERVICE_PARAMETER 8017L")] + public const int FRS_ERR_INVALID_SERVICE_PARAMETER = 8017; + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/HCN.cs b/sources/Interop/Windows/Windows/shared/winerror/HCN.cs new file mode 100644 index 0000000000..85df6ad740 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/HCN.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HCN + { + [NativeTypeName("#define HCN_E_NETWORK_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0001L)")] + public const int HCN_E_NETWORK_NOT_FOUND = unchecked((int)(0x803B0001)); + + [NativeTypeName("#define HCN_E_ENDPOINT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0002L)")] + public const int HCN_E_ENDPOINT_NOT_FOUND = unchecked((int)(0x803B0002)); + + [NativeTypeName("#define HCN_E_LAYER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0003L)")] + public const int HCN_E_LAYER_NOT_FOUND = unchecked((int)(0x803B0003)); + + [NativeTypeName("#define HCN_E_SWITCH_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0004L)")] + public const int HCN_E_SWITCH_NOT_FOUND = unchecked((int)(0x803B0004)); + + [NativeTypeName("#define HCN_E_SUBNET_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0005L)")] + public const int HCN_E_SUBNET_NOT_FOUND = unchecked((int)(0x803B0005)); + + [NativeTypeName("#define HCN_E_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0006L)")] + public const int HCN_E_ADAPTER_NOT_FOUND = unchecked((int)(0x803B0006)); + + [NativeTypeName("#define HCN_E_PORT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0007L)")] + public const int HCN_E_PORT_NOT_FOUND = unchecked((int)(0x803B0007)); + + [NativeTypeName("#define HCN_E_POLICY_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0008L)")] + public const int HCN_E_POLICY_NOT_FOUND = unchecked((int)(0x803B0008)); + + [NativeTypeName("#define HCN_E_VFP_PORTSETTING_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0009L)")] + public const int HCN_E_VFP_PORTSETTING_NOT_FOUND = unchecked((int)(0x803B0009)); + + [NativeTypeName("#define HCN_E_INVALID_NETWORK _HRESULT_TYPEDEF_(0x803B000AL)")] + public const int HCN_E_INVALID_NETWORK = unchecked((int)(0x803B000A)); + + [NativeTypeName("#define HCN_E_INVALID_NETWORK_TYPE _HRESULT_TYPEDEF_(0x803B000BL)")] + public const int HCN_E_INVALID_NETWORK_TYPE = unchecked((int)(0x803B000B)); + + [NativeTypeName("#define HCN_E_INVALID_ENDPOINT _HRESULT_TYPEDEF_(0x803B000CL)")] + public const int HCN_E_INVALID_ENDPOINT = unchecked((int)(0x803B000C)); + + [NativeTypeName("#define HCN_E_INVALID_POLICY _HRESULT_TYPEDEF_(0x803B000DL)")] + public const int HCN_E_INVALID_POLICY = unchecked((int)(0x803B000D)); + + [NativeTypeName("#define HCN_E_INVALID_POLICY_TYPE _HRESULT_TYPEDEF_(0x803B000EL)")] + public const int HCN_E_INVALID_POLICY_TYPE = unchecked((int)(0x803B000E)); + + [NativeTypeName("#define HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION _HRESULT_TYPEDEF_(0x803B000FL)")] + public const int HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION = unchecked((int)(0x803B000F)); + + [NativeTypeName("#define HCN_E_NETWORK_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0010L)")] + public const int HCN_E_NETWORK_ALREADY_EXISTS = unchecked((int)(0x803B0010)); + + [NativeTypeName("#define HCN_E_LAYER_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0011L)")] + public const int HCN_E_LAYER_ALREADY_EXISTS = unchecked((int)(0x803B0011)); + + [NativeTypeName("#define HCN_E_POLICY_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0012L)")] + public const int HCN_E_POLICY_ALREADY_EXISTS = unchecked((int)(0x803B0012)); + + [NativeTypeName("#define HCN_E_PORT_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0013L)")] + public const int HCN_E_PORT_ALREADY_EXISTS = unchecked((int)(0x803B0013)); + + [NativeTypeName("#define HCN_E_ENDPOINT_ALREADY_ATTACHED _HRESULT_TYPEDEF_(0x803B0014L)")] + public const int HCN_E_ENDPOINT_ALREADY_ATTACHED = unchecked((int)(0x803B0014)); + + [NativeTypeName("#define HCN_E_REQUEST_UNSUPPORTED _HRESULT_TYPEDEF_(0x803B0015L)")] + public const int HCN_E_REQUEST_UNSUPPORTED = unchecked((int)(0x803B0015)); + + [NativeTypeName("#define HCN_E_MAPPING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803B0016L)")] + public const int HCN_E_MAPPING_NOT_SUPPORTED = unchecked((int)(0x803B0016)); + + [NativeTypeName("#define HCN_E_DEGRADED_OPERATION _HRESULT_TYPEDEF_(0x803B0017L)")] + public const int HCN_E_DEGRADED_OPERATION = unchecked((int)(0x803B0017)); + + [NativeTypeName("#define HCN_E_SHARED_SWITCH_MODIFICATION _HRESULT_TYPEDEF_(0x803B0018L)")] + public const int HCN_E_SHARED_SWITCH_MODIFICATION = unchecked((int)(0x803B0018)); + + [NativeTypeName("#define HCN_E_GUID_CONVERSION_FAILURE _HRESULT_TYPEDEF_(0x803B0019L)")] + public const int HCN_E_GUID_CONVERSION_FAILURE = unchecked((int)(0x803B0019)); + + [NativeTypeName("#define HCN_E_REGKEY_FAILURE _HRESULT_TYPEDEF_(0x803B001AL)")] + public const int HCN_E_REGKEY_FAILURE = unchecked((int)(0x803B001A)); + + [NativeTypeName("#define HCN_E_INVALID_JSON _HRESULT_TYPEDEF_(0x803B001BL)")] + public const int HCN_E_INVALID_JSON = unchecked((int)(0x803B001B)); + + [NativeTypeName("#define HCN_E_INVALID_JSON_REFERENCE _HRESULT_TYPEDEF_(0x803B001CL)")] + public const int HCN_E_INVALID_JSON_REFERENCE = unchecked((int)(0x803B001C)); + + [NativeTypeName("#define HCN_E_ENDPOINT_SHARING_DISABLED _HRESULT_TYPEDEF_(0x803B001DL)")] + public const int HCN_E_ENDPOINT_SHARING_DISABLED = unchecked((int)(0x803B001D)); + + [NativeTypeName("#define HCN_E_INVALID_IP _HRESULT_TYPEDEF_(0x803B001EL)")] + public const int HCN_E_INVALID_IP = unchecked((int)(0x803B001E)); + + [NativeTypeName("#define HCN_E_SWITCH_EXTENSION_NOT_FOUND _HRESULT_TYPEDEF_(0x803B001FL)")] + public const int HCN_E_SWITCH_EXTENSION_NOT_FOUND = unchecked((int)(0x803B001F)); + + [NativeTypeName("#define HCN_E_MANAGER_STOPPED _HRESULT_TYPEDEF_(0x803B0020L)")] + public const int HCN_E_MANAGER_STOPPED = unchecked((int)(0x803B0020)); + + [NativeTypeName("#define HCN_E_ICS_DISABLED _HRESULT_TYPEDEF_(0x803B002AL)")] + public const int HCN_E_ICS_DISABLED = unchecked((int)(0x803B002A)); + + [NativeTypeName("#define HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B002BL)")] + public const int HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS = unchecked((int)(0x803B002B)); + + [NativeTypeName("#define HCN_E_ENTITY_HAS_REFERENCES _HRESULT_TYPEDEF_(0x803B002CL)")] + public const int HCN_E_ENTITY_HAS_REFERENCES = unchecked((int)(0x803B002C)); + + [NativeTypeName("#define HCN_E_INVALID_INTERNAL_PORT _HRESULT_TYPEDEF_(0x803B002DL)")] + public const int HCN_E_INVALID_INTERNAL_PORT = unchecked((int)(0x803B002D)); + + [NativeTypeName("#define HCN_E_NAMESPACE_ATTACH_FAILED _HRESULT_TYPEDEF_(0x803B002EL)")] + public const int HCN_E_NAMESPACE_ATTACH_FAILED = unchecked((int)(0x803B002E)); + + [NativeTypeName("#define HCN_E_ADDR_INVALID_OR_RESERVED _HRESULT_TYPEDEF_(0x803B002FL)")] + public const int HCN_E_ADDR_INVALID_OR_RESERVED = unchecked((int)(0x803B002F)); + + [NativeTypeName("#define HCN_E_INVALID_PREFIX _HRESULT_TYPEDEF_(0x803B0030L)")] + public const int HCN_E_INVALID_PREFIX = unchecked((int)(0x803B0030)); + + [NativeTypeName("#define HCN_E_OBJECT_USED_AFTER_UNLOAD _HRESULT_TYPEDEF_(0x803B0031L)")] + public const int HCN_E_OBJECT_USED_AFTER_UNLOAD = unchecked((int)(0x803B0031)); + + [NativeTypeName("#define HCN_E_INVALID_SUBNET _HRESULT_TYPEDEF_(0x803B0032L)")] + public const int HCN_E_INVALID_SUBNET = unchecked((int)(0x803B0032)); + + [NativeTypeName("#define HCN_E_INVALID_IP_SUBNET _HRESULT_TYPEDEF_(0x803B0033L)")] + public const int HCN_E_INVALID_IP_SUBNET = unchecked((int)(0x803B0033)); + + [NativeTypeName("#define HCN_E_ENDPOINT_NOT_ATTACHED _HRESULT_TYPEDEF_(0x803B0034L)")] + public const int HCN_E_ENDPOINT_NOT_ATTACHED = unchecked((int)(0x803B0034)); + + [NativeTypeName("#define HCN_E_ENDPOINT_NOT_LOCAL _HRESULT_TYPEDEF_(0x803B0035L)")] + public const int HCN_E_ENDPOINT_NOT_LOCAL = unchecked((int)(0x803B0035)); + + [NativeTypeName("#define HCN_INTERFACEPARAMETERS_ALREADY_APPLIED _HRESULT_TYPEDEF_(0x803B0036L)")] + public const int HCN_INTERFACEPARAMETERS_ALREADY_APPLIED = unchecked((int)(0x803B0036)); + + [NativeTypeName("#define HCN_E_VFP_NOT_ALLOWED _HRESULT_TYPEDEF_(0x803B0037L)")] + public const int HCN_E_VFP_NOT_ALLOWED = unchecked((int)(0x803B0037)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/HCS.cs b/sources/Interop/Windows/Windows/shared/winerror/HCS.cs new file mode 100644 index 0000000000..b48cc6d46e --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/HCS.cs @@ -0,0 +1,103 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HCS + { + [NativeTypeName("#define HCS_E_TERMINATED_DURING_START _HRESULT_TYPEDEF_(0x80370100L)")] + public const int HCS_E_TERMINATED_DURING_START = unchecked((int)(0x80370100)); + + [NativeTypeName("#define HCS_E_IMAGE_MISMATCH _HRESULT_TYPEDEF_(0x80370101L)")] + public const int HCS_E_IMAGE_MISMATCH = unchecked((int)(0x80370101)); + + [NativeTypeName("#define HCS_E_HYPERV_NOT_INSTALLED _HRESULT_TYPEDEF_(0x80370102L)")] + public const int HCS_E_HYPERV_NOT_INSTALLED = unchecked((int)(0x80370102)); + + [NativeTypeName("#define HCS_E_INVALID_STATE _HRESULT_TYPEDEF_(0x80370105L)")] + public const int HCS_E_INVALID_STATE = unchecked((int)(0x80370105)); + + [NativeTypeName("#define HCS_E_UNEXPECTED_EXIT _HRESULT_TYPEDEF_(0x80370106L)")] + public const int HCS_E_UNEXPECTED_EXIT = unchecked((int)(0x80370106)); + + [NativeTypeName("#define HCS_E_TERMINATED _HRESULT_TYPEDEF_(0x80370107L)")] + public const int HCS_E_TERMINATED = unchecked((int)(0x80370107)); + + [NativeTypeName("#define HCS_E_CONNECT_FAILED _HRESULT_TYPEDEF_(0x80370108L)")] + public const int HCS_E_CONNECT_FAILED = unchecked((int)(0x80370108)); + + [NativeTypeName("#define HCS_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x80370109L)")] + public const int HCS_E_CONNECTION_TIMEOUT = unchecked((int)(0x80370109)); + + [NativeTypeName("#define HCS_E_CONNECTION_CLOSED _HRESULT_TYPEDEF_(0x8037010AL)")] + public const int HCS_E_CONNECTION_CLOSED = unchecked((int)(0x8037010A)); + + [NativeTypeName("#define HCS_E_UNKNOWN_MESSAGE _HRESULT_TYPEDEF_(0x8037010BL)")] + public const int HCS_E_UNKNOWN_MESSAGE = unchecked((int)(0x8037010B)); + + [NativeTypeName("#define HCS_E_UNSUPPORTED_PROTOCOL_VERSION _HRESULT_TYPEDEF_(0x8037010CL)")] + public const int HCS_E_UNSUPPORTED_PROTOCOL_VERSION = unchecked((int)(0x8037010C)); + + [NativeTypeName("#define HCS_E_INVALID_JSON _HRESULT_TYPEDEF_(0x8037010DL)")] + public const int HCS_E_INVALID_JSON = unchecked((int)(0x8037010D)); + + [NativeTypeName("#define HCS_E_SYSTEM_NOT_FOUND _HRESULT_TYPEDEF_(0x8037010EL)")] + public const int HCS_E_SYSTEM_NOT_FOUND = unchecked((int)(0x8037010E)); + + [NativeTypeName("#define HCS_E_SYSTEM_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x8037010FL)")] + public const int HCS_E_SYSTEM_ALREADY_EXISTS = unchecked((int)(0x8037010F)); + + [NativeTypeName("#define HCS_E_SYSTEM_ALREADY_STOPPED _HRESULT_TYPEDEF_(0x80370110L)")] + public const int HCS_E_SYSTEM_ALREADY_STOPPED = unchecked((int)(0x80370110)); + + [NativeTypeName("#define HCS_E_PROTOCOL_ERROR _HRESULT_TYPEDEF_(0x80370111L)")] + public const int HCS_E_PROTOCOL_ERROR = unchecked((int)(0x80370111)); + + [NativeTypeName("#define HCS_E_INVALID_LAYER _HRESULT_TYPEDEF_(0x80370112L)")] + public const int HCS_E_INVALID_LAYER = unchecked((int)(0x80370112)); + + [NativeTypeName("#define HCS_E_WINDOWS_INSIDER_REQUIRED _HRESULT_TYPEDEF_(0x80370113L)")] + public const int HCS_E_WINDOWS_INSIDER_REQUIRED = unchecked((int)(0x80370113)); + + [NativeTypeName("#define HCS_E_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80370114L)")] + public const int HCS_E_SERVICE_NOT_AVAILABLE = unchecked((int)(0x80370114)); + + [NativeTypeName("#define HCS_E_OPERATION_NOT_STARTED _HRESULT_TYPEDEF_(0x80370115L)")] + public const int HCS_E_OPERATION_NOT_STARTED = unchecked((int)(0x80370115)); + + [NativeTypeName("#define HCS_E_OPERATION_ALREADY_STARTED _HRESULT_TYPEDEF_(0x80370116L)")] + public const int HCS_E_OPERATION_ALREADY_STARTED = unchecked((int)(0x80370116)); + + [NativeTypeName("#define HCS_E_OPERATION_PENDING _HRESULT_TYPEDEF_(0x80370117L)")] + public const int HCS_E_OPERATION_PENDING = unchecked((int)(0x80370117)); + + [NativeTypeName("#define HCS_E_OPERATION_TIMEOUT _HRESULT_TYPEDEF_(0x80370118L)")] + public const int HCS_E_OPERATION_TIMEOUT = unchecked((int)(0x80370118)); + + [NativeTypeName("#define HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET _HRESULT_TYPEDEF_(0x80370119L)")] + public const int HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET = unchecked((int)(0x80370119)); + + [NativeTypeName("#define HCS_E_OPERATION_RESULT_ALLOCATION_FAILED _HRESULT_TYPEDEF_(0x8037011AL)")] + public const int HCS_E_OPERATION_RESULT_ALLOCATION_FAILED = unchecked((int)(0x8037011A)); + + [NativeTypeName("#define HCS_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x8037011BL)")] + public const int HCS_E_ACCESS_DENIED = unchecked((int)(0x8037011B)); + + [NativeTypeName("#define HCS_E_GUEST_CRITICAL_ERROR _HRESULT_TYPEDEF_(0x8037011CL)")] + public const int HCS_E_GUEST_CRITICAL_ERROR = unchecked((int)(0x8037011C)); + + [NativeTypeName("#define HCS_E_PROCESS_INFO_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x8037011DL)")] + public const int HCS_E_PROCESS_INFO_NOT_AVAILABLE = unchecked((int)(0x8037011D)); + + [NativeTypeName("#define HCS_E_SERVICE_DISCONNECT _HRESULT_TYPEDEF_(0x8037011EL)")] + public const int HCS_E_SERVICE_DISCONNECT = unchecked((int)(0x8037011E)); + + [NativeTypeName("#define HCS_E_PROCESS_ALREADY_STOPPED _HRESULT_TYPEDEF_(0x8037011FL)")] + public const int HCS_E_PROCESS_ALREADY_STOPPED = unchecked((int)(0x8037011F)); + + [NativeTypeName("#define HCS_E_SYSTEM_NOT_CONFIGURED_FOR_OPERATION _HRESULT_TYPEDEF_(0x80370120L)")] + public const int HCS_E_SYSTEM_NOT_CONFIGURED_FOR_OPERATION = unchecked((int)(0x80370120)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/MEM.cs b/sources/Interop/Windows/Windows/shared/winerror/MEM.cs new file mode 100644 index 0000000000..e4eb86fa0c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/MEM.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MEM + { + [NativeTypeName("#define MEM_E_INVALID_ROOT _HRESULT_TYPEDEF_(0x80080009L)")] + public const int MEM_E_INVALID_ROOT = unchecked((int)(0x80080009)); + + [NativeTypeName("#define MEM_E_INVALID_LINK _HRESULT_TYPEDEF_(0x80080010L)")] + public const int MEM_E_INVALID_LINK = unchecked((int)(0x80080010)); + + [NativeTypeName("#define MEM_E_INVALID_SIZE _HRESULT_TYPEDEF_(0x80080011L)")] + public const int MEM_E_INVALID_SIZE = unchecked((int)(0x80080011)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/MENROLL.cs b/sources/Interop/Windows/Windows/shared/winerror/MENROLL.cs new file mode 100644 index 0000000000..89a60111e3 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/MENROLL.cs @@ -0,0 +1,133 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MENROLL + { + [NativeTypeName("#define MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR _HRESULT_TYPEDEF_(0x80180001L)")] + public const int MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR = unchecked((int)(0x80180001)); + + [NativeTypeName("#define MENROLL_E_DEVICE_AUTHENTICATION_ERROR _HRESULT_TYPEDEF_(0x80180002L)")] + public const int MENROLL_E_DEVICE_AUTHENTICATION_ERROR = unchecked((int)(0x80180002)); + + [NativeTypeName("#define MENROLL_E_DEVICE_AUTHORIZATION_ERROR _HRESULT_TYPEDEF_(0x80180003L)")] + public const int MENROLL_E_DEVICE_AUTHORIZATION_ERROR = unchecked((int)(0x80180003)); + + [NativeTypeName("#define MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR _HRESULT_TYPEDEF_(0x80180004L)")] + public const int MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR = unchecked((int)(0x80180004)); + + [NativeTypeName("#define MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR _HRESULT_TYPEDEF_(0x80180005L)")] + public const int MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR = unchecked((int)(0x80180005)); + + [NativeTypeName("#define MENROLL_E_DEVICE_INTERNALSERVICE_ERROR _HRESULT_TYPEDEF_(0x80180006L)")] + public const int MENROLL_E_DEVICE_INTERNALSERVICE_ERROR = unchecked((int)(0x80180006)); + + [NativeTypeName("#define MENROLL_E_DEVICE_INVALIDSECURITY_ERROR _HRESULT_TYPEDEF_(0x80180007L)")] + public const int MENROLL_E_DEVICE_INVALIDSECURITY_ERROR = unchecked((int)(0x80180007)); + + [NativeTypeName("#define MENROLL_E_DEVICE_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x80180008L)")] + public const int MENROLL_E_DEVICE_UNKNOWN_ERROR = unchecked((int)(0x80180008)); + + [NativeTypeName("#define MENROLL_E_ENROLLMENT_IN_PROGRESS _HRESULT_TYPEDEF_(0x80180009L)")] + public const int MENROLL_E_ENROLLMENT_IN_PROGRESS = unchecked((int)(0x80180009)); + + [NativeTypeName("#define MENROLL_E_DEVICE_ALREADY_ENROLLED _HRESULT_TYPEDEF_(0x8018000AL)")] + public const int MENROLL_E_DEVICE_ALREADY_ENROLLED = unchecked((int)(0x8018000A)); + + [NativeTypeName("#define MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID _HRESULT_TYPEDEF_(0x8018000DL)")] + public const int MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID = unchecked((int)(0x8018000D)); + + [NativeTypeName("#define MENROLL_E_PASSWORD_NEEDED _HRESULT_TYPEDEF_(0x8018000EL)")] + public const int MENROLL_E_PASSWORD_NEEDED = unchecked((int)(0x8018000E)); + + [NativeTypeName("#define MENROLL_E_WAB_ERROR _HRESULT_TYPEDEF_(0x8018000FL)")] + public const int MENROLL_E_WAB_ERROR = unchecked((int)(0x8018000F)); + + [NativeTypeName("#define MENROLL_E_CONNECTIVITY _HRESULT_TYPEDEF_(0x80180010L)")] + public const int MENROLL_E_CONNECTIVITY = unchecked((int)(0x80180010)); + + [NativeTypeName("#define MENROLL_S_ENROLLMENT_SUSPENDED _HRESULT_TYPEDEF_(0x00180011L)")] + public const int MENROLL_S_ENROLLMENT_SUSPENDED = ((int)(0x00180011)); + + [NativeTypeName("#define MENROLL_E_INVALIDSSLCERT _HRESULT_TYPEDEF_(0x80180012L)")] + public const int MENROLL_E_INVALIDSSLCERT = unchecked((int)(0x80180012)); + + [NativeTypeName("#define MENROLL_E_DEVICEAPREACHED _HRESULT_TYPEDEF_(0x80180013L)")] + public const int MENROLL_E_DEVICEAPREACHED = unchecked((int)(0x80180013)); + + [NativeTypeName("#define MENROLL_E_DEVICENOTSUPPORTED _HRESULT_TYPEDEF_(0x80180014L)")] + public const int MENROLL_E_DEVICENOTSUPPORTED = unchecked((int)(0x80180014)); + + [NativeTypeName("#define MENROLL_E_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80180015L)")] + public const int MENROLL_E_NOT_SUPPORTED = unchecked((int)(0x80180015)); + + [NativeTypeName("#define MENROLL_E_NOTELIGIBLETORENEW _HRESULT_TYPEDEF_(0x80180016L)")] + public const int MENROLL_E_NOTELIGIBLETORENEW = unchecked((int)(0x80180016)); + + [NativeTypeName("#define MENROLL_E_INMAINTENANCE _HRESULT_TYPEDEF_(0x80180017L)")] + public const int MENROLL_E_INMAINTENANCE = unchecked((int)(0x80180017)); + + [NativeTypeName("#define MENROLL_E_USER_LICENSE _HRESULT_TYPEDEF_(0x80180018L)")] + public const int MENROLL_E_USER_LICENSE = unchecked((int)(0x80180018)); + + [NativeTypeName("#define MENROLL_E_ENROLLMENTDATAINVALID _HRESULT_TYPEDEF_(0x80180019L)")] + public const int MENROLL_E_ENROLLMENTDATAINVALID = unchecked((int)(0x80180019)); + + [NativeTypeName("#define MENROLL_E_INSECUREREDIRECT _HRESULT_TYPEDEF_(0x8018001AL)")] + public const int MENROLL_E_INSECUREREDIRECT = unchecked((int)(0x8018001A)); + + [NativeTypeName("#define MENROLL_E_PLATFORM_WRONG_STATE _HRESULT_TYPEDEF_(0x8018001BL)")] + public const int MENROLL_E_PLATFORM_WRONG_STATE = unchecked((int)(0x8018001B)); + + [NativeTypeName("#define MENROLL_E_PLATFORM_LICENSE_ERROR _HRESULT_TYPEDEF_(0x8018001CL)")] + public const int MENROLL_E_PLATFORM_LICENSE_ERROR = unchecked((int)(0x8018001C)); + + [NativeTypeName("#define MENROLL_E_PLATFORM_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x8018001DL)")] + public const int MENROLL_E_PLATFORM_UNKNOWN_ERROR = unchecked((int)(0x8018001D)); + + [NativeTypeName("#define MENROLL_E_PROV_CSP_CERTSTORE _HRESULT_TYPEDEF_(0x8018001EL)")] + public const int MENROLL_E_PROV_CSP_CERTSTORE = unchecked((int)(0x8018001E)); + + [NativeTypeName("#define MENROLL_E_PROV_CSP_W7 _HRESULT_TYPEDEF_(0x8018001FL)")] + public const int MENROLL_E_PROV_CSP_W7 = unchecked((int)(0x8018001F)); + + [NativeTypeName("#define MENROLL_E_PROV_CSP_DMCLIENT _HRESULT_TYPEDEF_(0x80180020L)")] + public const int MENROLL_E_PROV_CSP_DMCLIENT = unchecked((int)(0x80180020)); + + [NativeTypeName("#define MENROLL_E_PROV_CSP_PFW _HRESULT_TYPEDEF_(0x80180021L)")] + public const int MENROLL_E_PROV_CSP_PFW = unchecked((int)(0x80180021)); + + [NativeTypeName("#define MENROLL_E_PROV_CSP_MISC _HRESULT_TYPEDEF_(0x80180022L)")] + public const int MENROLL_E_PROV_CSP_MISC = unchecked((int)(0x80180022)); + + [NativeTypeName("#define MENROLL_E_PROV_UNKNOWN _HRESULT_TYPEDEF_(0x80180023L)")] + public const int MENROLL_E_PROV_UNKNOWN = unchecked((int)(0x80180023)); + + [NativeTypeName("#define MENROLL_E_PROV_SSLCERTNOTFOUND _HRESULT_TYPEDEF_(0x80180024L)")] + public const int MENROLL_E_PROV_SSLCERTNOTFOUND = unchecked((int)(0x80180024)); + + [NativeTypeName("#define MENROLL_E_PROV_CSP_APPMGMT _HRESULT_TYPEDEF_(0x80180025L)")] + public const int MENROLL_E_PROV_CSP_APPMGMT = unchecked((int)(0x80180025)); + + [NativeTypeName("#define MENROLL_E_DEVICE_MANAGEMENT_BLOCKED _HRESULT_TYPEDEF_(0x80180026L)")] + public const int MENROLL_E_DEVICE_MANAGEMENT_BLOCKED = unchecked((int)(0x80180026)); + + [NativeTypeName("#define MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED _HRESULT_TYPEDEF_(0x80180027L)")] + public const int MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED = unchecked((int)(0x80180027)); + + [NativeTypeName("#define MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT _HRESULT_TYPEDEF_(0x80180028L)")] + public const int MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT = unchecked((int)(0x80180028)); + + [NativeTypeName("#define MENROLL_E_EMPTY_MESSAGE _HRESULT_TYPEDEF_(0x80180029L)")] + public const int MENROLL_E_EMPTY_MESSAGE = unchecked((int)(0x80180029)); + + [NativeTypeName("#define MENROLL_E_USER_CANCELLED _HRESULT_TYPEDEF_(0x80180030L)")] + public const int MENROLL_E_USER_CANCELLED = unchecked((int)(0x80180030)); + + [NativeTypeName("#define MENROLL_E_MDM_NOT_CONFIGURED _HRESULT_TYPEDEF_(0x80180031L)")] + public const int MENROLL_E_MDM_NOT_CONFIGURED = unchecked((int)(0x80180031)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/MILAVERR.cs b/sources/Interop/Windows/Windows/shared/winerror/MILAVERR.cs new file mode 100644 index 0000000000..a2d5c142c4 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/MILAVERR.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MILAVERR + { + [NativeTypeName("#define MILAVERR_NOCLOCK _HRESULT_TYPEDEF_(0x88980500L)")] + public const int MILAVERR_NOCLOCK = unchecked((int)(0x88980500)); + + [NativeTypeName("#define MILAVERR_NOMEDIATYPE _HRESULT_TYPEDEF_(0x88980501L)")] + public const int MILAVERR_NOMEDIATYPE = unchecked((int)(0x88980501)); + + [NativeTypeName("#define MILAVERR_NOVIDEOMIXER _HRESULT_TYPEDEF_(0x88980502L)")] + public const int MILAVERR_NOVIDEOMIXER = unchecked((int)(0x88980502)); + + [NativeTypeName("#define MILAVERR_NOVIDEOPRESENTER _HRESULT_TYPEDEF_(0x88980503L)")] + public const int MILAVERR_NOVIDEOPRESENTER = unchecked((int)(0x88980503)); + + [NativeTypeName("#define MILAVERR_NOREADYFRAMES _HRESULT_TYPEDEF_(0x88980504L)")] + public const int MILAVERR_NOREADYFRAMES = unchecked((int)(0x88980504)); + + [NativeTypeName("#define MILAVERR_MODULENOTLOADED _HRESULT_TYPEDEF_(0x88980505L)")] + public const int MILAVERR_MODULENOTLOADED = unchecked((int)(0x88980505)); + + [NativeTypeName("#define MILAVERR_WMPFACTORYNOTREGISTERED _HRESULT_TYPEDEF_(0x88980506L)")] + public const int MILAVERR_WMPFACTORYNOTREGISTERED = unchecked((int)(0x88980506)); + + [NativeTypeName("#define MILAVERR_INVALIDWMPVERSION _HRESULT_TYPEDEF_(0x88980507L)")] + public const int MILAVERR_INVALIDWMPVERSION = unchecked((int)(0x88980507)); + + [NativeTypeName("#define MILAVERR_INSUFFICIENTVIDEORESOURCES _HRESULT_TYPEDEF_(0x88980508L)")] + public const int MILAVERR_INSUFFICIENTVIDEORESOURCES = unchecked((int)(0x88980508)); + + [NativeTypeName("#define MILAVERR_VIDEOACCELERATIONNOTAVAILABLE _HRESULT_TYPEDEF_(0x88980509L)")] + public const int MILAVERR_VIDEOACCELERATIONNOTAVAILABLE = unchecked((int)(0x88980509)); + + [NativeTypeName("#define MILAVERR_REQUESTEDTEXTURETOOBIG _HRESULT_TYPEDEF_(0x8898050AL)")] + public const int MILAVERR_REQUESTEDTEXTURETOOBIG = unchecked((int)(0x8898050A)); + + [NativeTypeName("#define MILAVERR_SEEKFAILED _HRESULT_TYPEDEF_(0x8898050BL)")] + public const int MILAVERR_SEEKFAILED = unchecked((int)(0x8898050B)); + + [NativeTypeName("#define MILAVERR_UNEXPECTEDWMPFAILURE _HRESULT_TYPEDEF_(0x8898050CL)")] + public const int MILAVERR_UNEXPECTEDWMPFAILURE = unchecked((int)(0x8898050C)); + + [NativeTypeName("#define MILAVERR_MEDIAPLAYERCLOSED _HRESULT_TYPEDEF_(0x8898050DL)")] + public const int MILAVERR_MEDIAPLAYERCLOSED = unchecked((int)(0x8898050D)); + + [NativeTypeName("#define MILAVERR_UNKNOWNHARDWAREERROR _HRESULT_TYPEDEF_(0x8898050EL)")] + public const int MILAVERR_UNKNOWNHARDWAREERROR = unchecked((int)(0x8898050E)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/MILEFFECTSERR.cs b/sources/Interop/Windows/Windows/shared/winerror/MILEFFECTSERR.cs new file mode 100644 index 0000000000..1790b32a85 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/MILEFFECTSERR.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MILEFFECTSERR + { + [NativeTypeName("#define MILEFFECTSERR_UNKNOWNPROPERTY _HRESULT_TYPEDEF_(0x8898060EL)")] + public const int MILEFFECTSERR_UNKNOWNPROPERTY = unchecked((int)(0x8898060E)); + + [NativeTypeName("#define MILEFFECTSERR_EFFECTNOTPARTOFGROUP _HRESULT_TYPEDEF_(0x8898060FL)")] + public const int MILEFFECTSERR_EFFECTNOTPARTOFGROUP = unchecked((int)(0x8898060F)); + + [NativeTypeName("#define MILEFFECTSERR_NOINPUTSOURCEATTACHED _HRESULT_TYPEDEF_(0x88980610L)")] + public const int MILEFFECTSERR_NOINPUTSOURCEATTACHED = unchecked((int)(0x88980610)); + + [NativeTypeName("#define MILEFFECTSERR_CONNECTORNOTCONNECTED _HRESULT_TYPEDEF_(0x88980611L)")] + public const int MILEFFECTSERR_CONNECTORNOTCONNECTED = unchecked((int)(0x88980611)); + + [NativeTypeName("#define MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT _HRESULT_TYPEDEF_(0x88980612L)")] + public const int MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT = unchecked((int)(0x88980612)); + + [NativeTypeName("#define MILEFFECTSERR_RESERVED _HRESULT_TYPEDEF_(0x88980613L)")] + public const int MILEFFECTSERR_RESERVED = unchecked((int)(0x88980613)); + + [NativeTypeName("#define MILEFFECTSERR_CYCLEDETECTED _HRESULT_TYPEDEF_(0x88980614L)")] + public const int MILEFFECTSERR_CYCLEDETECTED = unchecked((int)(0x88980614)); + + [NativeTypeName("#define MILEFFECTSERR_EFFECTINMORETHANONEGRAPH _HRESULT_TYPEDEF_(0x88980615L)")] + public const int MILEFFECTSERR_EFFECTINMORETHANONEGRAPH = unchecked((int)(0x88980615)); + + [NativeTypeName("#define MILEFFECTSERR_EFFECTALREADYINAGRAPH _HRESULT_TYPEDEF_(0x88980616L)")] + public const int MILEFFECTSERR_EFFECTALREADYINAGRAPH = unchecked((int)(0x88980616)); + + [NativeTypeName("#define MILEFFECTSERR_EFFECTHASNOCHILDREN _HRESULT_TYPEDEF_(0x88980617L)")] + public const int MILEFFECTSERR_EFFECTHASNOCHILDREN = unchecked((int)(0x88980617)); + + [NativeTypeName("#define MILEFFECTSERR_ALREADYATTACHEDTOLISTENER _HRESULT_TYPEDEF_(0x88980618L)")] + public const int MILEFFECTSERR_ALREADYATTACHEDTOLISTENER = unchecked((int)(0x88980618)); + + [NativeTypeName("#define MILEFFECTSERR_NOTAFFINETRANSFORM _HRESULT_TYPEDEF_(0x88980619L)")] + public const int MILEFFECTSERR_NOTAFFINETRANSFORM = unchecked((int)(0x88980619)); + + [NativeTypeName("#define MILEFFECTSERR_EMPTYBOUNDS _HRESULT_TYPEDEF_(0x8898061AL)")] + public const int MILEFFECTSERR_EMPTYBOUNDS = unchecked((int)(0x8898061A)); + + [NativeTypeName("#define MILEFFECTSERR_OUTPUTSIZETOOLARGE _HRESULT_TYPEDEF_(0x8898061BL)")] + public const int MILEFFECTSERR_OUTPUTSIZETOOLARGE = unchecked((int)(0x8898061B)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/MILERR.cs b/sources/Interop/Windows/Windows/shared/winerror/MILERR.cs new file mode 100644 index 0000000000..bf6247db3c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/MILERR.cs @@ -0,0 +1,130 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MILERR + { + [NativeTypeName("#define MILERR_OBJECTBUSY _HRESULT_TYPEDEF_(0x88980001L)")] + public const int MILERR_OBJECTBUSY = unchecked((int)(0x88980001)); + + [NativeTypeName("#define MILERR_INSUFFICIENTBUFFER _HRESULT_TYPEDEF_(0x88980002L)")] + public const int MILERR_INSUFFICIENTBUFFER = unchecked((int)(0x88980002)); + + [NativeTypeName("#define MILERR_WIN32ERROR _HRESULT_TYPEDEF_(0x88980003L)")] + public const int MILERR_WIN32ERROR = unchecked((int)(0x88980003)); + + [NativeTypeName("#define MILERR_SCANNER_FAILED _HRESULT_TYPEDEF_(0x88980004L)")] + public const int MILERR_SCANNER_FAILED = unchecked((int)(0x88980004)); + + [NativeTypeName("#define MILERR_SCREENACCESSDENIED _HRESULT_TYPEDEF_(0x88980005L)")] + public const int MILERR_SCREENACCESSDENIED = unchecked((int)(0x88980005)); + + [NativeTypeName("#define MILERR_DISPLAYSTATEINVALID _HRESULT_TYPEDEF_(0x88980006L)")] + public const int MILERR_DISPLAYSTATEINVALID = unchecked((int)(0x88980006)); + + [NativeTypeName("#define MILERR_NONINVERTIBLEMATRIX _HRESULT_TYPEDEF_(0x88980007L)")] + public const int MILERR_NONINVERTIBLEMATRIX = unchecked((int)(0x88980007)); + + [NativeTypeName("#define MILERR_ZEROVECTOR _HRESULT_TYPEDEF_(0x88980008L)")] + public const int MILERR_ZEROVECTOR = unchecked((int)(0x88980008)); + + [NativeTypeName("#define MILERR_TERMINATED _HRESULT_TYPEDEF_(0x88980009L)")] + public const int MILERR_TERMINATED = unchecked((int)(0x88980009)); + + [NativeTypeName("#define MILERR_BADNUMBER _HRESULT_TYPEDEF_(0x8898000AL)")] + public const int MILERR_BADNUMBER = unchecked((int)(0x8898000A)); + + [NativeTypeName("#define MILERR_INTERNALERROR _HRESULT_TYPEDEF_(0x88980080L)")] + public const int MILERR_INTERNALERROR = unchecked((int)(0x88980080)); + + [NativeTypeName("#define MILERR_DISPLAYFORMATNOTSUPPORTED _HRESULT_TYPEDEF_(0x88980084L)")] + public const int MILERR_DISPLAYFORMATNOTSUPPORTED = unchecked((int)(0x88980084)); + + [NativeTypeName("#define MILERR_INVALIDCALL _HRESULT_TYPEDEF_(0x88980085L)")] + public const int MILERR_INVALIDCALL = unchecked((int)(0x88980085)); + + [NativeTypeName("#define MILERR_ALREADYLOCKED _HRESULT_TYPEDEF_(0x88980086L)")] + public const int MILERR_ALREADYLOCKED = unchecked((int)(0x88980086)); + + [NativeTypeName("#define MILERR_NOTLOCKED _HRESULT_TYPEDEF_(0x88980087L)")] + public const int MILERR_NOTLOCKED = unchecked((int)(0x88980087)); + + [NativeTypeName("#define MILERR_DEVICECANNOTRENDERTEXT _HRESULT_TYPEDEF_(0x88980088L)")] + public const int MILERR_DEVICECANNOTRENDERTEXT = unchecked((int)(0x88980088)); + + [NativeTypeName("#define MILERR_GLYPHBITMAPMISSED _HRESULT_TYPEDEF_(0x88980089L)")] + public const int MILERR_GLYPHBITMAPMISSED = unchecked((int)(0x88980089)); + + [NativeTypeName("#define MILERR_MALFORMEDGLYPHCACHE _HRESULT_TYPEDEF_(0x8898008AL)")] + public const int MILERR_MALFORMEDGLYPHCACHE = unchecked((int)(0x8898008A)); + + [NativeTypeName("#define MILERR_GENERIC_IGNORE _HRESULT_TYPEDEF_(0x8898008BL)")] + public const int MILERR_GENERIC_IGNORE = unchecked((int)(0x8898008B)); + + [NativeTypeName("#define MILERR_MALFORMED_GUIDELINE_DATA _HRESULT_TYPEDEF_(0x8898008CL)")] + public const int MILERR_MALFORMED_GUIDELINE_DATA = unchecked((int)(0x8898008C)); + + [NativeTypeName("#define MILERR_NO_HARDWARE_DEVICE _HRESULT_TYPEDEF_(0x8898008DL)")] + public const int MILERR_NO_HARDWARE_DEVICE = unchecked((int)(0x8898008D)); + + [NativeTypeName("#define MILERR_NEED_RECREATE_AND_PRESENT _HRESULT_TYPEDEF_(0x8898008EL)")] + public const int MILERR_NEED_RECREATE_AND_PRESENT = unchecked((int)(0x8898008E)); + + [NativeTypeName("#define MILERR_ALREADY_INITIALIZED _HRESULT_TYPEDEF_(0x8898008FL)")] + public const int MILERR_ALREADY_INITIALIZED = unchecked((int)(0x8898008F)); + + [NativeTypeName("#define MILERR_MISMATCHED_SIZE _HRESULT_TYPEDEF_(0x88980090L)")] + public const int MILERR_MISMATCHED_SIZE = unchecked((int)(0x88980090)); + + [NativeTypeName("#define MILERR_NO_REDIRECTION_SURFACE_AVAILABLE _HRESULT_TYPEDEF_(0x88980091L)")] + public const int MILERR_NO_REDIRECTION_SURFACE_AVAILABLE = unchecked((int)(0x88980091)); + + [NativeTypeName("#define MILERR_REMOTING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88980092L)")] + public const int MILERR_REMOTING_NOT_SUPPORTED = unchecked((int)(0x88980092)); + + [NativeTypeName("#define MILERR_QUEUED_PRESENT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88980093L)")] + public const int MILERR_QUEUED_PRESENT_NOT_SUPPORTED = unchecked((int)(0x88980093)); + + [NativeTypeName("#define MILERR_NOT_QUEUING_PRESENTS _HRESULT_TYPEDEF_(0x88980094L)")] + public const int MILERR_NOT_QUEUING_PRESENTS = unchecked((int)(0x88980094)); + + [NativeTypeName("#define MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER _HRESULT_TYPEDEF_(0x88980095L)")] + public const int MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER = unchecked((int)(0x88980095)); + + [NativeTypeName("#define MILERR_TOOMANYSHADERELEMNTS _HRESULT_TYPEDEF_(0x88980096L)")] + public const int MILERR_TOOMANYSHADERELEMNTS = unchecked((int)(0x88980096)); + + [NativeTypeName("#define MILERR_MROW_READLOCK_FAILED _HRESULT_TYPEDEF_(0x88980097L)")] + public const int MILERR_MROW_READLOCK_FAILED = unchecked((int)(0x88980097)); + + [NativeTypeName("#define MILERR_MROW_UPDATE_FAILED _HRESULT_TYPEDEF_(0x88980098L)")] + public const int MILERR_MROW_UPDATE_FAILED = unchecked((int)(0x88980098)); + + [NativeTypeName("#define MILERR_SHADER_COMPILE_FAILED _HRESULT_TYPEDEF_(0x88980099L)")] + public const int MILERR_SHADER_COMPILE_FAILED = unchecked((int)(0x88980099)); + + [NativeTypeName("#define MILERR_MAX_TEXTURE_SIZE_EXCEEDED _HRESULT_TYPEDEF_(0x8898009AL)")] + public const int MILERR_MAX_TEXTURE_SIZE_EXCEEDED = unchecked((int)(0x8898009A)); + + [NativeTypeName("#define MILERR_QPC_TIME_WENT_BACKWARD _HRESULT_TYPEDEF_(0x8898009BL)")] + public const int MILERR_QPC_TIME_WENT_BACKWARD = unchecked((int)(0x8898009B)); + + [NativeTypeName("#define MILERR_DXGI_ENUMERATION_OUT_OF_SYNC _HRESULT_TYPEDEF_(0x8898009DL)")] + public const int MILERR_DXGI_ENUMERATION_OUT_OF_SYNC = unchecked((int)(0x8898009D)); + + [NativeTypeName("#define MILERR_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x8898009EL)")] + public const int MILERR_ADAPTER_NOT_FOUND = unchecked((int)(0x8898009E)); + + [NativeTypeName("#define MILERR_COLORSPACE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8898009FL)")] + public const int MILERR_COLORSPACE_NOT_SUPPORTED = unchecked((int)(0x8898009F)); + + [NativeTypeName("#define MILERR_PREFILTER_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x889800A0L)")] + public const int MILERR_PREFILTER_NOT_SUPPORTED = unchecked((int)(0x889800A0)); + + [NativeTypeName("#define MILERR_DISPLAYID_ACCESS_DENIED _HRESULT_TYPEDEF_(0x889800A1L)")] + public const int MILERR_DISPLAYID_ACCESS_DENIED = unchecked((int)(0x889800A1)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/MK.cs b/sources/Interop/Windows/Windows/shared/winerror/MK.cs new file mode 100644 index 0000000000..a6eec76088 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/MK.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MK + { + [NativeTypeName("#define MK_E_FIRST 0x800401E0L")] + public const uint MK_E_FIRST = 0x800401E0; + + [NativeTypeName("#define MK_E_LAST 0x800401EFL")] + public const uint MK_E_LAST = 0x800401EF; + + [NativeTypeName("#define MK_S_FIRST 0x000401E0L")] + public const int MK_S_FIRST = 0x000401E0; + + [NativeTypeName("#define MK_S_LAST 0x000401EFL")] + public const int MK_S_LAST = 0x000401EF; + + [NativeTypeName("#define MK_E_CONNECTMANUALLY _HRESULT_TYPEDEF_(0x800401E0L)")] + public const int MK_E_CONNECTMANUALLY = unchecked((int)(0x800401E0)); + + [NativeTypeName("#define MK_E_EXCEEDEDDEADLINE _HRESULT_TYPEDEF_(0x800401E1L)")] + public const int MK_E_EXCEEDEDDEADLINE = unchecked((int)(0x800401E1)); + + [NativeTypeName("#define MK_E_NEEDGENERIC _HRESULT_TYPEDEF_(0x800401E2L)")] + public const int MK_E_NEEDGENERIC = unchecked((int)(0x800401E2)); + + [NativeTypeName("#define MK_E_UNAVAILABLE _HRESULT_TYPEDEF_(0x800401E3L)")] + public const int MK_E_UNAVAILABLE = unchecked((int)(0x800401E3)); + + [NativeTypeName("#define MK_E_SYNTAX _HRESULT_TYPEDEF_(0x800401E4L)")] + public const int MK_E_SYNTAX = unchecked((int)(0x800401E4)); + + [NativeTypeName("#define MK_E_NOOBJECT _HRESULT_TYPEDEF_(0x800401E5L)")] + public const int MK_E_NOOBJECT = unchecked((int)(0x800401E5)); + + [NativeTypeName("#define MK_E_INVALIDEXTENSION _HRESULT_TYPEDEF_(0x800401E6L)")] + public const int MK_E_INVALIDEXTENSION = unchecked((int)(0x800401E6)); + + [NativeTypeName("#define MK_E_INTERMEDIATEINTERFACENOTSUPPORTED _HRESULT_TYPEDEF_(0x800401E7L)")] + public const int MK_E_INTERMEDIATEINTERFACENOTSUPPORTED = unchecked((int)(0x800401E7)); + + [NativeTypeName("#define MK_E_NOTBINDABLE _HRESULT_TYPEDEF_(0x800401E8L)")] + public const int MK_E_NOTBINDABLE = unchecked((int)(0x800401E8)); + + [NativeTypeName("#define MK_E_NOTBOUND _HRESULT_TYPEDEF_(0x800401E9L)")] + public const int MK_E_NOTBOUND = unchecked((int)(0x800401E9)); + + [NativeTypeName("#define MK_E_CANTOPENFILE _HRESULT_TYPEDEF_(0x800401EAL)")] + public const int MK_E_CANTOPENFILE = unchecked((int)(0x800401EA)); + + [NativeTypeName("#define MK_E_MUSTBOTHERUSER _HRESULT_TYPEDEF_(0x800401EBL)")] + public const int MK_E_MUSTBOTHERUSER = unchecked((int)(0x800401EB)); + + [NativeTypeName("#define MK_E_NOINVERSE _HRESULT_TYPEDEF_(0x800401ECL)")] + public const int MK_E_NOINVERSE = unchecked((int)(0x800401EC)); + + [NativeTypeName("#define MK_E_NOSTORAGE _HRESULT_TYPEDEF_(0x800401EDL)")] + public const int MK_E_NOSTORAGE = unchecked((int)(0x800401ED)); + + [NativeTypeName("#define MK_E_NOPREFIX _HRESULT_TYPEDEF_(0x800401EEL)")] + public const int MK_E_NOPREFIX = unchecked((int)(0x800401EE)); + + [NativeTypeName("#define MK_E_ENUMERATION_FAILED _HRESULT_TYPEDEF_(0x800401EFL)")] + public const int MK_E_ENUMERATION_FAILED = unchecked((int)(0x800401EF)); + + [NativeTypeName("#define MK_S_REDUCED_TO_SELF _HRESULT_TYPEDEF_(0x000401E2L)")] + public const int MK_S_REDUCED_TO_SELF = ((int)(0x000401E2)); + + [NativeTypeName("#define MK_S_ME _HRESULT_TYPEDEF_(0x000401E4L)")] + public const int MK_S_ME = ((int)(0x000401E4)); + + [NativeTypeName("#define MK_S_HIM _HRESULT_TYPEDEF_(0x000401E5L)")] + public const int MK_S_HIM = ((int)(0x000401E5)); + + [NativeTypeName("#define MK_S_US _HRESULT_TYPEDEF_(0x000401E6L)")] + public const int MK_S_US = ((int)(0x000401E6)); + + [NativeTypeName("#define MK_S_MONIKERALREADYREGISTERED _HRESULT_TYPEDEF_(0x000401E7L)")] + public const int MK_S_MONIKERALREADYREGISTERED = ((int)(0x000401E7)); + + [NativeTypeName("#define MK_E_NO_NORMALIZED _HRESULT_TYPEDEF_(0x80080007L)")] + public const int MK_E_NO_NORMALIZED = unchecked((int)(0x80080007)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/MSSIPOTF.cs b/sources/Interop/Windows/Windows/shared/winerror/MSSIPOTF.cs new file mode 100644 index 0000000000..243a0251ca --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/MSSIPOTF.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MSSIPOTF + { + [NativeTypeName("#define MSSIPOTF_E_OUTOFMEMRANGE _HRESULT_TYPEDEF_(0x80097001L)")] + public const int MSSIPOTF_E_OUTOFMEMRANGE = unchecked((int)(0x80097001)); + + [NativeTypeName("#define MSSIPOTF_E_CANTGETOBJECT _HRESULT_TYPEDEF_(0x80097002L)")] + public const int MSSIPOTF_E_CANTGETOBJECT = unchecked((int)(0x80097002)); + + [NativeTypeName("#define MSSIPOTF_E_NOHEADTABLE _HRESULT_TYPEDEF_(0x80097003L)")] + public const int MSSIPOTF_E_NOHEADTABLE = unchecked((int)(0x80097003)); + + [NativeTypeName("#define MSSIPOTF_E_BAD_MAGICNUMBER _HRESULT_TYPEDEF_(0x80097004L)")] + public const int MSSIPOTF_E_BAD_MAGICNUMBER = unchecked((int)(0x80097004)); + + [NativeTypeName("#define MSSIPOTF_E_BAD_OFFSET_TABLE _HRESULT_TYPEDEF_(0x80097005L)")] + public const int MSSIPOTF_E_BAD_OFFSET_TABLE = unchecked((int)(0x80097005)); + + [NativeTypeName("#define MSSIPOTF_E_TABLE_TAGORDER _HRESULT_TYPEDEF_(0x80097006L)")] + public const int MSSIPOTF_E_TABLE_TAGORDER = unchecked((int)(0x80097006)); + + [NativeTypeName("#define MSSIPOTF_E_TABLE_LONGWORD _HRESULT_TYPEDEF_(0x80097007L)")] + public const int MSSIPOTF_E_TABLE_LONGWORD = unchecked((int)(0x80097007)); + + [NativeTypeName("#define MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT _HRESULT_TYPEDEF_(0x80097008L)")] + public const int MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT = unchecked((int)(0x80097008)); + + [NativeTypeName("#define MSSIPOTF_E_TABLES_OVERLAP _HRESULT_TYPEDEF_(0x80097009L)")] + public const int MSSIPOTF_E_TABLES_OVERLAP = unchecked((int)(0x80097009)); + + [NativeTypeName("#define MSSIPOTF_E_TABLE_PADBYTES _HRESULT_TYPEDEF_(0x8009700AL)")] + public const int MSSIPOTF_E_TABLE_PADBYTES = unchecked((int)(0x8009700A)); + + [NativeTypeName("#define MSSIPOTF_E_FILETOOSMALL _HRESULT_TYPEDEF_(0x8009700BL)")] + public const int MSSIPOTF_E_FILETOOSMALL = unchecked((int)(0x8009700B)); + + [NativeTypeName("#define MSSIPOTF_E_TABLE_CHECKSUM _HRESULT_TYPEDEF_(0x8009700CL)")] + public const int MSSIPOTF_E_TABLE_CHECKSUM = unchecked((int)(0x8009700C)); + + [NativeTypeName("#define MSSIPOTF_E_FILE_CHECKSUM _HRESULT_TYPEDEF_(0x8009700DL)")] + public const int MSSIPOTF_E_FILE_CHECKSUM = unchecked((int)(0x8009700D)); + + [NativeTypeName("#define MSSIPOTF_E_FAILED_POLICY _HRESULT_TYPEDEF_(0x80097010L)")] + public const int MSSIPOTF_E_FAILED_POLICY = unchecked((int)(0x80097010)); + + [NativeTypeName("#define MSSIPOTF_E_FAILED_HINTS_CHECK _HRESULT_TYPEDEF_(0x80097011L)")] + public const int MSSIPOTF_E_FAILED_HINTS_CHECK = unchecked((int)(0x80097011)); + + [NativeTypeName("#define MSSIPOTF_E_NOT_OPENTYPE _HRESULT_TYPEDEF_(0x80097012L)")] + public const int MSSIPOTF_E_NOT_OPENTYPE = unchecked((int)(0x80097012)); + + [NativeTypeName("#define MSSIPOTF_E_FILE _HRESULT_TYPEDEF_(0x80097013L)")] + public const int MSSIPOTF_E_FILE = unchecked((int)(0x80097013)); + + [NativeTypeName("#define MSSIPOTF_E_CRYPT _HRESULT_TYPEDEF_(0x80097014L)")] + public const int MSSIPOTF_E_CRYPT = unchecked((int)(0x80097014)); + + [NativeTypeName("#define MSSIPOTF_E_BADVERSION _HRESULT_TYPEDEF_(0x80097015L)")] + public const int MSSIPOTF_E_BADVERSION = unchecked((int)(0x80097015)); + + [NativeTypeName("#define MSSIPOTF_E_DSIG_STRUCTURE _HRESULT_TYPEDEF_(0x80097016L)")] + public const int MSSIPOTF_E_DSIG_STRUCTURE = unchecked((int)(0x80097016)); + + [NativeTypeName("#define MSSIPOTF_E_PCONST_CHECK _HRESULT_TYPEDEF_(0x80097017L)")] + public const int MSSIPOTF_E_PCONST_CHECK = unchecked((int)(0x80097017)); + + [NativeTypeName("#define MSSIPOTF_E_STRUCTURE _HRESULT_TYPEDEF_(0x80097018L)")] + public const int MSSIPOTF_E_STRUCTURE = unchecked((int)(0x80097018)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/NAP.cs b/sources/Interop/Windows/Windows/shared/winerror/NAP.cs new file mode 100644 index 0000000000..546ac218f7 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/NAP.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NAP + { + [NativeTypeName("#define NAP_E_INVALID_PACKET _HRESULT_TYPEDEF_(0x80270001L)")] + public const int NAP_E_INVALID_PACKET = unchecked((int)(0x80270001)); + + [NativeTypeName("#define NAP_E_MISSING_SOH _HRESULT_TYPEDEF_(0x80270002L)")] + public const int NAP_E_MISSING_SOH = unchecked((int)(0x80270002)); + + [NativeTypeName("#define NAP_E_CONFLICTING_ID _HRESULT_TYPEDEF_(0x80270003L)")] + public const int NAP_E_CONFLICTING_ID = unchecked((int)(0x80270003)); + + [NativeTypeName("#define NAP_E_NO_CACHED_SOH _HRESULT_TYPEDEF_(0x80270004L)")] + public const int NAP_E_NO_CACHED_SOH = unchecked((int)(0x80270004)); + + [NativeTypeName("#define NAP_E_STILL_BOUND _HRESULT_TYPEDEF_(0x80270005L)")] + public const int NAP_E_STILL_BOUND = unchecked((int)(0x80270005)); + + [NativeTypeName("#define NAP_E_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80270006L)")] + public const int NAP_E_NOT_REGISTERED = unchecked((int)(0x80270006)); + + [NativeTypeName("#define NAP_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x80270007L)")] + public const int NAP_E_NOT_INITIALIZED = unchecked((int)(0x80270007)); + + [NativeTypeName("#define NAP_E_MISMATCHED_ID _HRESULT_TYPEDEF_(0x80270008L)")] + public const int NAP_E_MISMATCHED_ID = unchecked((int)(0x80270008)); + + [NativeTypeName("#define NAP_E_NOT_PENDING _HRESULT_TYPEDEF_(0x80270009L)")] + public const int NAP_E_NOT_PENDING = unchecked((int)(0x80270009)); + + [NativeTypeName("#define NAP_E_ID_NOT_FOUND _HRESULT_TYPEDEF_(0x8027000AL)")] + public const int NAP_E_ID_NOT_FOUND = unchecked((int)(0x8027000A)); + + [NativeTypeName("#define NAP_E_MAXSIZE_TOO_SMALL _HRESULT_TYPEDEF_(0x8027000BL)")] + public const int NAP_E_MAXSIZE_TOO_SMALL = unchecked((int)(0x8027000B)); + + [NativeTypeName("#define NAP_E_SERVICE_NOT_RUNNING _HRESULT_TYPEDEF_(0x8027000CL)")] + public const int NAP_E_SERVICE_NOT_RUNNING = unchecked((int)(0x8027000C)); + + [NativeTypeName("#define NAP_S_CERT_ALREADY_PRESENT _HRESULT_TYPEDEF_(0x0027000DL)")] + public const int NAP_S_CERT_ALREADY_PRESENT = ((int)(0x0027000D)); + + [NativeTypeName("#define NAP_E_ENTITY_DISABLED _HRESULT_TYPEDEF_(0x8027000EL)")] + public const int NAP_E_ENTITY_DISABLED = unchecked((int)(0x8027000E)); + + [NativeTypeName("#define NAP_E_NETSH_GROUPPOLICY_ERROR _HRESULT_TYPEDEF_(0x8027000FL)")] + public const int NAP_E_NETSH_GROUPPOLICY_ERROR = unchecked((int)(0x8027000F)); + + [NativeTypeName("#define NAP_E_TOO_MANY_CALLS _HRESULT_TYPEDEF_(0x80270010L)")] + public const int NAP_E_TOO_MANY_CALLS = unchecked((int)(0x80270010)); + + [NativeTypeName("#define NAP_E_SHV_CONFIG_EXISTED _HRESULT_TYPEDEF_(0x80270011L)")] + public const int NAP_E_SHV_CONFIG_EXISTED = unchecked((int)(0x80270011)); + + [NativeTypeName("#define NAP_E_SHV_CONFIG_NOT_FOUND _HRESULT_TYPEDEF_(0x80270012L)")] + public const int NAP_E_SHV_CONFIG_NOT_FOUND = unchecked((int)(0x80270012)); + + [NativeTypeName("#define NAP_E_SHV_TIMEOUT _HRESULT_TYPEDEF_(0x80270013L)")] + public const int NAP_E_SHV_TIMEOUT = unchecked((int)(0x80270013)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/OLE.cs b/sources/Interop/Windows/Windows/shared/winerror/OLE.cs new file mode 100644 index 0000000000..508e17cded --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/OLE.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OLE + { + [NativeTypeName("#define OLE_E_FIRST ((HRESULT)0x80040000L)")] + public const int OLE_E_FIRST = unchecked((int)(0x80040000)); + + [NativeTypeName("#define OLE_E_LAST ((HRESULT)0x800400FFL)")] + public const int OLE_E_LAST = unchecked((int)(0x800400FF)); + + [NativeTypeName("#define OLE_S_FIRST ((HRESULT)0x00040000L)")] + public const int OLE_S_FIRST = ((int)(0x00040000)); + + [NativeTypeName("#define OLE_S_LAST ((HRESULT)0x000400FFL)")] + public const int OLE_S_LAST = ((int)(0x000400FF)); + + [NativeTypeName("#define OLE_E_OLEVERB _HRESULT_TYPEDEF_(0x80040000L)")] + public const int OLE_E_OLEVERB = unchecked((int)(0x80040000)); + + [NativeTypeName("#define OLE_E_ADVF _HRESULT_TYPEDEF_(0x80040001L)")] + public const int OLE_E_ADVF = unchecked((int)(0x80040001)); + + [NativeTypeName("#define OLE_E_ENUM_NOMORE _HRESULT_TYPEDEF_(0x80040002L)")] + public const int OLE_E_ENUM_NOMORE = unchecked((int)(0x80040002)); + + [NativeTypeName("#define OLE_E_ADVISENOTSUPPORTED _HRESULT_TYPEDEF_(0x80040003L)")] + public const int OLE_E_ADVISENOTSUPPORTED = unchecked((int)(0x80040003)); + + [NativeTypeName("#define OLE_E_NOCONNECTION _HRESULT_TYPEDEF_(0x80040004L)")] + public const int OLE_E_NOCONNECTION = unchecked((int)(0x80040004)); + + [NativeTypeName("#define OLE_E_NOTRUNNING _HRESULT_TYPEDEF_(0x80040005L)")] + public const int OLE_E_NOTRUNNING = unchecked((int)(0x80040005)); + + [NativeTypeName("#define OLE_E_NOCACHE _HRESULT_TYPEDEF_(0x80040006L)")] + public const int OLE_E_NOCACHE = unchecked((int)(0x80040006)); + + [NativeTypeName("#define OLE_E_BLANK _HRESULT_TYPEDEF_(0x80040007L)")] + public const int OLE_E_BLANK = unchecked((int)(0x80040007)); + + [NativeTypeName("#define OLE_E_CLASSDIFF _HRESULT_TYPEDEF_(0x80040008L)")] + public const int OLE_E_CLASSDIFF = unchecked((int)(0x80040008)); + + [NativeTypeName("#define OLE_E_CANT_GETMONIKER _HRESULT_TYPEDEF_(0x80040009L)")] + public const int OLE_E_CANT_GETMONIKER = unchecked((int)(0x80040009)); + + [NativeTypeName("#define OLE_E_CANT_BINDTOSOURCE _HRESULT_TYPEDEF_(0x8004000AL)")] + public const int OLE_E_CANT_BINDTOSOURCE = unchecked((int)(0x8004000A)); + + [NativeTypeName("#define OLE_E_STATIC _HRESULT_TYPEDEF_(0x8004000BL)")] + public const int OLE_E_STATIC = unchecked((int)(0x8004000B)); + + [NativeTypeName("#define OLE_E_PROMPTSAVECANCELLED _HRESULT_TYPEDEF_(0x8004000CL)")] + public const int OLE_E_PROMPTSAVECANCELLED = unchecked((int)(0x8004000C)); + + [NativeTypeName("#define OLE_E_INVALIDRECT _HRESULT_TYPEDEF_(0x8004000DL)")] + public const int OLE_E_INVALIDRECT = unchecked((int)(0x8004000D)); + + [NativeTypeName("#define OLE_E_WRONGCOMPOBJ _HRESULT_TYPEDEF_(0x8004000EL)")] + public const int OLE_E_WRONGCOMPOBJ = unchecked((int)(0x8004000E)); + + [NativeTypeName("#define OLE_E_INVALIDHWND _HRESULT_TYPEDEF_(0x8004000FL)")] + public const int OLE_E_INVALIDHWND = unchecked((int)(0x8004000F)); + + [NativeTypeName("#define OLE_E_NOT_INPLACEACTIVE _HRESULT_TYPEDEF_(0x80040010L)")] + public const int OLE_E_NOT_INPLACEACTIVE = unchecked((int)(0x80040010)); + + [NativeTypeName("#define OLE_E_CANTCONVERT _HRESULT_TYPEDEF_(0x80040011L)")] + public const int OLE_E_CANTCONVERT = unchecked((int)(0x80040011)); + + [NativeTypeName("#define OLE_E_NOSTORAGE _HRESULT_TYPEDEF_(0x80040012L)")] + public const int OLE_E_NOSTORAGE = unchecked((int)(0x80040012)); + + [NativeTypeName("#define OLE_S_USEREG _HRESULT_TYPEDEF_(0x00040000L)")] + public const int OLE_S_USEREG = ((int)(0x00040000)); + + [NativeTypeName("#define OLE_S_STATIC _HRESULT_TYPEDEF_(0x00040001L)")] + public const int OLE_S_STATIC = ((int)(0x00040001)); + + [NativeTypeName("#define OLE_S_MAC_CLIPFORMAT _HRESULT_TYPEDEF_(0x00040002L)")] + public const int OLE_S_MAC_CLIPFORMAT = ((int)(0x00040002)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/ONL.cs b/sources/Interop/Windows/Windows/shared/winerror/ONL.cs new file mode 100644 index 0000000000..f2d6d56936 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/ONL.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ONL + { + [NativeTypeName("#define ONL_E_INVALID_AUTHENTICATION_TARGET _HRESULT_TYPEDEF_(0x80860001L)")] + public const int ONL_E_INVALID_AUTHENTICATION_TARGET = unchecked((int)(0x80860001)); + + [NativeTypeName("#define ONL_E_ACCESS_DENIED_BY_TOU _HRESULT_TYPEDEF_(0x80860002L)")] + public const int ONL_E_ACCESS_DENIED_BY_TOU = unchecked((int)(0x80860002)); + + [NativeTypeName("#define ONL_E_INVALID_APPLICATION _HRESULT_TYPEDEF_(0x80860003L)")] + public const int ONL_E_INVALID_APPLICATION = unchecked((int)(0x80860003)); + + [NativeTypeName("#define ONL_E_PASSWORD_UPDATE_REQUIRED _HRESULT_TYPEDEF_(0x80860004L)")] + public const int ONL_E_PASSWORD_UPDATE_REQUIRED = unchecked((int)(0x80860004)); + + [NativeTypeName("#define ONL_E_ACCOUNT_UPDATE_REQUIRED _HRESULT_TYPEDEF_(0x80860005L)")] + public const int ONL_E_ACCOUNT_UPDATE_REQUIRED = unchecked((int)(0x80860005)); + + [NativeTypeName("#define ONL_E_FORCESIGNIN _HRESULT_TYPEDEF_(0x80860006L)")] + public const int ONL_E_FORCESIGNIN = unchecked((int)(0x80860006)); + + [NativeTypeName("#define ONL_E_ACCOUNT_LOCKED _HRESULT_TYPEDEF_(0x80860007L)")] + public const int ONL_E_ACCOUNT_LOCKED = unchecked((int)(0x80860007)); + + [NativeTypeName("#define ONL_E_PARENTAL_CONSENT_REQUIRED _HRESULT_TYPEDEF_(0x80860008L)")] + public const int ONL_E_PARENTAL_CONSENT_REQUIRED = unchecked((int)(0x80860008)); + + [NativeTypeName("#define ONL_E_EMAIL_VERIFICATION_REQUIRED _HRESULT_TYPEDEF_(0x80860009L)")] + public const int ONL_E_EMAIL_VERIFICATION_REQUIRED = unchecked((int)(0x80860009)); + + [NativeTypeName("#define ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE _HRESULT_TYPEDEF_(0x8086000AL)")] + public const int ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE = unchecked((int)(0x8086000A)); + + [NativeTypeName("#define ONL_E_ACCOUNT_SUSPENDED_ABUSE _HRESULT_TYPEDEF_(0x8086000BL)")] + public const int ONL_E_ACCOUNT_SUSPENDED_ABUSE = unchecked((int)(0x8086000B)); + + [NativeTypeName("#define ONL_E_ACTION_REQUIRED _HRESULT_TYPEDEF_(0x8086000CL)")] + public const int ONL_E_ACTION_REQUIRED = unchecked((int)(0x8086000C)); + + [NativeTypeName("#define ONL_CONNECTION_COUNT_LIMIT _HRESULT_TYPEDEF_(0x8086000DL)")] + public const int ONL_CONNECTION_COUNT_LIMIT = unchecked((int)(0x8086000D)); + + [NativeTypeName("#define ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT _HRESULT_TYPEDEF_(0x8086000EL)")] + public const int ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT = unchecked((int)(0x8086000E)); + + [NativeTypeName("#define ONL_E_USER_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x8086000FL)")] + public const int ONL_E_USER_AUTHENTICATION_REQUIRED = unchecked((int)(0x8086000F)); + + [NativeTypeName("#define ONL_E_REQUEST_THROTTLED _HRESULT_TYPEDEF_(0x80860010L)")] + public const int ONL_E_REQUEST_THROTTLED = unchecked((int)(0x80860010)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/OSS.cs b/sources/Interop/Windows/Windows/shared/winerror/OSS.cs new file mode 100644 index 0000000000..e35338eb0c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/OSS.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OSS + { + [NativeTypeName("#define OSS_MORE_BUF _HRESULT_TYPEDEF_(0x80093001L)")] + public const int OSS_MORE_BUF = unchecked((int)(0x80093001)); + + [NativeTypeName("#define OSS_NEGATIVE_UINTEGER _HRESULT_TYPEDEF_(0x80093002L)")] + public const int OSS_NEGATIVE_UINTEGER = unchecked((int)(0x80093002)); + + [NativeTypeName("#define OSS_PDU_RANGE _HRESULT_TYPEDEF_(0x80093003L)")] + public const int OSS_PDU_RANGE = unchecked((int)(0x80093003)); + + [NativeTypeName("#define OSS_MORE_INPUT _HRESULT_TYPEDEF_(0x80093004L)")] + public const int OSS_MORE_INPUT = unchecked((int)(0x80093004)); + + [NativeTypeName("#define OSS_DATA_ERROR _HRESULT_TYPEDEF_(0x80093005L)")] + public const int OSS_DATA_ERROR = unchecked((int)(0x80093005)); + + [NativeTypeName("#define OSS_BAD_ARG _HRESULT_TYPEDEF_(0x80093006L)")] + public const int OSS_BAD_ARG = unchecked((int)(0x80093006)); + + [NativeTypeName("#define OSS_BAD_VERSION _HRESULT_TYPEDEF_(0x80093007L)")] + public const int OSS_BAD_VERSION = unchecked((int)(0x80093007)); + + [NativeTypeName("#define OSS_OUT_MEMORY _HRESULT_TYPEDEF_(0x80093008L)")] + public const int OSS_OUT_MEMORY = unchecked((int)(0x80093008)); + + [NativeTypeName("#define OSS_PDU_MISMATCH _HRESULT_TYPEDEF_(0x80093009L)")] + public const int OSS_PDU_MISMATCH = unchecked((int)(0x80093009)); + + [NativeTypeName("#define OSS_LIMITED _HRESULT_TYPEDEF_(0x8009300AL)")] + public const int OSS_LIMITED = unchecked((int)(0x8009300A)); + + [NativeTypeName("#define OSS_BAD_PTR _HRESULT_TYPEDEF_(0x8009300BL)")] + public const int OSS_BAD_PTR = unchecked((int)(0x8009300B)); + + [NativeTypeName("#define OSS_BAD_TIME _HRESULT_TYPEDEF_(0x8009300CL)")] + public const int OSS_BAD_TIME = unchecked((int)(0x8009300C)); + + [NativeTypeName("#define OSS_INDEFINITE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009300DL)")] + public const int OSS_INDEFINITE_NOT_SUPPORTED = unchecked((int)(0x8009300D)); + + [NativeTypeName("#define OSS_MEM_ERROR _HRESULT_TYPEDEF_(0x8009300EL)")] + public const int OSS_MEM_ERROR = unchecked((int)(0x8009300E)); + + [NativeTypeName("#define OSS_BAD_TABLE _HRESULT_TYPEDEF_(0x8009300FL)")] + public const int OSS_BAD_TABLE = unchecked((int)(0x8009300F)); + + [NativeTypeName("#define OSS_TOO_LONG _HRESULT_TYPEDEF_(0x80093010L)")] + public const int OSS_TOO_LONG = unchecked((int)(0x80093010)); + + [NativeTypeName("#define OSS_CONSTRAINT_VIOLATED _HRESULT_TYPEDEF_(0x80093011L)")] + public const int OSS_CONSTRAINT_VIOLATED = unchecked((int)(0x80093011)); + + [NativeTypeName("#define OSS_FATAL_ERROR _HRESULT_TYPEDEF_(0x80093012L)")] + public const int OSS_FATAL_ERROR = unchecked((int)(0x80093012)); + + [NativeTypeName("#define OSS_ACCESS_SERIALIZATION_ERROR _HRESULT_TYPEDEF_(0x80093013L)")] + public const int OSS_ACCESS_SERIALIZATION_ERROR = unchecked((int)(0x80093013)); + + [NativeTypeName("#define OSS_NULL_TBL _HRESULT_TYPEDEF_(0x80093014L)")] + public const int OSS_NULL_TBL = unchecked((int)(0x80093014)); + + [NativeTypeName("#define OSS_NULL_FCN _HRESULT_TYPEDEF_(0x80093015L)")] + public const int OSS_NULL_FCN = unchecked((int)(0x80093015)); + + [NativeTypeName("#define OSS_BAD_ENCRULES _HRESULT_TYPEDEF_(0x80093016L)")] + public const int OSS_BAD_ENCRULES = unchecked((int)(0x80093016)); + + [NativeTypeName("#define OSS_UNAVAIL_ENCRULES _HRESULT_TYPEDEF_(0x80093017L)")] + public const int OSS_UNAVAIL_ENCRULES = unchecked((int)(0x80093017)); + + [NativeTypeName("#define OSS_CANT_OPEN_TRACE_WINDOW _HRESULT_TYPEDEF_(0x80093018L)")] + public const int OSS_CANT_OPEN_TRACE_WINDOW = unchecked((int)(0x80093018)); + + [NativeTypeName("#define OSS_UNIMPLEMENTED _HRESULT_TYPEDEF_(0x80093019L)")] + public const int OSS_UNIMPLEMENTED = unchecked((int)(0x80093019)); + + [NativeTypeName("#define OSS_OID_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009301AL)")] + public const int OSS_OID_DLL_NOT_LINKED = unchecked((int)(0x8009301A)); + + [NativeTypeName("#define OSS_CANT_OPEN_TRACE_FILE _HRESULT_TYPEDEF_(0x8009301BL)")] + public const int OSS_CANT_OPEN_TRACE_FILE = unchecked((int)(0x8009301B)); + + [NativeTypeName("#define OSS_TRACE_FILE_ALREADY_OPEN _HRESULT_TYPEDEF_(0x8009301CL)")] + public const int OSS_TRACE_FILE_ALREADY_OPEN = unchecked((int)(0x8009301C)); + + [NativeTypeName("#define OSS_TABLE_MISMATCH _HRESULT_TYPEDEF_(0x8009301DL)")] + public const int OSS_TABLE_MISMATCH = unchecked((int)(0x8009301D)); + + [NativeTypeName("#define OSS_TYPE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009301EL)")] + public const int OSS_TYPE_NOT_SUPPORTED = unchecked((int)(0x8009301E)); + + [NativeTypeName("#define OSS_REAL_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009301FL)")] + public const int OSS_REAL_DLL_NOT_LINKED = unchecked((int)(0x8009301F)); + + [NativeTypeName("#define OSS_REAL_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093020L)")] + public const int OSS_REAL_CODE_NOT_LINKED = unchecked((int)(0x80093020)); + + [NativeTypeName("#define OSS_OUT_OF_RANGE _HRESULT_TYPEDEF_(0x80093021L)")] + public const int OSS_OUT_OF_RANGE = unchecked((int)(0x80093021)); + + [NativeTypeName("#define OSS_COPIER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093022L)")] + public const int OSS_COPIER_DLL_NOT_LINKED = unchecked((int)(0x80093022)); + + [NativeTypeName("#define OSS_CONSTRAINT_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093023L)")] + public const int OSS_CONSTRAINT_DLL_NOT_LINKED = unchecked((int)(0x80093023)); + + [NativeTypeName("#define OSS_COMPARATOR_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093024L)")] + public const int OSS_COMPARATOR_DLL_NOT_LINKED = unchecked((int)(0x80093024)); + + [NativeTypeName("#define OSS_COMPARATOR_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093025L)")] + public const int OSS_COMPARATOR_CODE_NOT_LINKED = unchecked((int)(0x80093025)); + + [NativeTypeName("#define OSS_MEM_MGR_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093026L)")] + public const int OSS_MEM_MGR_DLL_NOT_LINKED = unchecked((int)(0x80093026)); + + [NativeTypeName("#define OSS_PDV_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093027L)")] + public const int OSS_PDV_DLL_NOT_LINKED = unchecked((int)(0x80093027)); + + [NativeTypeName("#define OSS_PDV_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093028L)")] + public const int OSS_PDV_CODE_NOT_LINKED = unchecked((int)(0x80093028)); + + [NativeTypeName("#define OSS_API_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093029L)")] + public const int OSS_API_DLL_NOT_LINKED = unchecked((int)(0x80093029)); + + [NativeTypeName("#define OSS_BERDER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009302AL)")] + public const int OSS_BERDER_DLL_NOT_LINKED = unchecked((int)(0x8009302A)); + + [NativeTypeName("#define OSS_PER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009302BL)")] + public const int OSS_PER_DLL_NOT_LINKED = unchecked((int)(0x8009302B)); + + [NativeTypeName("#define OSS_OPEN_TYPE_ERROR _HRESULT_TYPEDEF_(0x8009302CL)")] + public const int OSS_OPEN_TYPE_ERROR = unchecked((int)(0x8009302C)); + + [NativeTypeName("#define OSS_MUTEX_NOT_CREATED _HRESULT_TYPEDEF_(0x8009302DL)")] + public const int OSS_MUTEX_NOT_CREATED = unchecked((int)(0x8009302D)); + + [NativeTypeName("#define OSS_CANT_CLOSE_TRACE_FILE _HRESULT_TYPEDEF_(0x8009302EL)")] + public const int OSS_CANT_CLOSE_TRACE_FILE = unchecked((int)(0x8009302E)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/PEERDIST.cs b/sources/Interop/Windows/Windows/shared/winerror/PEERDIST.cs new file mode 100644 index 0000000000..2da96a2db2 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/PEERDIST.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PEERDIST + { + [NativeTypeName("#define PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED 4050L")] + public const int PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED = 4050; + + [NativeTypeName("#define PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO 4051L")] + public const int PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO = 4051; + + [NativeTypeName("#define PEERDIST_ERROR_MISSING_DATA 4052L")] + public const int PEERDIST_ERROR_MISSING_DATA = 4052; + + [NativeTypeName("#define PEERDIST_ERROR_NO_MORE 4053L")] + public const int PEERDIST_ERROR_NO_MORE = 4053; + + [NativeTypeName("#define PEERDIST_ERROR_NOT_INITIALIZED 4054L")] + public const int PEERDIST_ERROR_NOT_INITIALIZED = 4054; + + [NativeTypeName("#define PEERDIST_ERROR_ALREADY_INITIALIZED 4055L")] + public const int PEERDIST_ERROR_ALREADY_INITIALIZED = 4055; + + [NativeTypeName("#define PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS 4056L")] + public const int PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS = 4056; + + [NativeTypeName("#define PEERDIST_ERROR_INVALIDATED 4057L")] + public const int PEERDIST_ERROR_INVALIDATED = 4057; + + [NativeTypeName("#define PEERDIST_ERROR_ALREADY_EXISTS 4058L")] + public const int PEERDIST_ERROR_ALREADY_EXISTS = 4058; + + [NativeTypeName("#define PEERDIST_ERROR_OPERATION_NOTFOUND 4059L")] + public const int PEERDIST_ERROR_OPERATION_NOTFOUND = 4059; + + [NativeTypeName("#define PEERDIST_ERROR_ALREADY_COMPLETED 4060L")] + public const int PEERDIST_ERROR_ALREADY_COMPLETED = 4060; + + [NativeTypeName("#define PEERDIST_ERROR_OUT_OF_BOUNDS 4061L")] + public const int PEERDIST_ERROR_OUT_OF_BOUNDS = 4061; + + [NativeTypeName("#define PEERDIST_ERROR_VERSION_UNSUPPORTED 4062L")] + public const int PEERDIST_ERROR_VERSION_UNSUPPORTED = 4062; + + [NativeTypeName("#define PEERDIST_ERROR_INVALID_CONFIGURATION 4063L")] + public const int PEERDIST_ERROR_INVALID_CONFIGURATION = 4063; + + [NativeTypeName("#define PEERDIST_ERROR_NOT_LICENSED 4064L")] + public const int PEERDIST_ERROR_NOT_LICENSED = 4064; + + [NativeTypeName("#define PEERDIST_ERROR_SERVICE_UNAVAILABLE 4065L")] + public const int PEERDIST_ERROR_SERVICE_UNAVAILABLE = 4065; + + [NativeTypeName("#define PEERDIST_ERROR_TRUST_FAILURE 4066L")] + public const int PEERDIST_ERROR_TRUST_FAILURE = 4066; + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/PLA.cs b/sources/Interop/Windows/Windows/shared/winerror/PLA.cs new file mode 100644 index 0000000000..cb9c648601 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/PLA.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PLA + { + [NativeTypeName("#define PLA_E_DCS_NOT_FOUND _HRESULT_TYPEDEF_(0x80300002L)")] + public const int PLA_E_DCS_NOT_FOUND = unchecked((int)(0x80300002)); + + [NativeTypeName("#define PLA_E_DCS_IN_USE _HRESULT_TYPEDEF_(0x803000AAL)")] + public const int PLA_E_DCS_IN_USE = unchecked((int)(0x803000AA)); + + [NativeTypeName("#define PLA_E_TOO_MANY_FOLDERS _HRESULT_TYPEDEF_(0x80300045L)")] + public const int PLA_E_TOO_MANY_FOLDERS = unchecked((int)(0x80300045)); + + [NativeTypeName("#define PLA_E_NO_MIN_DISK _HRESULT_TYPEDEF_(0x80300070L)")] + public const int PLA_E_NO_MIN_DISK = unchecked((int)(0x80300070)); + + [NativeTypeName("#define PLA_E_DCS_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803000B7L)")] + public const int PLA_E_DCS_ALREADY_EXISTS = unchecked((int)(0x803000B7)); + + [NativeTypeName("#define PLA_S_PROPERTY_IGNORED _HRESULT_TYPEDEF_(0x00300100L)")] + public const int PLA_S_PROPERTY_IGNORED = ((int)(0x00300100)); + + [NativeTypeName("#define PLA_E_PROPERTY_CONFLICT _HRESULT_TYPEDEF_(0x80300101L)")] + public const int PLA_E_PROPERTY_CONFLICT = unchecked((int)(0x80300101)); + + [NativeTypeName("#define PLA_E_DCS_SINGLETON_REQUIRED _HRESULT_TYPEDEF_(0x80300102L)")] + public const int PLA_E_DCS_SINGLETON_REQUIRED = unchecked((int)(0x80300102)); + + [NativeTypeName("#define PLA_E_CREDENTIALS_REQUIRED _HRESULT_TYPEDEF_(0x80300103L)")] + public const int PLA_E_CREDENTIALS_REQUIRED = unchecked((int)(0x80300103)); + + [NativeTypeName("#define PLA_E_DCS_NOT_RUNNING _HRESULT_TYPEDEF_(0x80300104L)")] + public const int PLA_E_DCS_NOT_RUNNING = unchecked((int)(0x80300104)); + + [NativeTypeName("#define PLA_E_CONFLICT_INCL_EXCL_API _HRESULT_TYPEDEF_(0x80300105L)")] + public const int PLA_E_CONFLICT_INCL_EXCL_API = unchecked((int)(0x80300105)); + + [NativeTypeName("#define PLA_E_NETWORK_EXE_NOT_VALID _HRESULT_TYPEDEF_(0x80300106L)")] + public const int PLA_E_NETWORK_EXE_NOT_VALID = unchecked((int)(0x80300106)); + + [NativeTypeName("#define PLA_E_EXE_ALREADY_CONFIGURED _HRESULT_TYPEDEF_(0x80300107L)")] + public const int PLA_E_EXE_ALREADY_CONFIGURED = unchecked((int)(0x80300107)); + + [NativeTypeName("#define PLA_E_EXE_PATH_NOT_VALID _HRESULT_TYPEDEF_(0x80300108L)")] + public const int PLA_E_EXE_PATH_NOT_VALID = unchecked((int)(0x80300108)); + + [NativeTypeName("#define PLA_E_DC_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80300109L)")] + public const int PLA_E_DC_ALREADY_EXISTS = unchecked((int)(0x80300109)); + + [NativeTypeName("#define PLA_E_DCS_START_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010AL)")] + public const int PLA_E_DCS_START_WAIT_TIMEOUT = unchecked((int)(0x8030010A)); + + [NativeTypeName("#define PLA_E_DC_START_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010BL)")] + public const int PLA_E_DC_START_WAIT_TIMEOUT = unchecked((int)(0x8030010B)); + + [NativeTypeName("#define PLA_E_REPORT_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010CL)")] + public const int PLA_E_REPORT_WAIT_TIMEOUT = unchecked((int)(0x8030010C)); + + [NativeTypeName("#define PLA_E_NO_DUPLICATES _HRESULT_TYPEDEF_(0x8030010DL)")] + public const int PLA_E_NO_DUPLICATES = unchecked((int)(0x8030010D)); + + [NativeTypeName("#define PLA_E_EXE_FULL_PATH_REQUIRED _HRESULT_TYPEDEF_(0x8030010EL)")] + public const int PLA_E_EXE_FULL_PATH_REQUIRED = unchecked((int)(0x8030010E)); + + [NativeTypeName("#define PLA_E_INVALID_SESSION_NAME _HRESULT_TYPEDEF_(0x8030010FL)")] + public const int PLA_E_INVALID_SESSION_NAME = unchecked((int)(0x8030010F)); + + [NativeTypeName("#define PLA_E_PLA_CHANNEL_NOT_ENABLED _HRESULT_TYPEDEF_(0x80300110L)")] + public const int PLA_E_PLA_CHANNEL_NOT_ENABLED = unchecked((int)(0x80300110)); + + [NativeTypeName("#define PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED _HRESULT_TYPEDEF_(0x80300111L)")] + public const int PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED = unchecked((int)(0x80300111)); + + [NativeTypeName("#define PLA_E_RULES_MANAGER_FAILED _HRESULT_TYPEDEF_(0x80300112L)")] + public const int PLA_E_RULES_MANAGER_FAILED = unchecked((int)(0x80300112)); + + [NativeTypeName("#define PLA_E_CABAPI_FAILURE _HRESULT_TYPEDEF_(0x80300113L)")] + public const int PLA_E_CABAPI_FAILURE = unchecked((int)(0x80300113)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/REGDB.cs b/sources/Interop/Windows/Windows/shared/winerror/REGDB.cs new file mode 100644 index 0000000000..63c118ab76 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/REGDB.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class REGDB + { + [NativeTypeName("#define REGDB_E_FIRST 0x80040150L")] + public const uint REGDB_E_FIRST = 0x80040150; + + [NativeTypeName("#define REGDB_E_LAST 0x8004015FL")] + public const uint REGDB_E_LAST = 0x8004015F; + + [NativeTypeName("#define REGDB_S_FIRST 0x00040150L")] + public const int REGDB_S_FIRST = 0x00040150; + + [NativeTypeName("#define REGDB_S_LAST 0x0004015FL")] + public const int REGDB_S_LAST = 0x0004015F; + + [NativeTypeName("#define REGDB_E_READREGDB _HRESULT_TYPEDEF_(0x80040150L)")] + public const int REGDB_E_READREGDB = unchecked((int)(0x80040150)); + + [NativeTypeName("#define REGDB_E_WRITEREGDB _HRESULT_TYPEDEF_(0x80040151L)")] + public const int REGDB_E_WRITEREGDB = unchecked((int)(0x80040151)); + + [NativeTypeName("#define REGDB_E_KEYMISSING _HRESULT_TYPEDEF_(0x80040152L)")] + public const int REGDB_E_KEYMISSING = unchecked((int)(0x80040152)); + + [NativeTypeName("#define REGDB_E_INVALIDVALUE _HRESULT_TYPEDEF_(0x80040153L)")] + public const int REGDB_E_INVALIDVALUE = unchecked((int)(0x80040153)); + + [NativeTypeName("#define REGDB_E_CLASSNOTREG _HRESULT_TYPEDEF_(0x80040154L)")] + public const int REGDB_E_CLASSNOTREG = unchecked((int)(0x80040154)); + + [NativeTypeName("#define REGDB_E_IIDNOTREG _HRESULT_TYPEDEF_(0x80040155L)")] + public const int REGDB_E_IIDNOTREG = unchecked((int)(0x80040155)); + + [NativeTypeName("#define REGDB_E_BADTHREADINGMODEL _HRESULT_TYPEDEF_(0x80040156L)")] + public const int REGDB_E_BADTHREADINGMODEL = unchecked((int)(0x80040156)); + + [NativeTypeName("#define REGDB_E_PACKAGEPOLICYVIOLATION _HRESULT_TYPEDEF_(0x80040157L)")] + public const int REGDB_E_PACKAGEPOLICYVIOLATION = unchecked((int)(0x80040157)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/RO.cs b/sources/Interop/Windows/Windows/shared/winerror/RO.cs new file mode 100644 index 0000000000..0e786f1ca9 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/RO.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RO + { + [NativeTypeName("#define RO_E_METADATA_NAME_NOT_FOUND _HRESULT_TYPEDEF_(0x8000000FL)")] + public const int RO_E_METADATA_NAME_NOT_FOUND = unchecked((int)(0x8000000F)); + + [NativeTypeName("#define RO_E_METADATA_NAME_IS_NAMESPACE _HRESULT_TYPEDEF_(0x80000010L)")] + public const int RO_E_METADATA_NAME_IS_NAMESPACE = unchecked((int)(0x80000010)); + + [NativeTypeName("#define RO_E_METADATA_INVALID_TYPE_FORMAT _HRESULT_TYPEDEF_(0x80000011L)")] + public const int RO_E_METADATA_INVALID_TYPE_FORMAT = unchecked((int)(0x80000011)); + + [NativeTypeName("#define RO_E_INVALID_METADATA_FILE _HRESULT_TYPEDEF_(0x80000012L)")] + public const int RO_E_INVALID_METADATA_FILE = unchecked((int)(0x80000012)); + + [NativeTypeName("#define RO_E_CLOSED _HRESULT_TYPEDEF_(0x80000013L)")] + public const int RO_E_CLOSED = unchecked((int)(0x80000013)); + + [NativeTypeName("#define RO_E_EXCLUSIVE_WRITE _HRESULT_TYPEDEF_(0x80000014L)")] + public const int RO_E_EXCLUSIVE_WRITE = unchecked((int)(0x80000014)); + + [NativeTypeName("#define RO_E_CHANGE_NOTIFICATION_IN_PROGRESS _HRESULT_TYPEDEF_(0x80000015L)")] + public const int RO_E_CHANGE_NOTIFICATION_IN_PROGRESS = unchecked((int)(0x80000015)); + + [NativeTypeName("#define RO_E_ERROR_STRING_NOT_FOUND _HRESULT_TYPEDEF_(0x80000016L)")] + public const int RO_E_ERROR_STRING_NOT_FOUND = unchecked((int)(0x80000016)); + + [NativeTypeName("#define RO_E_MUST_BE_AGILE _HRESULT_TYPEDEF_(0x8000001CL)")] + public const int RO_E_MUST_BE_AGILE = unchecked((int)(0x8000001C)); + + [NativeTypeName("#define RO_E_UNSUPPORTED_FROM_MTA _HRESULT_TYPEDEF_(0x8000001DL)")] + public const int RO_E_UNSUPPORTED_FROM_MTA = unchecked((int)(0x8000001D)); + + [NativeTypeName("#define RO_E_COMMITTED _HRESULT_TYPEDEF_(0x8000001EL)")] + public const int RO_E_COMMITTED = unchecked((int)(0x8000001E)); + + [NativeTypeName("#define RO_E_BLOCKED_CROSS_ASTA_CALL _HRESULT_TYPEDEF_(0x8000001FL)")] + public const int RO_E_BLOCKED_CROSS_ASTA_CALL = unchecked((int)(0x8000001F)); + + [NativeTypeName("#define RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER _HRESULT_TYPEDEF_(0x80000020L)")] + public const int RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER = unchecked((int)(0x80000020)); + + [NativeTypeName("#define RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER _HRESULT_TYPEDEF_(0x80000021L)")] + public const int RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER = unchecked((int)(0x80000021)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/S.cs b/sources/Interop/Windows/Windows/shared/winerror/S.cs new file mode 100644 index 0000000000..678a4dd127 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/S.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class S + { + [NativeTypeName("#define S_OK ((HRESULT)0L)")] + public const int S_OK = ((int)(0)); + + [NativeTypeName("#define S_FALSE ((HRESULT)1L)")] + public const int S_FALSE = ((int)(1)); + + [NativeTypeName("#define S_STORE_LAUNCHED_FOR_REMEDIATION _HRESULT_TYPEDEF_(0x00270258L)")] + public const int S_STORE_LAUNCHED_FOR_REMEDIATION = ((int)(0x00270258)); + + [NativeTypeName("#define S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG _HRESULT_TYPEDEF_(0x00270259L)")] + public const int S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG = ((int)(0x00270259)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/SCHED.cs b/sources/Interop/Windows/Windows/shared/winerror/SCHED.cs new file mode 100644 index 0000000000..7e1c539ed7 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/SCHED.cs @@ -0,0 +1,142 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SCHED + { + [NativeTypeName("#define SCHED_E_SERVICE_NOT_LOCALSYSTEM 6200L")] + public const int SCHED_E_SERVICE_NOT_LOCALSYSTEM = 6200; + + [NativeTypeName("#define SCHED_S_TASK_READY _HRESULT_TYPEDEF_(0x00041300L)")] + public const int SCHED_S_TASK_READY = ((int)(0x00041300)); + + [NativeTypeName("#define SCHED_S_TASK_RUNNING _HRESULT_TYPEDEF_(0x00041301L)")] + public const int SCHED_S_TASK_RUNNING = ((int)(0x00041301)); + + [NativeTypeName("#define SCHED_S_TASK_DISABLED _HRESULT_TYPEDEF_(0x00041302L)")] + public const int SCHED_S_TASK_DISABLED = ((int)(0x00041302)); + + [NativeTypeName("#define SCHED_S_TASK_HAS_NOT_RUN _HRESULT_TYPEDEF_(0x00041303L)")] + public const int SCHED_S_TASK_HAS_NOT_RUN = ((int)(0x00041303)); + + [NativeTypeName("#define SCHED_S_TASK_NO_MORE_RUNS _HRESULT_TYPEDEF_(0x00041304L)")] + public const int SCHED_S_TASK_NO_MORE_RUNS = ((int)(0x00041304)); + + [NativeTypeName("#define SCHED_S_TASK_NOT_SCHEDULED _HRESULT_TYPEDEF_(0x00041305L)")] + public const int SCHED_S_TASK_NOT_SCHEDULED = ((int)(0x00041305)); + + [NativeTypeName("#define SCHED_S_TASK_TERMINATED _HRESULT_TYPEDEF_(0x00041306L)")] + public const int SCHED_S_TASK_TERMINATED = ((int)(0x00041306)); + + [NativeTypeName("#define SCHED_S_TASK_NO_VALID_TRIGGERS _HRESULT_TYPEDEF_(0x00041307L)")] + public const int SCHED_S_TASK_NO_VALID_TRIGGERS = ((int)(0x00041307)); + + [NativeTypeName("#define SCHED_S_EVENT_TRIGGER _HRESULT_TYPEDEF_(0x00041308L)")] + public const int SCHED_S_EVENT_TRIGGER = ((int)(0x00041308)); + + [NativeTypeName("#define SCHED_E_TRIGGER_NOT_FOUND _HRESULT_TYPEDEF_(0x80041309L)")] + public const int SCHED_E_TRIGGER_NOT_FOUND = unchecked((int)(0x80041309)); + + [NativeTypeName("#define SCHED_E_TASK_NOT_READY _HRESULT_TYPEDEF_(0x8004130AL)")] + public const int SCHED_E_TASK_NOT_READY = unchecked((int)(0x8004130A)); + + [NativeTypeName("#define SCHED_E_TASK_NOT_RUNNING _HRESULT_TYPEDEF_(0x8004130BL)")] + public const int SCHED_E_TASK_NOT_RUNNING = unchecked((int)(0x8004130B)); + + [NativeTypeName("#define SCHED_E_SERVICE_NOT_INSTALLED _HRESULT_TYPEDEF_(0x8004130CL)")] + public const int SCHED_E_SERVICE_NOT_INSTALLED = unchecked((int)(0x8004130C)); + + [NativeTypeName("#define SCHED_E_CANNOT_OPEN_TASK _HRESULT_TYPEDEF_(0x8004130DL)")] + public const int SCHED_E_CANNOT_OPEN_TASK = unchecked((int)(0x8004130D)); + + [NativeTypeName("#define SCHED_E_INVALID_TASK _HRESULT_TYPEDEF_(0x8004130EL)")] + public const int SCHED_E_INVALID_TASK = unchecked((int)(0x8004130E)); + + [NativeTypeName("#define SCHED_E_ACCOUNT_INFORMATION_NOT_SET _HRESULT_TYPEDEF_(0x8004130FL)")] + public const int SCHED_E_ACCOUNT_INFORMATION_NOT_SET = unchecked((int)(0x8004130F)); + + [NativeTypeName("#define SCHED_E_ACCOUNT_NAME_NOT_FOUND _HRESULT_TYPEDEF_(0x80041310L)")] + public const int SCHED_E_ACCOUNT_NAME_NOT_FOUND = unchecked((int)(0x80041310)); + + [NativeTypeName("#define SCHED_E_ACCOUNT_DBASE_CORRUPT _HRESULT_TYPEDEF_(0x80041311L)")] + public const int SCHED_E_ACCOUNT_DBASE_CORRUPT = unchecked((int)(0x80041311)); + + [NativeTypeName("#define SCHED_E_NO_SECURITY_SERVICES _HRESULT_TYPEDEF_(0x80041312L)")] + public const int SCHED_E_NO_SECURITY_SERVICES = unchecked((int)(0x80041312)); + + [NativeTypeName("#define SCHED_E_UNKNOWN_OBJECT_VERSION _HRESULT_TYPEDEF_(0x80041313L)")] + public const int SCHED_E_UNKNOWN_OBJECT_VERSION = unchecked((int)(0x80041313)); + + [NativeTypeName("#define SCHED_E_UNSUPPORTED_ACCOUNT_OPTION _HRESULT_TYPEDEF_(0x80041314L)")] + public const int SCHED_E_UNSUPPORTED_ACCOUNT_OPTION = unchecked((int)(0x80041314)); + + [NativeTypeName("#define SCHED_E_SERVICE_NOT_RUNNING _HRESULT_TYPEDEF_(0x80041315L)")] + public const int SCHED_E_SERVICE_NOT_RUNNING = unchecked((int)(0x80041315)); + + [NativeTypeName("#define SCHED_E_UNEXPECTEDNODE _HRESULT_TYPEDEF_(0x80041316L)")] + public const int SCHED_E_UNEXPECTEDNODE = unchecked((int)(0x80041316)); + + [NativeTypeName("#define SCHED_E_NAMESPACE _HRESULT_TYPEDEF_(0x80041317L)")] + public const int SCHED_E_NAMESPACE = unchecked((int)(0x80041317)); + + [NativeTypeName("#define SCHED_E_INVALIDVALUE _HRESULT_TYPEDEF_(0x80041318L)")] + public const int SCHED_E_INVALIDVALUE = unchecked((int)(0x80041318)); + + [NativeTypeName("#define SCHED_E_MISSINGNODE _HRESULT_TYPEDEF_(0x80041319L)")] + public const int SCHED_E_MISSINGNODE = unchecked((int)(0x80041319)); + + [NativeTypeName("#define SCHED_E_MALFORMEDXML _HRESULT_TYPEDEF_(0x8004131AL)")] + public const int SCHED_E_MALFORMEDXML = unchecked((int)(0x8004131A)); + + [NativeTypeName("#define SCHED_S_SOME_TRIGGERS_FAILED _HRESULT_TYPEDEF_(0x0004131BL)")] + public const int SCHED_S_SOME_TRIGGERS_FAILED = ((int)(0x0004131B)); + + [NativeTypeName("#define SCHED_S_BATCH_LOGON_PROBLEM _HRESULT_TYPEDEF_(0x0004131CL)")] + public const int SCHED_S_BATCH_LOGON_PROBLEM = ((int)(0x0004131C)); + + [NativeTypeName("#define SCHED_E_TOO_MANY_NODES _HRESULT_TYPEDEF_(0x8004131DL)")] + public const int SCHED_E_TOO_MANY_NODES = unchecked((int)(0x8004131D)); + + [NativeTypeName("#define SCHED_E_PAST_END_BOUNDARY _HRESULT_TYPEDEF_(0x8004131EL)")] + public const int SCHED_E_PAST_END_BOUNDARY = unchecked((int)(0x8004131E)); + + [NativeTypeName("#define SCHED_E_ALREADY_RUNNING _HRESULT_TYPEDEF_(0x8004131FL)")] + public const int SCHED_E_ALREADY_RUNNING = unchecked((int)(0x8004131F)); + + [NativeTypeName("#define SCHED_E_USER_NOT_LOGGED_ON _HRESULT_TYPEDEF_(0x80041320L)")] + public const int SCHED_E_USER_NOT_LOGGED_ON = unchecked((int)(0x80041320)); + + [NativeTypeName("#define SCHED_E_INVALID_TASK_HASH _HRESULT_TYPEDEF_(0x80041321L)")] + public const int SCHED_E_INVALID_TASK_HASH = unchecked((int)(0x80041321)); + + [NativeTypeName("#define SCHED_E_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80041322L)")] + public const int SCHED_E_SERVICE_NOT_AVAILABLE = unchecked((int)(0x80041322)); + + [NativeTypeName("#define SCHED_E_SERVICE_TOO_BUSY _HRESULT_TYPEDEF_(0x80041323L)")] + public const int SCHED_E_SERVICE_TOO_BUSY = unchecked((int)(0x80041323)); + + [NativeTypeName("#define SCHED_E_TASK_ATTEMPTED _HRESULT_TYPEDEF_(0x80041324L)")] + public const int SCHED_E_TASK_ATTEMPTED = unchecked((int)(0x80041324)); + + [NativeTypeName("#define SCHED_S_TASK_QUEUED _HRESULT_TYPEDEF_(0x00041325L)")] + public const int SCHED_S_TASK_QUEUED = ((int)(0x00041325)); + + [NativeTypeName("#define SCHED_E_TASK_DISABLED _HRESULT_TYPEDEF_(0x80041326L)")] + public const int SCHED_E_TASK_DISABLED = unchecked((int)(0x80041326)); + + [NativeTypeName("#define SCHED_E_TASK_NOT_V1_COMPAT _HRESULT_TYPEDEF_(0x80041327L)")] + public const int SCHED_E_TASK_NOT_V1_COMPAT = unchecked((int)(0x80041327)); + + [NativeTypeName("#define SCHED_E_START_ON_DEMAND _HRESULT_TYPEDEF_(0x80041328L)")] + public const int SCHED_E_START_ON_DEMAND = unchecked((int)(0x80041328)); + + [NativeTypeName("#define SCHED_E_TASK_NOT_UBPM_COMPAT _HRESULT_TYPEDEF_(0x80041329L)")] + public const int SCHED_E_TASK_NOT_UBPM_COMPAT = unchecked((int)(0x80041329)); + + [NativeTypeName("#define SCHED_E_DEPRECATED_FEATURE_USED _HRESULT_TYPEDEF_(0x80041330L)")] + public const int SCHED_E_DEPRECATED_FEATURE_USED = unchecked((int)(0x80041330)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/SDIAG.cs b/sources/Interop/Windows/Windows/shared/winerror/SDIAG.cs new file mode 100644 index 0000000000..31008f5e5a --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/SDIAG.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SDIAG + { + [NativeTypeName("#define SDIAG_E_CANCELLED _NDIS_ERROR_TYPEDEF_(0x803C0100L)")] + public const uint SDIAG_E_CANCELLED = (uint)(0x803C0100); + + [NativeTypeName("#define SDIAG_E_SCRIPT _NDIS_ERROR_TYPEDEF_(0x803C0101L)")] + public const uint SDIAG_E_SCRIPT = (uint)(0x803C0101); + + [NativeTypeName("#define SDIAG_E_POWERSHELL _NDIS_ERROR_TYPEDEF_(0x803C0102L)")] + public const uint SDIAG_E_POWERSHELL = (uint)(0x803C0102); + + [NativeTypeName("#define SDIAG_E_MANAGEDHOST _NDIS_ERROR_TYPEDEF_(0x803C0103L)")] + public const uint SDIAG_E_MANAGEDHOST = (uint)(0x803C0103); + + [NativeTypeName("#define SDIAG_E_NOVERIFIER _NDIS_ERROR_TYPEDEF_(0x803C0104L)")] + public const uint SDIAG_E_NOVERIFIER = (uint)(0x803C0104); + + [NativeTypeName("#define SDIAG_S_CANNOTRUN _NDIS_ERROR_TYPEDEF_(0x003C0105L)")] + public const uint SDIAG_S_CANNOTRUN = (uint)(0x003C0105); + + [NativeTypeName("#define SDIAG_E_DISABLED _NDIS_ERROR_TYPEDEF_(0x803C0106L)")] + public const uint SDIAG_E_DISABLED = (uint)(0x803C0106); + + [NativeTypeName("#define SDIAG_E_TRUST _NDIS_ERROR_TYPEDEF_(0x803C0107L)")] + public const uint SDIAG_E_TRUST = (uint)(0x803C0107); + + [NativeTypeName("#define SDIAG_E_CANNOTRUN _NDIS_ERROR_TYPEDEF_(0x803C0108L)")] + public const uint SDIAG_E_CANNOTRUN = (uint)(0x803C0108); + + [NativeTypeName("#define SDIAG_E_VERSION _NDIS_ERROR_TYPEDEF_(0x803C0109L)")] + public const uint SDIAG_E_VERSION = (uint)(0x803C0109); + + [NativeTypeName("#define SDIAG_E_RESOURCE _NDIS_ERROR_TYPEDEF_(0x803C010AL)")] + public const uint SDIAG_E_RESOURCE = (uint)(0x803C010A); + + [NativeTypeName("#define SDIAG_E_ROOTCAUSE _NDIS_ERROR_TYPEDEF_(0x803C010BL)")] + public const uint SDIAG_E_ROOTCAUSE = (uint)(0x803C010B); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/STATEREPOSITORY.cs b/sources/Interop/Windows/Windows/shared/winerror/STATEREPOSITORY.cs new file mode 100644 index 0000000000..95641097c1 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/STATEREPOSITORY.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STATEREPOSITORY + { + [NativeTypeName("#define STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE _HRESULT_TYPEDEF_(0x80670001L)")] + public const int STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE = unchecked((int)(0x80670001)); + + [NativeTypeName("#define STATEREPOSITORY_E_STATEMENT_INPROGRESS _HRESULT_TYPEDEF_(0x80670002L)")] + public const int STATEREPOSITORY_E_STATEMENT_INPROGRESS = unchecked((int)(0x80670002)); + + [NativeTypeName("#define STATEREPOSITORY_E_CONFIGURATION_INVALID _HRESULT_TYPEDEF_(0x80670003L)")] + public const int STATEREPOSITORY_E_CONFIGURATION_INVALID = unchecked((int)(0x80670003)); + + [NativeTypeName("#define STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION _HRESULT_TYPEDEF_(0x80670004L)")] + public const int STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION = unchecked((int)(0x80670004)); + + [NativeTypeName("#define STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED _HRESULT_TYPEDEF_(0x80670005L)")] + public const int STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED = unchecked((int)(0x80670005)); + + [NativeTypeName("#define STATEREPOSITORY_E_BLOCKED _HRESULT_TYPEDEF_(0x80670006L)")] + public const int STATEREPOSITORY_E_BLOCKED = unchecked((int)(0x80670006)); + + [NativeTypeName("#define STATEREPOSITORY_E_BUSY_RETRY _HRESULT_TYPEDEF_(0x80670007L)")] + public const int STATEREPOSITORY_E_BUSY_RETRY = unchecked((int)(0x80670007)); + + [NativeTypeName("#define STATEREPOSITORY_E_BUSY_RECOVERY_RETRY _HRESULT_TYPEDEF_(0x80670008L)")] + public const int STATEREPOSITORY_E_BUSY_RECOVERY_RETRY = unchecked((int)(0x80670008)); + + [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_RETRY _HRESULT_TYPEDEF_(0x80670009L)")] + public const int STATEREPOSITORY_E_LOCKED_RETRY = unchecked((int)(0x80670009)); + + [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY _HRESULT_TYPEDEF_(0x8067000AL)")] + public const int STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY = unchecked((int)(0x8067000A)); + + [NativeTypeName("#define STATEREPOSITORY_E_TRANSACTION_REQUIRED _HRESULT_TYPEDEF_(0x8067000BL)")] + public const int STATEREPOSITORY_E_TRANSACTION_REQUIRED = unchecked((int)(0x8067000B)); + + [NativeTypeName("#define STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000CL)")] + public const int STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000C)); + + [NativeTypeName("#define STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000DL)")] + public const int STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000D)); + + [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000EL)")] + public const int STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000E)); + + [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000FL)")] + public const int STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000F)); + + [NativeTypeName("#define STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS _HRESULT_TYPEDEF_(0x80670010L)")] + public const int STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS = unchecked((int)(0x80670010)); + + [NativeTypeName("#define STATEREPOSITORY_ERROR_CACHE_CORRUPTED _HRESULT_TYPEDEF_(0x80670012L)")] + public const int STATEREPOSITORY_ERROR_CACHE_CORRUPTED = unchecked((int)(0x80670012)); + + [NativeTypeName("#define STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED _HRESULT_TYPEDEF_(0x00670013L)")] + public const int STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED = ((int)(0x00670013)); + + [NativeTypeName("#define STATEREPOSITORY_TRANSACTION_IN_PROGRESS _HRESULT_TYPEDEF_(0x80670014L)")] + public const int STATEREPOSITORY_TRANSACTION_IN_PROGRESS = unchecked((int)(0x80670014)); + + [NativeTypeName("#define STATEREPOSITORY_E_CACHE_NOT_INIITALIZED _HRESULT_TYPEDEF_(0x80670015L)")] + public const int STATEREPOSITORY_E_CACHE_NOT_INIITALIZED = unchecked((int)(0x80670015)); + + [NativeTypeName("#define STATEREPOSITORY_E_DEPENDENCY_NOT_RESOLVED _HRESULT_TYPEDEF_(0x80670016L)")] + public const int STATEREPOSITORY_E_DEPENDENCY_NOT_RESOLVED = unchecked((int)(0x80670016)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/TBSIMP.cs b/sources/Interop/Windows/Windows/shared/winerror/TBSIMP.cs new file mode 100644 index 0000000000..10fc552993 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/TBSIMP.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TBSIMP + { + [NativeTypeName("#define TBSIMP_E_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80290200L)")] + public const int TBSIMP_E_BUFFER_TOO_SMALL = unchecked((int)(0x80290200)); + + [NativeTypeName("#define TBSIMP_E_CLEANUP_FAILED _HRESULT_TYPEDEF_(0x80290201L)")] + public const int TBSIMP_E_CLEANUP_FAILED = unchecked((int)(0x80290201)); + + [NativeTypeName("#define TBSIMP_E_INVALID_CONTEXT_HANDLE _HRESULT_TYPEDEF_(0x80290202L)")] + public const int TBSIMP_E_INVALID_CONTEXT_HANDLE = unchecked((int)(0x80290202)); + + [NativeTypeName("#define TBSIMP_E_INVALID_CONTEXT_PARAM _HRESULT_TYPEDEF_(0x80290203L)")] + public const int TBSIMP_E_INVALID_CONTEXT_PARAM = unchecked((int)(0x80290203)); + + [NativeTypeName("#define TBSIMP_E_TPM_ERROR _HRESULT_TYPEDEF_(0x80290204L)")] + public const int TBSIMP_E_TPM_ERROR = unchecked((int)(0x80290204)); + + [NativeTypeName("#define TBSIMP_E_HASH_BAD_KEY _HRESULT_TYPEDEF_(0x80290205L)")] + public const int TBSIMP_E_HASH_BAD_KEY = unchecked((int)(0x80290205)); + + [NativeTypeName("#define TBSIMP_E_DUPLICATE_VHANDLE _HRESULT_TYPEDEF_(0x80290206L)")] + public const int TBSIMP_E_DUPLICATE_VHANDLE = unchecked((int)(0x80290206)); + + [NativeTypeName("#define TBSIMP_E_INVALID_OUTPUT_POINTER _HRESULT_TYPEDEF_(0x80290207L)")] + public const int TBSIMP_E_INVALID_OUTPUT_POINTER = unchecked((int)(0x80290207)); + + [NativeTypeName("#define TBSIMP_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80290208L)")] + public const int TBSIMP_E_INVALID_PARAMETER = unchecked((int)(0x80290208)); + + [NativeTypeName("#define TBSIMP_E_RPC_INIT_FAILED _HRESULT_TYPEDEF_(0x80290209L)")] + public const int TBSIMP_E_RPC_INIT_FAILED = unchecked((int)(0x80290209)); + + [NativeTypeName("#define TBSIMP_E_SCHEDULER_NOT_RUNNING _HRESULT_TYPEDEF_(0x8029020AL)")] + public const int TBSIMP_E_SCHEDULER_NOT_RUNNING = unchecked((int)(0x8029020A)); + + [NativeTypeName("#define TBSIMP_E_COMMAND_CANCELED _HRESULT_TYPEDEF_(0x8029020BL)")] + public const int TBSIMP_E_COMMAND_CANCELED = unchecked((int)(0x8029020B)); + + [NativeTypeName("#define TBSIMP_E_OUT_OF_MEMORY _HRESULT_TYPEDEF_(0x8029020CL)")] + public const int TBSIMP_E_OUT_OF_MEMORY = unchecked((int)(0x8029020C)); + + [NativeTypeName("#define TBSIMP_E_LIST_NO_MORE_ITEMS _HRESULT_TYPEDEF_(0x8029020DL)")] + public const int TBSIMP_E_LIST_NO_MORE_ITEMS = unchecked((int)(0x8029020D)); + + [NativeTypeName("#define TBSIMP_E_LIST_NOT_FOUND _HRESULT_TYPEDEF_(0x8029020EL)")] + public const int TBSIMP_E_LIST_NOT_FOUND = unchecked((int)(0x8029020E)); + + [NativeTypeName("#define TBSIMP_E_NOT_ENOUGH_SPACE _HRESULT_TYPEDEF_(0x8029020FL)")] + public const int TBSIMP_E_NOT_ENOUGH_SPACE = unchecked((int)(0x8029020F)); + + [NativeTypeName("#define TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS _HRESULT_TYPEDEF_(0x80290210L)")] + public const int TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS = unchecked((int)(0x80290210)); + + [NativeTypeName("#define TBSIMP_E_COMMAND_FAILED _HRESULT_TYPEDEF_(0x80290211L)")] + public const int TBSIMP_E_COMMAND_FAILED = unchecked((int)(0x80290211)); + + [NativeTypeName("#define TBSIMP_E_UNKNOWN_ORDINAL _HRESULT_TYPEDEF_(0x80290212L)")] + public const int TBSIMP_E_UNKNOWN_ORDINAL = unchecked((int)(0x80290212)); + + [NativeTypeName("#define TBSIMP_E_RESOURCE_EXPIRED _HRESULT_TYPEDEF_(0x80290213L)")] + public const int TBSIMP_E_RESOURCE_EXPIRED = unchecked((int)(0x80290213)); + + [NativeTypeName("#define TBSIMP_E_INVALID_RESOURCE _HRESULT_TYPEDEF_(0x80290214L)")] + public const int TBSIMP_E_INVALID_RESOURCE = unchecked((int)(0x80290214)); + + [NativeTypeName("#define TBSIMP_E_NOTHING_TO_UNLOAD _HRESULT_TYPEDEF_(0x80290215L)")] + public const int TBSIMP_E_NOTHING_TO_UNLOAD = unchecked((int)(0x80290215)); + + [NativeTypeName("#define TBSIMP_E_HASH_TABLE_FULL _HRESULT_TYPEDEF_(0x80290216L)")] + public const int TBSIMP_E_HASH_TABLE_FULL = unchecked((int)(0x80290216)); + + [NativeTypeName("#define TBSIMP_E_TOO_MANY_TBS_CONTEXTS _HRESULT_TYPEDEF_(0x80290217L)")] + public const int TBSIMP_E_TOO_MANY_TBS_CONTEXTS = unchecked((int)(0x80290217)); + + [NativeTypeName("#define TBSIMP_E_TOO_MANY_RESOURCES _HRESULT_TYPEDEF_(0x80290218L)")] + public const int TBSIMP_E_TOO_MANY_RESOURCES = unchecked((int)(0x80290218)); + + [NativeTypeName("#define TBSIMP_E_PPI_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290219L)")] + public const int TBSIMP_E_PPI_NOT_SUPPORTED = unchecked((int)(0x80290219)); + + [NativeTypeName("#define TBSIMP_E_TPM_INCOMPATIBLE _HRESULT_TYPEDEF_(0x8029021AL)")] + public const int TBSIMP_E_TPM_INCOMPATIBLE = unchecked((int)(0x8029021A)); + + [NativeTypeName("#define TBSIMP_E_NO_EVENT_LOG _HRESULT_TYPEDEF_(0x8029021BL)")] + public const int TBSIMP_E_NO_EVENT_LOG = unchecked((int)(0x8029021B)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/TPC.cs b/sources/Interop/Windows/Windows/shared/winerror/TPC.cs new file mode 100644 index 0000000000..eaa2a0bef7 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/TPC.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TPC + { + [NativeTypeName("#define TPC_E_INVALID_PROPERTY _HRESULT_TYPEDEF_(0x80040241L)")] + public const int TPC_E_INVALID_PROPERTY = unchecked((int)(0x80040241)); + + [NativeTypeName("#define TPC_E_NO_DEFAULT_TABLET _HRESULT_TYPEDEF_(0x80040212L)")] + public const int TPC_E_NO_DEFAULT_TABLET = unchecked((int)(0x80040212)); + + [NativeTypeName("#define TPC_E_UNKNOWN_PROPERTY _HRESULT_TYPEDEF_(0x8004021BL)")] + public const int TPC_E_UNKNOWN_PROPERTY = unchecked((int)(0x8004021B)); + + [NativeTypeName("#define TPC_E_INVALID_INPUT_RECT _HRESULT_TYPEDEF_(0x80040219L)")] + public const int TPC_E_INVALID_INPUT_RECT = unchecked((int)(0x80040219)); + + [NativeTypeName("#define TPC_E_INVALID_STROKE _HRESULT_TYPEDEF_(0x80040222L)")] + public const int TPC_E_INVALID_STROKE = unchecked((int)(0x80040222)); + + [NativeTypeName("#define TPC_E_INITIALIZE_FAIL _HRESULT_TYPEDEF_(0x80040223L)")] + public const int TPC_E_INITIALIZE_FAIL = unchecked((int)(0x80040223)); + + [NativeTypeName("#define TPC_E_NOT_RELEVANT _HRESULT_TYPEDEF_(0x80040232L)")] + public const int TPC_E_NOT_RELEVANT = unchecked((int)(0x80040232)); + + [NativeTypeName("#define TPC_E_INVALID_PACKET_DESCRIPTION _HRESULT_TYPEDEF_(0x80040233L)")] + public const int TPC_E_INVALID_PACKET_DESCRIPTION = unchecked((int)(0x80040233)); + + [NativeTypeName("#define TPC_E_RECOGNIZER_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80040235L)")] + public const int TPC_E_RECOGNIZER_NOT_REGISTERED = unchecked((int)(0x80040235)); + + [NativeTypeName("#define TPC_E_INVALID_RIGHTS _HRESULT_TYPEDEF_(0x80040236L)")] + public const int TPC_E_INVALID_RIGHTS = unchecked((int)(0x80040236)); + + [NativeTypeName("#define TPC_E_OUT_OF_ORDER_CALL _HRESULT_TYPEDEF_(0x80040237L)")] + public const int TPC_E_OUT_OF_ORDER_CALL = unchecked((int)(0x80040237)); + + [NativeTypeName("#define TPC_E_QUEUE_FULL _HRESULT_TYPEDEF_(0x80040238L)")] + public const int TPC_E_QUEUE_FULL = unchecked((int)(0x80040238)); + + [NativeTypeName("#define TPC_E_INVALID_CONFIGURATION _HRESULT_TYPEDEF_(0x80040239L)")] + public const int TPC_E_INVALID_CONFIGURATION = unchecked((int)(0x80040239)); + + [NativeTypeName("#define TPC_E_INVALID_DATA_FROM_RECOGNIZER _HRESULT_TYPEDEF_(0x8004023AL)")] + public const int TPC_E_INVALID_DATA_FROM_RECOGNIZER = unchecked((int)(0x8004023A)); + + [NativeTypeName("#define TPC_S_TRUNCATED _HRESULT_TYPEDEF_(0x00040252L)")] + public const int TPC_S_TRUNCATED = ((int)(0x00040252)); + + [NativeTypeName("#define TPC_S_INTERRUPTED _HRESULT_TYPEDEF_(0x00040253L)")] + public const int TPC_S_INTERRUPTED = ((int)(0x00040253)); + + [NativeTypeName("#define TPC_S_NO_DATA_TO_PROCESS _HRESULT_TYPEDEF_(0x00040254L)")] + public const int TPC_S_NO_DATA_TO_PROCESS = ((int)(0x00040254)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/TPMAPI.cs b/sources/Interop/Windows/Windows/shared/winerror/TPMAPI.cs new file mode 100644 index 0000000000..77129ca67c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/TPMAPI.cs @@ -0,0 +1,151 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TPMAPI + { + [NativeTypeName("#define TPMAPI_E_INVALID_STATE _HRESULT_TYPEDEF_(0x80290100L)")] + public const int TPMAPI_E_INVALID_STATE = unchecked((int)(0x80290100)); + + [NativeTypeName("#define TPMAPI_E_NOT_ENOUGH_DATA _HRESULT_TYPEDEF_(0x80290101L)")] + public const int TPMAPI_E_NOT_ENOUGH_DATA = unchecked((int)(0x80290101)); + + [NativeTypeName("#define TPMAPI_E_TOO_MUCH_DATA _HRESULT_TYPEDEF_(0x80290102L)")] + public const int TPMAPI_E_TOO_MUCH_DATA = unchecked((int)(0x80290102)); + + [NativeTypeName("#define TPMAPI_E_INVALID_OUTPUT_POINTER _HRESULT_TYPEDEF_(0x80290103L)")] + public const int TPMAPI_E_INVALID_OUTPUT_POINTER = unchecked((int)(0x80290103)); + + [NativeTypeName("#define TPMAPI_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80290104L)")] + public const int TPMAPI_E_INVALID_PARAMETER = unchecked((int)(0x80290104)); + + [NativeTypeName("#define TPMAPI_E_OUT_OF_MEMORY _HRESULT_TYPEDEF_(0x80290105L)")] + public const int TPMAPI_E_OUT_OF_MEMORY = unchecked((int)(0x80290105)); + + [NativeTypeName("#define TPMAPI_E_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80290106L)")] + public const int TPMAPI_E_BUFFER_TOO_SMALL = unchecked((int)(0x80290106)); + + [NativeTypeName("#define TPMAPI_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80290107L)")] + public const int TPMAPI_E_INTERNAL_ERROR = unchecked((int)(0x80290107)); + + [NativeTypeName("#define TPMAPI_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x80290108L)")] + public const int TPMAPI_E_ACCESS_DENIED = unchecked((int)(0x80290108)); + + [NativeTypeName("#define TPMAPI_E_AUTHORIZATION_FAILED _HRESULT_TYPEDEF_(0x80290109L)")] + public const int TPMAPI_E_AUTHORIZATION_FAILED = unchecked((int)(0x80290109)); + + [NativeTypeName("#define TPMAPI_E_INVALID_CONTEXT_HANDLE _HRESULT_TYPEDEF_(0x8029010AL)")] + public const int TPMAPI_E_INVALID_CONTEXT_HANDLE = unchecked((int)(0x8029010A)); + + [NativeTypeName("#define TPMAPI_E_TBS_COMMUNICATION_ERROR _HRESULT_TYPEDEF_(0x8029010BL)")] + public const int TPMAPI_E_TBS_COMMUNICATION_ERROR = unchecked((int)(0x8029010B)); + + [NativeTypeName("#define TPMAPI_E_TPM_COMMAND_ERROR _HRESULT_TYPEDEF_(0x8029010CL)")] + public const int TPMAPI_E_TPM_COMMAND_ERROR = unchecked((int)(0x8029010C)); + + [NativeTypeName("#define TPMAPI_E_MESSAGE_TOO_LARGE _HRESULT_TYPEDEF_(0x8029010DL)")] + public const int TPMAPI_E_MESSAGE_TOO_LARGE = unchecked((int)(0x8029010D)); + + [NativeTypeName("#define TPMAPI_E_INVALID_ENCODING _HRESULT_TYPEDEF_(0x8029010EL)")] + public const int TPMAPI_E_INVALID_ENCODING = unchecked((int)(0x8029010E)); + + [NativeTypeName("#define TPMAPI_E_INVALID_KEY_SIZE _HRESULT_TYPEDEF_(0x8029010FL)")] + public const int TPMAPI_E_INVALID_KEY_SIZE = unchecked((int)(0x8029010F)); + + [NativeTypeName("#define TPMAPI_E_ENCRYPTION_FAILED _HRESULT_TYPEDEF_(0x80290110L)")] + public const int TPMAPI_E_ENCRYPTION_FAILED = unchecked((int)(0x80290110)); + + [NativeTypeName("#define TPMAPI_E_INVALID_KEY_PARAMS _HRESULT_TYPEDEF_(0x80290111L)")] + public const int TPMAPI_E_INVALID_KEY_PARAMS = unchecked((int)(0x80290111)); + + [NativeTypeName("#define TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB _HRESULT_TYPEDEF_(0x80290112L)")] + public const int TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB = unchecked((int)(0x80290112)); + + [NativeTypeName("#define TPMAPI_E_INVALID_PCR_INDEX _HRESULT_TYPEDEF_(0x80290113L)")] + public const int TPMAPI_E_INVALID_PCR_INDEX = unchecked((int)(0x80290113)); + + [NativeTypeName("#define TPMAPI_E_INVALID_DELEGATE_BLOB _HRESULT_TYPEDEF_(0x80290114L)")] + public const int TPMAPI_E_INVALID_DELEGATE_BLOB = unchecked((int)(0x80290114)); + + [NativeTypeName("#define TPMAPI_E_INVALID_CONTEXT_PARAMS _HRESULT_TYPEDEF_(0x80290115L)")] + public const int TPMAPI_E_INVALID_CONTEXT_PARAMS = unchecked((int)(0x80290115)); + + [NativeTypeName("#define TPMAPI_E_INVALID_KEY_BLOB _HRESULT_TYPEDEF_(0x80290116L)")] + public const int TPMAPI_E_INVALID_KEY_BLOB = unchecked((int)(0x80290116)); + + [NativeTypeName("#define TPMAPI_E_INVALID_PCR_DATA _HRESULT_TYPEDEF_(0x80290117L)")] + public const int TPMAPI_E_INVALID_PCR_DATA = unchecked((int)(0x80290117)); + + [NativeTypeName("#define TPMAPI_E_INVALID_OWNER_AUTH _HRESULT_TYPEDEF_(0x80290118L)")] + public const int TPMAPI_E_INVALID_OWNER_AUTH = unchecked((int)(0x80290118)); + + [NativeTypeName("#define TPMAPI_E_FIPS_RNG_CHECK_FAILED _HRESULT_TYPEDEF_(0x80290119L)")] + public const int TPMAPI_E_FIPS_RNG_CHECK_FAILED = unchecked((int)(0x80290119)); + + [NativeTypeName("#define TPMAPI_E_EMPTY_TCG_LOG _HRESULT_TYPEDEF_(0x8029011AL)")] + public const int TPMAPI_E_EMPTY_TCG_LOG = unchecked((int)(0x8029011A)); + + [NativeTypeName("#define TPMAPI_E_INVALID_TCG_LOG_ENTRY _HRESULT_TYPEDEF_(0x8029011BL)")] + public const int TPMAPI_E_INVALID_TCG_LOG_ENTRY = unchecked((int)(0x8029011B)); + + [NativeTypeName("#define TPMAPI_E_TCG_SEPARATOR_ABSENT _HRESULT_TYPEDEF_(0x8029011CL)")] + public const int TPMAPI_E_TCG_SEPARATOR_ABSENT = unchecked((int)(0x8029011C)); + + [NativeTypeName("#define TPMAPI_E_TCG_INVALID_DIGEST_ENTRY _HRESULT_TYPEDEF_(0x8029011DL)")] + public const int TPMAPI_E_TCG_INVALID_DIGEST_ENTRY = unchecked((int)(0x8029011D)); + + [NativeTypeName("#define TPMAPI_E_POLICY_DENIES_OPERATION _HRESULT_TYPEDEF_(0x8029011EL)")] + public const int TPMAPI_E_POLICY_DENIES_OPERATION = unchecked((int)(0x8029011E)); + + [NativeTypeName("#define TPMAPI_E_NV_BITS_NOT_DEFINED _HRESULT_TYPEDEF_(0x8029011FL)")] + public const int TPMAPI_E_NV_BITS_NOT_DEFINED = unchecked((int)(0x8029011F)); + + [NativeTypeName("#define TPMAPI_E_NV_BITS_NOT_READY _HRESULT_TYPEDEF_(0x80290120L)")] + public const int TPMAPI_E_NV_BITS_NOT_READY = unchecked((int)(0x80290120)); + + [NativeTypeName("#define TPMAPI_E_SEALING_KEY_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80290121L)")] + public const int TPMAPI_E_SEALING_KEY_NOT_AVAILABLE = unchecked((int)(0x80290121)); + + [NativeTypeName("#define TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND _HRESULT_TYPEDEF_(0x80290122L)")] + public const int TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND = unchecked((int)(0x80290122)); + + [NativeTypeName("#define TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80290123L)")] + public const int TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE = unchecked((int)(0x80290123)); + + [NativeTypeName("#define TPMAPI_E_OWNER_AUTH_NOT_NULL _HRESULT_TYPEDEF_(0x80290124L)")] + public const int TPMAPI_E_OWNER_AUTH_NOT_NULL = unchecked((int)(0x80290124)); + + [NativeTypeName("#define TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL _HRESULT_TYPEDEF_(0x80290125L)")] + public const int TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL = unchecked((int)(0x80290125)); + + [NativeTypeName("#define TPMAPI_E_AUTHORIZATION_REVOKED _HRESULT_TYPEDEF_(0x80290126L)")] + public const int TPMAPI_E_AUTHORIZATION_REVOKED = unchecked((int)(0x80290126)); + + [NativeTypeName("#define TPMAPI_E_MALFORMED_AUTHORIZATION_KEY _HRESULT_TYPEDEF_(0x80290127L)")] + public const int TPMAPI_E_MALFORMED_AUTHORIZATION_KEY = unchecked((int)(0x80290127)); + + [NativeTypeName("#define TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290128L)")] + public const int TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED = unchecked((int)(0x80290128)); + + [NativeTypeName("#define TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE _HRESULT_TYPEDEF_(0x80290129L)")] + public const int TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE = unchecked((int)(0x80290129)); + + [NativeTypeName("#define TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY _HRESULT_TYPEDEF_(0x8029012AL)")] + public const int TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY = unchecked((int)(0x8029012A)); + + [NativeTypeName("#define TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER _HRESULT_TYPEDEF_(0x8029012BL)")] + public const int TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER = unchecked((int)(0x8029012B)); + + [NativeTypeName("#define TPMAPI_E_SEALING_KEY_CHANGED _HRESULT_TYPEDEF_(0x8029012CL)")] + public const int TPMAPI_E_SEALING_KEY_CHANGED = unchecked((int)(0x8029012C)); + + [NativeTypeName("#define TPMAPI_E_INVALID_TPM_VERSION _HRESULT_TYPEDEF_(0x8029012DL)")] + public const int TPMAPI_E_INVALID_TPM_VERSION = unchecked((int)(0x8029012D)); + + [NativeTypeName("#define TPMAPI_E_INVALID_POLICYAUTH_BLOB_TYPE _HRESULT_TYPEDEF_(0x8029012EL)")] + public const int TPMAPI_E_INVALID_POLICYAUTH_BLOB_TYPE = unchecked((int)(0x8029012E)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/TRUST.cs b/sources/Interop/Windows/Windows/shared/winerror/TRUST.cs new file mode 100644 index 0000000000..4a24f35092 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/TRUST.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TRUST + { + [NativeTypeName("#define TRUST_E_SYSTEM_ERROR _HRESULT_TYPEDEF_(0x80096001L)")] + public const int TRUST_E_SYSTEM_ERROR = unchecked((int)(0x80096001)); + + [NativeTypeName("#define TRUST_E_NO_SIGNER_CERT _HRESULT_TYPEDEF_(0x80096002L)")] + public const int TRUST_E_NO_SIGNER_CERT = unchecked((int)(0x80096002)); + + [NativeTypeName("#define TRUST_E_COUNTER_SIGNER _HRESULT_TYPEDEF_(0x80096003L)")] + public const int TRUST_E_COUNTER_SIGNER = unchecked((int)(0x80096003)); + + [NativeTypeName("#define TRUST_E_CERT_SIGNATURE _HRESULT_TYPEDEF_(0x80096004L)")] + public const int TRUST_E_CERT_SIGNATURE = unchecked((int)(0x80096004)); + + [NativeTypeName("#define TRUST_E_TIME_STAMP _HRESULT_TYPEDEF_(0x80096005L)")] + public const int TRUST_E_TIME_STAMP = unchecked((int)(0x80096005)); + + [NativeTypeName("#define TRUST_E_BAD_DIGEST _HRESULT_TYPEDEF_(0x80096010L)")] + public const int TRUST_E_BAD_DIGEST = unchecked((int)(0x80096010)); + + [NativeTypeName("#define TRUST_E_MALFORMED_SIGNATURE _HRESULT_TYPEDEF_(0x80096011L)")] + public const int TRUST_E_MALFORMED_SIGNATURE = unchecked((int)(0x80096011)); + + [NativeTypeName("#define TRUST_E_BASIC_CONSTRAINTS _HRESULT_TYPEDEF_(0x80096019L)")] + public const int TRUST_E_BASIC_CONSTRAINTS = unchecked((int)(0x80096019)); + + [NativeTypeName("#define TRUST_E_FINANCIAL_CRITERIA _HRESULT_TYPEDEF_(0x8009601EL)")] + public const int TRUST_E_FINANCIAL_CRITERIA = unchecked((int)(0x8009601E)); + + [NativeTypeName("#define TRUST_E_PROVIDER_UNKNOWN _HRESULT_TYPEDEF_(0x800B0001L)")] + public const int TRUST_E_PROVIDER_UNKNOWN = unchecked((int)(0x800B0001)); + + [NativeTypeName("#define TRUST_E_ACTION_UNKNOWN _HRESULT_TYPEDEF_(0x800B0002L)")] + public const int TRUST_E_ACTION_UNKNOWN = unchecked((int)(0x800B0002)); + + [NativeTypeName("#define TRUST_E_SUBJECT_FORM_UNKNOWN _HRESULT_TYPEDEF_(0x800B0003L)")] + public const int TRUST_E_SUBJECT_FORM_UNKNOWN = unchecked((int)(0x800B0003)); + + [NativeTypeName("#define TRUST_E_SUBJECT_NOT_TRUSTED _HRESULT_TYPEDEF_(0x800B0004L)")] + public const int TRUST_E_SUBJECT_NOT_TRUSTED = unchecked((int)(0x800B0004)); + + [NativeTypeName("#define TRUST_E_NOSIGNATURE _HRESULT_TYPEDEF_(0x800B0100L)")] + public const int TRUST_E_NOSIGNATURE = unchecked((int)(0x800B0100)); + + [NativeTypeName("#define TRUST_E_FAIL _HRESULT_TYPEDEF_(0x800B010BL)")] + public const int TRUST_E_FAIL = unchecked((int)(0x800B010B)); + + [NativeTypeName("#define TRUST_E_EXPLICIT_DISTRUST _HRESULT_TYPEDEF_(0x800B0111L)")] + public const int TRUST_E_EXPLICIT_DISTRUST = unchecked((int)(0x800B0111)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/TYPE.cs b/sources/Interop/Windows/Windows/shared/winerror/TYPE.cs new file mode 100644 index 0000000000..2b0f204cba --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/TYPE.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TYPE + { + [NativeTypeName("#define TYPE_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80028016L)")] + public const int TYPE_E_BUFFERTOOSMALL = unchecked((int)(0x80028016)); + + [NativeTypeName("#define TYPE_E_FIELDNOTFOUND _HRESULT_TYPEDEF_(0x80028017L)")] + public const int TYPE_E_FIELDNOTFOUND = unchecked((int)(0x80028017)); + + [NativeTypeName("#define TYPE_E_INVDATAREAD _HRESULT_TYPEDEF_(0x80028018L)")] + public const int TYPE_E_INVDATAREAD = unchecked((int)(0x80028018)); + + [NativeTypeName("#define TYPE_E_UNSUPFORMAT _HRESULT_TYPEDEF_(0x80028019L)")] + public const int TYPE_E_UNSUPFORMAT = unchecked((int)(0x80028019)); + + [NativeTypeName("#define TYPE_E_REGISTRYACCESS _HRESULT_TYPEDEF_(0x8002801CL)")] + public const int TYPE_E_REGISTRYACCESS = unchecked((int)(0x8002801C)); + + [NativeTypeName("#define TYPE_E_LIBNOTREGISTERED _HRESULT_TYPEDEF_(0x8002801DL)")] + public const int TYPE_E_LIBNOTREGISTERED = unchecked((int)(0x8002801D)); + + [NativeTypeName("#define TYPE_E_UNDEFINEDTYPE _HRESULT_TYPEDEF_(0x80028027L)")] + public const int TYPE_E_UNDEFINEDTYPE = unchecked((int)(0x80028027)); + + [NativeTypeName("#define TYPE_E_QUALIFIEDNAMEDISALLOWED _HRESULT_TYPEDEF_(0x80028028L)")] + public const int TYPE_E_QUALIFIEDNAMEDISALLOWED = unchecked((int)(0x80028028)); + + [NativeTypeName("#define TYPE_E_INVALIDSTATE _HRESULT_TYPEDEF_(0x80028029L)")] + public const int TYPE_E_INVALIDSTATE = unchecked((int)(0x80028029)); + + [NativeTypeName("#define TYPE_E_WRONGTYPEKIND _HRESULT_TYPEDEF_(0x8002802AL)")] + public const int TYPE_E_WRONGTYPEKIND = unchecked((int)(0x8002802A)); + + [NativeTypeName("#define TYPE_E_ELEMENTNOTFOUND _HRESULT_TYPEDEF_(0x8002802BL)")] + public const int TYPE_E_ELEMENTNOTFOUND = unchecked((int)(0x8002802B)); + + [NativeTypeName("#define TYPE_E_AMBIGUOUSNAME _HRESULT_TYPEDEF_(0x8002802CL)")] + public const int TYPE_E_AMBIGUOUSNAME = unchecked((int)(0x8002802C)); + + [NativeTypeName("#define TYPE_E_NAMECONFLICT _HRESULT_TYPEDEF_(0x8002802DL)")] + public const int TYPE_E_NAMECONFLICT = unchecked((int)(0x8002802D)); + + [NativeTypeName("#define TYPE_E_UNKNOWNLCID _HRESULT_TYPEDEF_(0x8002802EL)")] + public const int TYPE_E_UNKNOWNLCID = unchecked((int)(0x8002802E)); + + [NativeTypeName("#define TYPE_E_DLLFUNCTIONNOTFOUND _HRESULT_TYPEDEF_(0x8002802FL)")] + public const int TYPE_E_DLLFUNCTIONNOTFOUND = unchecked((int)(0x8002802F)); + + [NativeTypeName("#define TYPE_E_BADMODULEKIND _HRESULT_TYPEDEF_(0x800288BDL)")] + public const int TYPE_E_BADMODULEKIND = unchecked((int)(0x800288BD)); + + [NativeTypeName("#define TYPE_E_SIZETOOBIG _HRESULT_TYPEDEF_(0x800288C5L)")] + public const int TYPE_E_SIZETOOBIG = unchecked((int)(0x800288C5)); + + [NativeTypeName("#define TYPE_E_DUPLICATEID _HRESULT_TYPEDEF_(0x800288C6L)")] + public const int TYPE_E_DUPLICATEID = unchecked((int)(0x800288C6)); + + [NativeTypeName("#define TYPE_E_INVALIDID _HRESULT_TYPEDEF_(0x800288CFL)")] + public const int TYPE_E_INVALIDID = unchecked((int)(0x800288CF)); + + [NativeTypeName("#define TYPE_E_TYPEMISMATCH _HRESULT_TYPEDEF_(0x80028CA0L)")] + public const int TYPE_E_TYPEMISMATCH = unchecked((int)(0x80028CA0)); + + [NativeTypeName("#define TYPE_E_OUTOFBOUNDS _HRESULT_TYPEDEF_(0x80028CA1L)")] + public const int TYPE_E_OUTOFBOUNDS = unchecked((int)(0x80028CA1)); + + [NativeTypeName("#define TYPE_E_IOERROR _HRESULT_TYPEDEF_(0x80028CA2L)")] + public const int TYPE_E_IOERROR = unchecked((int)(0x80028CA2)); + + [NativeTypeName("#define TYPE_E_CANTCREATETMPFILE _HRESULT_TYPEDEF_(0x80028CA3L)")] + public const int TYPE_E_CANTCREATETMPFILE = unchecked((int)(0x80028CA3)); + + [NativeTypeName("#define TYPE_E_CANTLOADLIBRARY _HRESULT_TYPEDEF_(0x80029C4AL)")] + public const int TYPE_E_CANTLOADLIBRARY = unchecked((int)(0x80029C4A)); + + [NativeTypeName("#define TYPE_E_INCONSISTENTPROPFUNCS _HRESULT_TYPEDEF_(0x80029C83L)")] + public const int TYPE_E_INCONSISTENTPROPFUNCS = unchecked((int)(0x80029C83)); + + [NativeTypeName("#define TYPE_E_CIRCULARTYPE _HRESULT_TYPEDEF_(0x80029C84L)")] + public const int TYPE_E_CIRCULARTYPE = unchecked((int)(0x80029C84)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/UCEERR.cs b/sources/Interop/Windows/Windows/shared/winerror/UCEERR.cs new file mode 100644 index 0000000000..ff95dedad9 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/UCEERR.cs @@ -0,0 +1,100 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class UCEERR + { + [NativeTypeName("#define UCEERR_INVALIDPACKETHEADER _HRESULT_TYPEDEF_(0x88980400L)")] + public const int UCEERR_INVALIDPACKETHEADER = unchecked((int)(0x88980400)); + + [NativeTypeName("#define UCEERR_UNKNOWNPACKET _HRESULT_TYPEDEF_(0x88980401L)")] + public const int UCEERR_UNKNOWNPACKET = unchecked((int)(0x88980401)); + + [NativeTypeName("#define UCEERR_ILLEGALPACKET _HRESULT_TYPEDEF_(0x88980402L)")] + public const int UCEERR_ILLEGALPACKET = unchecked((int)(0x88980402)); + + [NativeTypeName("#define UCEERR_MALFORMEDPACKET _HRESULT_TYPEDEF_(0x88980403L)")] + public const int UCEERR_MALFORMEDPACKET = unchecked((int)(0x88980403)); + + [NativeTypeName("#define UCEERR_ILLEGALHANDLE _HRESULT_TYPEDEF_(0x88980404L)")] + public const int UCEERR_ILLEGALHANDLE = unchecked((int)(0x88980404)); + + [NativeTypeName("#define UCEERR_HANDLELOOKUPFAILED _HRESULT_TYPEDEF_(0x88980405L)")] + public const int UCEERR_HANDLELOOKUPFAILED = unchecked((int)(0x88980405)); + + [NativeTypeName("#define UCEERR_RENDERTHREADFAILURE _HRESULT_TYPEDEF_(0x88980406L)")] + public const int UCEERR_RENDERTHREADFAILURE = unchecked((int)(0x88980406)); + + [NativeTypeName("#define UCEERR_CTXSTACKFRSTTARGETNULL _HRESULT_TYPEDEF_(0x88980407L)")] + public const int UCEERR_CTXSTACKFRSTTARGETNULL = unchecked((int)(0x88980407)); + + [NativeTypeName("#define UCEERR_CONNECTIONIDLOOKUPFAILED _HRESULT_TYPEDEF_(0x88980408L)")] + public const int UCEERR_CONNECTIONIDLOOKUPFAILED = unchecked((int)(0x88980408)); + + [NativeTypeName("#define UCEERR_BLOCKSFULL _HRESULT_TYPEDEF_(0x88980409L)")] + public const int UCEERR_BLOCKSFULL = unchecked((int)(0x88980409)); + + [NativeTypeName("#define UCEERR_MEMORYFAILURE _HRESULT_TYPEDEF_(0x8898040AL)")] + public const int UCEERR_MEMORYFAILURE = unchecked((int)(0x8898040A)); + + [NativeTypeName("#define UCEERR_PACKETRECORDOUTOFRANGE _HRESULT_TYPEDEF_(0x8898040BL)")] + public const int UCEERR_PACKETRECORDOUTOFRANGE = unchecked((int)(0x8898040B)); + + [NativeTypeName("#define UCEERR_ILLEGALRECORDTYPE _HRESULT_TYPEDEF_(0x8898040CL)")] + public const int UCEERR_ILLEGALRECORDTYPE = unchecked((int)(0x8898040C)); + + [NativeTypeName("#define UCEERR_OUTOFHANDLES _HRESULT_TYPEDEF_(0x8898040DL)")] + public const int UCEERR_OUTOFHANDLES = unchecked((int)(0x8898040D)); + + [NativeTypeName("#define UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED _HRESULT_TYPEDEF_(0x8898040EL)")] + public const int UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED = unchecked((int)(0x8898040E)); + + [NativeTypeName("#define UCEERR_NO_MULTIPLE_WORKER_THREADS _HRESULT_TYPEDEF_(0x8898040FL)")] + public const int UCEERR_NO_MULTIPLE_WORKER_THREADS = unchecked((int)(0x8898040F)); + + [NativeTypeName("#define UCEERR_REMOTINGNOTSUPPORTED _HRESULT_TYPEDEF_(0x88980410L)")] + public const int UCEERR_REMOTINGNOTSUPPORTED = unchecked((int)(0x88980410)); + + [NativeTypeName("#define UCEERR_MISSINGENDCOMMAND _HRESULT_TYPEDEF_(0x88980411L)")] + public const int UCEERR_MISSINGENDCOMMAND = unchecked((int)(0x88980411)); + + [NativeTypeName("#define UCEERR_MISSINGBEGINCOMMAND _HRESULT_TYPEDEF_(0x88980412L)")] + public const int UCEERR_MISSINGBEGINCOMMAND = unchecked((int)(0x88980412)); + + [NativeTypeName("#define UCEERR_CHANNELSYNCTIMEDOUT _HRESULT_TYPEDEF_(0x88980413L)")] + public const int UCEERR_CHANNELSYNCTIMEDOUT = unchecked((int)(0x88980413)); + + [NativeTypeName("#define UCEERR_CHANNELSYNCABANDONED _HRESULT_TYPEDEF_(0x88980414L)")] + public const int UCEERR_CHANNELSYNCABANDONED = unchecked((int)(0x88980414)); + + [NativeTypeName("#define UCEERR_UNSUPPORTEDTRANSPORTVERSION _HRESULT_TYPEDEF_(0x88980415L)")] + public const int UCEERR_UNSUPPORTEDTRANSPORTVERSION = unchecked((int)(0x88980415)); + + [NativeTypeName("#define UCEERR_TRANSPORTUNAVAILABLE _HRESULT_TYPEDEF_(0x88980416L)")] + public const int UCEERR_TRANSPORTUNAVAILABLE = unchecked((int)(0x88980416)); + + [NativeTypeName("#define UCEERR_FEEDBACK_UNSUPPORTED _HRESULT_TYPEDEF_(0x88980417L)")] + public const int UCEERR_FEEDBACK_UNSUPPORTED = unchecked((int)(0x88980417)); + + [NativeTypeName("#define UCEERR_COMMANDTRANSPORTDENIED _HRESULT_TYPEDEF_(0x88980418L)")] + public const int UCEERR_COMMANDTRANSPORTDENIED = unchecked((int)(0x88980418)); + + [NativeTypeName("#define UCEERR_GRAPHICSSTREAMUNAVAILABLE _HRESULT_TYPEDEF_(0x88980419L)")] + public const int UCEERR_GRAPHICSSTREAMUNAVAILABLE = unchecked((int)(0x88980419)); + + [NativeTypeName("#define UCEERR_GRAPHICSSTREAMALREADYOPEN _HRESULT_TYPEDEF_(0x88980420L)")] + public const int UCEERR_GRAPHICSSTREAMALREADYOPEN = unchecked((int)(0x88980420)); + + [NativeTypeName("#define UCEERR_TRANSPORTDISCONNECTED _HRESULT_TYPEDEF_(0x88980421L)")] + public const int UCEERR_TRANSPORTDISCONNECTED = unchecked((int)(0x88980421)); + + [NativeTypeName("#define UCEERR_TRANSPORTOVERLOADED _HRESULT_TYPEDEF_(0x88980422L)")] + public const int UCEERR_TRANSPORTOVERLOADED = unchecked((int)(0x88980422)); + + [NativeTypeName("#define UCEERR_PARTITION_ZOMBIED _HRESULT_TYPEDEF_(0x88980423L)")] + public const int UCEERR_PARTITION_ZOMBIED = unchecked((int)(0x88980423)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/UI.cs b/sources/Interop/Windows/Windows/shared/winerror/UI.cs new file mode 100644 index 0000000000..db8de7190b --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/UI.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class UI + { + [NativeTypeName("#define UI_E_CREATE_FAILED _HRESULT_TYPEDEF_(0x802A0001L)")] + public const int UI_E_CREATE_FAILED = unchecked((int)(0x802A0001)); + + [NativeTypeName("#define UI_E_SHUTDOWN_CALLED _HRESULT_TYPEDEF_(0x802A0002L)")] + public const int UI_E_SHUTDOWN_CALLED = unchecked((int)(0x802A0002)); + + [NativeTypeName("#define UI_E_ILLEGAL_REENTRANCY _HRESULT_TYPEDEF_(0x802A0003L)")] + public const int UI_E_ILLEGAL_REENTRANCY = unchecked((int)(0x802A0003)); + + [NativeTypeName("#define UI_E_OBJECT_SEALED _HRESULT_TYPEDEF_(0x802A0004L)")] + public const int UI_E_OBJECT_SEALED = unchecked((int)(0x802A0004)); + + [NativeTypeName("#define UI_E_VALUE_NOT_SET _HRESULT_TYPEDEF_(0x802A0005L)")] + public const int UI_E_VALUE_NOT_SET = unchecked((int)(0x802A0005)); + + [NativeTypeName("#define UI_E_VALUE_NOT_DETERMINED _HRESULT_TYPEDEF_(0x802A0006L)")] + public const int UI_E_VALUE_NOT_DETERMINED = unchecked((int)(0x802A0006)); + + [NativeTypeName("#define UI_E_INVALID_OUTPUT _HRESULT_TYPEDEF_(0x802A0007L)")] + public const int UI_E_INVALID_OUTPUT = unchecked((int)(0x802A0007)); + + [NativeTypeName("#define UI_E_BOOLEAN_EXPECTED _HRESULT_TYPEDEF_(0x802A0008L)")] + public const int UI_E_BOOLEAN_EXPECTED = unchecked((int)(0x802A0008)); + + [NativeTypeName("#define UI_E_DIFFERENT_OWNER _HRESULT_TYPEDEF_(0x802A0009L)")] + public const int UI_E_DIFFERENT_OWNER = unchecked((int)(0x802A0009)); + + [NativeTypeName("#define UI_E_AMBIGUOUS_MATCH _HRESULT_TYPEDEF_(0x802A000AL)")] + public const int UI_E_AMBIGUOUS_MATCH = unchecked((int)(0x802A000A)); + + [NativeTypeName("#define UI_E_FP_OVERFLOW _HRESULT_TYPEDEF_(0x802A000BL)")] + public const int UI_E_FP_OVERFLOW = unchecked((int)(0x802A000B)); + + [NativeTypeName("#define UI_E_WRONG_THREAD _HRESULT_TYPEDEF_(0x802A000CL)")] + public const int UI_E_WRONG_THREAD = unchecked((int)(0x802A000C)); + + [NativeTypeName("#define UI_E_STORYBOARD_ACTIVE _HRESULT_TYPEDEF_(0x802A0101L)")] + public const int UI_E_STORYBOARD_ACTIVE = unchecked((int)(0x802A0101)); + + [NativeTypeName("#define UI_E_STORYBOARD_NOT_PLAYING _HRESULT_TYPEDEF_(0x802A0102L)")] + public const int UI_E_STORYBOARD_NOT_PLAYING = unchecked((int)(0x802A0102)); + + [NativeTypeName("#define UI_E_START_KEYFRAME_AFTER_END _HRESULT_TYPEDEF_(0x802A0103L)")] + public const int UI_E_START_KEYFRAME_AFTER_END = unchecked((int)(0x802A0103)); + + [NativeTypeName("#define UI_E_END_KEYFRAME_NOT_DETERMINED _HRESULT_TYPEDEF_(0x802A0104L)")] + public const int UI_E_END_KEYFRAME_NOT_DETERMINED = unchecked((int)(0x802A0104)); + + [NativeTypeName("#define UI_E_LOOPS_OVERLAP _HRESULT_TYPEDEF_(0x802A0105L)")] + public const int UI_E_LOOPS_OVERLAP = unchecked((int)(0x802A0105)); + + [NativeTypeName("#define UI_E_TRANSITION_ALREADY_USED _HRESULT_TYPEDEF_(0x802A0106L)")] + public const int UI_E_TRANSITION_ALREADY_USED = unchecked((int)(0x802A0106)); + + [NativeTypeName("#define UI_E_TRANSITION_NOT_IN_STORYBOARD _HRESULT_TYPEDEF_(0x802A0107L)")] + public const int UI_E_TRANSITION_NOT_IN_STORYBOARD = unchecked((int)(0x802A0107)); + + [NativeTypeName("#define UI_E_TRANSITION_ECLIPSED _HRESULT_TYPEDEF_(0x802A0108L)")] + public const int UI_E_TRANSITION_ECLIPSED = unchecked((int)(0x802A0108)); + + [NativeTypeName("#define UI_E_TIME_BEFORE_LAST_UPDATE _HRESULT_TYPEDEF_(0x802A0109L)")] + public const int UI_E_TIME_BEFORE_LAST_UPDATE = unchecked((int)(0x802A0109)); + + [NativeTypeName("#define UI_E_TIMER_CLIENT_ALREADY_CONNECTED _HRESULT_TYPEDEF_(0x802A010AL)")] + public const int UI_E_TIMER_CLIENT_ALREADY_CONNECTED = unchecked((int)(0x802A010A)); + + [NativeTypeName("#define UI_E_INVALID_DIMENSION _HRESULT_TYPEDEF_(0x802A010BL)")] + public const int UI_E_INVALID_DIMENSION = unchecked((int)(0x802A010B)); + + [NativeTypeName("#define UI_E_PRIMITIVE_OUT_OF_BOUNDS _HRESULT_TYPEDEF_(0x802A010CL)")] + public const int UI_E_PRIMITIVE_OUT_OF_BOUNDS = unchecked((int)(0x802A010C)); + + [NativeTypeName("#define UI_E_WINDOW_CLOSED _HRESULT_TYPEDEF_(0x802A0201L)")] + public const int UI_E_WINDOW_CLOSED = unchecked((int)(0x802A0201)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/VIEW.cs b/sources/Interop/Windows/Windows/shared/winerror/VIEW.cs new file mode 100644 index 0000000000..d91ae8e426 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/VIEW.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class VIEW + { + [NativeTypeName("#define VIEW_E_FIRST 0x80040140L")] + public const uint VIEW_E_FIRST = 0x80040140; + + [NativeTypeName("#define VIEW_E_LAST 0x8004014FL")] + public const uint VIEW_E_LAST = 0x8004014F; + + [NativeTypeName("#define VIEW_S_FIRST 0x00040140L")] + public const int VIEW_S_FIRST = 0x00040140; + + [NativeTypeName("#define VIEW_S_LAST 0x0004014FL")] + public const int VIEW_S_LAST = 0x0004014F; + + [NativeTypeName("#define VIEW_E_DRAW _HRESULT_TYPEDEF_(0x80040140L)")] + public const int VIEW_E_DRAW = unchecked((int)(0x80040140)); + + [NativeTypeName("#define VIEW_S_ALREADY_FROZEN _HRESULT_TYPEDEF_(0x00040140L)")] + public const int VIEW_S_ALREADY_FROZEN = ((int)(0x00040140)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/VM.cs b/sources/Interop/Windows/Windows/shared/winerror/VM.cs new file mode 100644 index 0000000000..20d6da1a2c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/VM.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class VM + { + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PARTITION_STATE_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370500L)")] + public const int VM_SAVED_STATE_DUMP_E_PARTITION_STATE_NOT_FOUND = unchecked((int)(0xC0370500)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_GUEST_MEMORY_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370501L)")] + public const int VM_SAVED_STATE_DUMP_E_GUEST_MEMORY_NOT_FOUND = unchecked((int)(0xC0370501)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_NO_VP_FOUND_IN_PARTITION_STATE _HRESULT_TYPEDEF_(0xC0370502L)")] + public const int VM_SAVED_STATE_DUMP_E_NO_VP_FOUND_IN_PARTITION_STATE = unchecked((int)(0xC0370502)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_NESTED_VIRTUALIZATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0370503L)")] + public const int VM_SAVED_STATE_DUMP_E_NESTED_VIRTUALIZATION_NOT_SUPPORTED = unchecked((int)(0xC0370503)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_WINDOWS_KERNEL_IMAGE_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370504L)")] + public const int VM_SAVED_STATE_DUMP_E_WINDOWS_KERNEL_IMAGE_NOT_FOUND = unchecked((int)(0xC0370504)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PXE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370505L)")] + public const int VM_SAVED_STATE_DUMP_E_PXE_NOT_PRESENT = unchecked((int)(0xC0370505)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PDPTE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370506L)")] + public const int VM_SAVED_STATE_DUMP_E_PDPTE_NOT_PRESENT = unchecked((int)(0xC0370506)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PDE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370507L)")] + public const int VM_SAVED_STATE_DUMP_E_PDE_NOT_PRESENT = unchecked((int)(0xC0370507)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PTE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370508L)")] + public const int VM_SAVED_STATE_DUMP_E_PTE_NOT_PRESENT = unchecked((int)(0xC0370508)); + + [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_VP_VTL_NOT_ENABLED _HRESULT_TYPEDEF_(0xC0370509L)")] + public const int VM_SAVED_STATE_DUMP_E_VP_VTL_NOT_ENABLED = unchecked((int)(0xC0370509)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/WER.cs b/sources/Interop/Windows/Windows/shared/winerror/WER.cs new file mode 100644 index 0000000000..bde1cec86b --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/WER.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WER + { + [NativeTypeName("#define WER_S_REPORT_DEBUG _HRESULT_TYPEDEF_(0x001B0000L)")] + public const int WER_S_REPORT_DEBUG = ((int)(0x001B0000)); + + [NativeTypeName("#define WER_S_REPORT_UPLOADED _HRESULT_TYPEDEF_(0x001B0001L)")] + public const int WER_S_REPORT_UPLOADED = ((int)(0x001B0001)); + + [NativeTypeName("#define WER_S_REPORT_QUEUED _HRESULT_TYPEDEF_(0x001B0002L)")] + public const int WER_S_REPORT_QUEUED = ((int)(0x001B0002)); + + [NativeTypeName("#define WER_S_DISABLED _HRESULT_TYPEDEF_(0x001B0003L)")] + public const int WER_S_DISABLED = ((int)(0x001B0003)); + + [NativeTypeName("#define WER_S_SUSPENDED_UPLOAD _HRESULT_TYPEDEF_(0x001B0004L)")] + public const int WER_S_SUSPENDED_UPLOAD = ((int)(0x001B0004)); + + [NativeTypeName("#define WER_S_DISABLED_QUEUE _HRESULT_TYPEDEF_(0x001B0005L)")] + public const int WER_S_DISABLED_QUEUE = ((int)(0x001B0005)); + + [NativeTypeName("#define WER_S_DISABLED_ARCHIVE _HRESULT_TYPEDEF_(0x001B0006L)")] + public const int WER_S_DISABLED_ARCHIVE = ((int)(0x001B0006)); + + [NativeTypeName("#define WER_S_REPORT_ASYNC _HRESULT_TYPEDEF_(0x001B0007L)")] + public const int WER_S_REPORT_ASYNC = ((int)(0x001B0007)); + + [NativeTypeName("#define WER_S_IGNORE_ASSERT_INSTANCE _HRESULT_TYPEDEF_(0x001B0008L)")] + public const int WER_S_IGNORE_ASSERT_INSTANCE = ((int)(0x001B0008)); + + [NativeTypeName("#define WER_S_IGNORE_ALL_ASSERTS _HRESULT_TYPEDEF_(0x001B0009L)")] + public const int WER_S_IGNORE_ALL_ASSERTS = ((int)(0x001B0009)); + + [NativeTypeName("#define WER_S_ASSERT_CONTINUE _HRESULT_TYPEDEF_(0x001B000AL)")] + public const int WER_S_ASSERT_CONTINUE = ((int)(0x001B000A)); + + [NativeTypeName("#define WER_S_THROTTLED _HRESULT_TYPEDEF_(0x001B000BL)")] + public const int WER_S_THROTTLED = ((int)(0x001B000B)); + + [NativeTypeName("#define WER_S_REPORT_UPLOADED_CAB _HRESULT_TYPEDEF_(0x001B000CL)")] + public const int WER_S_REPORT_UPLOADED_CAB = ((int)(0x001B000C)); + + [NativeTypeName("#define WER_E_CRASH_FAILURE _HRESULT_TYPEDEF_(0x801B8000L)")] + public const int WER_E_CRASH_FAILURE = unchecked((int)(0x801B8000)); + + [NativeTypeName("#define WER_E_CANCELED _HRESULT_TYPEDEF_(0x801B8001L)")] + public const int WER_E_CANCELED = unchecked((int)(0x801B8001)); + + [NativeTypeName("#define WER_E_NETWORK_FAILURE _HRESULT_TYPEDEF_(0x801B8002L)")] + public const int WER_E_NETWORK_FAILURE = unchecked((int)(0x801B8002)); + + [NativeTypeName("#define WER_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x801B8003L)")] + public const int WER_E_NOT_INITIALIZED = unchecked((int)(0x801B8003)); + + [NativeTypeName("#define WER_E_ALREADY_REPORTING _HRESULT_TYPEDEF_(0x801B8004L)")] + public const int WER_E_ALREADY_REPORTING = unchecked((int)(0x801B8004)); + + [NativeTypeName("#define WER_E_DUMP_THROTTLED _HRESULT_TYPEDEF_(0x801B8005L)")] + public const int WER_E_DUMP_THROTTLED = unchecked((int)(0x801B8005)); + + [NativeTypeName("#define WER_E_INSUFFICIENT_CONSENT _HRESULT_TYPEDEF_(0x801B8006L)")] + public const int WER_E_INSUFFICIENT_CONSENT = unchecked((int)(0x801B8006)); + + [NativeTypeName("#define WER_E_TOO_HEAVY _HRESULT_TYPEDEF_(0x801B8007L)")] + public const int WER_E_TOO_HEAVY = unchecked((int)(0x801B8007)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/WHV.cs b/sources/Interop/Windows/Windows/shared/winerror/WHV.cs new file mode 100644 index 0000000000..08f40c27b1 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/WHV.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WHV + { + [NativeTypeName("#define WHV_E_UNKNOWN_CAPABILITY _HRESULT_TYPEDEF_(0x80370300L)")] + public const int WHV_E_UNKNOWN_CAPABILITY = unchecked((int)(0x80370300)); + + [NativeTypeName("#define WHV_E_INSUFFICIENT_BUFFER _HRESULT_TYPEDEF_(0x80370301L)")] + public const int WHV_E_INSUFFICIENT_BUFFER = unchecked((int)(0x80370301)); + + [NativeTypeName("#define WHV_E_UNKNOWN_PROPERTY _HRESULT_TYPEDEF_(0x80370302L)")] + public const int WHV_E_UNKNOWN_PROPERTY = unchecked((int)(0x80370302)); + + [NativeTypeName("#define WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG _HRESULT_TYPEDEF_(0x80370303L)")] + public const int WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG = unchecked((int)(0x80370303)); + + [NativeTypeName("#define WHV_E_INVALID_PARTITION_CONFIG _HRESULT_TYPEDEF_(0x80370304L)")] + public const int WHV_E_INVALID_PARTITION_CONFIG = unchecked((int)(0x80370304)); + + [NativeTypeName("#define WHV_E_GPA_RANGE_NOT_FOUND _HRESULT_TYPEDEF_(0x80370305L)")] + public const int WHV_E_GPA_RANGE_NOT_FOUND = unchecked((int)(0x80370305)); + + [NativeTypeName("#define WHV_E_VP_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80370306L)")] + public const int WHV_E_VP_ALREADY_EXISTS = unchecked((int)(0x80370306)); + + [NativeTypeName("#define WHV_E_VP_DOES_NOT_EXIST _HRESULT_TYPEDEF_(0x80370307L)")] + public const int WHV_E_VP_DOES_NOT_EXIST = unchecked((int)(0x80370307)); + + [NativeTypeName("#define WHV_E_INVALID_VP_STATE _HRESULT_TYPEDEF_(0x80370308L)")] + public const int WHV_E_INVALID_VP_STATE = unchecked((int)(0x80370308)); + + [NativeTypeName("#define WHV_E_INVALID_VP_REGISTER_NAME _HRESULT_TYPEDEF_(0x80370309L)")] + public const int WHV_E_INVALID_VP_REGISTER_NAME = unchecked((int)(0x80370309)); + + [NativeTypeName("#define WHV_E_UNSUPPORTED_PROCESSOR_CONFIG _HRESULT_TYPEDEF_(0x80370310L)")] + public const int WHV_E_UNSUPPORTED_PROCESSOR_CONFIG = unchecked((int)(0x80370310)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/WPN.cs b/sources/Interop/Windows/Windows/shared/winerror/WPN.cs new file mode 100644 index 0000000000..45c4143ebb --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/WPN.cs @@ -0,0 +1,124 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WPN + { + [NativeTypeName("#define WPN_E_CHANNEL_CLOSED _HRESULT_TYPEDEF_(0x803E0100L)")] + public const int WPN_E_CHANNEL_CLOSED = unchecked((int)(0x803E0100)); + + [NativeTypeName("#define WPN_E_CHANNEL_REQUEST_NOT_COMPLETE _HRESULT_TYPEDEF_(0x803E0101L)")] + public const int WPN_E_CHANNEL_REQUEST_NOT_COMPLETE = unchecked((int)(0x803E0101)); + + [NativeTypeName("#define WPN_E_INVALID_APP _HRESULT_TYPEDEF_(0x803E0102L)")] + public const int WPN_E_INVALID_APP = unchecked((int)(0x803E0102)); + + [NativeTypeName("#define WPN_E_OUTSTANDING_CHANNEL_REQUEST _HRESULT_TYPEDEF_(0x803E0103L)")] + public const int WPN_E_OUTSTANDING_CHANNEL_REQUEST = unchecked((int)(0x803E0103)); + + [NativeTypeName("#define WPN_E_DUPLICATE_CHANNEL _HRESULT_TYPEDEF_(0x803E0104L)")] + public const int WPN_E_DUPLICATE_CHANNEL = unchecked((int)(0x803E0104)); + + [NativeTypeName("#define WPN_E_PLATFORM_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E0105L)")] + public const int WPN_E_PLATFORM_UNAVAILABLE = unchecked((int)(0x803E0105)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_POSTED _HRESULT_TYPEDEF_(0x803E0106L)")] + public const int WPN_E_NOTIFICATION_POSTED = unchecked((int)(0x803E0106)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_HIDDEN _HRESULT_TYPEDEF_(0x803E0107L)")] + public const int WPN_E_NOTIFICATION_HIDDEN = unchecked((int)(0x803E0107)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_NOT_POSTED _HRESULT_TYPEDEF_(0x803E0108L)")] + public const int WPN_E_NOTIFICATION_NOT_POSTED = unchecked((int)(0x803E0108)); + + [NativeTypeName("#define WPN_E_CLOUD_DISABLED _HRESULT_TYPEDEF_(0x803E0109L)")] + public const int WPN_E_CLOUD_DISABLED = unchecked((int)(0x803E0109)); + + [NativeTypeName("#define WPN_E_CLOUD_INCAPABLE _HRESULT_TYPEDEF_(0x803E0110L)")] + public const int WPN_E_CLOUD_INCAPABLE = unchecked((int)(0x803E0110)); + + [NativeTypeName("#define WPN_E_CLOUD_AUTH_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E011AL)")] + public const int WPN_E_CLOUD_AUTH_UNAVAILABLE = unchecked((int)(0x803E011A)); + + [NativeTypeName("#define WPN_E_CLOUD_SERVICE_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E011BL)")] + public const int WPN_E_CLOUD_SERVICE_UNAVAILABLE = unchecked((int)(0x803E011B)); + + [NativeTypeName("#define WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION _HRESULT_TYPEDEF_(0x803E011CL)")] + public const int WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION = unchecked((int)(0x803E011C)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_DISABLED _HRESULT_TYPEDEF_(0x803E0111L)")] + public const int WPN_E_NOTIFICATION_DISABLED = unchecked((int)(0x803E0111)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_INCAPABLE _HRESULT_TYPEDEF_(0x803E0112L)")] + public const int WPN_E_NOTIFICATION_INCAPABLE = unchecked((int)(0x803E0112)); + + [NativeTypeName("#define WPN_E_INTERNET_INCAPABLE _HRESULT_TYPEDEF_(0x803E0113L)")] + public const int WPN_E_INTERNET_INCAPABLE = unchecked((int)(0x803E0113)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_TYPE_DISABLED _HRESULT_TYPEDEF_(0x803E0114L)")] + public const int WPN_E_NOTIFICATION_TYPE_DISABLED = unchecked((int)(0x803E0114)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_SIZE _HRESULT_TYPEDEF_(0x803E0115L)")] + public const int WPN_E_NOTIFICATION_SIZE = unchecked((int)(0x803E0115)); + + [NativeTypeName("#define WPN_E_TAG_SIZE _HRESULT_TYPEDEF_(0x803E0116L)")] + public const int WPN_E_TAG_SIZE = unchecked((int)(0x803E0116)); + + [NativeTypeName("#define WPN_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x803E0117L)")] + public const int WPN_E_ACCESS_DENIED = unchecked((int)(0x803E0117)); + + [NativeTypeName("#define WPN_E_DUPLICATE_REGISTRATION _HRESULT_TYPEDEF_(0x803E0118L)")] + public const int WPN_E_DUPLICATE_REGISTRATION = unchecked((int)(0x803E0118)); + + [NativeTypeName("#define WPN_E_PUSH_NOTIFICATION_INCAPABLE _HRESULT_TYPEDEF_(0x803E0119L)")] + public const int WPN_E_PUSH_NOTIFICATION_INCAPABLE = unchecked((int)(0x803E0119)); + + [NativeTypeName("#define WPN_E_DEV_ID_SIZE _HRESULT_TYPEDEF_(0x803E0120L)")] + public const int WPN_E_DEV_ID_SIZE = unchecked((int)(0x803E0120)); + + [NativeTypeName("#define WPN_E_TAG_ALPHANUMERIC _HRESULT_TYPEDEF_(0x803E012AL)")] + public const int WPN_E_TAG_ALPHANUMERIC = unchecked((int)(0x803E012A)); + + [NativeTypeName("#define WPN_E_INVALID_HTTP_STATUS_CODE _HRESULT_TYPEDEF_(0x803E012BL)")] + public const int WPN_E_INVALID_HTTP_STATUS_CODE = unchecked((int)(0x803E012B)); + + [NativeTypeName("#define WPN_E_OUT_OF_SESSION _HRESULT_TYPEDEF_(0x803E0200L)")] + public const int WPN_E_OUT_OF_SESSION = unchecked((int)(0x803E0200)); + + [NativeTypeName("#define WPN_E_POWER_SAVE _HRESULT_TYPEDEF_(0x803E0201L)")] + public const int WPN_E_POWER_SAVE = unchecked((int)(0x803E0201)); + + [NativeTypeName("#define WPN_E_IMAGE_NOT_FOUND_IN_CACHE _HRESULT_TYPEDEF_(0x803E0202L)")] + public const int WPN_E_IMAGE_NOT_FOUND_IN_CACHE = unchecked((int)(0x803E0202)); + + [NativeTypeName("#define WPN_E_ALL_URL_NOT_COMPLETED _HRESULT_TYPEDEF_(0x803E0203L)")] + public const int WPN_E_ALL_URL_NOT_COMPLETED = unchecked((int)(0x803E0203)); + + [NativeTypeName("#define WPN_E_INVALID_CLOUD_IMAGE _HRESULT_TYPEDEF_(0x803E0204L)")] + public const int WPN_E_INVALID_CLOUD_IMAGE = unchecked((int)(0x803E0204)); + + [NativeTypeName("#define WPN_E_NOTIFICATION_ID_MATCHED _HRESULT_TYPEDEF_(0x803E0205L)")] + public const int WPN_E_NOTIFICATION_ID_MATCHED = unchecked((int)(0x803E0205)); + + [NativeTypeName("#define WPN_E_CALLBACK_ALREADY_REGISTERED _HRESULT_TYPEDEF_(0x803E0206L)")] + public const int WPN_E_CALLBACK_ALREADY_REGISTERED = unchecked((int)(0x803E0206)); + + [NativeTypeName("#define WPN_E_TOAST_NOTIFICATION_DROPPED _HRESULT_TYPEDEF_(0x803E0207L)")] + public const int WPN_E_TOAST_NOTIFICATION_DROPPED = unchecked((int)(0x803E0207)); + + [NativeTypeName("#define WPN_E_STORAGE_LOCKED _HRESULT_TYPEDEF_(0x803E0208L)")] + public const int WPN_E_STORAGE_LOCKED = unchecked((int)(0x803E0208)); + + [NativeTypeName("#define WPN_E_GROUP_SIZE _HRESULT_TYPEDEF_(0x803E0209L)")] + public const int WPN_E_GROUP_SIZE = unchecked((int)(0x803E0209)); + + [NativeTypeName("#define WPN_E_GROUP_ALPHANUMERIC _HRESULT_TYPEDEF_(0x803E020AL)")] + public const int WPN_E_GROUP_ALPHANUMERIC = unchecked((int)(0x803E020A)); + + [NativeTypeName("#define WPN_E_CLOUD_DISABLED_FOR_APP _HRESULT_TYPEDEF_(0x803E020BL)")] + public const int WPN_E_CLOUD_DISABLED_FOR_APP = unchecked((int)(0x803E020B)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/WSA.cs b/sources/Interop/Windows/Windows/shared/winerror/WSA.cs new file mode 100644 index 0000000000..81f5e81182 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/winerror/WSA.cs @@ -0,0 +1,103 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/winerror.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WSA + { + [NativeTypeName("#define WSA_E_NO_MORE 10110L")] + public const int WSA_E_NO_MORE = 10110; + + [NativeTypeName("#define WSA_E_CANCELLED 10111L")] + public const int WSA_E_CANCELLED = 10111; + + [NativeTypeName("#define WSA_QOS_RECEIVERS 11005L")] + public const int WSA_QOS_RECEIVERS = 11005; + + [NativeTypeName("#define WSA_QOS_SENDERS 11006L")] + public const int WSA_QOS_SENDERS = 11006; + + [NativeTypeName("#define WSA_QOS_NO_SENDERS 11007L")] + public const int WSA_QOS_NO_SENDERS = 11007; + + [NativeTypeName("#define WSA_QOS_NO_RECEIVERS 11008L")] + public const int WSA_QOS_NO_RECEIVERS = 11008; + + [NativeTypeName("#define WSA_QOS_REQUEST_CONFIRMED 11009L")] + public const int WSA_QOS_REQUEST_CONFIRMED = 11009; + + [NativeTypeName("#define WSA_QOS_ADMISSION_FAILURE 11010L")] + public const int WSA_QOS_ADMISSION_FAILURE = 11010; + + [NativeTypeName("#define WSA_QOS_POLICY_FAILURE 11011L")] + public const int WSA_QOS_POLICY_FAILURE = 11011; + + [NativeTypeName("#define WSA_QOS_BAD_STYLE 11012L")] + public const int WSA_QOS_BAD_STYLE = 11012; + + [NativeTypeName("#define WSA_QOS_BAD_OBJECT 11013L")] + public const int WSA_QOS_BAD_OBJECT = 11013; + + [NativeTypeName("#define WSA_QOS_TRAFFIC_CTRL_ERROR 11014L")] + public const int WSA_QOS_TRAFFIC_CTRL_ERROR = 11014; + + [NativeTypeName("#define WSA_QOS_GENERIC_ERROR 11015L")] + public const int WSA_QOS_GENERIC_ERROR = 11015; + + [NativeTypeName("#define WSA_QOS_ESERVICETYPE 11016L")] + public const int WSA_QOS_ESERVICETYPE = 11016; + + [NativeTypeName("#define WSA_QOS_EFLOWSPEC 11017L")] + public const int WSA_QOS_EFLOWSPEC = 11017; + + [NativeTypeName("#define WSA_QOS_EPROVSPECBUF 11018L")] + public const int WSA_QOS_EPROVSPECBUF = 11018; + + [NativeTypeName("#define WSA_QOS_EFILTERSTYLE 11019L")] + public const int WSA_QOS_EFILTERSTYLE = 11019; + + [NativeTypeName("#define WSA_QOS_EFILTERTYPE 11020L")] + public const int WSA_QOS_EFILTERTYPE = 11020; + + [NativeTypeName("#define WSA_QOS_EFILTERCOUNT 11021L")] + public const int WSA_QOS_EFILTERCOUNT = 11021; + + [NativeTypeName("#define WSA_QOS_EOBJLENGTH 11022L")] + public const int WSA_QOS_EOBJLENGTH = 11022; + + [NativeTypeName("#define WSA_QOS_EFLOWCOUNT 11023L")] + public const int WSA_QOS_EFLOWCOUNT = 11023; + + [NativeTypeName("#define WSA_QOS_EUNKOWNPSOBJ 11024L")] + public const int WSA_QOS_EUNKOWNPSOBJ = 11024; + + [NativeTypeName("#define WSA_QOS_EPOLICYOBJ 11025L")] + public const int WSA_QOS_EPOLICYOBJ = 11025; + + [NativeTypeName("#define WSA_QOS_EFLOWDESC 11026L")] + public const int WSA_QOS_EFLOWDESC = 11026; + + [NativeTypeName("#define WSA_QOS_EPSFLOWSPEC 11027L")] + public const int WSA_QOS_EPSFLOWSPEC = 11027; + + [NativeTypeName("#define WSA_QOS_EPSFILTERSPEC 11028L")] + public const int WSA_QOS_EPSFILTERSPEC = 11028; + + [NativeTypeName("#define WSA_QOS_ESDMODEOBJ 11029L")] + public const int WSA_QOS_ESDMODEOBJ = 11029; + + [NativeTypeName("#define WSA_QOS_ESHAPERATEOBJ 11030L")] + public const int WSA_QOS_ESHAPERATEOBJ = 11030; + + [NativeTypeName("#define WSA_QOS_RESERVED_PETYPE 11031L")] + public const int WSA_QOS_RESERVED_PETYPE = 11031; + + [NativeTypeName("#define WSA_SECURE_HOST_NOT_FOUND 11032L")] + public const int WSA_SECURE_HOST_NOT_FOUND = 11032; + + [NativeTypeName("#define WSA_IPSEC_NAME_POLICY_ERROR 11033L")] + public const int WSA_IPSEC_NAME_POLICY_ERROR = 11033; + } +} diff --git a/sources/Interop/Windows/Windows/shared/winerror/Windows.cs b/sources/Interop/Windows/Windows/shared/winerror/Windows.cs index 9da9450bdf..f50d98a93c 100644 --- a/sources/Interop/Windows/Windows/shared/winerror/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/winerror/Windows.cs @@ -39,114 +39,6 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define OR_INVALID_SET 1912L")] public const int OR_INVALID_SET = 1912; - [NativeTypeName("#define PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED 4050L")] - public const int PEERDIST_ERROR_CONTENTINFO_VERSION_UNSUPPORTED = 4050; - - [NativeTypeName("#define PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO 4051L")] - public const int PEERDIST_ERROR_CANNOT_PARSE_CONTENTINFO = 4051; - - [NativeTypeName("#define PEERDIST_ERROR_MISSING_DATA 4052L")] - public const int PEERDIST_ERROR_MISSING_DATA = 4052; - - [NativeTypeName("#define PEERDIST_ERROR_NO_MORE 4053L")] - public const int PEERDIST_ERROR_NO_MORE = 4053; - - [NativeTypeName("#define PEERDIST_ERROR_NOT_INITIALIZED 4054L")] - public const int PEERDIST_ERROR_NOT_INITIALIZED = 4054; - - [NativeTypeName("#define PEERDIST_ERROR_ALREADY_INITIALIZED 4055L")] - public const int PEERDIST_ERROR_ALREADY_INITIALIZED = 4055; - - [NativeTypeName("#define PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS 4056L")] - public const int PEERDIST_ERROR_SHUTDOWN_IN_PROGRESS = 4056; - - [NativeTypeName("#define PEERDIST_ERROR_INVALIDATED 4057L")] - public const int PEERDIST_ERROR_INVALIDATED = 4057; - - [NativeTypeName("#define PEERDIST_ERROR_ALREADY_EXISTS 4058L")] - public const int PEERDIST_ERROR_ALREADY_EXISTS = 4058; - - [NativeTypeName("#define PEERDIST_ERROR_OPERATION_NOTFOUND 4059L")] - public const int PEERDIST_ERROR_OPERATION_NOTFOUND = 4059; - - [NativeTypeName("#define PEERDIST_ERROR_ALREADY_COMPLETED 4060L")] - public const int PEERDIST_ERROR_ALREADY_COMPLETED = 4060; - - [NativeTypeName("#define PEERDIST_ERROR_OUT_OF_BOUNDS 4061L")] - public const int PEERDIST_ERROR_OUT_OF_BOUNDS = 4061; - - [NativeTypeName("#define PEERDIST_ERROR_VERSION_UNSUPPORTED 4062L")] - public const int PEERDIST_ERROR_VERSION_UNSUPPORTED = 4062; - - [NativeTypeName("#define PEERDIST_ERROR_INVALID_CONFIGURATION 4063L")] - public const int PEERDIST_ERROR_INVALID_CONFIGURATION = 4063; - - [NativeTypeName("#define PEERDIST_ERROR_NOT_LICENSED 4064L")] - public const int PEERDIST_ERROR_NOT_LICENSED = 4064; - - [NativeTypeName("#define PEERDIST_ERROR_SERVICE_UNAVAILABLE 4065L")] - public const int PEERDIST_ERROR_SERVICE_UNAVAILABLE = 4065; - - [NativeTypeName("#define PEERDIST_ERROR_TRUST_FAILURE 4066L")] - public const int PEERDIST_ERROR_TRUST_FAILURE = 4066; - - [NativeTypeName("#define SCHED_E_SERVICE_NOT_LOCALSYSTEM 6200L")] - public const int SCHED_E_SERVICE_NOT_LOCALSYSTEM = 6200; - - [NativeTypeName("#define FRS_ERR_INVALID_API_SEQUENCE 8001L")] - public const int FRS_ERR_INVALID_API_SEQUENCE = 8001; - - [NativeTypeName("#define FRS_ERR_STARTING_SERVICE 8002L")] - public const int FRS_ERR_STARTING_SERVICE = 8002; - - [NativeTypeName("#define FRS_ERR_STOPPING_SERVICE 8003L")] - public const int FRS_ERR_STOPPING_SERVICE = 8003; - - [NativeTypeName("#define FRS_ERR_INTERNAL_API 8004L")] - public const int FRS_ERR_INTERNAL_API = 8004; - - [NativeTypeName("#define FRS_ERR_INTERNAL 8005L")] - public const int FRS_ERR_INTERNAL = 8005; - - [NativeTypeName("#define FRS_ERR_SERVICE_COMM 8006L")] - public const int FRS_ERR_SERVICE_COMM = 8006; - - [NativeTypeName("#define FRS_ERR_INSUFFICIENT_PRIV 8007L")] - public const int FRS_ERR_INSUFFICIENT_PRIV = 8007; - - [NativeTypeName("#define FRS_ERR_AUTHENTICATION 8008L")] - public const int FRS_ERR_AUTHENTICATION = 8008; - - [NativeTypeName("#define FRS_ERR_PARENT_INSUFFICIENT_PRIV 8009L")] - public const int FRS_ERR_PARENT_INSUFFICIENT_PRIV = 8009; - - [NativeTypeName("#define FRS_ERR_PARENT_AUTHENTICATION 8010L")] - public const int FRS_ERR_PARENT_AUTHENTICATION = 8010; - - [NativeTypeName("#define FRS_ERR_CHILD_TO_PARENT_COMM 8011L")] - public const int FRS_ERR_CHILD_TO_PARENT_COMM = 8011; - - [NativeTypeName("#define FRS_ERR_PARENT_TO_CHILD_COMM 8012L")] - public const int FRS_ERR_PARENT_TO_CHILD_COMM = 8012; - - [NativeTypeName("#define FRS_ERR_SYSVOL_POPULATE 8013L")] - public const int FRS_ERR_SYSVOL_POPULATE = 8013; - - [NativeTypeName("#define FRS_ERR_SYSVOL_POPULATE_TIMEOUT 8014L")] - public const int FRS_ERR_SYSVOL_POPULATE_TIMEOUT = 8014; - - [NativeTypeName("#define FRS_ERR_SYSVOL_IS_BUSY 8015L")] - public const int FRS_ERR_SYSVOL_IS_BUSY = 8015; - - [NativeTypeName("#define FRS_ERR_SYSVOL_DEMOTE 8016L")] - public const int FRS_ERR_SYSVOL_DEMOTE = 8016; - - [NativeTypeName("#define FRS_ERR_INVALID_SERVICE_PARAMETER 8017L")] - public const int FRS_ERR_INVALID_SERVICE_PARAMETER = 8017; - - [NativeTypeName("#define DS_S_SUCCESS NO_ERROR")] - public const int DS_S_SUCCESS = 0; - [NativeTypeName("#define WSABASEERR 10000")] public const int WSABASEERR = 10000; @@ -315,12 +207,6 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define WSATYPE_NOT_FOUND 10109L")] public const int WSATYPE_NOT_FOUND = 10109; - [NativeTypeName("#define WSA_E_NO_MORE 10110L")] - public const int WSA_E_NO_MORE = 10110; - - [NativeTypeName("#define WSA_E_CANCELLED 10111L")] - public const int WSA_E_CANCELLED = 10111; - [NativeTypeName("#define WSAEREFUSED 10112L")] public const int WSAEREFUSED = 10112; @@ -336,93 +222,6 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define WSANO_DATA 11004L")] public const int WSANO_DATA = 11004; - [NativeTypeName("#define WSA_QOS_RECEIVERS 11005L")] - public const int WSA_QOS_RECEIVERS = 11005; - - [NativeTypeName("#define WSA_QOS_SENDERS 11006L")] - public const int WSA_QOS_SENDERS = 11006; - - [NativeTypeName("#define WSA_QOS_NO_SENDERS 11007L")] - public const int WSA_QOS_NO_SENDERS = 11007; - - [NativeTypeName("#define WSA_QOS_NO_RECEIVERS 11008L")] - public const int WSA_QOS_NO_RECEIVERS = 11008; - - [NativeTypeName("#define WSA_QOS_REQUEST_CONFIRMED 11009L")] - public const int WSA_QOS_REQUEST_CONFIRMED = 11009; - - [NativeTypeName("#define WSA_QOS_ADMISSION_FAILURE 11010L")] - public const int WSA_QOS_ADMISSION_FAILURE = 11010; - - [NativeTypeName("#define WSA_QOS_POLICY_FAILURE 11011L")] - public const int WSA_QOS_POLICY_FAILURE = 11011; - - [NativeTypeName("#define WSA_QOS_BAD_STYLE 11012L")] - public const int WSA_QOS_BAD_STYLE = 11012; - - [NativeTypeName("#define WSA_QOS_BAD_OBJECT 11013L")] - public const int WSA_QOS_BAD_OBJECT = 11013; - - [NativeTypeName("#define WSA_QOS_TRAFFIC_CTRL_ERROR 11014L")] - public const int WSA_QOS_TRAFFIC_CTRL_ERROR = 11014; - - [NativeTypeName("#define WSA_QOS_GENERIC_ERROR 11015L")] - public const int WSA_QOS_GENERIC_ERROR = 11015; - - [NativeTypeName("#define WSA_QOS_ESERVICETYPE 11016L")] - public const int WSA_QOS_ESERVICETYPE = 11016; - - [NativeTypeName("#define WSA_QOS_EFLOWSPEC 11017L")] - public const int WSA_QOS_EFLOWSPEC = 11017; - - [NativeTypeName("#define WSA_QOS_EPROVSPECBUF 11018L")] - public const int WSA_QOS_EPROVSPECBUF = 11018; - - [NativeTypeName("#define WSA_QOS_EFILTERSTYLE 11019L")] - public const int WSA_QOS_EFILTERSTYLE = 11019; - - [NativeTypeName("#define WSA_QOS_EFILTERTYPE 11020L")] - public const int WSA_QOS_EFILTERTYPE = 11020; - - [NativeTypeName("#define WSA_QOS_EFILTERCOUNT 11021L")] - public const int WSA_QOS_EFILTERCOUNT = 11021; - - [NativeTypeName("#define WSA_QOS_EOBJLENGTH 11022L")] - public const int WSA_QOS_EOBJLENGTH = 11022; - - [NativeTypeName("#define WSA_QOS_EFLOWCOUNT 11023L")] - public const int WSA_QOS_EFLOWCOUNT = 11023; - - [NativeTypeName("#define WSA_QOS_EUNKOWNPSOBJ 11024L")] - public const int WSA_QOS_EUNKOWNPSOBJ = 11024; - - [NativeTypeName("#define WSA_QOS_EPOLICYOBJ 11025L")] - public const int WSA_QOS_EPOLICYOBJ = 11025; - - [NativeTypeName("#define WSA_QOS_EFLOWDESC 11026L")] - public const int WSA_QOS_EFLOWDESC = 11026; - - [NativeTypeName("#define WSA_QOS_EPSFLOWSPEC 11027L")] - public const int WSA_QOS_EPSFLOWSPEC = 11027; - - [NativeTypeName("#define WSA_QOS_EPSFILTERSPEC 11028L")] - public const int WSA_QOS_EPSFILTERSPEC = 11028; - - [NativeTypeName("#define WSA_QOS_ESDMODEOBJ 11029L")] - public const int WSA_QOS_ESDMODEOBJ = 11029; - - [NativeTypeName("#define WSA_QOS_ESHAPERATEOBJ 11030L")] - public const int WSA_QOS_ESHAPERATEOBJ = 11030; - - [NativeTypeName("#define WSA_QOS_RESERVED_PETYPE 11031L")] - public const int WSA_QOS_RESERVED_PETYPE = 11031; - - [NativeTypeName("#define WSA_SECURE_HOST_NOT_FOUND 11032L")] - public const int WSA_SECURE_HOST_NOT_FOUND = 11032; - - [NativeTypeName("#define WSA_IPSEC_NAME_POLICY_ERROR 11033L")] - public const int WSA_IPSEC_NAME_POLICY_ERROR = 11033; - [NativeTypeName("#define WARNING_IPSEC_MM_POLICY_PRUNED 13024L")] public const int WARNING_IPSEC_MM_POLICY_PRUNED = 13024; @@ -474,177 +273,6 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define NOERROR 0")] public const int NOERROR = 0; - [NativeTypeName("#define RO_E_METADATA_NAME_NOT_FOUND _HRESULT_TYPEDEF_(0x8000000FL)")] - public const int RO_E_METADATA_NAME_NOT_FOUND = unchecked((int)(0x8000000F)); - - [NativeTypeName("#define RO_E_METADATA_NAME_IS_NAMESPACE _HRESULT_TYPEDEF_(0x80000010L)")] - public const int RO_E_METADATA_NAME_IS_NAMESPACE = unchecked((int)(0x80000010)); - - [NativeTypeName("#define RO_E_METADATA_INVALID_TYPE_FORMAT _HRESULT_TYPEDEF_(0x80000011L)")] - public const int RO_E_METADATA_INVALID_TYPE_FORMAT = unchecked((int)(0x80000011)); - - [NativeTypeName("#define RO_E_INVALID_METADATA_FILE _HRESULT_TYPEDEF_(0x80000012L)")] - public const int RO_E_INVALID_METADATA_FILE = unchecked((int)(0x80000012)); - - [NativeTypeName("#define RO_E_CLOSED _HRESULT_TYPEDEF_(0x80000013L)")] - public const int RO_E_CLOSED = unchecked((int)(0x80000013)); - - [NativeTypeName("#define RO_E_EXCLUSIVE_WRITE _HRESULT_TYPEDEF_(0x80000014L)")] - public const int RO_E_EXCLUSIVE_WRITE = unchecked((int)(0x80000014)); - - [NativeTypeName("#define RO_E_CHANGE_NOTIFICATION_IN_PROGRESS _HRESULT_TYPEDEF_(0x80000015L)")] - public const int RO_E_CHANGE_NOTIFICATION_IN_PROGRESS = unchecked((int)(0x80000015)); - - [NativeTypeName("#define RO_E_ERROR_STRING_NOT_FOUND _HRESULT_TYPEDEF_(0x80000016L)")] - public const int RO_E_ERROR_STRING_NOT_FOUND = unchecked((int)(0x80000016)); - - [NativeTypeName("#define RO_E_MUST_BE_AGILE _HRESULT_TYPEDEF_(0x8000001CL)")] - public const int RO_E_MUST_BE_AGILE = unchecked((int)(0x8000001C)); - - [NativeTypeName("#define RO_E_UNSUPPORTED_FROM_MTA _HRESULT_TYPEDEF_(0x8000001DL)")] - public const int RO_E_UNSUPPORTED_FROM_MTA = unchecked((int)(0x8000001D)); - - [NativeTypeName("#define RO_E_COMMITTED _HRESULT_TYPEDEF_(0x8000001EL)")] - public const int RO_E_COMMITTED = unchecked((int)(0x8000001E)); - - [NativeTypeName("#define RO_E_BLOCKED_CROSS_ASTA_CALL _HRESULT_TYPEDEF_(0x8000001FL)")] - public const int RO_E_BLOCKED_CROSS_ASTA_CALL = unchecked((int)(0x8000001F)); - - [NativeTypeName("#define RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER _HRESULT_TYPEDEF_(0x80000020L)")] - public const int RO_E_CANNOT_ACTIVATE_FULL_TRUST_SERVER = unchecked((int)(0x80000020)); - - [NativeTypeName("#define RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER _HRESULT_TYPEDEF_(0x80000021L)")] - public const int RO_E_CANNOT_ACTIVATE_UNIVERSAL_APPLICATION_SERVER = unchecked((int)(0x80000021)); - - [NativeTypeName("#define S_OK ((HRESULT)0L)")] - public const int S_OK = ((int)(0)); - - [NativeTypeName("#define S_FALSE ((HRESULT)1L)")] - public const int S_FALSE = ((int)(1)); - - [NativeTypeName("#define OLE_E_FIRST ((HRESULT)0x80040000L)")] - public const int OLE_E_FIRST = unchecked((int)(0x80040000)); - - [NativeTypeName("#define OLE_E_LAST ((HRESULT)0x800400FFL)")] - public const int OLE_E_LAST = unchecked((int)(0x800400FF)); - - [NativeTypeName("#define OLE_S_FIRST ((HRESULT)0x00040000L)")] - public const int OLE_S_FIRST = ((int)(0x00040000)); - - [NativeTypeName("#define OLE_S_LAST ((HRESULT)0x000400FFL)")] - public const int OLE_S_LAST = ((int)(0x000400FF)); - - [NativeTypeName("#define OLE_E_OLEVERB _HRESULT_TYPEDEF_(0x80040000L)")] - public const int OLE_E_OLEVERB = unchecked((int)(0x80040000)); - - [NativeTypeName("#define OLE_E_ADVF _HRESULT_TYPEDEF_(0x80040001L)")] - public const int OLE_E_ADVF = unchecked((int)(0x80040001)); - - [NativeTypeName("#define OLE_E_ENUM_NOMORE _HRESULT_TYPEDEF_(0x80040002L)")] - public const int OLE_E_ENUM_NOMORE = unchecked((int)(0x80040002)); - - [NativeTypeName("#define OLE_E_ADVISENOTSUPPORTED _HRESULT_TYPEDEF_(0x80040003L)")] - public const int OLE_E_ADVISENOTSUPPORTED = unchecked((int)(0x80040003)); - - [NativeTypeName("#define OLE_E_NOCONNECTION _HRESULT_TYPEDEF_(0x80040004L)")] - public const int OLE_E_NOCONNECTION = unchecked((int)(0x80040004)); - - [NativeTypeName("#define OLE_E_NOTRUNNING _HRESULT_TYPEDEF_(0x80040005L)")] - public const int OLE_E_NOTRUNNING = unchecked((int)(0x80040005)); - - [NativeTypeName("#define OLE_E_NOCACHE _HRESULT_TYPEDEF_(0x80040006L)")] - public const int OLE_E_NOCACHE = unchecked((int)(0x80040006)); - - [NativeTypeName("#define OLE_E_BLANK _HRESULT_TYPEDEF_(0x80040007L)")] - public const int OLE_E_BLANK = unchecked((int)(0x80040007)); - - [NativeTypeName("#define OLE_E_CLASSDIFF _HRESULT_TYPEDEF_(0x80040008L)")] - public const int OLE_E_CLASSDIFF = unchecked((int)(0x80040008)); - - [NativeTypeName("#define OLE_E_CANT_GETMONIKER _HRESULT_TYPEDEF_(0x80040009L)")] - public const int OLE_E_CANT_GETMONIKER = unchecked((int)(0x80040009)); - - [NativeTypeName("#define OLE_E_CANT_BINDTOSOURCE _HRESULT_TYPEDEF_(0x8004000AL)")] - public const int OLE_E_CANT_BINDTOSOURCE = unchecked((int)(0x8004000A)); - - [NativeTypeName("#define OLE_E_STATIC _HRESULT_TYPEDEF_(0x8004000BL)")] - public const int OLE_E_STATIC = unchecked((int)(0x8004000B)); - - [NativeTypeName("#define OLE_E_PROMPTSAVECANCELLED _HRESULT_TYPEDEF_(0x8004000CL)")] - public const int OLE_E_PROMPTSAVECANCELLED = unchecked((int)(0x8004000C)); - - [NativeTypeName("#define OLE_E_INVALIDRECT _HRESULT_TYPEDEF_(0x8004000DL)")] - public const int OLE_E_INVALIDRECT = unchecked((int)(0x8004000D)); - - [NativeTypeName("#define OLE_E_WRONGCOMPOBJ _HRESULT_TYPEDEF_(0x8004000EL)")] - public const int OLE_E_WRONGCOMPOBJ = unchecked((int)(0x8004000E)); - - [NativeTypeName("#define OLE_E_INVALIDHWND _HRESULT_TYPEDEF_(0x8004000FL)")] - public const int OLE_E_INVALIDHWND = unchecked((int)(0x8004000F)); - - [NativeTypeName("#define OLE_E_NOT_INPLACEACTIVE _HRESULT_TYPEDEF_(0x80040010L)")] - public const int OLE_E_NOT_INPLACEACTIVE = unchecked((int)(0x80040010)); - - [NativeTypeName("#define OLE_E_CANTCONVERT _HRESULT_TYPEDEF_(0x80040011L)")] - public const int OLE_E_CANTCONVERT = unchecked((int)(0x80040011)); - - [NativeTypeName("#define OLE_E_NOSTORAGE _HRESULT_TYPEDEF_(0x80040012L)")] - public const int OLE_E_NOSTORAGE = unchecked((int)(0x80040012)); - - [NativeTypeName("#define DV_E_FORMATETC _HRESULT_TYPEDEF_(0x80040064L)")] - public const int DV_E_FORMATETC = unchecked((int)(0x80040064)); - - [NativeTypeName("#define DV_E_DVTARGETDEVICE _HRESULT_TYPEDEF_(0x80040065L)")] - public const int DV_E_DVTARGETDEVICE = unchecked((int)(0x80040065)); - - [NativeTypeName("#define DV_E_STGMEDIUM _HRESULT_TYPEDEF_(0x80040066L)")] - public const int DV_E_STGMEDIUM = unchecked((int)(0x80040066)); - - [NativeTypeName("#define DV_E_STATDATA _HRESULT_TYPEDEF_(0x80040067L)")] - public const int DV_E_STATDATA = unchecked((int)(0x80040067)); - - [NativeTypeName("#define DV_E_LINDEX _HRESULT_TYPEDEF_(0x80040068L)")] - public const int DV_E_LINDEX = unchecked((int)(0x80040068)); - - [NativeTypeName("#define DV_E_TYMED _HRESULT_TYPEDEF_(0x80040069L)")] - public const int DV_E_TYMED = unchecked((int)(0x80040069)); - - [NativeTypeName("#define DV_E_CLIPFORMAT _HRESULT_TYPEDEF_(0x8004006AL)")] - public const int DV_E_CLIPFORMAT = unchecked((int)(0x8004006A)); - - [NativeTypeName("#define DV_E_DVASPECT _HRESULT_TYPEDEF_(0x8004006BL)")] - public const int DV_E_DVASPECT = unchecked((int)(0x8004006B)); - - [NativeTypeName("#define DV_E_DVTARGETDEVICE_SIZE _HRESULT_TYPEDEF_(0x8004006CL)")] - public const int DV_E_DVTARGETDEVICE_SIZE = unchecked((int)(0x8004006C)); - - [NativeTypeName("#define DV_E_NOIVIEWOBJECT _HRESULT_TYPEDEF_(0x8004006DL)")] - public const int DV_E_NOIVIEWOBJECT = unchecked((int)(0x8004006D)); - - [NativeTypeName("#define DRAGDROP_E_FIRST 0x80040100L")] - public const uint DRAGDROP_E_FIRST = 0x80040100; - - [NativeTypeName("#define DRAGDROP_E_LAST 0x8004010FL")] - public const uint DRAGDROP_E_LAST = 0x8004010F; - - [NativeTypeName("#define DRAGDROP_S_FIRST 0x00040100L")] - public const int DRAGDROP_S_FIRST = 0x00040100; - - [NativeTypeName("#define DRAGDROP_S_LAST 0x0004010FL")] - public const int DRAGDROP_S_LAST = 0x0004010F; - - [NativeTypeName("#define DRAGDROP_E_NOTREGISTERED _HRESULT_TYPEDEF_(0x80040100L)")] - public const int DRAGDROP_E_NOTREGISTERED = unchecked((int)(0x80040100)); - - [NativeTypeName("#define DRAGDROP_E_ALREADYREGISTERED _HRESULT_TYPEDEF_(0x80040101L)")] - public const int DRAGDROP_E_ALREADYREGISTERED = unchecked((int)(0x80040101)); - - [NativeTypeName("#define DRAGDROP_E_INVALIDHWND _HRESULT_TYPEDEF_(0x80040102L)")] - public const int DRAGDROP_E_INVALIDHWND = unchecked((int)(0x80040102)); - - [NativeTypeName("#define DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED _HRESULT_TYPEDEF_(0x80040103L)")] - public const int DRAGDROP_E_CONCURRENT_DRAG_ATTEMPTED = unchecked((int)(0x80040103)); - [NativeTypeName("#define CLASSFACTORY_E_FIRST 0x80040110L")] public const uint CLASSFACTORY_E_FIRST = 0x80040110; @@ -690,57 +318,6 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define DATA_S_LAST 0x0004013FL")] public const int DATA_S_LAST = 0x0004013F; - [NativeTypeName("#define VIEW_E_FIRST 0x80040140L")] - public const uint VIEW_E_FIRST = 0x80040140; - - [NativeTypeName("#define VIEW_E_LAST 0x8004014FL")] - public const uint VIEW_E_LAST = 0x8004014F; - - [NativeTypeName("#define VIEW_S_FIRST 0x00040140L")] - public const int VIEW_S_FIRST = 0x00040140; - - [NativeTypeName("#define VIEW_S_LAST 0x0004014FL")] - public const int VIEW_S_LAST = 0x0004014F; - - [NativeTypeName("#define VIEW_E_DRAW _HRESULT_TYPEDEF_(0x80040140L)")] - public const int VIEW_E_DRAW = unchecked((int)(0x80040140)); - - [NativeTypeName("#define REGDB_E_FIRST 0x80040150L")] - public const uint REGDB_E_FIRST = 0x80040150; - - [NativeTypeName("#define REGDB_E_LAST 0x8004015FL")] - public const uint REGDB_E_LAST = 0x8004015F; - - [NativeTypeName("#define REGDB_S_FIRST 0x00040150L")] - public const int REGDB_S_FIRST = 0x00040150; - - [NativeTypeName("#define REGDB_S_LAST 0x0004015FL")] - public const int REGDB_S_LAST = 0x0004015F; - - [NativeTypeName("#define REGDB_E_READREGDB _HRESULT_TYPEDEF_(0x80040150L)")] - public const int REGDB_E_READREGDB = unchecked((int)(0x80040150)); - - [NativeTypeName("#define REGDB_E_WRITEREGDB _HRESULT_TYPEDEF_(0x80040151L)")] - public const int REGDB_E_WRITEREGDB = unchecked((int)(0x80040151)); - - [NativeTypeName("#define REGDB_E_KEYMISSING _HRESULT_TYPEDEF_(0x80040152L)")] - public const int REGDB_E_KEYMISSING = unchecked((int)(0x80040152)); - - [NativeTypeName("#define REGDB_E_INVALIDVALUE _HRESULT_TYPEDEF_(0x80040153L)")] - public const int REGDB_E_INVALIDVALUE = unchecked((int)(0x80040153)); - - [NativeTypeName("#define REGDB_E_CLASSNOTREG _HRESULT_TYPEDEF_(0x80040154L)")] - public const int REGDB_E_CLASSNOTREG = unchecked((int)(0x80040154)); - - [NativeTypeName("#define REGDB_E_IIDNOTREG _HRESULT_TYPEDEF_(0x80040155L)")] - public const int REGDB_E_IIDNOTREG = unchecked((int)(0x80040155)); - - [NativeTypeName("#define REGDB_E_BADTHREADINGMODEL _HRESULT_TYPEDEF_(0x80040156L)")] - public const int REGDB_E_BADTHREADINGMODEL = unchecked((int)(0x80040156)); - - [NativeTypeName("#define REGDB_E_PACKAGEPOLICYVIOLATION _HRESULT_TYPEDEF_(0x80040157L)")] - public const int REGDB_E_PACKAGEPOLICYVIOLATION = unchecked((int)(0x80040157)); - [NativeTypeName("#define CAT_E_FIRST 0x80040160L")] public const uint CAT_E_FIRST = 0x80040160; @@ -753,48 +330,6 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define CAT_E_NODESCRIPTION _HRESULT_TYPEDEF_(0x80040161L)")] public const int CAT_E_NODESCRIPTION = unchecked((int)(0x80040161)); - [NativeTypeName("#define CS_E_FIRST 0x80040164L")] - public const uint CS_E_FIRST = 0x80040164; - - [NativeTypeName("#define CS_E_LAST 0x8004016FL")] - public const uint CS_E_LAST = 0x8004016F; - - [NativeTypeName("#define CS_E_PACKAGE_NOTFOUND _HRESULT_TYPEDEF_(0x80040164L)")] - public const int CS_E_PACKAGE_NOTFOUND = unchecked((int)(0x80040164)); - - [NativeTypeName("#define CS_E_NOT_DELETABLE _HRESULT_TYPEDEF_(0x80040165L)")] - public const int CS_E_NOT_DELETABLE = unchecked((int)(0x80040165)); - - [NativeTypeName("#define CS_E_CLASS_NOTFOUND _HRESULT_TYPEDEF_(0x80040166L)")] - public const int CS_E_CLASS_NOTFOUND = unchecked((int)(0x80040166)); - - [NativeTypeName("#define CS_E_INVALID_VERSION _HRESULT_TYPEDEF_(0x80040167L)")] - public const int CS_E_INVALID_VERSION = unchecked((int)(0x80040167)); - - [NativeTypeName("#define CS_E_NO_CLASSSTORE _HRESULT_TYPEDEF_(0x80040168L)")] - public const int CS_E_NO_CLASSSTORE = unchecked((int)(0x80040168)); - - [NativeTypeName("#define CS_E_OBJECT_NOTFOUND _HRESULT_TYPEDEF_(0x80040169L)")] - public const int CS_E_OBJECT_NOTFOUND = unchecked((int)(0x80040169)); - - [NativeTypeName("#define CS_E_OBJECT_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x8004016AL)")] - public const int CS_E_OBJECT_ALREADY_EXISTS = unchecked((int)(0x8004016A)); - - [NativeTypeName("#define CS_E_INVALID_PATH _HRESULT_TYPEDEF_(0x8004016BL)")] - public const int CS_E_INVALID_PATH = unchecked((int)(0x8004016B)); - - [NativeTypeName("#define CS_E_NETWORK_ERROR _HRESULT_TYPEDEF_(0x8004016CL)")] - public const int CS_E_NETWORK_ERROR = unchecked((int)(0x8004016C)); - - [NativeTypeName("#define CS_E_ADMIN_LIMIT_EXCEEDED _HRESULT_TYPEDEF_(0x8004016DL)")] - public const int CS_E_ADMIN_LIMIT_EXCEEDED = unchecked((int)(0x8004016D)); - - [NativeTypeName("#define CS_E_SCHEMA_MISMATCH _HRESULT_TYPEDEF_(0x8004016EL)")] - public const int CS_E_SCHEMA_MISMATCH = unchecked((int)(0x8004016E)); - - [NativeTypeName("#define CS_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x8004016FL)")] - public const int CS_E_INTERNAL_ERROR = unchecked((int)(0x8004016F)); - [NativeTypeName("#define CACHE_E_FIRST 0x80040170L")] public const uint CACHE_E_FIRST = 0x80040170; @@ -870,39 +405,6 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define ENUM_S_LAST 0x000401BFL")] public const int ENUM_S_LAST = 0x000401BF; - [NativeTypeName("#define CONVERT10_E_FIRST 0x800401C0L")] - public const uint CONVERT10_E_FIRST = 0x800401C0; - - [NativeTypeName("#define CONVERT10_E_LAST 0x800401CFL")] - public const uint CONVERT10_E_LAST = 0x800401CF; - - [NativeTypeName("#define CONVERT10_S_FIRST 0x000401C0L")] - public const int CONVERT10_S_FIRST = 0x000401C0; - - [NativeTypeName("#define CONVERT10_S_LAST 0x000401CFL")] - public const int CONVERT10_S_LAST = 0x000401CF; - - [NativeTypeName("#define CONVERT10_E_OLESTREAM_GET _HRESULT_TYPEDEF_(0x800401C0L)")] - public const int CONVERT10_E_OLESTREAM_GET = unchecked((int)(0x800401C0)); - - [NativeTypeName("#define CONVERT10_E_OLESTREAM_PUT _HRESULT_TYPEDEF_(0x800401C1L)")] - public const int CONVERT10_E_OLESTREAM_PUT = unchecked((int)(0x800401C1)); - - [NativeTypeName("#define CONVERT10_E_OLESTREAM_FMT _HRESULT_TYPEDEF_(0x800401C2L)")] - public const int CONVERT10_E_OLESTREAM_FMT = unchecked((int)(0x800401C2)); - - [NativeTypeName("#define CONVERT10_E_OLESTREAM_BITMAP_TO_DIB _HRESULT_TYPEDEF_(0x800401C3L)")] - public const int CONVERT10_E_OLESTREAM_BITMAP_TO_DIB = unchecked((int)(0x800401C3)); - - [NativeTypeName("#define CONVERT10_E_STG_FMT _HRESULT_TYPEDEF_(0x800401C4L)")] - public const int CONVERT10_E_STG_FMT = unchecked((int)(0x800401C4)); - - [NativeTypeName("#define CONVERT10_E_STG_NO_STD_STREAM _HRESULT_TYPEDEF_(0x800401C5L)")] - public const int CONVERT10_E_STG_NO_STD_STREAM = unchecked((int)(0x800401C5)); - - [NativeTypeName("#define CONVERT10_E_STG_DIB_TO_BITMAP _HRESULT_TYPEDEF_(0x800401C6L)")] - public const int CONVERT10_E_STG_DIB_TO_BITMAP = unchecked((int)(0x800401C6)); - [NativeTypeName("#define CLIPBRD_E_FIRST 0x800401D0L")] public const uint CLIPBRD_E_FIRST = 0x800401D0; @@ -930,141 +432,9 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define CLIPBRD_E_CANT_CLOSE _HRESULT_TYPEDEF_(0x800401D4L)")] public const int CLIPBRD_E_CANT_CLOSE = unchecked((int)(0x800401D4)); - [NativeTypeName("#define MK_E_FIRST 0x800401E0L")] - public const uint MK_E_FIRST = 0x800401E0; - - [NativeTypeName("#define MK_E_LAST 0x800401EFL")] - public const uint MK_E_LAST = 0x800401EF; - - [NativeTypeName("#define MK_S_FIRST 0x000401E0L")] - public const int MK_S_FIRST = 0x000401E0; - - [NativeTypeName("#define MK_S_LAST 0x000401EFL")] - public const int MK_S_LAST = 0x000401EF; - - [NativeTypeName("#define MK_E_CONNECTMANUALLY _HRESULT_TYPEDEF_(0x800401E0L)")] - public const int MK_E_CONNECTMANUALLY = unchecked((int)(0x800401E0)); - - [NativeTypeName("#define MK_E_EXCEEDEDDEADLINE _HRESULT_TYPEDEF_(0x800401E1L)")] - public const int MK_E_EXCEEDEDDEADLINE = unchecked((int)(0x800401E1)); - - [NativeTypeName("#define MK_E_NEEDGENERIC _HRESULT_TYPEDEF_(0x800401E2L)")] - public const int MK_E_NEEDGENERIC = unchecked((int)(0x800401E2)); - - [NativeTypeName("#define MK_E_UNAVAILABLE _HRESULT_TYPEDEF_(0x800401E3L)")] - public const int MK_E_UNAVAILABLE = unchecked((int)(0x800401E3)); - - [NativeTypeName("#define MK_E_SYNTAX _HRESULT_TYPEDEF_(0x800401E4L)")] - public const int MK_E_SYNTAX = unchecked((int)(0x800401E4)); - - [NativeTypeName("#define MK_E_NOOBJECT _HRESULT_TYPEDEF_(0x800401E5L)")] - public const int MK_E_NOOBJECT = unchecked((int)(0x800401E5)); - - [NativeTypeName("#define MK_E_INVALIDEXTENSION _HRESULT_TYPEDEF_(0x800401E6L)")] - public const int MK_E_INVALIDEXTENSION = unchecked((int)(0x800401E6)); - - [NativeTypeName("#define MK_E_INTERMEDIATEINTERFACENOTSUPPORTED _HRESULT_TYPEDEF_(0x800401E7L)")] - public const int MK_E_INTERMEDIATEINTERFACENOTSUPPORTED = unchecked((int)(0x800401E7)); - - [NativeTypeName("#define MK_E_NOTBINDABLE _HRESULT_TYPEDEF_(0x800401E8L)")] - public const int MK_E_NOTBINDABLE = unchecked((int)(0x800401E8)); - - [NativeTypeName("#define MK_E_NOTBOUND _HRESULT_TYPEDEF_(0x800401E9L)")] - public const int MK_E_NOTBOUND = unchecked((int)(0x800401E9)); - - [NativeTypeName("#define MK_E_CANTOPENFILE _HRESULT_TYPEDEF_(0x800401EAL)")] - public const int MK_E_CANTOPENFILE = unchecked((int)(0x800401EA)); - - [NativeTypeName("#define MK_E_MUSTBOTHERUSER _HRESULT_TYPEDEF_(0x800401EBL)")] - public const int MK_E_MUSTBOTHERUSER = unchecked((int)(0x800401EB)); - - [NativeTypeName("#define MK_E_NOINVERSE _HRESULT_TYPEDEF_(0x800401ECL)")] - public const int MK_E_NOINVERSE = unchecked((int)(0x800401EC)); - - [NativeTypeName("#define MK_E_NOSTORAGE _HRESULT_TYPEDEF_(0x800401EDL)")] - public const int MK_E_NOSTORAGE = unchecked((int)(0x800401ED)); - - [NativeTypeName("#define MK_E_NOPREFIX _HRESULT_TYPEDEF_(0x800401EEL)")] - public const int MK_E_NOPREFIX = unchecked((int)(0x800401EE)); - - [NativeTypeName("#define MK_E_ENUMERATION_FAILED _HRESULT_TYPEDEF_(0x800401EFL)")] - public const int MK_E_ENUMERATION_FAILED = unchecked((int)(0x800401EF)); - - [NativeTypeName("#define TPC_E_INVALID_PROPERTY _HRESULT_TYPEDEF_(0x80040241L)")] - public const int TPC_E_INVALID_PROPERTY = unchecked((int)(0x80040241)); - - [NativeTypeName("#define TPC_E_NO_DEFAULT_TABLET _HRESULT_TYPEDEF_(0x80040212L)")] - public const int TPC_E_NO_DEFAULT_TABLET = unchecked((int)(0x80040212)); - - [NativeTypeName("#define TPC_E_UNKNOWN_PROPERTY _HRESULT_TYPEDEF_(0x8004021BL)")] - public const int TPC_E_UNKNOWN_PROPERTY = unchecked((int)(0x8004021B)); - - [NativeTypeName("#define TPC_E_INVALID_INPUT_RECT _HRESULT_TYPEDEF_(0x80040219L)")] - public const int TPC_E_INVALID_INPUT_RECT = unchecked((int)(0x80040219)); - - [NativeTypeName("#define TPC_E_INVALID_STROKE _HRESULT_TYPEDEF_(0x80040222L)")] - public const int TPC_E_INVALID_STROKE = unchecked((int)(0x80040222)); - - [NativeTypeName("#define TPC_E_INITIALIZE_FAIL _HRESULT_TYPEDEF_(0x80040223L)")] - public const int TPC_E_INITIALIZE_FAIL = unchecked((int)(0x80040223)); - - [NativeTypeName("#define TPC_E_NOT_RELEVANT _HRESULT_TYPEDEF_(0x80040232L)")] - public const int TPC_E_NOT_RELEVANT = unchecked((int)(0x80040232)); - - [NativeTypeName("#define TPC_E_INVALID_PACKET_DESCRIPTION _HRESULT_TYPEDEF_(0x80040233L)")] - public const int TPC_E_INVALID_PACKET_DESCRIPTION = unchecked((int)(0x80040233)); - - [NativeTypeName("#define TPC_E_RECOGNIZER_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80040235L)")] - public const int TPC_E_RECOGNIZER_NOT_REGISTERED = unchecked((int)(0x80040235)); - - [NativeTypeName("#define TPC_E_INVALID_RIGHTS _HRESULT_TYPEDEF_(0x80040236L)")] - public const int TPC_E_INVALID_RIGHTS = unchecked((int)(0x80040236)); - - [NativeTypeName("#define TPC_E_OUT_OF_ORDER_CALL _HRESULT_TYPEDEF_(0x80040237L)")] - public const int TPC_E_OUT_OF_ORDER_CALL = unchecked((int)(0x80040237)); - - [NativeTypeName("#define TPC_E_QUEUE_FULL _HRESULT_TYPEDEF_(0x80040238L)")] - public const int TPC_E_QUEUE_FULL = unchecked((int)(0x80040238)); - - [NativeTypeName("#define TPC_E_INVALID_CONFIGURATION _HRESULT_TYPEDEF_(0x80040239L)")] - public const int TPC_E_INVALID_CONFIGURATION = unchecked((int)(0x80040239)); - - [NativeTypeName("#define TPC_E_INVALID_DATA_FROM_RECOGNIZER _HRESULT_TYPEDEF_(0x8004023AL)")] - public const int TPC_E_INVALID_DATA_FROM_RECOGNIZER = unchecked((int)(0x8004023A)); - - [NativeTypeName("#define TPC_S_TRUNCATED _HRESULT_TYPEDEF_(0x00040252L)")] - public const int TPC_S_TRUNCATED = ((int)(0x00040252)); - - [NativeTypeName("#define TPC_S_INTERRUPTED _HRESULT_TYPEDEF_(0x00040253L)")] - public const int TPC_S_INTERRUPTED = ((int)(0x00040253)); - - [NativeTypeName("#define TPC_S_NO_DATA_TO_PROCESS _HRESULT_TYPEDEF_(0x00040254L)")] - public const int TPC_S_NO_DATA_TO_PROCESS = ((int)(0x00040254)); - - [NativeTypeName("#define OLE_S_USEREG _HRESULT_TYPEDEF_(0x00040000L)")] - public const int OLE_S_USEREG = ((int)(0x00040000)); - - [NativeTypeName("#define OLE_S_STATIC _HRESULT_TYPEDEF_(0x00040001L)")] - public const int OLE_S_STATIC = ((int)(0x00040001)); - - [NativeTypeName("#define OLE_S_MAC_CLIPFORMAT _HRESULT_TYPEDEF_(0x00040002L)")] - public const int OLE_S_MAC_CLIPFORMAT = ((int)(0x00040002)); - - [NativeTypeName("#define DRAGDROP_S_DROP _HRESULT_TYPEDEF_(0x00040100L)")] - public const int DRAGDROP_S_DROP = ((int)(0x00040100)); - - [NativeTypeName("#define DRAGDROP_S_CANCEL _HRESULT_TYPEDEF_(0x00040101L)")] - public const int DRAGDROP_S_CANCEL = ((int)(0x00040101)); - - [NativeTypeName("#define DRAGDROP_S_USEDEFAULTCURSORS _HRESULT_TYPEDEF_(0x00040102L)")] - public const int DRAGDROP_S_USEDEFAULTCURSORS = ((int)(0x00040102)); - [NativeTypeName("#define DATA_S_SAMEFORMATETC _HRESULT_TYPEDEF_(0x00040130L)")] public const int DATA_S_SAMEFORMATETC = ((int)(0x00040130)); - [NativeTypeName("#define VIEW_S_ALREADY_FROZEN _HRESULT_TYPEDEF_(0x00040140L)")] - public const int VIEW_S_ALREADY_FROZEN = ((int)(0x00040140)); - [NativeTypeName("#define CACHE_S_FORMATETC_NOTSUPPORTED _HRESULT_TYPEDEF_(0x00040170L)")] public const int CACHE_S_FORMATETC_NOTSUPPORTED = ((int)(0x00040170)); @@ -1086,2517 +456,105 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define INPLACE_S_TRUNCATED _HRESULT_TYPEDEF_(0x000401A0L)")] public const int INPLACE_S_TRUNCATED = ((int)(0x000401A0)); - [NativeTypeName("#define CONVERT10_S_NO_PRESENTATION _HRESULT_TYPEDEF_(0x000401C0L)")] - public const int CONVERT10_S_NO_PRESENTATION = ((int)(0x000401C0)); + [NativeTypeName("#define BT_E_SPURIOUS_ACTIVATION _HRESULT_TYPEDEF_(0x80080300L)")] + public const int BT_E_SPURIOUS_ACTIVATION = unchecked((int)(0x80080300)); - [NativeTypeName("#define MK_S_REDUCED_TO_SELF _HRESULT_TYPEDEF_(0x000401E2L)")] - public const int MK_S_REDUCED_TO_SELF = ((int)(0x000401E2)); + [NativeTypeName("#define XENROLL_E_KEY_NOT_EXPORTABLE _HRESULT_TYPEDEF_(0x80095000L)")] + public const int XENROLL_E_KEY_NOT_EXPORTABLE = unchecked((int)(0x80095000)); - [NativeTypeName("#define MK_S_ME _HRESULT_TYPEDEF_(0x000401E4L)")] - public const int MK_S_ME = ((int)(0x000401E4)); + [NativeTypeName("#define XENROLL_E_CANNOT_ADD_ROOT_CERT _HRESULT_TYPEDEF_(0x80095001L)")] + public const int XENROLL_E_CANNOT_ADD_ROOT_CERT = unchecked((int)(0x80095001)); - [NativeTypeName("#define MK_S_HIM _HRESULT_TYPEDEF_(0x000401E5L)")] - public const int MK_S_HIM = ((int)(0x000401E5)); + [NativeTypeName("#define XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND _HRESULT_TYPEDEF_(0x80095002L)")] + public const int XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND = unchecked((int)(0x80095002)); - [NativeTypeName("#define MK_S_US _HRESULT_TYPEDEF_(0x000401E6L)")] - public const int MK_S_US = ((int)(0x000401E6)); + [NativeTypeName("#define XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH _HRESULT_TYPEDEF_(0x80095003L)")] + public const int XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH = unchecked((int)(0x80095003)); - [NativeTypeName("#define MK_S_MONIKERALREADYREGISTERED _HRESULT_TYPEDEF_(0x000401E7L)")] - public const int MK_S_MONIKERALREADYREGISTERED = ((int)(0x000401E7)); + [NativeTypeName("#define XENROLL_E_RESPONSE_KA_HASH_MISMATCH _HRESULT_TYPEDEF_(0x80095004L)")] + public const int XENROLL_E_RESPONSE_KA_HASH_MISMATCH = unchecked((int)(0x80095004)); - [NativeTypeName("#define SCHED_S_TASK_READY _HRESULT_TYPEDEF_(0x00041300L)")] - public const int SCHED_S_TASK_READY = ((int)(0x00041300)); + [NativeTypeName("#define XENROLL_E_KEYSPEC_SMIME_MISMATCH _HRESULT_TYPEDEF_(0x80095005L)")] + public const int XENROLL_E_KEYSPEC_SMIME_MISMATCH = unchecked((int)(0x80095005)); - [NativeTypeName("#define SCHED_S_TASK_RUNNING _HRESULT_TYPEDEF_(0x00041301L)")] - public const int SCHED_S_TASK_RUNNING = ((int)(0x00041301)); + [NativeTypeName("#define DIGSIG_E_ENCODE _HRESULT_TYPEDEF_(0x800B0005L)")] + public const int DIGSIG_E_ENCODE = unchecked((int)(0x800B0005)); - [NativeTypeName("#define SCHED_S_TASK_DISABLED _HRESULT_TYPEDEF_(0x00041302L)")] - public const int SCHED_S_TASK_DISABLED = ((int)(0x00041302)); + [NativeTypeName("#define DIGSIG_E_DECODE _HRESULT_TYPEDEF_(0x800B0006L)")] + public const int DIGSIG_E_DECODE = unchecked((int)(0x800B0006)); - [NativeTypeName("#define SCHED_S_TASK_HAS_NOT_RUN _HRESULT_TYPEDEF_(0x00041303L)")] - public const int SCHED_S_TASK_HAS_NOT_RUN = ((int)(0x00041303)); + [NativeTypeName("#define DIGSIG_E_EXTENSIBILITY _HRESULT_TYPEDEF_(0x800B0007L)")] + public const int DIGSIG_E_EXTENSIBILITY = unchecked((int)(0x800B0007)); - [NativeTypeName("#define SCHED_S_TASK_NO_MORE_RUNS _HRESULT_TYPEDEF_(0x00041304L)")] - public const int SCHED_S_TASK_NO_MORE_RUNS = ((int)(0x00041304)); + [NativeTypeName("#define DIGSIG_E_CRYPTO _HRESULT_TYPEDEF_(0x800B0008L)")] + public const int DIGSIG_E_CRYPTO = unchecked((int)(0x800B0008)); - [NativeTypeName("#define SCHED_S_TASK_NOT_SCHEDULED _HRESULT_TYPEDEF_(0x00041305L)")] - public const int SCHED_S_TASK_NOT_SCHEDULED = ((int)(0x00041305)); + [NativeTypeName("#define PERSIST_E_SIZEDEFINITE _HRESULT_TYPEDEF_(0x800B0009L)")] + public const int PERSIST_E_SIZEDEFINITE = unchecked((int)(0x800B0009)); - [NativeTypeName("#define SCHED_S_TASK_TERMINATED _HRESULT_TYPEDEF_(0x00041306L)")] - public const int SCHED_S_TASK_TERMINATED = ((int)(0x00041306)); + [NativeTypeName("#define PERSIST_E_SIZEINDEFINITE _HRESULT_TYPEDEF_(0x800B000AL)")] + public const int PERSIST_E_SIZEINDEFINITE = unchecked((int)(0x800B000A)); - [NativeTypeName("#define SCHED_S_TASK_NO_VALID_TRIGGERS _HRESULT_TYPEDEF_(0x00041307L)")] - public const int SCHED_S_TASK_NO_VALID_TRIGGERS = ((int)(0x00041307)); + [NativeTypeName("#define PERSIST_E_NOTSELFSIZING _HRESULT_TYPEDEF_(0x800B000BL)")] + public const int PERSIST_E_NOTSELFSIZING = unchecked((int)(0x800B000B)); - [NativeTypeName("#define SCHED_S_EVENT_TRIGGER _HRESULT_TYPEDEF_(0x00041308L)")] - public const int SCHED_S_EVENT_TRIGGER = ((int)(0x00041308)); + [NativeTypeName("#define COMQC_E_APPLICATION_NOT_QUEUED _HRESULT_TYPEDEF_(0x80110600L)")] + public const int COMQC_E_APPLICATION_NOT_QUEUED = unchecked((int)(0x80110600)); - [NativeTypeName("#define SCHED_E_TRIGGER_NOT_FOUND _HRESULT_TYPEDEF_(0x80041309L)")] - public const int SCHED_E_TRIGGER_NOT_FOUND = unchecked((int)(0x80041309)); + [NativeTypeName("#define COMQC_E_NO_QUEUEABLE_INTERFACES _HRESULT_TYPEDEF_(0x80110601L)")] + public const int COMQC_E_NO_QUEUEABLE_INTERFACES = unchecked((int)(0x80110601)); - [NativeTypeName("#define SCHED_E_TASK_NOT_READY _HRESULT_TYPEDEF_(0x8004130AL)")] - public const int SCHED_E_TASK_NOT_READY = unchecked((int)(0x8004130A)); + [NativeTypeName("#define COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80110602L)")] + public const int COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE = unchecked((int)(0x80110602)); - [NativeTypeName("#define SCHED_E_TASK_NOT_RUNNING _HRESULT_TYPEDEF_(0x8004130BL)")] - public const int SCHED_E_TASK_NOT_RUNNING = unchecked((int)(0x8004130B)); + [NativeTypeName("#define COMQC_E_NO_IPERSISTSTREAM _HRESULT_TYPEDEF_(0x80110603L)")] + public const int COMQC_E_NO_IPERSISTSTREAM = unchecked((int)(0x80110603)); - [NativeTypeName("#define SCHED_E_SERVICE_NOT_INSTALLED _HRESULT_TYPEDEF_(0x8004130CL)")] - public const int SCHED_E_SERVICE_NOT_INSTALLED = unchecked((int)(0x8004130C)); + [NativeTypeName("#define COMQC_E_BAD_MESSAGE _HRESULT_TYPEDEF_(0x80110604L)")] + public const int COMQC_E_BAD_MESSAGE = unchecked((int)(0x80110604)); - [NativeTypeName("#define SCHED_E_CANNOT_OPEN_TASK _HRESULT_TYPEDEF_(0x8004130DL)")] - public const int SCHED_E_CANNOT_OPEN_TASK = unchecked((int)(0x8004130D)); + [NativeTypeName("#define COMQC_E_UNAUTHENTICATED _HRESULT_TYPEDEF_(0x80110605L)")] + public const int COMQC_E_UNAUTHENTICATED = unchecked((int)(0x80110605)); - [NativeTypeName("#define SCHED_E_INVALID_TASK _HRESULT_TYPEDEF_(0x8004130EL)")] - public const int SCHED_E_INVALID_TASK = unchecked((int)(0x8004130E)); + [NativeTypeName("#define COMQC_E_UNTRUSTED_ENQUEUER _HRESULT_TYPEDEF_(0x80110606L)")] + public const int COMQC_E_UNTRUSTED_ENQUEUER = unchecked((int)(0x80110606)); - [NativeTypeName("#define SCHED_E_ACCOUNT_INFORMATION_NOT_SET _HRESULT_TYPEDEF_(0x8004130FL)")] - public const int SCHED_E_ACCOUNT_INFORMATION_NOT_SET = unchecked((int)(0x8004130F)); + [NativeTypeName("#define MSDTC_E_DUPLICATE_RESOURCE _HRESULT_TYPEDEF_(0x80110701L)")] + public const int MSDTC_E_DUPLICATE_RESOURCE = unchecked((int)(0x80110701)); - [NativeTypeName("#define SCHED_E_ACCOUNT_NAME_NOT_FOUND _HRESULT_TYPEDEF_(0x80041310L)")] - public const int SCHED_E_ACCOUNT_NAME_NOT_FOUND = unchecked((int)(0x80041310)); + [NativeTypeName("#define GCN_E_MODULE_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0021L)")] + public const int GCN_E_MODULE_NOT_FOUND = unchecked((int)(0x803B0021)); - [NativeTypeName("#define SCHED_E_ACCOUNT_DBASE_CORRUPT _HRESULT_TYPEDEF_(0x80041311L)")] - public const int SCHED_E_ACCOUNT_DBASE_CORRUPT = unchecked((int)(0x80041311)); - - [NativeTypeName("#define SCHED_E_NO_SECURITY_SERVICES _HRESULT_TYPEDEF_(0x80041312L)")] - public const int SCHED_E_NO_SECURITY_SERVICES = unchecked((int)(0x80041312)); - - [NativeTypeName("#define SCHED_E_UNKNOWN_OBJECT_VERSION _HRESULT_TYPEDEF_(0x80041313L)")] - public const int SCHED_E_UNKNOWN_OBJECT_VERSION = unchecked((int)(0x80041313)); - - [NativeTypeName("#define SCHED_E_UNSUPPORTED_ACCOUNT_OPTION _HRESULT_TYPEDEF_(0x80041314L)")] - public const int SCHED_E_UNSUPPORTED_ACCOUNT_OPTION = unchecked((int)(0x80041314)); - - [NativeTypeName("#define SCHED_E_SERVICE_NOT_RUNNING _HRESULT_TYPEDEF_(0x80041315L)")] - public const int SCHED_E_SERVICE_NOT_RUNNING = unchecked((int)(0x80041315)); - - [NativeTypeName("#define SCHED_E_UNEXPECTEDNODE _HRESULT_TYPEDEF_(0x80041316L)")] - public const int SCHED_E_UNEXPECTEDNODE = unchecked((int)(0x80041316)); - - [NativeTypeName("#define SCHED_E_NAMESPACE _HRESULT_TYPEDEF_(0x80041317L)")] - public const int SCHED_E_NAMESPACE = unchecked((int)(0x80041317)); - - [NativeTypeName("#define SCHED_E_INVALIDVALUE _HRESULT_TYPEDEF_(0x80041318L)")] - public const int SCHED_E_INVALIDVALUE = unchecked((int)(0x80041318)); - - [NativeTypeName("#define SCHED_E_MISSINGNODE _HRESULT_TYPEDEF_(0x80041319L)")] - public const int SCHED_E_MISSINGNODE = unchecked((int)(0x80041319)); - - [NativeTypeName("#define SCHED_E_MALFORMEDXML _HRESULT_TYPEDEF_(0x8004131AL)")] - public const int SCHED_E_MALFORMEDXML = unchecked((int)(0x8004131A)); - - [NativeTypeName("#define SCHED_S_SOME_TRIGGERS_FAILED _HRESULT_TYPEDEF_(0x0004131BL)")] - public const int SCHED_S_SOME_TRIGGERS_FAILED = ((int)(0x0004131B)); - - [NativeTypeName("#define SCHED_S_BATCH_LOGON_PROBLEM _HRESULT_TYPEDEF_(0x0004131CL)")] - public const int SCHED_S_BATCH_LOGON_PROBLEM = ((int)(0x0004131C)); - - [NativeTypeName("#define SCHED_E_TOO_MANY_NODES _HRESULT_TYPEDEF_(0x8004131DL)")] - public const int SCHED_E_TOO_MANY_NODES = unchecked((int)(0x8004131D)); - - [NativeTypeName("#define SCHED_E_PAST_END_BOUNDARY _HRESULT_TYPEDEF_(0x8004131EL)")] - public const int SCHED_E_PAST_END_BOUNDARY = unchecked((int)(0x8004131E)); - - [NativeTypeName("#define SCHED_E_ALREADY_RUNNING _HRESULT_TYPEDEF_(0x8004131FL)")] - public const int SCHED_E_ALREADY_RUNNING = unchecked((int)(0x8004131F)); - - [NativeTypeName("#define SCHED_E_USER_NOT_LOGGED_ON _HRESULT_TYPEDEF_(0x80041320L)")] - public const int SCHED_E_USER_NOT_LOGGED_ON = unchecked((int)(0x80041320)); - - [NativeTypeName("#define SCHED_E_INVALID_TASK_HASH _HRESULT_TYPEDEF_(0x80041321L)")] - public const int SCHED_E_INVALID_TASK_HASH = unchecked((int)(0x80041321)); - - [NativeTypeName("#define SCHED_E_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80041322L)")] - public const int SCHED_E_SERVICE_NOT_AVAILABLE = unchecked((int)(0x80041322)); - - [NativeTypeName("#define SCHED_E_SERVICE_TOO_BUSY _HRESULT_TYPEDEF_(0x80041323L)")] - public const int SCHED_E_SERVICE_TOO_BUSY = unchecked((int)(0x80041323)); - - [NativeTypeName("#define SCHED_E_TASK_ATTEMPTED _HRESULT_TYPEDEF_(0x80041324L)")] - public const int SCHED_E_TASK_ATTEMPTED = unchecked((int)(0x80041324)); - - [NativeTypeName("#define SCHED_S_TASK_QUEUED _HRESULT_TYPEDEF_(0x00041325L)")] - public const int SCHED_S_TASK_QUEUED = ((int)(0x00041325)); - - [NativeTypeName("#define SCHED_E_TASK_DISABLED _HRESULT_TYPEDEF_(0x80041326L)")] - public const int SCHED_E_TASK_DISABLED = unchecked((int)(0x80041326)); - - [NativeTypeName("#define SCHED_E_TASK_NOT_V1_COMPAT _HRESULT_TYPEDEF_(0x80041327L)")] - public const int SCHED_E_TASK_NOT_V1_COMPAT = unchecked((int)(0x80041327)); - - [NativeTypeName("#define SCHED_E_START_ON_DEMAND _HRESULT_TYPEDEF_(0x80041328L)")] - public const int SCHED_E_START_ON_DEMAND = unchecked((int)(0x80041328)); - - [NativeTypeName("#define SCHED_E_TASK_NOT_UBPM_COMPAT _HRESULT_TYPEDEF_(0x80041329L)")] - public const int SCHED_E_TASK_NOT_UBPM_COMPAT = unchecked((int)(0x80041329)); - - [NativeTypeName("#define SCHED_E_DEPRECATED_FEATURE_USED _HRESULT_TYPEDEF_(0x80041330L)")] - public const int SCHED_E_DEPRECATED_FEATURE_USED = unchecked((int)(0x80041330)); - - [NativeTypeName("#define MK_E_NO_NORMALIZED _HRESULT_TYPEDEF_(0x80080007L)")] - public const int MK_E_NO_NORMALIZED = unchecked((int)(0x80080007)); - - [NativeTypeName("#define MEM_E_INVALID_ROOT _HRESULT_TYPEDEF_(0x80080009L)")] - public const int MEM_E_INVALID_ROOT = unchecked((int)(0x80080009)); - - [NativeTypeName("#define MEM_E_INVALID_LINK _HRESULT_TYPEDEF_(0x80080010L)")] - public const int MEM_E_INVALID_LINK = unchecked((int)(0x80080010)); - - [NativeTypeName("#define MEM_E_INVALID_SIZE _HRESULT_TYPEDEF_(0x80080011L)")] - public const int MEM_E_INVALID_SIZE = unchecked((int)(0x80080011)); - - [NativeTypeName("#define APPX_E_PACKAGING_INTERNAL _HRESULT_TYPEDEF_(0x80080200L)")] - public const int APPX_E_PACKAGING_INTERNAL = unchecked((int)(0x80080200)); - - [NativeTypeName("#define APPX_E_INTERLEAVING_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080201L)")] - public const int APPX_E_INTERLEAVING_NOT_ALLOWED = unchecked((int)(0x80080201)); - - [NativeTypeName("#define APPX_E_RELATIONSHIPS_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080202L)")] - public const int APPX_E_RELATIONSHIPS_NOT_ALLOWED = unchecked((int)(0x80080202)); - - [NativeTypeName("#define APPX_E_MISSING_REQUIRED_FILE _HRESULT_TYPEDEF_(0x80080203L)")] - public const int APPX_E_MISSING_REQUIRED_FILE = unchecked((int)(0x80080203)); - - [NativeTypeName("#define APPX_E_INVALID_MANIFEST _HRESULT_TYPEDEF_(0x80080204L)")] - public const int APPX_E_INVALID_MANIFEST = unchecked((int)(0x80080204)); - - [NativeTypeName("#define APPX_E_INVALID_BLOCKMAP _HRESULT_TYPEDEF_(0x80080205L)")] - public const int APPX_E_INVALID_BLOCKMAP = unchecked((int)(0x80080205)); - - [NativeTypeName("#define APPX_E_CORRUPT_CONTENT _HRESULT_TYPEDEF_(0x80080206L)")] - public const int APPX_E_CORRUPT_CONTENT = unchecked((int)(0x80080206)); - - [NativeTypeName("#define APPX_E_BLOCK_HASH_INVALID _HRESULT_TYPEDEF_(0x80080207L)")] - public const int APPX_E_BLOCK_HASH_INVALID = unchecked((int)(0x80080207)); - - [NativeTypeName("#define APPX_E_REQUESTED_RANGE_TOO_LARGE _HRESULT_TYPEDEF_(0x80080208L)")] - public const int APPX_E_REQUESTED_RANGE_TOO_LARGE = unchecked((int)(0x80080208)); - - [NativeTypeName("#define APPX_E_INVALID_SIP_CLIENT_DATA _HRESULT_TYPEDEF_(0x80080209L)")] - public const int APPX_E_INVALID_SIP_CLIENT_DATA = unchecked((int)(0x80080209)); - - [NativeTypeName("#define APPX_E_INVALID_KEY_INFO _HRESULT_TYPEDEF_(0x8008020AL)")] - public const int APPX_E_INVALID_KEY_INFO = unchecked((int)(0x8008020A)); - - [NativeTypeName("#define APPX_E_INVALID_CONTENTGROUPMAP _HRESULT_TYPEDEF_(0x8008020BL)")] - public const int APPX_E_INVALID_CONTENTGROUPMAP = unchecked((int)(0x8008020B)); - - [NativeTypeName("#define APPX_E_INVALID_APPINSTALLER _HRESULT_TYPEDEF_(0x8008020CL)")] - public const int APPX_E_INVALID_APPINSTALLER = unchecked((int)(0x8008020C)); - - [NativeTypeName("#define APPX_E_DELTA_BASELINE_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x8008020DL)")] - public const int APPX_E_DELTA_BASELINE_VERSION_MISMATCH = unchecked((int)(0x8008020D)); - - [NativeTypeName("#define APPX_E_DELTA_PACKAGE_MISSING_FILE _HRESULT_TYPEDEF_(0x8008020EL)")] - public const int APPX_E_DELTA_PACKAGE_MISSING_FILE = unchecked((int)(0x8008020E)); - - [NativeTypeName("#define APPX_E_INVALID_DELTA_PACKAGE _HRESULT_TYPEDEF_(0x8008020FL)")] - public const int APPX_E_INVALID_DELTA_PACKAGE = unchecked((int)(0x8008020F)); - - [NativeTypeName("#define APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080210L)")] - public const int APPX_E_DELTA_APPENDED_PACKAGE_NOT_ALLOWED = unchecked((int)(0x80080210)); - - [NativeTypeName("#define APPX_E_INVALID_PACKAGING_LAYOUT _HRESULT_TYPEDEF_(0x80080211L)")] - public const int APPX_E_INVALID_PACKAGING_LAYOUT = unchecked((int)(0x80080211)); - - [NativeTypeName("#define APPX_E_INVALID_PACKAGESIGNCONFIG _HRESULT_TYPEDEF_(0x80080212L)")] - public const int APPX_E_INVALID_PACKAGESIGNCONFIG = unchecked((int)(0x80080212)); - - [NativeTypeName("#define APPX_E_RESOURCESPRI_NOT_ALLOWED _HRESULT_TYPEDEF_(0x80080213L)")] - public const int APPX_E_RESOURCESPRI_NOT_ALLOWED = unchecked((int)(0x80080213)); - - [NativeTypeName("#define APPX_E_FILE_COMPRESSION_MISMATCH _HRESULT_TYPEDEF_(0x80080214L)")] - public const int APPX_E_FILE_COMPRESSION_MISMATCH = unchecked((int)(0x80080214)); - - [NativeTypeName("#define APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION _HRESULT_TYPEDEF_(0x80080215L)")] - public const int APPX_E_INVALID_PAYLOAD_PACKAGE_EXTENSION = unchecked((int)(0x80080215)); - - [NativeTypeName("#define APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST _HRESULT_TYPEDEF_(0x80080216L)")] - public const int APPX_E_INVALID_ENCRYPTION_EXCLUSION_FILE_LIST = unchecked((int)(0x80080216)); - - [NativeTypeName("#define APPX_E_INVALID_PACKAGE_FOLDER_ACLS _HRESULT_TYPEDEF_(0x80080217L)")] - public const int APPX_E_INVALID_PACKAGE_FOLDER_ACLS = unchecked((int)(0x80080217)); - - [NativeTypeName("#define BT_E_SPURIOUS_ACTIVATION _HRESULT_TYPEDEF_(0x80080300L)")] - public const int BT_E_SPURIOUS_ACTIVATION = unchecked((int)(0x80080300)); - - [NativeTypeName("#define DISP_E_UNKNOWNINTERFACE _HRESULT_TYPEDEF_(0x80020001L)")] - public const int DISP_E_UNKNOWNINTERFACE = unchecked((int)(0x80020001)); - - [NativeTypeName("#define DISP_E_MEMBERNOTFOUND _HRESULT_TYPEDEF_(0x80020003L)")] - public const int DISP_E_MEMBERNOTFOUND = unchecked((int)(0x80020003)); - - [NativeTypeName("#define DISP_E_PARAMNOTFOUND _HRESULT_TYPEDEF_(0x80020004L)")] - public const int DISP_E_PARAMNOTFOUND = unchecked((int)(0x80020004)); - - [NativeTypeName("#define DISP_E_TYPEMISMATCH _HRESULT_TYPEDEF_(0x80020005L)")] - public const int DISP_E_TYPEMISMATCH = unchecked((int)(0x80020005)); - - [NativeTypeName("#define DISP_E_UNKNOWNNAME _HRESULT_TYPEDEF_(0x80020006L)")] - public const int DISP_E_UNKNOWNNAME = unchecked((int)(0x80020006)); - - [NativeTypeName("#define DISP_E_NONAMEDARGS _HRESULT_TYPEDEF_(0x80020007L)")] - public const int DISP_E_NONAMEDARGS = unchecked((int)(0x80020007)); - - [NativeTypeName("#define DISP_E_BADVARTYPE _HRESULT_TYPEDEF_(0x80020008L)")] - public const int DISP_E_BADVARTYPE = unchecked((int)(0x80020008)); - - [NativeTypeName("#define DISP_E_EXCEPTION _HRESULT_TYPEDEF_(0x80020009L)")] - public const int DISP_E_EXCEPTION = unchecked((int)(0x80020009)); - - [NativeTypeName("#define DISP_E_OVERFLOW _HRESULT_TYPEDEF_(0x8002000AL)")] - public const int DISP_E_OVERFLOW = unchecked((int)(0x8002000A)); - - [NativeTypeName("#define DISP_E_BADINDEX _HRESULT_TYPEDEF_(0x8002000BL)")] - public const int DISP_E_BADINDEX = unchecked((int)(0x8002000B)); - - [NativeTypeName("#define DISP_E_UNKNOWNLCID _HRESULT_TYPEDEF_(0x8002000CL)")] - public const int DISP_E_UNKNOWNLCID = unchecked((int)(0x8002000C)); - - [NativeTypeName("#define DISP_E_ARRAYISLOCKED _HRESULT_TYPEDEF_(0x8002000DL)")] - public const int DISP_E_ARRAYISLOCKED = unchecked((int)(0x8002000D)); - - [NativeTypeName("#define DISP_E_BADPARAMCOUNT _HRESULT_TYPEDEF_(0x8002000EL)")] - public const int DISP_E_BADPARAMCOUNT = unchecked((int)(0x8002000E)); - - [NativeTypeName("#define DISP_E_PARAMNOTOPTIONAL _HRESULT_TYPEDEF_(0x8002000FL)")] - public const int DISP_E_PARAMNOTOPTIONAL = unchecked((int)(0x8002000F)); - - [NativeTypeName("#define DISP_E_BADCALLEE _HRESULT_TYPEDEF_(0x80020010L)")] - public const int DISP_E_BADCALLEE = unchecked((int)(0x80020010)); - - [NativeTypeName("#define DISP_E_NOTACOLLECTION _HRESULT_TYPEDEF_(0x80020011L)")] - public const int DISP_E_NOTACOLLECTION = unchecked((int)(0x80020011)); - - [NativeTypeName("#define DISP_E_DIVBYZERO _HRESULT_TYPEDEF_(0x80020012L)")] - public const int DISP_E_DIVBYZERO = unchecked((int)(0x80020012)); - - [NativeTypeName("#define DISP_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80020013L)")] - public const int DISP_E_BUFFERTOOSMALL = unchecked((int)(0x80020013)); - - [NativeTypeName("#define TYPE_E_BUFFERTOOSMALL _HRESULT_TYPEDEF_(0x80028016L)")] - public const int TYPE_E_BUFFERTOOSMALL = unchecked((int)(0x80028016)); - - [NativeTypeName("#define TYPE_E_FIELDNOTFOUND _HRESULT_TYPEDEF_(0x80028017L)")] - public const int TYPE_E_FIELDNOTFOUND = unchecked((int)(0x80028017)); - - [NativeTypeName("#define TYPE_E_INVDATAREAD _HRESULT_TYPEDEF_(0x80028018L)")] - public const int TYPE_E_INVDATAREAD = unchecked((int)(0x80028018)); - - [NativeTypeName("#define TYPE_E_UNSUPFORMAT _HRESULT_TYPEDEF_(0x80028019L)")] - public const int TYPE_E_UNSUPFORMAT = unchecked((int)(0x80028019)); - - [NativeTypeName("#define TYPE_E_REGISTRYACCESS _HRESULT_TYPEDEF_(0x8002801CL)")] - public const int TYPE_E_REGISTRYACCESS = unchecked((int)(0x8002801C)); - - [NativeTypeName("#define TYPE_E_LIBNOTREGISTERED _HRESULT_TYPEDEF_(0x8002801DL)")] - public const int TYPE_E_LIBNOTREGISTERED = unchecked((int)(0x8002801D)); - - [NativeTypeName("#define TYPE_E_UNDEFINEDTYPE _HRESULT_TYPEDEF_(0x80028027L)")] - public const int TYPE_E_UNDEFINEDTYPE = unchecked((int)(0x80028027)); - - [NativeTypeName("#define TYPE_E_QUALIFIEDNAMEDISALLOWED _HRESULT_TYPEDEF_(0x80028028L)")] - public const int TYPE_E_QUALIFIEDNAMEDISALLOWED = unchecked((int)(0x80028028)); - - [NativeTypeName("#define TYPE_E_INVALIDSTATE _HRESULT_TYPEDEF_(0x80028029L)")] - public const int TYPE_E_INVALIDSTATE = unchecked((int)(0x80028029)); - - [NativeTypeName("#define TYPE_E_WRONGTYPEKIND _HRESULT_TYPEDEF_(0x8002802AL)")] - public const int TYPE_E_WRONGTYPEKIND = unchecked((int)(0x8002802A)); - - [NativeTypeName("#define TYPE_E_ELEMENTNOTFOUND _HRESULT_TYPEDEF_(0x8002802BL)")] - public const int TYPE_E_ELEMENTNOTFOUND = unchecked((int)(0x8002802B)); - - [NativeTypeName("#define TYPE_E_AMBIGUOUSNAME _HRESULT_TYPEDEF_(0x8002802CL)")] - public const int TYPE_E_AMBIGUOUSNAME = unchecked((int)(0x8002802C)); - - [NativeTypeName("#define TYPE_E_NAMECONFLICT _HRESULT_TYPEDEF_(0x8002802DL)")] - public const int TYPE_E_NAMECONFLICT = unchecked((int)(0x8002802D)); - - [NativeTypeName("#define TYPE_E_UNKNOWNLCID _HRESULT_TYPEDEF_(0x8002802EL)")] - public const int TYPE_E_UNKNOWNLCID = unchecked((int)(0x8002802E)); - - [NativeTypeName("#define TYPE_E_DLLFUNCTIONNOTFOUND _HRESULT_TYPEDEF_(0x8002802FL)")] - public const int TYPE_E_DLLFUNCTIONNOTFOUND = unchecked((int)(0x8002802F)); - - [NativeTypeName("#define TYPE_E_BADMODULEKIND _HRESULT_TYPEDEF_(0x800288BDL)")] - public const int TYPE_E_BADMODULEKIND = unchecked((int)(0x800288BD)); - - [NativeTypeName("#define TYPE_E_SIZETOOBIG _HRESULT_TYPEDEF_(0x800288C5L)")] - public const int TYPE_E_SIZETOOBIG = unchecked((int)(0x800288C5)); - - [NativeTypeName("#define TYPE_E_DUPLICATEID _HRESULT_TYPEDEF_(0x800288C6L)")] - public const int TYPE_E_DUPLICATEID = unchecked((int)(0x800288C6)); - - [NativeTypeName("#define TYPE_E_INVALIDID _HRESULT_TYPEDEF_(0x800288CFL)")] - public const int TYPE_E_INVALIDID = unchecked((int)(0x800288CF)); - - [NativeTypeName("#define TYPE_E_TYPEMISMATCH _HRESULT_TYPEDEF_(0x80028CA0L)")] - public const int TYPE_E_TYPEMISMATCH = unchecked((int)(0x80028CA0)); - - [NativeTypeName("#define TYPE_E_OUTOFBOUNDS _HRESULT_TYPEDEF_(0x80028CA1L)")] - public const int TYPE_E_OUTOFBOUNDS = unchecked((int)(0x80028CA1)); - - [NativeTypeName("#define TYPE_E_IOERROR _HRESULT_TYPEDEF_(0x80028CA2L)")] - public const int TYPE_E_IOERROR = unchecked((int)(0x80028CA2)); - - [NativeTypeName("#define TYPE_E_CANTCREATETMPFILE _HRESULT_TYPEDEF_(0x80028CA3L)")] - public const int TYPE_E_CANTCREATETMPFILE = unchecked((int)(0x80028CA3)); - - [NativeTypeName("#define TYPE_E_CANTLOADLIBRARY _HRESULT_TYPEDEF_(0x80029C4AL)")] - public const int TYPE_E_CANTLOADLIBRARY = unchecked((int)(0x80029C4A)); - - [NativeTypeName("#define TYPE_E_INCONSISTENTPROPFUNCS _HRESULT_TYPEDEF_(0x80029C83L)")] - public const int TYPE_E_INCONSISTENTPROPFUNCS = unchecked((int)(0x80029C83)); - - [NativeTypeName("#define TYPE_E_CIRCULARTYPE _HRESULT_TYPEDEF_(0x80029C84L)")] - public const int TYPE_E_CIRCULARTYPE = unchecked((int)(0x80029C84)); - - [NativeTypeName("#define OSS_MORE_BUF _HRESULT_TYPEDEF_(0x80093001L)")] - public const int OSS_MORE_BUF = unchecked((int)(0x80093001)); - - [NativeTypeName("#define OSS_NEGATIVE_UINTEGER _HRESULT_TYPEDEF_(0x80093002L)")] - public const int OSS_NEGATIVE_UINTEGER = unchecked((int)(0x80093002)); - - [NativeTypeName("#define OSS_PDU_RANGE _HRESULT_TYPEDEF_(0x80093003L)")] - public const int OSS_PDU_RANGE = unchecked((int)(0x80093003)); - - [NativeTypeName("#define OSS_MORE_INPUT _HRESULT_TYPEDEF_(0x80093004L)")] - public const int OSS_MORE_INPUT = unchecked((int)(0x80093004)); - - [NativeTypeName("#define OSS_DATA_ERROR _HRESULT_TYPEDEF_(0x80093005L)")] - public const int OSS_DATA_ERROR = unchecked((int)(0x80093005)); - - [NativeTypeName("#define OSS_BAD_ARG _HRESULT_TYPEDEF_(0x80093006L)")] - public const int OSS_BAD_ARG = unchecked((int)(0x80093006)); - - [NativeTypeName("#define OSS_BAD_VERSION _HRESULT_TYPEDEF_(0x80093007L)")] - public const int OSS_BAD_VERSION = unchecked((int)(0x80093007)); - - [NativeTypeName("#define OSS_OUT_MEMORY _HRESULT_TYPEDEF_(0x80093008L)")] - public const int OSS_OUT_MEMORY = unchecked((int)(0x80093008)); - - [NativeTypeName("#define OSS_PDU_MISMATCH _HRESULT_TYPEDEF_(0x80093009L)")] - public const int OSS_PDU_MISMATCH = unchecked((int)(0x80093009)); - - [NativeTypeName("#define OSS_LIMITED _HRESULT_TYPEDEF_(0x8009300AL)")] - public const int OSS_LIMITED = unchecked((int)(0x8009300A)); - - [NativeTypeName("#define OSS_BAD_PTR _HRESULT_TYPEDEF_(0x8009300BL)")] - public const int OSS_BAD_PTR = unchecked((int)(0x8009300B)); - - [NativeTypeName("#define OSS_BAD_TIME _HRESULT_TYPEDEF_(0x8009300CL)")] - public const int OSS_BAD_TIME = unchecked((int)(0x8009300C)); - - [NativeTypeName("#define OSS_INDEFINITE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009300DL)")] - public const int OSS_INDEFINITE_NOT_SUPPORTED = unchecked((int)(0x8009300D)); - - [NativeTypeName("#define OSS_MEM_ERROR _HRESULT_TYPEDEF_(0x8009300EL)")] - public const int OSS_MEM_ERROR = unchecked((int)(0x8009300E)); - - [NativeTypeName("#define OSS_BAD_TABLE _HRESULT_TYPEDEF_(0x8009300FL)")] - public const int OSS_BAD_TABLE = unchecked((int)(0x8009300F)); - - [NativeTypeName("#define OSS_TOO_LONG _HRESULT_TYPEDEF_(0x80093010L)")] - public const int OSS_TOO_LONG = unchecked((int)(0x80093010)); - - [NativeTypeName("#define OSS_CONSTRAINT_VIOLATED _HRESULT_TYPEDEF_(0x80093011L)")] - public const int OSS_CONSTRAINT_VIOLATED = unchecked((int)(0x80093011)); - - [NativeTypeName("#define OSS_FATAL_ERROR _HRESULT_TYPEDEF_(0x80093012L)")] - public const int OSS_FATAL_ERROR = unchecked((int)(0x80093012)); - - [NativeTypeName("#define OSS_ACCESS_SERIALIZATION_ERROR _HRESULT_TYPEDEF_(0x80093013L)")] - public const int OSS_ACCESS_SERIALIZATION_ERROR = unchecked((int)(0x80093013)); - - [NativeTypeName("#define OSS_NULL_TBL _HRESULT_TYPEDEF_(0x80093014L)")] - public const int OSS_NULL_TBL = unchecked((int)(0x80093014)); - - [NativeTypeName("#define OSS_NULL_FCN _HRESULT_TYPEDEF_(0x80093015L)")] - public const int OSS_NULL_FCN = unchecked((int)(0x80093015)); - - [NativeTypeName("#define OSS_BAD_ENCRULES _HRESULT_TYPEDEF_(0x80093016L)")] - public const int OSS_BAD_ENCRULES = unchecked((int)(0x80093016)); - - [NativeTypeName("#define OSS_UNAVAIL_ENCRULES _HRESULT_TYPEDEF_(0x80093017L)")] - public const int OSS_UNAVAIL_ENCRULES = unchecked((int)(0x80093017)); - - [NativeTypeName("#define OSS_CANT_OPEN_TRACE_WINDOW _HRESULT_TYPEDEF_(0x80093018L)")] - public const int OSS_CANT_OPEN_TRACE_WINDOW = unchecked((int)(0x80093018)); - - [NativeTypeName("#define OSS_UNIMPLEMENTED _HRESULT_TYPEDEF_(0x80093019L)")] - public const int OSS_UNIMPLEMENTED = unchecked((int)(0x80093019)); - - [NativeTypeName("#define OSS_OID_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009301AL)")] - public const int OSS_OID_DLL_NOT_LINKED = unchecked((int)(0x8009301A)); - - [NativeTypeName("#define OSS_CANT_OPEN_TRACE_FILE _HRESULT_TYPEDEF_(0x8009301BL)")] - public const int OSS_CANT_OPEN_TRACE_FILE = unchecked((int)(0x8009301B)); - - [NativeTypeName("#define OSS_TRACE_FILE_ALREADY_OPEN _HRESULT_TYPEDEF_(0x8009301CL)")] - public const int OSS_TRACE_FILE_ALREADY_OPEN = unchecked((int)(0x8009301C)); - - [NativeTypeName("#define OSS_TABLE_MISMATCH _HRESULT_TYPEDEF_(0x8009301DL)")] - public const int OSS_TABLE_MISMATCH = unchecked((int)(0x8009301D)); - - [NativeTypeName("#define OSS_TYPE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8009301EL)")] - public const int OSS_TYPE_NOT_SUPPORTED = unchecked((int)(0x8009301E)); - - [NativeTypeName("#define OSS_REAL_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009301FL)")] - public const int OSS_REAL_DLL_NOT_LINKED = unchecked((int)(0x8009301F)); - - [NativeTypeName("#define OSS_REAL_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093020L)")] - public const int OSS_REAL_CODE_NOT_LINKED = unchecked((int)(0x80093020)); - - [NativeTypeName("#define OSS_OUT_OF_RANGE _HRESULT_TYPEDEF_(0x80093021L)")] - public const int OSS_OUT_OF_RANGE = unchecked((int)(0x80093021)); - - [NativeTypeName("#define OSS_COPIER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093022L)")] - public const int OSS_COPIER_DLL_NOT_LINKED = unchecked((int)(0x80093022)); - - [NativeTypeName("#define OSS_CONSTRAINT_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093023L)")] - public const int OSS_CONSTRAINT_DLL_NOT_LINKED = unchecked((int)(0x80093023)); - - [NativeTypeName("#define OSS_COMPARATOR_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093024L)")] - public const int OSS_COMPARATOR_DLL_NOT_LINKED = unchecked((int)(0x80093024)); - - [NativeTypeName("#define OSS_COMPARATOR_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093025L)")] - public const int OSS_COMPARATOR_CODE_NOT_LINKED = unchecked((int)(0x80093025)); - - [NativeTypeName("#define OSS_MEM_MGR_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093026L)")] - public const int OSS_MEM_MGR_DLL_NOT_LINKED = unchecked((int)(0x80093026)); - - [NativeTypeName("#define OSS_PDV_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093027L)")] - public const int OSS_PDV_DLL_NOT_LINKED = unchecked((int)(0x80093027)); - - [NativeTypeName("#define OSS_PDV_CODE_NOT_LINKED _HRESULT_TYPEDEF_(0x80093028L)")] - public const int OSS_PDV_CODE_NOT_LINKED = unchecked((int)(0x80093028)); - - [NativeTypeName("#define OSS_API_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x80093029L)")] - public const int OSS_API_DLL_NOT_LINKED = unchecked((int)(0x80093029)); - - [NativeTypeName("#define OSS_BERDER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009302AL)")] - public const int OSS_BERDER_DLL_NOT_LINKED = unchecked((int)(0x8009302A)); - - [NativeTypeName("#define OSS_PER_DLL_NOT_LINKED _HRESULT_TYPEDEF_(0x8009302BL)")] - public const int OSS_PER_DLL_NOT_LINKED = unchecked((int)(0x8009302B)); - - [NativeTypeName("#define OSS_OPEN_TYPE_ERROR _HRESULT_TYPEDEF_(0x8009302CL)")] - public const int OSS_OPEN_TYPE_ERROR = unchecked((int)(0x8009302C)); - - [NativeTypeName("#define OSS_MUTEX_NOT_CREATED _HRESULT_TYPEDEF_(0x8009302DL)")] - public const int OSS_MUTEX_NOT_CREATED = unchecked((int)(0x8009302D)); - - [NativeTypeName("#define OSS_CANT_CLOSE_TRACE_FILE _HRESULT_TYPEDEF_(0x8009302EL)")] - public const int OSS_CANT_CLOSE_TRACE_FILE = unchecked((int)(0x8009302E)); - - [NativeTypeName("#define XENROLL_E_KEY_NOT_EXPORTABLE _HRESULT_TYPEDEF_(0x80095000L)")] - public const int XENROLL_E_KEY_NOT_EXPORTABLE = unchecked((int)(0x80095000)); - - [NativeTypeName("#define XENROLL_E_CANNOT_ADD_ROOT_CERT _HRESULT_TYPEDEF_(0x80095001L)")] - public const int XENROLL_E_CANNOT_ADD_ROOT_CERT = unchecked((int)(0x80095001)); - - [NativeTypeName("#define XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND _HRESULT_TYPEDEF_(0x80095002L)")] - public const int XENROLL_E_RESPONSE_KA_HASH_NOT_FOUND = unchecked((int)(0x80095002)); - - [NativeTypeName("#define XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH _HRESULT_TYPEDEF_(0x80095003L)")] - public const int XENROLL_E_RESPONSE_UNEXPECTED_KA_HASH = unchecked((int)(0x80095003)); - - [NativeTypeName("#define XENROLL_E_RESPONSE_KA_HASH_MISMATCH _HRESULT_TYPEDEF_(0x80095004L)")] - public const int XENROLL_E_RESPONSE_KA_HASH_MISMATCH = unchecked((int)(0x80095004)); - - [NativeTypeName("#define XENROLL_E_KEYSPEC_SMIME_MISMATCH _HRESULT_TYPEDEF_(0x80095005L)")] - public const int XENROLL_E_KEYSPEC_SMIME_MISMATCH = unchecked((int)(0x80095005)); - - [NativeTypeName("#define TRUST_E_SYSTEM_ERROR _HRESULT_TYPEDEF_(0x80096001L)")] - public const int TRUST_E_SYSTEM_ERROR = unchecked((int)(0x80096001)); - - [NativeTypeName("#define TRUST_E_NO_SIGNER_CERT _HRESULT_TYPEDEF_(0x80096002L)")] - public const int TRUST_E_NO_SIGNER_CERT = unchecked((int)(0x80096002)); - - [NativeTypeName("#define TRUST_E_COUNTER_SIGNER _HRESULT_TYPEDEF_(0x80096003L)")] - public const int TRUST_E_COUNTER_SIGNER = unchecked((int)(0x80096003)); - - [NativeTypeName("#define TRUST_E_CERT_SIGNATURE _HRESULT_TYPEDEF_(0x80096004L)")] - public const int TRUST_E_CERT_SIGNATURE = unchecked((int)(0x80096004)); - - [NativeTypeName("#define TRUST_E_TIME_STAMP _HRESULT_TYPEDEF_(0x80096005L)")] - public const int TRUST_E_TIME_STAMP = unchecked((int)(0x80096005)); - - [NativeTypeName("#define TRUST_E_BAD_DIGEST _HRESULT_TYPEDEF_(0x80096010L)")] - public const int TRUST_E_BAD_DIGEST = unchecked((int)(0x80096010)); - - [NativeTypeName("#define TRUST_E_MALFORMED_SIGNATURE _HRESULT_TYPEDEF_(0x80096011L)")] - public const int TRUST_E_MALFORMED_SIGNATURE = unchecked((int)(0x80096011)); - - [NativeTypeName("#define TRUST_E_BASIC_CONSTRAINTS _HRESULT_TYPEDEF_(0x80096019L)")] - public const int TRUST_E_BASIC_CONSTRAINTS = unchecked((int)(0x80096019)); - - [NativeTypeName("#define TRUST_E_FINANCIAL_CRITERIA _HRESULT_TYPEDEF_(0x8009601EL)")] - public const int TRUST_E_FINANCIAL_CRITERIA = unchecked((int)(0x8009601E)); - - [NativeTypeName("#define MSSIPOTF_E_OUTOFMEMRANGE _HRESULT_TYPEDEF_(0x80097001L)")] - public const int MSSIPOTF_E_OUTOFMEMRANGE = unchecked((int)(0x80097001)); - - [NativeTypeName("#define MSSIPOTF_E_CANTGETOBJECT _HRESULT_TYPEDEF_(0x80097002L)")] - public const int MSSIPOTF_E_CANTGETOBJECT = unchecked((int)(0x80097002)); - - [NativeTypeName("#define MSSIPOTF_E_NOHEADTABLE _HRESULT_TYPEDEF_(0x80097003L)")] - public const int MSSIPOTF_E_NOHEADTABLE = unchecked((int)(0x80097003)); - - [NativeTypeName("#define MSSIPOTF_E_BAD_MAGICNUMBER _HRESULT_TYPEDEF_(0x80097004L)")] - public const int MSSIPOTF_E_BAD_MAGICNUMBER = unchecked((int)(0x80097004)); - - [NativeTypeName("#define MSSIPOTF_E_BAD_OFFSET_TABLE _HRESULT_TYPEDEF_(0x80097005L)")] - public const int MSSIPOTF_E_BAD_OFFSET_TABLE = unchecked((int)(0x80097005)); - - [NativeTypeName("#define MSSIPOTF_E_TABLE_TAGORDER _HRESULT_TYPEDEF_(0x80097006L)")] - public const int MSSIPOTF_E_TABLE_TAGORDER = unchecked((int)(0x80097006)); - - [NativeTypeName("#define MSSIPOTF_E_TABLE_LONGWORD _HRESULT_TYPEDEF_(0x80097007L)")] - public const int MSSIPOTF_E_TABLE_LONGWORD = unchecked((int)(0x80097007)); - - [NativeTypeName("#define MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT _HRESULT_TYPEDEF_(0x80097008L)")] - public const int MSSIPOTF_E_BAD_FIRST_TABLE_PLACEMENT = unchecked((int)(0x80097008)); - - [NativeTypeName("#define MSSIPOTF_E_TABLES_OVERLAP _HRESULT_TYPEDEF_(0x80097009L)")] - public const int MSSIPOTF_E_TABLES_OVERLAP = unchecked((int)(0x80097009)); - - [NativeTypeName("#define MSSIPOTF_E_TABLE_PADBYTES _HRESULT_TYPEDEF_(0x8009700AL)")] - public const int MSSIPOTF_E_TABLE_PADBYTES = unchecked((int)(0x8009700A)); - - [NativeTypeName("#define MSSIPOTF_E_FILETOOSMALL _HRESULT_TYPEDEF_(0x8009700BL)")] - public const int MSSIPOTF_E_FILETOOSMALL = unchecked((int)(0x8009700B)); - - [NativeTypeName("#define MSSIPOTF_E_TABLE_CHECKSUM _HRESULT_TYPEDEF_(0x8009700CL)")] - public const int MSSIPOTF_E_TABLE_CHECKSUM = unchecked((int)(0x8009700C)); - - [NativeTypeName("#define MSSIPOTF_E_FILE_CHECKSUM _HRESULT_TYPEDEF_(0x8009700DL)")] - public const int MSSIPOTF_E_FILE_CHECKSUM = unchecked((int)(0x8009700D)); - - [NativeTypeName("#define MSSIPOTF_E_FAILED_POLICY _HRESULT_TYPEDEF_(0x80097010L)")] - public const int MSSIPOTF_E_FAILED_POLICY = unchecked((int)(0x80097010)); - - [NativeTypeName("#define MSSIPOTF_E_FAILED_HINTS_CHECK _HRESULT_TYPEDEF_(0x80097011L)")] - public const int MSSIPOTF_E_FAILED_HINTS_CHECK = unchecked((int)(0x80097011)); - - [NativeTypeName("#define MSSIPOTF_E_NOT_OPENTYPE _HRESULT_TYPEDEF_(0x80097012L)")] - public const int MSSIPOTF_E_NOT_OPENTYPE = unchecked((int)(0x80097012)); - - [NativeTypeName("#define MSSIPOTF_E_FILE _HRESULT_TYPEDEF_(0x80097013L)")] - public const int MSSIPOTF_E_FILE = unchecked((int)(0x80097013)); - - [NativeTypeName("#define MSSIPOTF_E_CRYPT _HRESULT_TYPEDEF_(0x80097014L)")] - public const int MSSIPOTF_E_CRYPT = unchecked((int)(0x80097014)); - - [NativeTypeName("#define MSSIPOTF_E_BADVERSION _HRESULT_TYPEDEF_(0x80097015L)")] - public const int MSSIPOTF_E_BADVERSION = unchecked((int)(0x80097015)); - - [NativeTypeName("#define MSSIPOTF_E_DSIG_STRUCTURE _HRESULT_TYPEDEF_(0x80097016L)")] - public const int MSSIPOTF_E_DSIG_STRUCTURE = unchecked((int)(0x80097016)); - - [NativeTypeName("#define MSSIPOTF_E_PCONST_CHECK _HRESULT_TYPEDEF_(0x80097017L)")] - public const int MSSIPOTF_E_PCONST_CHECK = unchecked((int)(0x80097017)); - - [NativeTypeName("#define MSSIPOTF_E_STRUCTURE _HRESULT_TYPEDEF_(0x80097018L)")] - public const int MSSIPOTF_E_STRUCTURE = unchecked((int)(0x80097018)); - - [NativeTypeName("#define TRUST_E_PROVIDER_UNKNOWN _HRESULT_TYPEDEF_(0x800B0001L)")] - public const int TRUST_E_PROVIDER_UNKNOWN = unchecked((int)(0x800B0001)); - - [NativeTypeName("#define TRUST_E_ACTION_UNKNOWN _HRESULT_TYPEDEF_(0x800B0002L)")] - public const int TRUST_E_ACTION_UNKNOWN = unchecked((int)(0x800B0002)); - - [NativeTypeName("#define TRUST_E_SUBJECT_FORM_UNKNOWN _HRESULT_TYPEDEF_(0x800B0003L)")] - public const int TRUST_E_SUBJECT_FORM_UNKNOWN = unchecked((int)(0x800B0003)); - - [NativeTypeName("#define TRUST_E_SUBJECT_NOT_TRUSTED _HRESULT_TYPEDEF_(0x800B0004L)")] - public const int TRUST_E_SUBJECT_NOT_TRUSTED = unchecked((int)(0x800B0004)); - - [NativeTypeName("#define DIGSIG_E_ENCODE _HRESULT_TYPEDEF_(0x800B0005L)")] - public const int DIGSIG_E_ENCODE = unchecked((int)(0x800B0005)); - - [NativeTypeName("#define DIGSIG_E_DECODE _HRESULT_TYPEDEF_(0x800B0006L)")] - public const int DIGSIG_E_DECODE = unchecked((int)(0x800B0006)); - - [NativeTypeName("#define DIGSIG_E_EXTENSIBILITY _HRESULT_TYPEDEF_(0x800B0007L)")] - public const int DIGSIG_E_EXTENSIBILITY = unchecked((int)(0x800B0007)); - - [NativeTypeName("#define DIGSIG_E_CRYPTO _HRESULT_TYPEDEF_(0x800B0008L)")] - public const int DIGSIG_E_CRYPTO = unchecked((int)(0x800B0008)); - - [NativeTypeName("#define PERSIST_E_SIZEDEFINITE _HRESULT_TYPEDEF_(0x800B0009L)")] - public const int PERSIST_E_SIZEDEFINITE = unchecked((int)(0x800B0009)); - - [NativeTypeName("#define PERSIST_E_SIZEINDEFINITE _HRESULT_TYPEDEF_(0x800B000AL)")] - public const int PERSIST_E_SIZEINDEFINITE = unchecked((int)(0x800B000A)); - - [NativeTypeName("#define PERSIST_E_NOTSELFSIZING _HRESULT_TYPEDEF_(0x800B000BL)")] - public const int PERSIST_E_NOTSELFSIZING = unchecked((int)(0x800B000B)); - - [NativeTypeName("#define TRUST_E_NOSIGNATURE _HRESULT_TYPEDEF_(0x800B0100L)")] - public const int TRUST_E_NOSIGNATURE = unchecked((int)(0x800B0100)); - - [NativeTypeName("#define TRUST_E_FAIL _HRESULT_TYPEDEF_(0x800B010BL)")] - public const int TRUST_E_FAIL = unchecked((int)(0x800B010B)); - - [NativeTypeName("#define TRUST_E_EXPLICIT_DISTRUST _HRESULT_TYPEDEF_(0x800B0111L)")] - public const int TRUST_E_EXPLICIT_DISTRUST = unchecked((int)(0x800B0111)); - - [NativeTypeName("#define COMQC_E_APPLICATION_NOT_QUEUED _HRESULT_TYPEDEF_(0x80110600L)")] - public const int COMQC_E_APPLICATION_NOT_QUEUED = unchecked((int)(0x80110600)); - - [NativeTypeName("#define COMQC_E_NO_QUEUEABLE_INTERFACES _HRESULT_TYPEDEF_(0x80110601L)")] - public const int COMQC_E_NO_QUEUEABLE_INTERFACES = unchecked((int)(0x80110601)); - - [NativeTypeName("#define COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80110602L)")] - public const int COMQC_E_QUEUING_SERVICE_NOT_AVAILABLE = unchecked((int)(0x80110602)); - - [NativeTypeName("#define COMQC_E_NO_IPERSISTSTREAM _HRESULT_TYPEDEF_(0x80110603L)")] - public const int COMQC_E_NO_IPERSISTSTREAM = unchecked((int)(0x80110603)); - - [NativeTypeName("#define COMQC_E_BAD_MESSAGE _HRESULT_TYPEDEF_(0x80110604L)")] - public const int COMQC_E_BAD_MESSAGE = unchecked((int)(0x80110604)); - - [NativeTypeName("#define COMQC_E_UNAUTHENTICATED _HRESULT_TYPEDEF_(0x80110605L)")] - public const int COMQC_E_UNAUTHENTICATED = unchecked((int)(0x80110605)); - - [NativeTypeName("#define COMQC_E_UNTRUSTED_ENQUEUER _HRESULT_TYPEDEF_(0x80110606L)")] - public const int COMQC_E_UNTRUSTED_ENQUEUER = unchecked((int)(0x80110606)); - - [NativeTypeName("#define MSDTC_E_DUPLICATE_RESOURCE _HRESULT_TYPEDEF_(0x80110701L)")] - public const int MSDTC_E_DUPLICATE_RESOURCE = unchecked((int)(0x80110701)); - - [NativeTypeName("#define MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR _HRESULT_TYPEDEF_(0x80180001L)")] - public const int MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR = unchecked((int)(0x80180001)); - - [NativeTypeName("#define MENROLL_E_DEVICE_AUTHENTICATION_ERROR _HRESULT_TYPEDEF_(0x80180002L)")] - public const int MENROLL_E_DEVICE_AUTHENTICATION_ERROR = unchecked((int)(0x80180002)); - - [NativeTypeName("#define MENROLL_E_DEVICE_AUTHORIZATION_ERROR _HRESULT_TYPEDEF_(0x80180003L)")] - public const int MENROLL_E_DEVICE_AUTHORIZATION_ERROR = unchecked((int)(0x80180003)); - - [NativeTypeName("#define MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR _HRESULT_TYPEDEF_(0x80180004L)")] - public const int MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR = unchecked((int)(0x80180004)); - - [NativeTypeName("#define MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR _HRESULT_TYPEDEF_(0x80180005L)")] - public const int MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR = unchecked((int)(0x80180005)); - - [NativeTypeName("#define MENROLL_E_DEVICE_INTERNALSERVICE_ERROR _HRESULT_TYPEDEF_(0x80180006L)")] - public const int MENROLL_E_DEVICE_INTERNALSERVICE_ERROR = unchecked((int)(0x80180006)); - - [NativeTypeName("#define MENROLL_E_DEVICE_INVALIDSECURITY_ERROR _HRESULT_TYPEDEF_(0x80180007L)")] - public const int MENROLL_E_DEVICE_INVALIDSECURITY_ERROR = unchecked((int)(0x80180007)); - - [NativeTypeName("#define MENROLL_E_DEVICE_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x80180008L)")] - public const int MENROLL_E_DEVICE_UNKNOWN_ERROR = unchecked((int)(0x80180008)); - - [NativeTypeName("#define MENROLL_E_ENROLLMENT_IN_PROGRESS _HRESULT_TYPEDEF_(0x80180009L)")] - public const int MENROLL_E_ENROLLMENT_IN_PROGRESS = unchecked((int)(0x80180009)); - - [NativeTypeName("#define MENROLL_E_DEVICE_ALREADY_ENROLLED _HRESULT_TYPEDEF_(0x8018000AL)")] - public const int MENROLL_E_DEVICE_ALREADY_ENROLLED = unchecked((int)(0x8018000A)); - - [NativeTypeName("#define MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID _HRESULT_TYPEDEF_(0x8018000DL)")] - public const int MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID = unchecked((int)(0x8018000D)); - - [NativeTypeName("#define MENROLL_E_PASSWORD_NEEDED _HRESULT_TYPEDEF_(0x8018000EL)")] - public const int MENROLL_E_PASSWORD_NEEDED = unchecked((int)(0x8018000E)); - - [NativeTypeName("#define MENROLL_E_WAB_ERROR _HRESULT_TYPEDEF_(0x8018000FL)")] - public const int MENROLL_E_WAB_ERROR = unchecked((int)(0x8018000F)); - - [NativeTypeName("#define MENROLL_E_CONNECTIVITY _HRESULT_TYPEDEF_(0x80180010L)")] - public const int MENROLL_E_CONNECTIVITY = unchecked((int)(0x80180010)); - - [NativeTypeName("#define MENROLL_S_ENROLLMENT_SUSPENDED _HRESULT_TYPEDEF_(0x00180011L)")] - public const int MENROLL_S_ENROLLMENT_SUSPENDED = ((int)(0x00180011)); - - [NativeTypeName("#define MENROLL_E_INVALIDSSLCERT _HRESULT_TYPEDEF_(0x80180012L)")] - public const int MENROLL_E_INVALIDSSLCERT = unchecked((int)(0x80180012)); - - [NativeTypeName("#define MENROLL_E_DEVICEAPREACHED _HRESULT_TYPEDEF_(0x80180013L)")] - public const int MENROLL_E_DEVICEAPREACHED = unchecked((int)(0x80180013)); - - [NativeTypeName("#define MENROLL_E_DEVICENOTSUPPORTED _HRESULT_TYPEDEF_(0x80180014L)")] - public const int MENROLL_E_DEVICENOTSUPPORTED = unchecked((int)(0x80180014)); - - [NativeTypeName("#define MENROLL_E_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80180015L)")] - public const int MENROLL_E_NOT_SUPPORTED = unchecked((int)(0x80180015)); - - [NativeTypeName("#define MENROLL_E_NOTELIGIBLETORENEW _HRESULT_TYPEDEF_(0x80180016L)")] - public const int MENROLL_E_NOTELIGIBLETORENEW = unchecked((int)(0x80180016)); - - [NativeTypeName("#define MENROLL_E_INMAINTENANCE _HRESULT_TYPEDEF_(0x80180017L)")] - public const int MENROLL_E_INMAINTENANCE = unchecked((int)(0x80180017)); - - [NativeTypeName("#define MENROLL_E_USER_LICENSE _HRESULT_TYPEDEF_(0x80180018L)")] - public const int MENROLL_E_USER_LICENSE = unchecked((int)(0x80180018)); - - [NativeTypeName("#define MENROLL_E_ENROLLMENTDATAINVALID _HRESULT_TYPEDEF_(0x80180019L)")] - public const int MENROLL_E_ENROLLMENTDATAINVALID = unchecked((int)(0x80180019)); - - [NativeTypeName("#define MENROLL_E_INSECUREREDIRECT _HRESULT_TYPEDEF_(0x8018001AL)")] - public const int MENROLL_E_INSECUREREDIRECT = unchecked((int)(0x8018001A)); - - [NativeTypeName("#define MENROLL_E_PLATFORM_WRONG_STATE _HRESULT_TYPEDEF_(0x8018001BL)")] - public const int MENROLL_E_PLATFORM_WRONG_STATE = unchecked((int)(0x8018001B)); - - [NativeTypeName("#define MENROLL_E_PLATFORM_LICENSE_ERROR _HRESULT_TYPEDEF_(0x8018001CL)")] - public const int MENROLL_E_PLATFORM_LICENSE_ERROR = unchecked((int)(0x8018001C)); - - [NativeTypeName("#define MENROLL_E_PLATFORM_UNKNOWN_ERROR _HRESULT_TYPEDEF_(0x8018001DL)")] - public const int MENROLL_E_PLATFORM_UNKNOWN_ERROR = unchecked((int)(0x8018001D)); - - [NativeTypeName("#define MENROLL_E_PROV_CSP_CERTSTORE _HRESULT_TYPEDEF_(0x8018001EL)")] - public const int MENROLL_E_PROV_CSP_CERTSTORE = unchecked((int)(0x8018001E)); - - [NativeTypeName("#define MENROLL_E_PROV_CSP_W7 _HRESULT_TYPEDEF_(0x8018001FL)")] - public const int MENROLL_E_PROV_CSP_W7 = unchecked((int)(0x8018001F)); - - [NativeTypeName("#define MENROLL_E_PROV_CSP_DMCLIENT _HRESULT_TYPEDEF_(0x80180020L)")] - public const int MENROLL_E_PROV_CSP_DMCLIENT = unchecked((int)(0x80180020)); - - [NativeTypeName("#define MENROLL_E_PROV_CSP_PFW _HRESULT_TYPEDEF_(0x80180021L)")] - public const int MENROLL_E_PROV_CSP_PFW = unchecked((int)(0x80180021)); - - [NativeTypeName("#define MENROLL_E_PROV_CSP_MISC _HRESULT_TYPEDEF_(0x80180022L)")] - public const int MENROLL_E_PROV_CSP_MISC = unchecked((int)(0x80180022)); - - [NativeTypeName("#define MENROLL_E_PROV_UNKNOWN _HRESULT_TYPEDEF_(0x80180023L)")] - public const int MENROLL_E_PROV_UNKNOWN = unchecked((int)(0x80180023)); - - [NativeTypeName("#define MENROLL_E_PROV_SSLCERTNOTFOUND _HRESULT_TYPEDEF_(0x80180024L)")] - public const int MENROLL_E_PROV_SSLCERTNOTFOUND = unchecked((int)(0x80180024)); - - [NativeTypeName("#define MENROLL_E_PROV_CSP_APPMGMT _HRESULT_TYPEDEF_(0x80180025L)")] - public const int MENROLL_E_PROV_CSP_APPMGMT = unchecked((int)(0x80180025)); - - [NativeTypeName("#define MENROLL_E_DEVICE_MANAGEMENT_BLOCKED _HRESULT_TYPEDEF_(0x80180026L)")] - public const int MENROLL_E_DEVICE_MANAGEMENT_BLOCKED = unchecked((int)(0x80180026)); - - [NativeTypeName("#define MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED _HRESULT_TYPEDEF_(0x80180027L)")] - public const int MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED = unchecked((int)(0x80180027)); - - [NativeTypeName("#define MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT _HRESULT_TYPEDEF_(0x80180028L)")] - public const int MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT = unchecked((int)(0x80180028)); - - [NativeTypeName("#define MENROLL_E_EMPTY_MESSAGE _HRESULT_TYPEDEF_(0x80180029L)")] - public const int MENROLL_E_EMPTY_MESSAGE = unchecked((int)(0x80180029)); - - [NativeTypeName("#define MENROLL_E_USER_CANCELLED _HRESULT_TYPEDEF_(0x80180030L)")] - public const int MENROLL_E_USER_CANCELLED = unchecked((int)(0x80180030)); - - [NativeTypeName("#define MENROLL_E_MDM_NOT_CONFIGURED _HRESULT_TYPEDEF_(0x80180031L)")] - public const int MENROLL_E_MDM_NOT_CONFIGURED = unchecked((int)(0x80180031)); - - [NativeTypeName("#define WER_S_REPORT_DEBUG _HRESULT_TYPEDEF_(0x001B0000L)")] - public const int WER_S_REPORT_DEBUG = ((int)(0x001B0000)); - - [NativeTypeName("#define WER_S_REPORT_UPLOADED _HRESULT_TYPEDEF_(0x001B0001L)")] - public const int WER_S_REPORT_UPLOADED = ((int)(0x001B0001)); - - [NativeTypeName("#define WER_S_REPORT_QUEUED _HRESULT_TYPEDEF_(0x001B0002L)")] - public const int WER_S_REPORT_QUEUED = ((int)(0x001B0002)); - - [NativeTypeName("#define WER_S_DISABLED _HRESULT_TYPEDEF_(0x001B0003L)")] - public const int WER_S_DISABLED = ((int)(0x001B0003)); - - [NativeTypeName("#define WER_S_SUSPENDED_UPLOAD _HRESULT_TYPEDEF_(0x001B0004L)")] - public const int WER_S_SUSPENDED_UPLOAD = ((int)(0x001B0004)); - - [NativeTypeName("#define WER_S_DISABLED_QUEUE _HRESULT_TYPEDEF_(0x001B0005L)")] - public const int WER_S_DISABLED_QUEUE = ((int)(0x001B0005)); - - [NativeTypeName("#define WER_S_DISABLED_ARCHIVE _HRESULT_TYPEDEF_(0x001B0006L)")] - public const int WER_S_DISABLED_ARCHIVE = ((int)(0x001B0006)); - - [NativeTypeName("#define WER_S_REPORT_ASYNC _HRESULT_TYPEDEF_(0x001B0007L)")] - public const int WER_S_REPORT_ASYNC = ((int)(0x001B0007)); - - [NativeTypeName("#define WER_S_IGNORE_ASSERT_INSTANCE _HRESULT_TYPEDEF_(0x001B0008L)")] - public const int WER_S_IGNORE_ASSERT_INSTANCE = ((int)(0x001B0008)); - - [NativeTypeName("#define WER_S_IGNORE_ALL_ASSERTS _HRESULT_TYPEDEF_(0x001B0009L)")] - public const int WER_S_IGNORE_ALL_ASSERTS = ((int)(0x001B0009)); - - [NativeTypeName("#define WER_S_ASSERT_CONTINUE _HRESULT_TYPEDEF_(0x001B000AL)")] - public const int WER_S_ASSERT_CONTINUE = ((int)(0x001B000A)); - - [NativeTypeName("#define WER_S_THROTTLED _HRESULT_TYPEDEF_(0x001B000BL)")] - public const int WER_S_THROTTLED = ((int)(0x001B000B)); - - [NativeTypeName("#define WER_S_REPORT_UPLOADED_CAB _HRESULT_TYPEDEF_(0x001B000CL)")] - public const int WER_S_REPORT_UPLOADED_CAB = ((int)(0x001B000C)); - - [NativeTypeName("#define WER_E_CRASH_FAILURE _HRESULT_TYPEDEF_(0x801B8000L)")] - public const int WER_E_CRASH_FAILURE = unchecked((int)(0x801B8000)); - - [NativeTypeName("#define WER_E_CANCELED _HRESULT_TYPEDEF_(0x801B8001L)")] - public const int WER_E_CANCELED = unchecked((int)(0x801B8001)); - - [NativeTypeName("#define WER_E_NETWORK_FAILURE _HRESULT_TYPEDEF_(0x801B8002L)")] - public const int WER_E_NETWORK_FAILURE = unchecked((int)(0x801B8002)); - - [NativeTypeName("#define WER_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x801B8003L)")] - public const int WER_E_NOT_INITIALIZED = unchecked((int)(0x801B8003)); - - [NativeTypeName("#define WER_E_ALREADY_REPORTING _HRESULT_TYPEDEF_(0x801B8004L)")] - public const int WER_E_ALREADY_REPORTING = unchecked((int)(0x801B8004)); - - [NativeTypeName("#define WER_E_DUMP_THROTTLED _HRESULT_TYPEDEF_(0x801B8005L)")] - public const int WER_E_DUMP_THROTTLED = unchecked((int)(0x801B8005)); - - [NativeTypeName("#define WER_E_INSUFFICIENT_CONSENT _HRESULT_TYPEDEF_(0x801B8006L)")] - public const int WER_E_INSUFFICIENT_CONSENT = unchecked((int)(0x801B8006)); - - [NativeTypeName("#define WER_E_TOO_HEAVY _HRESULT_TYPEDEF_(0x801B8007L)")] - public const int WER_E_TOO_HEAVY = unchecked((int)(0x801B8007)); - - [NativeTypeName("#define DWM_E_COMPOSITIONDISABLED _HRESULT_TYPEDEF_(0x80263001L)")] - public const int DWM_E_COMPOSITIONDISABLED = unchecked((int)(0x80263001)); - - [NativeTypeName("#define DWM_E_REMOTING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80263002L)")] - public const int DWM_E_REMOTING_NOT_SUPPORTED = unchecked((int)(0x80263002)); - - [NativeTypeName("#define DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE _HRESULT_TYPEDEF_(0x80263003L)")] - public const int DWM_E_NO_REDIRECTION_SURFACE_AVAILABLE = unchecked((int)(0x80263003)); - - [NativeTypeName("#define DWM_E_NOT_QUEUING_PRESENTS _HRESULT_TYPEDEF_(0x80263004L)")] - public const int DWM_E_NOT_QUEUING_PRESENTS = unchecked((int)(0x80263004)); - - [NativeTypeName("#define DWM_E_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x80263005L)")] - public const int DWM_E_ADAPTER_NOT_FOUND = unchecked((int)(0x80263005)); - - [NativeTypeName("#define DWM_S_GDI_REDIRECTION_SURFACE _HRESULT_TYPEDEF_(0x00263005L)")] - public const int DWM_S_GDI_REDIRECTION_SURFACE = ((int)(0x00263005)); - - [NativeTypeName("#define DWM_E_TEXTURE_TOO_LARGE _HRESULT_TYPEDEF_(0x80263007L)")] - public const int DWM_E_TEXTURE_TOO_LARGE = unchecked((int)(0x80263007)); - - [NativeTypeName("#define DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI _HRESULT_TYPEDEF_(0x00263008L)")] - public const int DWM_S_GDI_REDIRECTION_SURFACE_BLT_VIA_GDI = ((int)(0x00263008)); - - [NativeTypeName("#define NAP_E_INVALID_PACKET _HRESULT_TYPEDEF_(0x80270001L)")] - public const int NAP_E_INVALID_PACKET = unchecked((int)(0x80270001)); - - [NativeTypeName("#define NAP_E_MISSING_SOH _HRESULT_TYPEDEF_(0x80270002L)")] - public const int NAP_E_MISSING_SOH = unchecked((int)(0x80270002)); - - [NativeTypeName("#define NAP_E_CONFLICTING_ID _HRESULT_TYPEDEF_(0x80270003L)")] - public const int NAP_E_CONFLICTING_ID = unchecked((int)(0x80270003)); - - [NativeTypeName("#define NAP_E_NO_CACHED_SOH _HRESULT_TYPEDEF_(0x80270004L)")] - public const int NAP_E_NO_CACHED_SOH = unchecked((int)(0x80270004)); - - [NativeTypeName("#define NAP_E_STILL_BOUND _HRESULT_TYPEDEF_(0x80270005L)")] - public const int NAP_E_STILL_BOUND = unchecked((int)(0x80270005)); - - [NativeTypeName("#define NAP_E_NOT_REGISTERED _HRESULT_TYPEDEF_(0x80270006L)")] - public const int NAP_E_NOT_REGISTERED = unchecked((int)(0x80270006)); - - [NativeTypeName("#define NAP_E_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x80270007L)")] - public const int NAP_E_NOT_INITIALIZED = unchecked((int)(0x80270007)); - - [NativeTypeName("#define NAP_E_MISMATCHED_ID _HRESULT_TYPEDEF_(0x80270008L)")] - public const int NAP_E_MISMATCHED_ID = unchecked((int)(0x80270008)); - - [NativeTypeName("#define NAP_E_NOT_PENDING _HRESULT_TYPEDEF_(0x80270009L)")] - public const int NAP_E_NOT_PENDING = unchecked((int)(0x80270009)); - - [NativeTypeName("#define NAP_E_ID_NOT_FOUND _HRESULT_TYPEDEF_(0x8027000AL)")] - public const int NAP_E_ID_NOT_FOUND = unchecked((int)(0x8027000A)); - - [NativeTypeName("#define NAP_E_MAXSIZE_TOO_SMALL _HRESULT_TYPEDEF_(0x8027000BL)")] - public const int NAP_E_MAXSIZE_TOO_SMALL = unchecked((int)(0x8027000B)); - - [NativeTypeName("#define NAP_E_SERVICE_NOT_RUNNING _HRESULT_TYPEDEF_(0x8027000CL)")] - public const int NAP_E_SERVICE_NOT_RUNNING = unchecked((int)(0x8027000C)); - - [NativeTypeName("#define NAP_S_CERT_ALREADY_PRESENT _HRESULT_TYPEDEF_(0x0027000DL)")] - public const int NAP_S_CERT_ALREADY_PRESENT = ((int)(0x0027000D)); - - [NativeTypeName("#define NAP_E_ENTITY_DISABLED _HRESULT_TYPEDEF_(0x8027000EL)")] - public const int NAP_E_ENTITY_DISABLED = unchecked((int)(0x8027000E)); - - [NativeTypeName("#define NAP_E_NETSH_GROUPPOLICY_ERROR _HRESULT_TYPEDEF_(0x8027000FL)")] - public const int NAP_E_NETSH_GROUPPOLICY_ERROR = unchecked((int)(0x8027000F)); - - [NativeTypeName("#define NAP_E_TOO_MANY_CALLS _HRESULT_TYPEDEF_(0x80270010L)")] - public const int NAP_E_TOO_MANY_CALLS = unchecked((int)(0x80270010)); - - [NativeTypeName("#define NAP_E_SHV_CONFIG_EXISTED _HRESULT_TYPEDEF_(0x80270011L)")] - public const int NAP_E_SHV_CONFIG_EXISTED = unchecked((int)(0x80270011)); - - [NativeTypeName("#define NAP_E_SHV_CONFIG_NOT_FOUND _HRESULT_TYPEDEF_(0x80270012L)")] - public const int NAP_E_SHV_CONFIG_NOT_FOUND = unchecked((int)(0x80270012)); - - [NativeTypeName("#define NAP_E_SHV_TIMEOUT _HRESULT_TYPEDEF_(0x80270013L)")] - public const int NAP_E_SHV_TIMEOUT = unchecked((int)(0x80270013)); - - [NativeTypeName("#define TPMAPI_E_INVALID_STATE _HRESULT_TYPEDEF_(0x80290100L)")] - public const int TPMAPI_E_INVALID_STATE = unchecked((int)(0x80290100)); - - [NativeTypeName("#define TPMAPI_E_NOT_ENOUGH_DATA _HRESULT_TYPEDEF_(0x80290101L)")] - public const int TPMAPI_E_NOT_ENOUGH_DATA = unchecked((int)(0x80290101)); - - [NativeTypeName("#define TPMAPI_E_TOO_MUCH_DATA _HRESULT_TYPEDEF_(0x80290102L)")] - public const int TPMAPI_E_TOO_MUCH_DATA = unchecked((int)(0x80290102)); - - [NativeTypeName("#define TPMAPI_E_INVALID_OUTPUT_POINTER _HRESULT_TYPEDEF_(0x80290103L)")] - public const int TPMAPI_E_INVALID_OUTPUT_POINTER = unchecked((int)(0x80290103)); - - [NativeTypeName("#define TPMAPI_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80290104L)")] - public const int TPMAPI_E_INVALID_PARAMETER = unchecked((int)(0x80290104)); - - [NativeTypeName("#define TPMAPI_E_OUT_OF_MEMORY _HRESULT_TYPEDEF_(0x80290105L)")] - public const int TPMAPI_E_OUT_OF_MEMORY = unchecked((int)(0x80290105)); - - [NativeTypeName("#define TPMAPI_E_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80290106L)")] - public const int TPMAPI_E_BUFFER_TOO_SMALL = unchecked((int)(0x80290106)); - - [NativeTypeName("#define TPMAPI_E_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x80290107L)")] - public const int TPMAPI_E_INTERNAL_ERROR = unchecked((int)(0x80290107)); - - [NativeTypeName("#define TPMAPI_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x80290108L)")] - public const int TPMAPI_E_ACCESS_DENIED = unchecked((int)(0x80290108)); - - [NativeTypeName("#define TPMAPI_E_AUTHORIZATION_FAILED _HRESULT_TYPEDEF_(0x80290109L)")] - public const int TPMAPI_E_AUTHORIZATION_FAILED = unchecked((int)(0x80290109)); - - [NativeTypeName("#define TPMAPI_E_INVALID_CONTEXT_HANDLE _HRESULT_TYPEDEF_(0x8029010AL)")] - public const int TPMAPI_E_INVALID_CONTEXT_HANDLE = unchecked((int)(0x8029010A)); - - [NativeTypeName("#define TPMAPI_E_TBS_COMMUNICATION_ERROR _HRESULT_TYPEDEF_(0x8029010BL)")] - public const int TPMAPI_E_TBS_COMMUNICATION_ERROR = unchecked((int)(0x8029010B)); - - [NativeTypeName("#define TPMAPI_E_TPM_COMMAND_ERROR _HRESULT_TYPEDEF_(0x8029010CL)")] - public const int TPMAPI_E_TPM_COMMAND_ERROR = unchecked((int)(0x8029010C)); - - [NativeTypeName("#define TPMAPI_E_MESSAGE_TOO_LARGE _HRESULT_TYPEDEF_(0x8029010DL)")] - public const int TPMAPI_E_MESSAGE_TOO_LARGE = unchecked((int)(0x8029010D)); - - [NativeTypeName("#define TPMAPI_E_INVALID_ENCODING _HRESULT_TYPEDEF_(0x8029010EL)")] - public const int TPMAPI_E_INVALID_ENCODING = unchecked((int)(0x8029010E)); - - [NativeTypeName("#define TPMAPI_E_INVALID_KEY_SIZE _HRESULT_TYPEDEF_(0x8029010FL)")] - public const int TPMAPI_E_INVALID_KEY_SIZE = unchecked((int)(0x8029010F)); - - [NativeTypeName("#define TPMAPI_E_ENCRYPTION_FAILED _HRESULT_TYPEDEF_(0x80290110L)")] - public const int TPMAPI_E_ENCRYPTION_FAILED = unchecked((int)(0x80290110)); - - [NativeTypeName("#define TPMAPI_E_INVALID_KEY_PARAMS _HRESULT_TYPEDEF_(0x80290111L)")] - public const int TPMAPI_E_INVALID_KEY_PARAMS = unchecked((int)(0x80290111)); - - [NativeTypeName("#define TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB _HRESULT_TYPEDEF_(0x80290112L)")] - public const int TPMAPI_E_INVALID_MIGRATION_AUTHORIZATION_BLOB = unchecked((int)(0x80290112)); - - [NativeTypeName("#define TPMAPI_E_INVALID_PCR_INDEX _HRESULT_TYPEDEF_(0x80290113L)")] - public const int TPMAPI_E_INVALID_PCR_INDEX = unchecked((int)(0x80290113)); - - [NativeTypeName("#define TPMAPI_E_INVALID_DELEGATE_BLOB _HRESULT_TYPEDEF_(0x80290114L)")] - public const int TPMAPI_E_INVALID_DELEGATE_BLOB = unchecked((int)(0x80290114)); - - [NativeTypeName("#define TPMAPI_E_INVALID_CONTEXT_PARAMS _HRESULT_TYPEDEF_(0x80290115L)")] - public const int TPMAPI_E_INVALID_CONTEXT_PARAMS = unchecked((int)(0x80290115)); - - [NativeTypeName("#define TPMAPI_E_INVALID_KEY_BLOB _HRESULT_TYPEDEF_(0x80290116L)")] - public const int TPMAPI_E_INVALID_KEY_BLOB = unchecked((int)(0x80290116)); - - [NativeTypeName("#define TPMAPI_E_INVALID_PCR_DATA _HRESULT_TYPEDEF_(0x80290117L)")] - public const int TPMAPI_E_INVALID_PCR_DATA = unchecked((int)(0x80290117)); - - [NativeTypeName("#define TPMAPI_E_INVALID_OWNER_AUTH _HRESULT_TYPEDEF_(0x80290118L)")] - public const int TPMAPI_E_INVALID_OWNER_AUTH = unchecked((int)(0x80290118)); - - [NativeTypeName("#define TPMAPI_E_FIPS_RNG_CHECK_FAILED _HRESULT_TYPEDEF_(0x80290119L)")] - public const int TPMAPI_E_FIPS_RNG_CHECK_FAILED = unchecked((int)(0x80290119)); - - [NativeTypeName("#define TPMAPI_E_EMPTY_TCG_LOG _HRESULT_TYPEDEF_(0x8029011AL)")] - public const int TPMAPI_E_EMPTY_TCG_LOG = unchecked((int)(0x8029011A)); - - [NativeTypeName("#define TPMAPI_E_INVALID_TCG_LOG_ENTRY _HRESULT_TYPEDEF_(0x8029011BL)")] - public const int TPMAPI_E_INVALID_TCG_LOG_ENTRY = unchecked((int)(0x8029011B)); - - [NativeTypeName("#define TPMAPI_E_TCG_SEPARATOR_ABSENT _HRESULT_TYPEDEF_(0x8029011CL)")] - public const int TPMAPI_E_TCG_SEPARATOR_ABSENT = unchecked((int)(0x8029011C)); - - [NativeTypeName("#define TPMAPI_E_TCG_INVALID_DIGEST_ENTRY _HRESULT_TYPEDEF_(0x8029011DL)")] - public const int TPMAPI_E_TCG_INVALID_DIGEST_ENTRY = unchecked((int)(0x8029011D)); - - [NativeTypeName("#define TPMAPI_E_POLICY_DENIES_OPERATION _HRESULT_TYPEDEF_(0x8029011EL)")] - public const int TPMAPI_E_POLICY_DENIES_OPERATION = unchecked((int)(0x8029011E)); - - [NativeTypeName("#define TPMAPI_E_NV_BITS_NOT_DEFINED _HRESULT_TYPEDEF_(0x8029011FL)")] - public const int TPMAPI_E_NV_BITS_NOT_DEFINED = unchecked((int)(0x8029011F)); - - [NativeTypeName("#define TPMAPI_E_NV_BITS_NOT_READY _HRESULT_TYPEDEF_(0x80290120L)")] - public const int TPMAPI_E_NV_BITS_NOT_READY = unchecked((int)(0x80290120)); - - [NativeTypeName("#define TPMAPI_E_SEALING_KEY_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80290121L)")] - public const int TPMAPI_E_SEALING_KEY_NOT_AVAILABLE = unchecked((int)(0x80290121)); - - [NativeTypeName("#define TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND _HRESULT_TYPEDEF_(0x80290122L)")] - public const int TPMAPI_E_NO_AUTHORIZATION_CHAIN_FOUND = unchecked((int)(0x80290122)); - - [NativeTypeName("#define TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80290123L)")] - public const int TPMAPI_E_SVN_COUNTER_NOT_AVAILABLE = unchecked((int)(0x80290123)); - - [NativeTypeName("#define TPMAPI_E_OWNER_AUTH_NOT_NULL _HRESULT_TYPEDEF_(0x80290124L)")] - public const int TPMAPI_E_OWNER_AUTH_NOT_NULL = unchecked((int)(0x80290124)); - - [NativeTypeName("#define TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL _HRESULT_TYPEDEF_(0x80290125L)")] - public const int TPMAPI_E_ENDORSEMENT_AUTH_NOT_NULL = unchecked((int)(0x80290125)); - - [NativeTypeName("#define TPMAPI_E_AUTHORIZATION_REVOKED _HRESULT_TYPEDEF_(0x80290126L)")] - public const int TPMAPI_E_AUTHORIZATION_REVOKED = unchecked((int)(0x80290126)); - - [NativeTypeName("#define TPMAPI_E_MALFORMED_AUTHORIZATION_KEY _HRESULT_TYPEDEF_(0x80290127L)")] - public const int TPMAPI_E_MALFORMED_AUTHORIZATION_KEY = unchecked((int)(0x80290127)); - - [NativeTypeName("#define TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290128L)")] - public const int TPMAPI_E_AUTHORIZING_KEY_NOT_SUPPORTED = unchecked((int)(0x80290128)); - - [NativeTypeName("#define TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE _HRESULT_TYPEDEF_(0x80290129L)")] - public const int TPMAPI_E_INVALID_AUTHORIZATION_SIGNATURE = unchecked((int)(0x80290129)); - - [NativeTypeName("#define TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY _HRESULT_TYPEDEF_(0x8029012AL)")] - public const int TPMAPI_E_MALFORMED_AUTHORIZATION_POLICY = unchecked((int)(0x8029012A)); - - [NativeTypeName("#define TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER _HRESULT_TYPEDEF_(0x8029012BL)")] - public const int TPMAPI_E_MALFORMED_AUTHORIZATION_OTHER = unchecked((int)(0x8029012B)); - - [NativeTypeName("#define TPMAPI_E_SEALING_KEY_CHANGED _HRESULT_TYPEDEF_(0x8029012CL)")] - public const int TPMAPI_E_SEALING_KEY_CHANGED = unchecked((int)(0x8029012C)); - - [NativeTypeName("#define TPMAPI_E_INVALID_TPM_VERSION _HRESULT_TYPEDEF_(0x8029012DL)")] - public const int TPMAPI_E_INVALID_TPM_VERSION = unchecked((int)(0x8029012D)); - - [NativeTypeName("#define TPMAPI_E_INVALID_POLICYAUTH_BLOB_TYPE _HRESULT_TYPEDEF_(0x8029012EL)")] - public const int TPMAPI_E_INVALID_POLICYAUTH_BLOB_TYPE = unchecked((int)(0x8029012E)); - - [NativeTypeName("#define TBSIMP_E_BUFFER_TOO_SMALL _HRESULT_TYPEDEF_(0x80290200L)")] - public const int TBSIMP_E_BUFFER_TOO_SMALL = unchecked((int)(0x80290200)); - - [NativeTypeName("#define TBSIMP_E_CLEANUP_FAILED _HRESULT_TYPEDEF_(0x80290201L)")] - public const int TBSIMP_E_CLEANUP_FAILED = unchecked((int)(0x80290201)); - - [NativeTypeName("#define TBSIMP_E_INVALID_CONTEXT_HANDLE _HRESULT_TYPEDEF_(0x80290202L)")] - public const int TBSIMP_E_INVALID_CONTEXT_HANDLE = unchecked((int)(0x80290202)); - - [NativeTypeName("#define TBSIMP_E_INVALID_CONTEXT_PARAM _HRESULT_TYPEDEF_(0x80290203L)")] - public const int TBSIMP_E_INVALID_CONTEXT_PARAM = unchecked((int)(0x80290203)); - - [NativeTypeName("#define TBSIMP_E_TPM_ERROR _HRESULT_TYPEDEF_(0x80290204L)")] - public const int TBSIMP_E_TPM_ERROR = unchecked((int)(0x80290204)); - - [NativeTypeName("#define TBSIMP_E_HASH_BAD_KEY _HRESULT_TYPEDEF_(0x80290205L)")] - public const int TBSIMP_E_HASH_BAD_KEY = unchecked((int)(0x80290205)); - - [NativeTypeName("#define TBSIMP_E_DUPLICATE_VHANDLE _HRESULT_TYPEDEF_(0x80290206L)")] - public const int TBSIMP_E_DUPLICATE_VHANDLE = unchecked((int)(0x80290206)); - - [NativeTypeName("#define TBSIMP_E_INVALID_OUTPUT_POINTER _HRESULT_TYPEDEF_(0x80290207L)")] - public const int TBSIMP_E_INVALID_OUTPUT_POINTER = unchecked((int)(0x80290207)); - - [NativeTypeName("#define TBSIMP_E_INVALID_PARAMETER _HRESULT_TYPEDEF_(0x80290208L)")] - public const int TBSIMP_E_INVALID_PARAMETER = unchecked((int)(0x80290208)); - - [NativeTypeName("#define TBSIMP_E_RPC_INIT_FAILED _HRESULT_TYPEDEF_(0x80290209L)")] - public const int TBSIMP_E_RPC_INIT_FAILED = unchecked((int)(0x80290209)); - - [NativeTypeName("#define TBSIMP_E_SCHEDULER_NOT_RUNNING _HRESULT_TYPEDEF_(0x8029020AL)")] - public const int TBSIMP_E_SCHEDULER_NOT_RUNNING = unchecked((int)(0x8029020A)); - - [NativeTypeName("#define TBSIMP_E_COMMAND_CANCELED _HRESULT_TYPEDEF_(0x8029020BL)")] - public const int TBSIMP_E_COMMAND_CANCELED = unchecked((int)(0x8029020B)); - - [NativeTypeName("#define TBSIMP_E_OUT_OF_MEMORY _HRESULT_TYPEDEF_(0x8029020CL)")] - public const int TBSIMP_E_OUT_OF_MEMORY = unchecked((int)(0x8029020C)); - - [NativeTypeName("#define TBSIMP_E_LIST_NO_MORE_ITEMS _HRESULT_TYPEDEF_(0x8029020DL)")] - public const int TBSIMP_E_LIST_NO_MORE_ITEMS = unchecked((int)(0x8029020D)); - - [NativeTypeName("#define TBSIMP_E_LIST_NOT_FOUND _HRESULT_TYPEDEF_(0x8029020EL)")] - public const int TBSIMP_E_LIST_NOT_FOUND = unchecked((int)(0x8029020E)); - - [NativeTypeName("#define TBSIMP_E_NOT_ENOUGH_SPACE _HRESULT_TYPEDEF_(0x8029020FL)")] - public const int TBSIMP_E_NOT_ENOUGH_SPACE = unchecked((int)(0x8029020F)); - - [NativeTypeName("#define TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS _HRESULT_TYPEDEF_(0x80290210L)")] - public const int TBSIMP_E_NOT_ENOUGH_TPM_CONTEXTS = unchecked((int)(0x80290210)); - - [NativeTypeName("#define TBSIMP_E_COMMAND_FAILED _HRESULT_TYPEDEF_(0x80290211L)")] - public const int TBSIMP_E_COMMAND_FAILED = unchecked((int)(0x80290211)); - - [NativeTypeName("#define TBSIMP_E_UNKNOWN_ORDINAL _HRESULT_TYPEDEF_(0x80290212L)")] - public const int TBSIMP_E_UNKNOWN_ORDINAL = unchecked((int)(0x80290212)); - - [NativeTypeName("#define TBSIMP_E_RESOURCE_EXPIRED _HRESULT_TYPEDEF_(0x80290213L)")] - public const int TBSIMP_E_RESOURCE_EXPIRED = unchecked((int)(0x80290213)); - - [NativeTypeName("#define TBSIMP_E_INVALID_RESOURCE _HRESULT_TYPEDEF_(0x80290214L)")] - public const int TBSIMP_E_INVALID_RESOURCE = unchecked((int)(0x80290214)); - - [NativeTypeName("#define TBSIMP_E_NOTHING_TO_UNLOAD _HRESULT_TYPEDEF_(0x80290215L)")] - public const int TBSIMP_E_NOTHING_TO_UNLOAD = unchecked((int)(0x80290215)); - - [NativeTypeName("#define TBSIMP_E_HASH_TABLE_FULL _HRESULT_TYPEDEF_(0x80290216L)")] - public const int TBSIMP_E_HASH_TABLE_FULL = unchecked((int)(0x80290216)); - - [NativeTypeName("#define TBSIMP_E_TOO_MANY_TBS_CONTEXTS _HRESULT_TYPEDEF_(0x80290217L)")] - public const int TBSIMP_E_TOO_MANY_TBS_CONTEXTS = unchecked((int)(0x80290217)); - - [NativeTypeName("#define TBSIMP_E_TOO_MANY_RESOURCES _HRESULT_TYPEDEF_(0x80290218L)")] - public const int TBSIMP_E_TOO_MANY_RESOURCES = unchecked((int)(0x80290218)); - - [NativeTypeName("#define TBSIMP_E_PPI_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80290219L)")] - public const int TBSIMP_E_PPI_NOT_SUPPORTED = unchecked((int)(0x80290219)); - - [NativeTypeName("#define TBSIMP_E_TPM_INCOMPATIBLE _HRESULT_TYPEDEF_(0x8029021AL)")] - public const int TBSIMP_E_TPM_INCOMPATIBLE = unchecked((int)(0x8029021A)); - - [NativeTypeName("#define TBSIMP_E_NO_EVENT_LOG _HRESULT_TYPEDEF_(0x8029021BL)")] - public const int TBSIMP_E_NO_EVENT_LOG = unchecked((int)(0x8029021B)); - - [NativeTypeName("#define PLA_E_DCS_NOT_FOUND _HRESULT_TYPEDEF_(0x80300002L)")] - public const int PLA_E_DCS_NOT_FOUND = unchecked((int)(0x80300002)); - - [NativeTypeName("#define PLA_E_DCS_IN_USE _HRESULT_TYPEDEF_(0x803000AAL)")] - public const int PLA_E_DCS_IN_USE = unchecked((int)(0x803000AA)); - - [NativeTypeName("#define PLA_E_TOO_MANY_FOLDERS _HRESULT_TYPEDEF_(0x80300045L)")] - public const int PLA_E_TOO_MANY_FOLDERS = unchecked((int)(0x80300045)); - - [NativeTypeName("#define PLA_E_NO_MIN_DISK _HRESULT_TYPEDEF_(0x80300070L)")] - public const int PLA_E_NO_MIN_DISK = unchecked((int)(0x80300070)); - - [NativeTypeName("#define PLA_E_DCS_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803000B7L)")] - public const int PLA_E_DCS_ALREADY_EXISTS = unchecked((int)(0x803000B7)); - - [NativeTypeName("#define PLA_S_PROPERTY_IGNORED _HRESULT_TYPEDEF_(0x00300100L)")] - public const int PLA_S_PROPERTY_IGNORED = ((int)(0x00300100)); - - [NativeTypeName("#define PLA_E_PROPERTY_CONFLICT _HRESULT_TYPEDEF_(0x80300101L)")] - public const int PLA_E_PROPERTY_CONFLICT = unchecked((int)(0x80300101)); - - [NativeTypeName("#define PLA_E_DCS_SINGLETON_REQUIRED _HRESULT_TYPEDEF_(0x80300102L)")] - public const int PLA_E_DCS_SINGLETON_REQUIRED = unchecked((int)(0x80300102)); - - [NativeTypeName("#define PLA_E_CREDENTIALS_REQUIRED _HRESULT_TYPEDEF_(0x80300103L)")] - public const int PLA_E_CREDENTIALS_REQUIRED = unchecked((int)(0x80300103)); - - [NativeTypeName("#define PLA_E_DCS_NOT_RUNNING _HRESULT_TYPEDEF_(0x80300104L)")] - public const int PLA_E_DCS_NOT_RUNNING = unchecked((int)(0x80300104)); - - [NativeTypeName("#define PLA_E_CONFLICT_INCL_EXCL_API _HRESULT_TYPEDEF_(0x80300105L)")] - public const int PLA_E_CONFLICT_INCL_EXCL_API = unchecked((int)(0x80300105)); - - [NativeTypeName("#define PLA_E_NETWORK_EXE_NOT_VALID _HRESULT_TYPEDEF_(0x80300106L)")] - public const int PLA_E_NETWORK_EXE_NOT_VALID = unchecked((int)(0x80300106)); - - [NativeTypeName("#define PLA_E_EXE_ALREADY_CONFIGURED _HRESULT_TYPEDEF_(0x80300107L)")] - public const int PLA_E_EXE_ALREADY_CONFIGURED = unchecked((int)(0x80300107)); - - [NativeTypeName("#define PLA_E_EXE_PATH_NOT_VALID _HRESULT_TYPEDEF_(0x80300108L)")] - public const int PLA_E_EXE_PATH_NOT_VALID = unchecked((int)(0x80300108)); - - [NativeTypeName("#define PLA_E_DC_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80300109L)")] - public const int PLA_E_DC_ALREADY_EXISTS = unchecked((int)(0x80300109)); - - [NativeTypeName("#define PLA_E_DCS_START_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010AL)")] - public const int PLA_E_DCS_START_WAIT_TIMEOUT = unchecked((int)(0x8030010A)); - - [NativeTypeName("#define PLA_E_DC_START_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010BL)")] - public const int PLA_E_DC_START_WAIT_TIMEOUT = unchecked((int)(0x8030010B)); - - [NativeTypeName("#define PLA_E_REPORT_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x8030010CL)")] - public const int PLA_E_REPORT_WAIT_TIMEOUT = unchecked((int)(0x8030010C)); - - [NativeTypeName("#define PLA_E_NO_DUPLICATES _HRESULT_TYPEDEF_(0x8030010DL)")] - public const int PLA_E_NO_DUPLICATES = unchecked((int)(0x8030010D)); - - [NativeTypeName("#define PLA_E_EXE_FULL_PATH_REQUIRED _HRESULT_TYPEDEF_(0x8030010EL)")] - public const int PLA_E_EXE_FULL_PATH_REQUIRED = unchecked((int)(0x8030010E)); - - [NativeTypeName("#define PLA_E_INVALID_SESSION_NAME _HRESULT_TYPEDEF_(0x8030010FL)")] - public const int PLA_E_INVALID_SESSION_NAME = unchecked((int)(0x8030010F)); - - [NativeTypeName("#define PLA_E_PLA_CHANNEL_NOT_ENABLED _HRESULT_TYPEDEF_(0x80300110L)")] - public const int PLA_E_PLA_CHANNEL_NOT_ENABLED = unchecked((int)(0x80300110)); - - [NativeTypeName("#define PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED _HRESULT_TYPEDEF_(0x80300111L)")] - public const int PLA_E_TASKSCHED_CHANNEL_NOT_ENABLED = unchecked((int)(0x80300111)); - - [NativeTypeName("#define PLA_E_RULES_MANAGER_FAILED _HRESULT_TYPEDEF_(0x80300112L)")] - public const int PLA_E_RULES_MANAGER_FAILED = unchecked((int)(0x80300112)); - - [NativeTypeName("#define PLA_E_CABAPI_FAILURE _HRESULT_TYPEDEF_(0x80300113L)")] - public const int PLA_E_CABAPI_FAILURE = unchecked((int)(0x80300113)); - - [NativeTypeName("#define HCS_E_TERMINATED_DURING_START _HRESULT_TYPEDEF_(0x80370100L)")] - public const int HCS_E_TERMINATED_DURING_START = unchecked((int)(0x80370100)); - - [NativeTypeName("#define HCS_E_IMAGE_MISMATCH _HRESULT_TYPEDEF_(0x80370101L)")] - public const int HCS_E_IMAGE_MISMATCH = unchecked((int)(0x80370101)); - - [NativeTypeName("#define HCS_E_HYPERV_NOT_INSTALLED _HRESULT_TYPEDEF_(0x80370102L)")] - public const int HCS_E_HYPERV_NOT_INSTALLED = unchecked((int)(0x80370102)); - - [NativeTypeName("#define HCS_E_INVALID_STATE _HRESULT_TYPEDEF_(0x80370105L)")] - public const int HCS_E_INVALID_STATE = unchecked((int)(0x80370105)); - - [NativeTypeName("#define HCS_E_UNEXPECTED_EXIT _HRESULT_TYPEDEF_(0x80370106L)")] - public const int HCS_E_UNEXPECTED_EXIT = unchecked((int)(0x80370106)); - - [NativeTypeName("#define HCS_E_TERMINATED _HRESULT_TYPEDEF_(0x80370107L)")] - public const int HCS_E_TERMINATED = unchecked((int)(0x80370107)); - - [NativeTypeName("#define HCS_E_CONNECT_FAILED _HRESULT_TYPEDEF_(0x80370108L)")] - public const int HCS_E_CONNECT_FAILED = unchecked((int)(0x80370108)); - - [NativeTypeName("#define HCS_E_CONNECTION_TIMEOUT _HRESULT_TYPEDEF_(0x80370109L)")] - public const int HCS_E_CONNECTION_TIMEOUT = unchecked((int)(0x80370109)); - - [NativeTypeName("#define HCS_E_CONNECTION_CLOSED _HRESULT_TYPEDEF_(0x8037010AL)")] - public const int HCS_E_CONNECTION_CLOSED = unchecked((int)(0x8037010A)); - - [NativeTypeName("#define HCS_E_UNKNOWN_MESSAGE _HRESULT_TYPEDEF_(0x8037010BL)")] - public const int HCS_E_UNKNOWN_MESSAGE = unchecked((int)(0x8037010B)); - - [NativeTypeName("#define HCS_E_UNSUPPORTED_PROTOCOL_VERSION _HRESULT_TYPEDEF_(0x8037010CL)")] - public const int HCS_E_UNSUPPORTED_PROTOCOL_VERSION = unchecked((int)(0x8037010C)); - - [NativeTypeName("#define HCS_E_INVALID_JSON _HRESULT_TYPEDEF_(0x8037010DL)")] - public const int HCS_E_INVALID_JSON = unchecked((int)(0x8037010D)); - - [NativeTypeName("#define HCS_E_SYSTEM_NOT_FOUND _HRESULT_TYPEDEF_(0x8037010EL)")] - public const int HCS_E_SYSTEM_NOT_FOUND = unchecked((int)(0x8037010E)); - - [NativeTypeName("#define HCS_E_SYSTEM_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x8037010FL)")] - public const int HCS_E_SYSTEM_ALREADY_EXISTS = unchecked((int)(0x8037010F)); - - [NativeTypeName("#define HCS_E_SYSTEM_ALREADY_STOPPED _HRESULT_TYPEDEF_(0x80370110L)")] - public const int HCS_E_SYSTEM_ALREADY_STOPPED = unchecked((int)(0x80370110)); - - [NativeTypeName("#define HCS_E_PROTOCOL_ERROR _HRESULT_TYPEDEF_(0x80370111L)")] - public const int HCS_E_PROTOCOL_ERROR = unchecked((int)(0x80370111)); - - [NativeTypeName("#define HCS_E_INVALID_LAYER _HRESULT_TYPEDEF_(0x80370112L)")] - public const int HCS_E_INVALID_LAYER = unchecked((int)(0x80370112)); - - [NativeTypeName("#define HCS_E_WINDOWS_INSIDER_REQUIRED _HRESULT_TYPEDEF_(0x80370113L)")] - public const int HCS_E_WINDOWS_INSIDER_REQUIRED = unchecked((int)(0x80370113)); - - [NativeTypeName("#define HCS_E_SERVICE_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80370114L)")] - public const int HCS_E_SERVICE_NOT_AVAILABLE = unchecked((int)(0x80370114)); - - [NativeTypeName("#define HCS_E_OPERATION_NOT_STARTED _HRESULT_TYPEDEF_(0x80370115L)")] - public const int HCS_E_OPERATION_NOT_STARTED = unchecked((int)(0x80370115)); - - [NativeTypeName("#define HCS_E_OPERATION_ALREADY_STARTED _HRESULT_TYPEDEF_(0x80370116L)")] - public const int HCS_E_OPERATION_ALREADY_STARTED = unchecked((int)(0x80370116)); - - [NativeTypeName("#define HCS_E_OPERATION_PENDING _HRESULT_TYPEDEF_(0x80370117L)")] - public const int HCS_E_OPERATION_PENDING = unchecked((int)(0x80370117)); - - [NativeTypeName("#define HCS_E_OPERATION_TIMEOUT _HRESULT_TYPEDEF_(0x80370118L)")] - public const int HCS_E_OPERATION_TIMEOUT = unchecked((int)(0x80370118)); - - [NativeTypeName("#define HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET _HRESULT_TYPEDEF_(0x80370119L)")] - public const int HCS_E_OPERATION_SYSTEM_CALLBACK_ALREADY_SET = unchecked((int)(0x80370119)); - - [NativeTypeName("#define HCS_E_OPERATION_RESULT_ALLOCATION_FAILED _HRESULT_TYPEDEF_(0x8037011AL)")] - public const int HCS_E_OPERATION_RESULT_ALLOCATION_FAILED = unchecked((int)(0x8037011A)); - - [NativeTypeName("#define HCS_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x8037011BL)")] - public const int HCS_E_ACCESS_DENIED = unchecked((int)(0x8037011B)); - - [NativeTypeName("#define HCS_E_GUEST_CRITICAL_ERROR _HRESULT_TYPEDEF_(0x8037011CL)")] - public const int HCS_E_GUEST_CRITICAL_ERROR = unchecked((int)(0x8037011C)); - - [NativeTypeName("#define HCS_E_PROCESS_INFO_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x8037011DL)")] - public const int HCS_E_PROCESS_INFO_NOT_AVAILABLE = unchecked((int)(0x8037011D)); - - [NativeTypeName("#define HCS_E_SERVICE_DISCONNECT _HRESULT_TYPEDEF_(0x8037011EL)")] - public const int HCS_E_SERVICE_DISCONNECT = unchecked((int)(0x8037011E)); - - [NativeTypeName("#define HCS_E_PROCESS_ALREADY_STOPPED _HRESULT_TYPEDEF_(0x8037011FL)")] - public const int HCS_E_PROCESS_ALREADY_STOPPED = unchecked((int)(0x8037011F)); - - [NativeTypeName("#define HCS_E_SYSTEM_NOT_CONFIGURED_FOR_OPERATION _HRESULT_TYPEDEF_(0x80370120L)")] - public const int HCS_E_SYSTEM_NOT_CONFIGURED_FOR_OPERATION = unchecked((int)(0x80370120)); - - [NativeTypeName("#define WHV_E_UNKNOWN_CAPABILITY _HRESULT_TYPEDEF_(0x80370300L)")] - public const int WHV_E_UNKNOWN_CAPABILITY = unchecked((int)(0x80370300)); - - [NativeTypeName("#define WHV_E_INSUFFICIENT_BUFFER _HRESULT_TYPEDEF_(0x80370301L)")] - public const int WHV_E_INSUFFICIENT_BUFFER = unchecked((int)(0x80370301)); - - [NativeTypeName("#define WHV_E_UNKNOWN_PROPERTY _HRESULT_TYPEDEF_(0x80370302L)")] - public const int WHV_E_UNKNOWN_PROPERTY = unchecked((int)(0x80370302)); - - [NativeTypeName("#define WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG _HRESULT_TYPEDEF_(0x80370303L)")] - public const int WHV_E_UNSUPPORTED_HYPERVISOR_CONFIG = unchecked((int)(0x80370303)); - - [NativeTypeName("#define WHV_E_INVALID_PARTITION_CONFIG _HRESULT_TYPEDEF_(0x80370304L)")] - public const int WHV_E_INVALID_PARTITION_CONFIG = unchecked((int)(0x80370304)); - - [NativeTypeName("#define WHV_E_GPA_RANGE_NOT_FOUND _HRESULT_TYPEDEF_(0x80370305L)")] - public const int WHV_E_GPA_RANGE_NOT_FOUND = unchecked((int)(0x80370305)); - - [NativeTypeName("#define WHV_E_VP_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x80370306L)")] - public const int WHV_E_VP_ALREADY_EXISTS = unchecked((int)(0x80370306)); - - [NativeTypeName("#define WHV_E_VP_DOES_NOT_EXIST _HRESULT_TYPEDEF_(0x80370307L)")] - public const int WHV_E_VP_DOES_NOT_EXIST = unchecked((int)(0x80370307)); - - [NativeTypeName("#define WHV_E_INVALID_VP_STATE _HRESULT_TYPEDEF_(0x80370308L)")] - public const int WHV_E_INVALID_VP_STATE = unchecked((int)(0x80370308)); - - [NativeTypeName("#define WHV_E_INVALID_VP_REGISTER_NAME _HRESULT_TYPEDEF_(0x80370309L)")] - public const int WHV_E_INVALID_VP_REGISTER_NAME = unchecked((int)(0x80370309)); - - [NativeTypeName("#define WHV_E_UNSUPPORTED_PROCESSOR_CONFIG _HRESULT_TYPEDEF_(0x80370310L)")] - public const int WHV_E_UNSUPPORTED_PROCESSOR_CONFIG = unchecked((int)(0x80370310)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PARTITION_STATE_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370500L)")] - public const int VM_SAVED_STATE_DUMP_E_PARTITION_STATE_NOT_FOUND = unchecked((int)(0xC0370500)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_GUEST_MEMORY_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370501L)")] - public const int VM_SAVED_STATE_DUMP_E_GUEST_MEMORY_NOT_FOUND = unchecked((int)(0xC0370501)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_NO_VP_FOUND_IN_PARTITION_STATE _HRESULT_TYPEDEF_(0xC0370502L)")] - public const int VM_SAVED_STATE_DUMP_E_NO_VP_FOUND_IN_PARTITION_STATE = unchecked((int)(0xC0370502)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_NESTED_VIRTUALIZATION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0xC0370503L)")] - public const int VM_SAVED_STATE_DUMP_E_NESTED_VIRTUALIZATION_NOT_SUPPORTED = unchecked((int)(0xC0370503)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_WINDOWS_KERNEL_IMAGE_NOT_FOUND _HRESULT_TYPEDEF_(0xC0370504L)")] - public const int VM_SAVED_STATE_DUMP_E_WINDOWS_KERNEL_IMAGE_NOT_FOUND = unchecked((int)(0xC0370504)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PXE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370505L)")] - public const int VM_SAVED_STATE_DUMP_E_PXE_NOT_PRESENT = unchecked((int)(0xC0370505)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PDPTE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370506L)")] - public const int VM_SAVED_STATE_DUMP_E_PDPTE_NOT_PRESENT = unchecked((int)(0xC0370506)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PDE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370507L)")] - public const int VM_SAVED_STATE_DUMP_E_PDE_NOT_PRESENT = unchecked((int)(0xC0370507)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_PTE_NOT_PRESENT _HRESULT_TYPEDEF_(0xC0370508L)")] - public const int VM_SAVED_STATE_DUMP_E_PTE_NOT_PRESENT = unchecked((int)(0xC0370508)); - - [NativeTypeName("#define VM_SAVED_STATE_DUMP_E_VP_VTL_NOT_ENABLED _HRESULT_TYPEDEF_(0xC0370509L)")] - public const int VM_SAVED_STATE_DUMP_E_VP_VTL_NOT_ENABLED = unchecked((int)(0xC0370509)); - - [NativeTypeName("#define HCN_E_NETWORK_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0001L)")] - public const int HCN_E_NETWORK_NOT_FOUND = unchecked((int)(0x803B0001)); - - [NativeTypeName("#define HCN_E_ENDPOINT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0002L)")] - public const int HCN_E_ENDPOINT_NOT_FOUND = unchecked((int)(0x803B0002)); - - [NativeTypeName("#define HCN_E_LAYER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0003L)")] - public const int HCN_E_LAYER_NOT_FOUND = unchecked((int)(0x803B0003)); - - [NativeTypeName("#define HCN_E_SWITCH_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0004L)")] - public const int HCN_E_SWITCH_NOT_FOUND = unchecked((int)(0x803B0004)); - - [NativeTypeName("#define HCN_E_SUBNET_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0005L)")] - public const int HCN_E_SUBNET_NOT_FOUND = unchecked((int)(0x803B0005)); - - [NativeTypeName("#define HCN_E_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0006L)")] - public const int HCN_E_ADAPTER_NOT_FOUND = unchecked((int)(0x803B0006)); - - [NativeTypeName("#define HCN_E_PORT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0007L)")] - public const int HCN_E_PORT_NOT_FOUND = unchecked((int)(0x803B0007)); - - [NativeTypeName("#define HCN_E_POLICY_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0008L)")] - public const int HCN_E_POLICY_NOT_FOUND = unchecked((int)(0x803B0008)); - - [NativeTypeName("#define HCN_E_VFP_PORTSETTING_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0009L)")] - public const int HCN_E_VFP_PORTSETTING_NOT_FOUND = unchecked((int)(0x803B0009)); - - [NativeTypeName("#define HCN_E_INVALID_NETWORK _HRESULT_TYPEDEF_(0x803B000AL)")] - public const int HCN_E_INVALID_NETWORK = unchecked((int)(0x803B000A)); - - [NativeTypeName("#define HCN_E_INVALID_NETWORK_TYPE _HRESULT_TYPEDEF_(0x803B000BL)")] - public const int HCN_E_INVALID_NETWORK_TYPE = unchecked((int)(0x803B000B)); - - [NativeTypeName("#define HCN_E_INVALID_ENDPOINT _HRESULT_TYPEDEF_(0x803B000CL)")] - public const int HCN_E_INVALID_ENDPOINT = unchecked((int)(0x803B000C)); - - [NativeTypeName("#define HCN_E_INVALID_POLICY _HRESULT_TYPEDEF_(0x803B000DL)")] - public const int HCN_E_INVALID_POLICY = unchecked((int)(0x803B000D)); - - [NativeTypeName("#define HCN_E_INVALID_POLICY_TYPE _HRESULT_TYPEDEF_(0x803B000EL)")] - public const int HCN_E_INVALID_POLICY_TYPE = unchecked((int)(0x803B000E)); - - [NativeTypeName("#define HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION _HRESULT_TYPEDEF_(0x803B000FL)")] - public const int HCN_E_INVALID_REMOTE_ENDPOINT_OPERATION = unchecked((int)(0x803B000F)); - - [NativeTypeName("#define HCN_E_NETWORK_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0010L)")] - public const int HCN_E_NETWORK_ALREADY_EXISTS = unchecked((int)(0x803B0010)); - - [NativeTypeName("#define HCN_E_LAYER_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0011L)")] - public const int HCN_E_LAYER_ALREADY_EXISTS = unchecked((int)(0x803B0011)); - - [NativeTypeName("#define HCN_E_POLICY_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0012L)")] - public const int HCN_E_POLICY_ALREADY_EXISTS = unchecked((int)(0x803B0012)); - - [NativeTypeName("#define HCN_E_PORT_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B0013L)")] - public const int HCN_E_PORT_ALREADY_EXISTS = unchecked((int)(0x803B0013)); - - [NativeTypeName("#define HCN_E_ENDPOINT_ALREADY_ATTACHED _HRESULT_TYPEDEF_(0x803B0014L)")] - public const int HCN_E_ENDPOINT_ALREADY_ATTACHED = unchecked((int)(0x803B0014)); - - [NativeTypeName("#define HCN_E_REQUEST_UNSUPPORTED _HRESULT_TYPEDEF_(0x803B0015L)")] - public const int HCN_E_REQUEST_UNSUPPORTED = unchecked((int)(0x803B0015)); - - [NativeTypeName("#define HCN_E_MAPPING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x803B0016L)")] - public const int HCN_E_MAPPING_NOT_SUPPORTED = unchecked((int)(0x803B0016)); - - [NativeTypeName("#define HCN_E_DEGRADED_OPERATION _HRESULT_TYPEDEF_(0x803B0017L)")] - public const int HCN_E_DEGRADED_OPERATION = unchecked((int)(0x803B0017)); - - [NativeTypeName("#define HCN_E_SHARED_SWITCH_MODIFICATION _HRESULT_TYPEDEF_(0x803B0018L)")] - public const int HCN_E_SHARED_SWITCH_MODIFICATION = unchecked((int)(0x803B0018)); - - [NativeTypeName("#define HCN_E_GUID_CONVERSION_FAILURE _HRESULT_TYPEDEF_(0x803B0019L)")] - public const int HCN_E_GUID_CONVERSION_FAILURE = unchecked((int)(0x803B0019)); - - [NativeTypeName("#define HCN_E_REGKEY_FAILURE _HRESULT_TYPEDEF_(0x803B001AL)")] - public const int HCN_E_REGKEY_FAILURE = unchecked((int)(0x803B001A)); - - [NativeTypeName("#define HCN_E_INVALID_JSON _HRESULT_TYPEDEF_(0x803B001BL)")] - public const int HCN_E_INVALID_JSON = unchecked((int)(0x803B001B)); - - [NativeTypeName("#define HCN_E_INVALID_JSON_REFERENCE _HRESULT_TYPEDEF_(0x803B001CL)")] - public const int HCN_E_INVALID_JSON_REFERENCE = unchecked((int)(0x803B001C)); - - [NativeTypeName("#define HCN_E_ENDPOINT_SHARING_DISABLED _HRESULT_TYPEDEF_(0x803B001DL)")] - public const int HCN_E_ENDPOINT_SHARING_DISABLED = unchecked((int)(0x803B001D)); - - [NativeTypeName("#define HCN_E_INVALID_IP _HRESULT_TYPEDEF_(0x803B001EL)")] - public const int HCN_E_INVALID_IP = unchecked((int)(0x803B001E)); - - [NativeTypeName("#define HCN_E_SWITCH_EXTENSION_NOT_FOUND _HRESULT_TYPEDEF_(0x803B001FL)")] - public const int HCN_E_SWITCH_EXTENSION_NOT_FOUND = unchecked((int)(0x803B001F)); - - [NativeTypeName("#define HCN_E_MANAGER_STOPPED _HRESULT_TYPEDEF_(0x803B0020L)")] - public const int HCN_E_MANAGER_STOPPED = unchecked((int)(0x803B0020)); - - [NativeTypeName("#define GCN_E_MODULE_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0021L)")] - public const int GCN_E_MODULE_NOT_FOUND = unchecked((int)(0x803B0021)); - - [NativeTypeName("#define GCN_E_NO_REQUEST_HANDLERS _HRESULT_TYPEDEF_(0x803B0022L)")] - public const int GCN_E_NO_REQUEST_HANDLERS = unchecked((int)(0x803B0022)); - - [NativeTypeName("#define GCN_E_REQUEST_UNSUPPORTED _HRESULT_TYPEDEF_(0x803B0023L)")] - public const int GCN_E_REQUEST_UNSUPPORTED = unchecked((int)(0x803B0023)); - - [NativeTypeName("#define GCN_E_RUNTIMEKEYS_FAILED _HRESULT_TYPEDEF_(0x803B0024L)")] - public const int GCN_E_RUNTIMEKEYS_FAILED = unchecked((int)(0x803B0024)); - - [NativeTypeName("#define GCN_E_NETADAPTER_TIMEOUT _HRESULT_TYPEDEF_(0x803B0025L)")] - public const int GCN_E_NETADAPTER_TIMEOUT = unchecked((int)(0x803B0025)); - - [NativeTypeName("#define GCN_E_NETADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0026L)")] - public const int GCN_E_NETADAPTER_NOT_FOUND = unchecked((int)(0x803B0026)); - - [NativeTypeName("#define GCN_E_NETCOMPARTMENT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0027L)")] - public const int GCN_E_NETCOMPARTMENT_NOT_FOUND = unchecked((int)(0x803B0027)); - - [NativeTypeName("#define GCN_E_NETINTERFACE_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0028L)")] - public const int GCN_E_NETINTERFACE_NOT_FOUND = unchecked((int)(0x803B0028)); - - [NativeTypeName("#define GCN_E_DEFAULTNAMESPACE_EXISTS _HRESULT_TYPEDEF_(0x803B0029L)")] - public const int GCN_E_DEFAULTNAMESPACE_EXISTS = unchecked((int)(0x803B0029)); - - [NativeTypeName("#define HCN_E_ICS_DISABLED _HRESULT_TYPEDEF_(0x803B002AL)")] - public const int HCN_E_ICS_DISABLED = unchecked((int)(0x803B002A)); - - [NativeTypeName("#define HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x803B002BL)")] - public const int HCN_E_ENDPOINT_NAMESPACE_ALREADY_EXISTS = unchecked((int)(0x803B002B)); - - [NativeTypeName("#define HCN_E_ENTITY_HAS_REFERENCES _HRESULT_TYPEDEF_(0x803B002CL)")] - public const int HCN_E_ENTITY_HAS_REFERENCES = unchecked((int)(0x803B002C)); - - [NativeTypeName("#define HCN_E_INVALID_INTERNAL_PORT _HRESULT_TYPEDEF_(0x803B002DL)")] - public const int HCN_E_INVALID_INTERNAL_PORT = unchecked((int)(0x803B002D)); - - [NativeTypeName("#define HCN_E_NAMESPACE_ATTACH_FAILED _HRESULT_TYPEDEF_(0x803B002EL)")] - public const int HCN_E_NAMESPACE_ATTACH_FAILED = unchecked((int)(0x803B002E)); - - [NativeTypeName("#define HCN_E_ADDR_INVALID_OR_RESERVED _HRESULT_TYPEDEF_(0x803B002FL)")] - public const int HCN_E_ADDR_INVALID_OR_RESERVED = unchecked((int)(0x803B002F)); - - [NativeTypeName("#define HCN_E_INVALID_PREFIX _HRESULT_TYPEDEF_(0x803B0030L)")] - public const int HCN_E_INVALID_PREFIX = unchecked((int)(0x803B0030)); - - [NativeTypeName("#define HCN_E_OBJECT_USED_AFTER_UNLOAD _HRESULT_TYPEDEF_(0x803B0031L)")] - public const int HCN_E_OBJECT_USED_AFTER_UNLOAD = unchecked((int)(0x803B0031)); - - [NativeTypeName("#define HCN_E_INVALID_SUBNET _HRESULT_TYPEDEF_(0x803B0032L)")] - public const int HCN_E_INVALID_SUBNET = unchecked((int)(0x803B0032)); - - [NativeTypeName("#define HCN_E_INVALID_IP_SUBNET _HRESULT_TYPEDEF_(0x803B0033L)")] - public const int HCN_E_INVALID_IP_SUBNET = unchecked((int)(0x803B0033)); - - [NativeTypeName("#define HCN_E_ENDPOINT_NOT_ATTACHED _HRESULT_TYPEDEF_(0x803B0034L)")] - public const int HCN_E_ENDPOINT_NOT_ATTACHED = unchecked((int)(0x803B0034)); - - [NativeTypeName("#define HCN_E_ENDPOINT_NOT_LOCAL _HRESULT_TYPEDEF_(0x803B0035L)")] - public const int HCN_E_ENDPOINT_NOT_LOCAL = unchecked((int)(0x803B0035)); - - [NativeTypeName("#define HCN_INTERFACEPARAMETERS_ALREADY_APPLIED _HRESULT_TYPEDEF_(0x803B0036L)")] - public const int HCN_INTERFACEPARAMETERS_ALREADY_APPLIED = unchecked((int)(0x803B0036)); - - [NativeTypeName("#define HCN_E_VFP_NOT_ALLOWED _HRESULT_TYPEDEF_(0x803B0037L)")] - public const int HCN_E_VFP_NOT_ALLOWED = unchecked((int)(0x803B0037)); - - [NativeTypeName("#define SDIAG_E_CANCELLED _NDIS_ERROR_TYPEDEF_(0x803C0100L)")] - public const uint SDIAG_E_CANCELLED = (uint)(0x803C0100); - - [NativeTypeName("#define SDIAG_E_SCRIPT _NDIS_ERROR_TYPEDEF_(0x803C0101L)")] - public const uint SDIAG_E_SCRIPT = (uint)(0x803C0101); - - [NativeTypeName("#define SDIAG_E_POWERSHELL _NDIS_ERROR_TYPEDEF_(0x803C0102L)")] - public const uint SDIAG_E_POWERSHELL = (uint)(0x803C0102); - - [NativeTypeName("#define SDIAG_E_MANAGEDHOST _NDIS_ERROR_TYPEDEF_(0x803C0103L)")] - public const uint SDIAG_E_MANAGEDHOST = (uint)(0x803C0103); - - [NativeTypeName("#define SDIAG_E_NOVERIFIER _NDIS_ERROR_TYPEDEF_(0x803C0104L)")] - public const uint SDIAG_E_NOVERIFIER = (uint)(0x803C0104); - - [NativeTypeName("#define SDIAG_S_CANNOTRUN _NDIS_ERROR_TYPEDEF_(0x003C0105L)")] - public const uint SDIAG_S_CANNOTRUN = (uint)(0x003C0105); - - [NativeTypeName("#define SDIAG_E_DISABLED _NDIS_ERROR_TYPEDEF_(0x803C0106L)")] - public const uint SDIAG_E_DISABLED = (uint)(0x803C0106); - - [NativeTypeName("#define SDIAG_E_TRUST _NDIS_ERROR_TYPEDEF_(0x803C0107L)")] - public const uint SDIAG_E_TRUST = (uint)(0x803C0107); - - [NativeTypeName("#define SDIAG_E_CANNOTRUN _NDIS_ERROR_TYPEDEF_(0x803C0108L)")] - public const uint SDIAG_E_CANNOTRUN = (uint)(0x803C0108); - - [NativeTypeName("#define SDIAG_E_VERSION _NDIS_ERROR_TYPEDEF_(0x803C0109L)")] - public const uint SDIAG_E_VERSION = (uint)(0x803C0109); - - [NativeTypeName("#define SDIAG_E_RESOURCE _NDIS_ERROR_TYPEDEF_(0x803C010AL)")] - public const uint SDIAG_E_RESOURCE = (uint)(0x803C010A); - - [NativeTypeName("#define SDIAG_E_ROOTCAUSE _NDIS_ERROR_TYPEDEF_(0x803C010BL)")] - public const uint SDIAG_E_ROOTCAUSE = (uint)(0x803C010B); - - [NativeTypeName("#define WPN_E_CHANNEL_CLOSED _HRESULT_TYPEDEF_(0x803E0100L)")] - public const int WPN_E_CHANNEL_CLOSED = unchecked((int)(0x803E0100)); - - [NativeTypeName("#define WPN_E_CHANNEL_REQUEST_NOT_COMPLETE _HRESULT_TYPEDEF_(0x803E0101L)")] - public const int WPN_E_CHANNEL_REQUEST_NOT_COMPLETE = unchecked((int)(0x803E0101)); - - [NativeTypeName("#define WPN_E_INVALID_APP _HRESULT_TYPEDEF_(0x803E0102L)")] - public const int WPN_E_INVALID_APP = unchecked((int)(0x803E0102)); - - [NativeTypeName("#define WPN_E_OUTSTANDING_CHANNEL_REQUEST _HRESULT_TYPEDEF_(0x803E0103L)")] - public const int WPN_E_OUTSTANDING_CHANNEL_REQUEST = unchecked((int)(0x803E0103)); - - [NativeTypeName("#define WPN_E_DUPLICATE_CHANNEL _HRESULT_TYPEDEF_(0x803E0104L)")] - public const int WPN_E_DUPLICATE_CHANNEL = unchecked((int)(0x803E0104)); - - [NativeTypeName("#define WPN_E_PLATFORM_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E0105L)")] - public const int WPN_E_PLATFORM_UNAVAILABLE = unchecked((int)(0x803E0105)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_POSTED _HRESULT_TYPEDEF_(0x803E0106L)")] - public const int WPN_E_NOTIFICATION_POSTED = unchecked((int)(0x803E0106)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_HIDDEN _HRESULT_TYPEDEF_(0x803E0107L)")] - public const int WPN_E_NOTIFICATION_HIDDEN = unchecked((int)(0x803E0107)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_NOT_POSTED _HRESULT_TYPEDEF_(0x803E0108L)")] - public const int WPN_E_NOTIFICATION_NOT_POSTED = unchecked((int)(0x803E0108)); - - [NativeTypeName("#define WPN_E_CLOUD_DISABLED _HRESULT_TYPEDEF_(0x803E0109L)")] - public const int WPN_E_CLOUD_DISABLED = unchecked((int)(0x803E0109)); - - [NativeTypeName("#define WPN_E_CLOUD_INCAPABLE _HRESULT_TYPEDEF_(0x803E0110L)")] - public const int WPN_E_CLOUD_INCAPABLE = unchecked((int)(0x803E0110)); - - [NativeTypeName("#define WPN_E_CLOUD_AUTH_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E011AL)")] - public const int WPN_E_CLOUD_AUTH_UNAVAILABLE = unchecked((int)(0x803E011A)); - - [NativeTypeName("#define WPN_E_CLOUD_SERVICE_UNAVAILABLE _HRESULT_TYPEDEF_(0x803E011BL)")] - public const int WPN_E_CLOUD_SERVICE_UNAVAILABLE = unchecked((int)(0x803E011B)); - - [NativeTypeName("#define WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION _HRESULT_TYPEDEF_(0x803E011CL)")] - public const int WPN_E_FAILED_LOCK_SCREEN_UPDATE_INTIALIZATION = unchecked((int)(0x803E011C)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_DISABLED _HRESULT_TYPEDEF_(0x803E0111L)")] - public const int WPN_E_NOTIFICATION_DISABLED = unchecked((int)(0x803E0111)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_INCAPABLE _HRESULT_TYPEDEF_(0x803E0112L)")] - public const int WPN_E_NOTIFICATION_INCAPABLE = unchecked((int)(0x803E0112)); - - [NativeTypeName("#define WPN_E_INTERNET_INCAPABLE _HRESULT_TYPEDEF_(0x803E0113L)")] - public const int WPN_E_INTERNET_INCAPABLE = unchecked((int)(0x803E0113)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_TYPE_DISABLED _HRESULT_TYPEDEF_(0x803E0114L)")] - public const int WPN_E_NOTIFICATION_TYPE_DISABLED = unchecked((int)(0x803E0114)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_SIZE _HRESULT_TYPEDEF_(0x803E0115L)")] - public const int WPN_E_NOTIFICATION_SIZE = unchecked((int)(0x803E0115)); - - [NativeTypeName("#define WPN_E_TAG_SIZE _HRESULT_TYPEDEF_(0x803E0116L)")] - public const int WPN_E_TAG_SIZE = unchecked((int)(0x803E0116)); - - [NativeTypeName("#define WPN_E_ACCESS_DENIED _HRESULT_TYPEDEF_(0x803E0117L)")] - public const int WPN_E_ACCESS_DENIED = unchecked((int)(0x803E0117)); - - [NativeTypeName("#define WPN_E_DUPLICATE_REGISTRATION _HRESULT_TYPEDEF_(0x803E0118L)")] - public const int WPN_E_DUPLICATE_REGISTRATION = unchecked((int)(0x803E0118)); - - [NativeTypeName("#define WPN_E_PUSH_NOTIFICATION_INCAPABLE _HRESULT_TYPEDEF_(0x803E0119L)")] - public const int WPN_E_PUSH_NOTIFICATION_INCAPABLE = unchecked((int)(0x803E0119)); - - [NativeTypeName("#define WPN_E_DEV_ID_SIZE _HRESULT_TYPEDEF_(0x803E0120L)")] - public const int WPN_E_DEV_ID_SIZE = unchecked((int)(0x803E0120)); - - [NativeTypeName("#define WPN_E_TAG_ALPHANUMERIC _HRESULT_TYPEDEF_(0x803E012AL)")] - public const int WPN_E_TAG_ALPHANUMERIC = unchecked((int)(0x803E012A)); - - [NativeTypeName("#define WPN_E_INVALID_HTTP_STATUS_CODE _HRESULT_TYPEDEF_(0x803E012BL)")] - public const int WPN_E_INVALID_HTTP_STATUS_CODE = unchecked((int)(0x803E012B)); - - [NativeTypeName("#define WPN_E_OUT_OF_SESSION _HRESULT_TYPEDEF_(0x803E0200L)")] - public const int WPN_E_OUT_OF_SESSION = unchecked((int)(0x803E0200)); - - [NativeTypeName("#define WPN_E_POWER_SAVE _HRESULT_TYPEDEF_(0x803E0201L)")] - public const int WPN_E_POWER_SAVE = unchecked((int)(0x803E0201)); - - [NativeTypeName("#define WPN_E_IMAGE_NOT_FOUND_IN_CACHE _HRESULT_TYPEDEF_(0x803E0202L)")] - public const int WPN_E_IMAGE_NOT_FOUND_IN_CACHE = unchecked((int)(0x803E0202)); - - [NativeTypeName("#define WPN_E_ALL_URL_NOT_COMPLETED _HRESULT_TYPEDEF_(0x803E0203L)")] - public const int WPN_E_ALL_URL_NOT_COMPLETED = unchecked((int)(0x803E0203)); - - [NativeTypeName("#define WPN_E_INVALID_CLOUD_IMAGE _HRESULT_TYPEDEF_(0x803E0204L)")] - public const int WPN_E_INVALID_CLOUD_IMAGE = unchecked((int)(0x803E0204)); - - [NativeTypeName("#define WPN_E_NOTIFICATION_ID_MATCHED _HRESULT_TYPEDEF_(0x803E0205L)")] - public const int WPN_E_NOTIFICATION_ID_MATCHED = unchecked((int)(0x803E0205)); - - [NativeTypeName("#define WPN_E_CALLBACK_ALREADY_REGISTERED _HRESULT_TYPEDEF_(0x803E0206L)")] - public const int WPN_E_CALLBACK_ALREADY_REGISTERED = unchecked((int)(0x803E0206)); - - [NativeTypeName("#define WPN_E_TOAST_NOTIFICATION_DROPPED _HRESULT_TYPEDEF_(0x803E0207L)")] - public const int WPN_E_TOAST_NOTIFICATION_DROPPED = unchecked((int)(0x803E0207)); - - [NativeTypeName("#define WPN_E_STORAGE_LOCKED _HRESULT_TYPEDEF_(0x803E0208L)")] - public const int WPN_E_STORAGE_LOCKED = unchecked((int)(0x803E0208)); - - [NativeTypeName("#define WPN_E_GROUP_SIZE _HRESULT_TYPEDEF_(0x803E0209L)")] - public const int WPN_E_GROUP_SIZE = unchecked((int)(0x803E0209)); - - [NativeTypeName("#define WPN_E_GROUP_ALPHANUMERIC _HRESULT_TYPEDEF_(0x803E020AL)")] - public const int WPN_E_GROUP_ALPHANUMERIC = unchecked((int)(0x803E020A)); - - [NativeTypeName("#define WPN_E_CLOUD_DISABLED_FOR_APP _HRESULT_TYPEDEF_(0x803E020BL)")] - public const int WPN_E_CLOUD_DISABLED_FOR_APP = unchecked((int)(0x803E020B)); - - [NativeTypeName("#define UI_E_CREATE_FAILED _HRESULT_TYPEDEF_(0x802A0001L)")] - public const int UI_E_CREATE_FAILED = unchecked((int)(0x802A0001)); - - [NativeTypeName("#define UI_E_SHUTDOWN_CALLED _HRESULT_TYPEDEF_(0x802A0002L)")] - public const int UI_E_SHUTDOWN_CALLED = unchecked((int)(0x802A0002)); - - [NativeTypeName("#define UI_E_ILLEGAL_REENTRANCY _HRESULT_TYPEDEF_(0x802A0003L)")] - public const int UI_E_ILLEGAL_REENTRANCY = unchecked((int)(0x802A0003)); - - [NativeTypeName("#define UI_E_OBJECT_SEALED _HRESULT_TYPEDEF_(0x802A0004L)")] - public const int UI_E_OBJECT_SEALED = unchecked((int)(0x802A0004)); - - [NativeTypeName("#define UI_E_VALUE_NOT_SET _HRESULT_TYPEDEF_(0x802A0005L)")] - public const int UI_E_VALUE_NOT_SET = unchecked((int)(0x802A0005)); - - [NativeTypeName("#define UI_E_VALUE_NOT_DETERMINED _HRESULT_TYPEDEF_(0x802A0006L)")] - public const int UI_E_VALUE_NOT_DETERMINED = unchecked((int)(0x802A0006)); - - [NativeTypeName("#define UI_E_INVALID_OUTPUT _HRESULT_TYPEDEF_(0x802A0007L)")] - public const int UI_E_INVALID_OUTPUT = unchecked((int)(0x802A0007)); - - [NativeTypeName("#define UI_E_BOOLEAN_EXPECTED _HRESULT_TYPEDEF_(0x802A0008L)")] - public const int UI_E_BOOLEAN_EXPECTED = unchecked((int)(0x802A0008)); - - [NativeTypeName("#define UI_E_DIFFERENT_OWNER _HRESULT_TYPEDEF_(0x802A0009L)")] - public const int UI_E_DIFFERENT_OWNER = unchecked((int)(0x802A0009)); - - [NativeTypeName("#define UI_E_AMBIGUOUS_MATCH _HRESULT_TYPEDEF_(0x802A000AL)")] - public const int UI_E_AMBIGUOUS_MATCH = unchecked((int)(0x802A000A)); - - [NativeTypeName("#define UI_E_FP_OVERFLOW _HRESULT_TYPEDEF_(0x802A000BL)")] - public const int UI_E_FP_OVERFLOW = unchecked((int)(0x802A000B)); - - [NativeTypeName("#define UI_E_WRONG_THREAD _HRESULT_TYPEDEF_(0x802A000CL)")] - public const int UI_E_WRONG_THREAD = unchecked((int)(0x802A000C)); - - [NativeTypeName("#define UI_E_STORYBOARD_ACTIVE _HRESULT_TYPEDEF_(0x802A0101L)")] - public const int UI_E_STORYBOARD_ACTIVE = unchecked((int)(0x802A0101)); - - [NativeTypeName("#define UI_E_STORYBOARD_NOT_PLAYING _HRESULT_TYPEDEF_(0x802A0102L)")] - public const int UI_E_STORYBOARD_NOT_PLAYING = unchecked((int)(0x802A0102)); - - [NativeTypeName("#define UI_E_START_KEYFRAME_AFTER_END _HRESULT_TYPEDEF_(0x802A0103L)")] - public const int UI_E_START_KEYFRAME_AFTER_END = unchecked((int)(0x802A0103)); - - [NativeTypeName("#define UI_E_END_KEYFRAME_NOT_DETERMINED _HRESULT_TYPEDEF_(0x802A0104L)")] - public const int UI_E_END_KEYFRAME_NOT_DETERMINED = unchecked((int)(0x802A0104)); - - [NativeTypeName("#define UI_E_LOOPS_OVERLAP _HRESULT_TYPEDEF_(0x802A0105L)")] - public const int UI_E_LOOPS_OVERLAP = unchecked((int)(0x802A0105)); - - [NativeTypeName("#define UI_E_TRANSITION_ALREADY_USED _HRESULT_TYPEDEF_(0x802A0106L)")] - public const int UI_E_TRANSITION_ALREADY_USED = unchecked((int)(0x802A0106)); - - [NativeTypeName("#define UI_E_TRANSITION_NOT_IN_STORYBOARD _HRESULT_TYPEDEF_(0x802A0107L)")] - public const int UI_E_TRANSITION_NOT_IN_STORYBOARD = unchecked((int)(0x802A0107)); - - [NativeTypeName("#define UI_E_TRANSITION_ECLIPSED _HRESULT_TYPEDEF_(0x802A0108L)")] - public const int UI_E_TRANSITION_ECLIPSED = unchecked((int)(0x802A0108)); - - [NativeTypeName("#define UI_E_TIME_BEFORE_LAST_UPDATE _HRESULT_TYPEDEF_(0x802A0109L)")] - public const int UI_E_TIME_BEFORE_LAST_UPDATE = unchecked((int)(0x802A0109)); - - [NativeTypeName("#define UI_E_TIMER_CLIENT_ALREADY_CONNECTED _HRESULT_TYPEDEF_(0x802A010AL)")] - public const int UI_E_TIMER_CLIENT_ALREADY_CONNECTED = unchecked((int)(0x802A010A)); - - [NativeTypeName("#define UI_E_INVALID_DIMENSION _HRESULT_TYPEDEF_(0x802A010BL)")] - public const int UI_E_INVALID_DIMENSION = unchecked((int)(0x802A010B)); - - [NativeTypeName("#define UI_E_PRIMITIVE_OUT_OF_BOUNDS _HRESULT_TYPEDEF_(0x802A010CL)")] - public const int UI_E_PRIMITIVE_OUT_OF_BOUNDS = unchecked((int)(0x802A010C)); - - [NativeTypeName("#define UI_E_WINDOW_CLOSED _HRESULT_TYPEDEF_(0x802A0201L)")] - public const int UI_E_WINDOW_CLOSED = unchecked((int)(0x802A0201)); - - [NativeTypeName("#define STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE _HRESULT_TYPEDEF_(0x80670001L)")] - public const int STATEREPOSITORY_E_CONCURRENCY_LOCKING_FAILURE = unchecked((int)(0x80670001)); - - [NativeTypeName("#define STATEREPOSITORY_E_STATEMENT_INPROGRESS _HRESULT_TYPEDEF_(0x80670002L)")] - public const int STATEREPOSITORY_E_STATEMENT_INPROGRESS = unchecked((int)(0x80670002)); - - [NativeTypeName("#define STATEREPOSITORY_E_CONFIGURATION_INVALID _HRESULT_TYPEDEF_(0x80670003L)")] - public const int STATEREPOSITORY_E_CONFIGURATION_INVALID = unchecked((int)(0x80670003)); - - [NativeTypeName("#define STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION _HRESULT_TYPEDEF_(0x80670004L)")] - public const int STATEREPOSITORY_E_UNKNOWN_SCHEMA_VERSION = unchecked((int)(0x80670004)); - - [NativeTypeName("#define STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED _HRESULT_TYPEDEF_(0x80670005L)")] - public const int STATEREPOSITORY_ERROR_DICTIONARY_CORRUPTED = unchecked((int)(0x80670005)); - - [NativeTypeName("#define STATEREPOSITORY_E_BLOCKED _HRESULT_TYPEDEF_(0x80670006L)")] - public const int STATEREPOSITORY_E_BLOCKED = unchecked((int)(0x80670006)); - - [NativeTypeName("#define STATEREPOSITORY_E_BUSY_RETRY _HRESULT_TYPEDEF_(0x80670007L)")] - public const int STATEREPOSITORY_E_BUSY_RETRY = unchecked((int)(0x80670007)); - - [NativeTypeName("#define STATEREPOSITORY_E_BUSY_RECOVERY_RETRY _HRESULT_TYPEDEF_(0x80670008L)")] - public const int STATEREPOSITORY_E_BUSY_RECOVERY_RETRY = unchecked((int)(0x80670008)); - - [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_RETRY _HRESULT_TYPEDEF_(0x80670009L)")] - public const int STATEREPOSITORY_E_LOCKED_RETRY = unchecked((int)(0x80670009)); - - [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY _HRESULT_TYPEDEF_(0x8067000AL)")] - public const int STATEREPOSITORY_E_LOCKED_SHAREDCACHE_RETRY = unchecked((int)(0x8067000A)); - - [NativeTypeName("#define STATEREPOSITORY_E_TRANSACTION_REQUIRED _HRESULT_TYPEDEF_(0x8067000BL)")] - public const int STATEREPOSITORY_E_TRANSACTION_REQUIRED = unchecked((int)(0x8067000B)); - - [NativeTypeName("#define STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000CL)")] - public const int STATEREPOSITORY_E_BUSY_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000C)); - - [NativeTypeName("#define STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000DL)")] - public const int STATEREPOSITORY_E_BUSY_RECOVERY_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000D)); - - [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000EL)")] - public const int STATEREPOSITORY_E_LOCKED_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000E)); - - [NativeTypeName("#define STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED _HRESULT_TYPEDEF_(0x8067000FL)")] - public const int STATEREPOSITORY_E_LOCKED_SHAREDCACHE_TIMEOUT_EXCEEDED = unchecked((int)(0x8067000F)); - - [NativeTypeName("#define STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS _HRESULT_TYPEDEF_(0x80670010L)")] - public const int STATEREPOSITORY_E_SERVICE_STOP_IN_PROGRESS = unchecked((int)(0x80670010)); - - [NativeTypeName("#define STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80670011L)")] - public const int STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED = unchecked((int)(0x80670011)); - - [NativeTypeName("#define STATEREPOSITORY_ERROR_CACHE_CORRUPTED _HRESULT_TYPEDEF_(0x80670012L)")] - public const int STATEREPOSITORY_ERROR_CACHE_CORRUPTED = unchecked((int)(0x80670012)); - - [NativeTypeName("#define STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED _HRESULT_TYPEDEF_(0x00670013L)")] - public const int STATEREPOSITORY_TRANSACTION_CALLER_ID_CHANGED = ((int)(0x00670013)); - - [NativeTypeName("#define STATEREPOSITORY_TRANSACTION_IN_PROGRESS _HRESULT_TYPEDEF_(0x80670014L)")] - public const int STATEREPOSITORY_TRANSACTION_IN_PROGRESS = unchecked((int)(0x80670014)); - - [NativeTypeName("#define STATEREPOSITORY_E_CACHE_NOT_INIITALIZED _HRESULT_TYPEDEF_(0x80670015L)")] - public const int STATEREPOSITORY_E_CACHE_NOT_INIITALIZED = unchecked((int)(0x80670015)); - - [NativeTypeName("#define STATEREPOSITORY_E_DEPENDENCY_NOT_RESOLVED _HRESULT_TYPEDEF_(0x80670016L)")] - public const int STATEREPOSITORY_E_DEPENDENCY_NOT_RESOLVED = unchecked((int)(0x80670016)); - - [NativeTypeName("#define DXGI_STATUS_OCCLUDED _HRESULT_TYPEDEF_(0x087A0001L)")] - public const int DXGI_STATUS_OCCLUDED = ((int)(0x087A0001)); - - [NativeTypeName("#define DXGI_STATUS_CLIPPED _HRESULT_TYPEDEF_(0x087A0002L)")] - public const int DXGI_STATUS_CLIPPED = ((int)(0x087A0002)); - - [NativeTypeName("#define DXGI_STATUS_NO_REDIRECTION _HRESULT_TYPEDEF_(0x087A0004L)")] - public const int DXGI_STATUS_NO_REDIRECTION = ((int)(0x087A0004)); - - [NativeTypeName("#define DXGI_STATUS_NO_DESKTOP_ACCESS _HRESULT_TYPEDEF_(0x087A0005L)")] - public const int DXGI_STATUS_NO_DESKTOP_ACCESS = ((int)(0x087A0005)); - - [NativeTypeName("#define DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x087A0006L)")] - public const int DXGI_STATUS_GRAPHICS_VIDPN_SOURCE_IN_USE = ((int)(0x087A0006)); - - [NativeTypeName("#define DXGI_STATUS_MODE_CHANGED _HRESULT_TYPEDEF_(0x087A0007L)")] - public const int DXGI_STATUS_MODE_CHANGED = ((int)(0x087A0007)); - - [NativeTypeName("#define DXGI_STATUS_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x087A0008L)")] - public const int DXGI_STATUS_MODE_CHANGE_IN_PROGRESS = ((int)(0x087A0008)); - - [NativeTypeName("#define DXGI_ERROR_INVALID_CALL _HRESULT_TYPEDEF_(0x887A0001L)")] - public const int DXGI_ERROR_INVALID_CALL = unchecked((int)(0x887A0001)); - - [NativeTypeName("#define DXGI_ERROR_NOT_FOUND _HRESULT_TYPEDEF_(0x887A0002L)")] - public const int DXGI_ERROR_NOT_FOUND = unchecked((int)(0x887A0002)); - - [NativeTypeName("#define DXGI_ERROR_MORE_DATA _HRESULT_TYPEDEF_(0x887A0003L)")] - public const int DXGI_ERROR_MORE_DATA = unchecked((int)(0x887A0003)); - - [NativeTypeName("#define DXGI_ERROR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887A0004L)")] - public const int DXGI_ERROR_UNSUPPORTED = unchecked((int)(0x887A0004)); - - [NativeTypeName("#define DXGI_ERROR_DEVICE_REMOVED _HRESULT_TYPEDEF_(0x887A0005L)")] - public const int DXGI_ERROR_DEVICE_REMOVED = unchecked((int)(0x887A0005)); - - [NativeTypeName("#define DXGI_ERROR_DEVICE_HUNG _HRESULT_TYPEDEF_(0x887A0006L)")] - public const int DXGI_ERROR_DEVICE_HUNG = unchecked((int)(0x887A0006)); - - [NativeTypeName("#define DXGI_ERROR_DEVICE_RESET _HRESULT_TYPEDEF_(0x887A0007L)")] - public const int DXGI_ERROR_DEVICE_RESET = unchecked((int)(0x887A0007)); - - [NativeTypeName("#define DXGI_ERROR_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x887A000AL)")] - public const int DXGI_ERROR_WAS_STILL_DRAWING = unchecked((int)(0x887A000A)); - - [NativeTypeName("#define DXGI_ERROR_FRAME_STATISTICS_DISJOINT _HRESULT_TYPEDEF_(0x887A000BL)")] - public const int DXGI_ERROR_FRAME_STATISTICS_DISJOINT = unchecked((int)(0x887A000B)); - - [NativeTypeName("#define DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE _HRESULT_TYPEDEF_(0x887A000CL)")] - public const int DXGI_ERROR_GRAPHICS_VIDPN_SOURCE_IN_USE = unchecked((int)(0x887A000C)); - - [NativeTypeName("#define DXGI_ERROR_DRIVER_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x887A0020L)")] - public const int DXGI_ERROR_DRIVER_INTERNAL_ERROR = unchecked((int)(0x887A0020)); - - [NativeTypeName("#define DXGI_ERROR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887A0021L)")] - public const int DXGI_ERROR_NONEXCLUSIVE = unchecked((int)(0x887A0021)); - - [NativeTypeName("#define DXGI_ERROR_NOT_CURRENTLY_AVAILABLE _HRESULT_TYPEDEF_(0x887A0022L)")] - public const int DXGI_ERROR_NOT_CURRENTLY_AVAILABLE = unchecked((int)(0x887A0022)); - - [NativeTypeName("#define DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0023L)")] - public const int DXGI_ERROR_REMOTE_CLIENT_DISCONNECTED = unchecked((int)(0x887A0023)); - - [NativeTypeName("#define DXGI_ERROR_REMOTE_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0024L)")] - public const int DXGI_ERROR_REMOTE_OUTOFMEMORY = unchecked((int)(0x887A0024)); - - [NativeTypeName("#define DXGI_ERROR_ACCESS_LOST _HRESULT_TYPEDEF_(0x887A0026L)")] - public const int DXGI_ERROR_ACCESS_LOST = unchecked((int)(0x887A0026)); - - [NativeTypeName("#define DXGI_ERROR_WAIT_TIMEOUT _HRESULT_TYPEDEF_(0x887A0027L)")] - public const int DXGI_ERROR_WAIT_TIMEOUT = unchecked((int)(0x887A0027)); - - [NativeTypeName("#define DXGI_ERROR_SESSION_DISCONNECTED _HRESULT_TYPEDEF_(0x887A0028L)")] - public const int DXGI_ERROR_SESSION_DISCONNECTED = unchecked((int)(0x887A0028)); - - [NativeTypeName("#define DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE _HRESULT_TYPEDEF_(0x887A0029L)")] - public const int DXGI_ERROR_RESTRICT_TO_OUTPUT_STALE = unchecked((int)(0x887A0029)); + [NativeTypeName("#define GCN_E_NO_REQUEST_HANDLERS _HRESULT_TYPEDEF_(0x803B0022L)")] + public const int GCN_E_NO_REQUEST_HANDLERS = unchecked((int)(0x803B0022)); - [NativeTypeName("#define DXGI_ERROR_CANNOT_PROTECT_CONTENT _HRESULT_TYPEDEF_(0x887A002AL)")] - public const int DXGI_ERROR_CANNOT_PROTECT_CONTENT = unchecked((int)(0x887A002A)); + [NativeTypeName("#define GCN_E_REQUEST_UNSUPPORTED _HRESULT_TYPEDEF_(0x803B0023L)")] + public const int GCN_E_REQUEST_UNSUPPORTED = unchecked((int)(0x803B0023)); - [NativeTypeName("#define DXGI_ERROR_ACCESS_DENIED _HRESULT_TYPEDEF_(0x887A002BL)")] - public const int DXGI_ERROR_ACCESS_DENIED = unchecked((int)(0x887A002B)); + [NativeTypeName("#define GCN_E_RUNTIMEKEYS_FAILED _HRESULT_TYPEDEF_(0x803B0024L)")] + public const int GCN_E_RUNTIMEKEYS_FAILED = unchecked((int)(0x803B0024)); - [NativeTypeName("#define DXGI_ERROR_NAME_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A002CL)")] - public const int DXGI_ERROR_NAME_ALREADY_EXISTS = unchecked((int)(0x887A002C)); + [NativeTypeName("#define GCN_E_NETADAPTER_TIMEOUT _HRESULT_TYPEDEF_(0x803B0025L)")] + public const int GCN_E_NETADAPTER_TIMEOUT = unchecked((int)(0x803B0025)); - [NativeTypeName("#define DXGI_ERROR_SDK_COMPONENT_MISSING _HRESULT_TYPEDEF_(0x887A002DL)")] - public const int DXGI_ERROR_SDK_COMPONENT_MISSING = unchecked((int)(0x887A002D)); + [NativeTypeName("#define GCN_E_NETADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0026L)")] + public const int GCN_E_NETADAPTER_NOT_FOUND = unchecked((int)(0x803B0026)); - [NativeTypeName("#define DXGI_ERROR_NOT_CURRENT _HRESULT_TYPEDEF_(0x887A002EL)")] - public const int DXGI_ERROR_NOT_CURRENT = unchecked((int)(0x887A002E)); + [NativeTypeName("#define GCN_E_NETCOMPARTMENT_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0027L)")] + public const int GCN_E_NETCOMPARTMENT_NOT_FOUND = unchecked((int)(0x803B0027)); - [NativeTypeName("#define DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY _HRESULT_TYPEDEF_(0x887A0030L)")] - public const int DXGI_ERROR_HW_PROTECTION_OUTOFMEMORY = unchecked((int)(0x887A0030)); + [NativeTypeName("#define GCN_E_NETINTERFACE_NOT_FOUND _HRESULT_TYPEDEF_(0x803B0028L)")] + public const int GCN_E_NETINTERFACE_NOT_FOUND = unchecked((int)(0x803B0028)); - [NativeTypeName("#define DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION _HRESULT_TYPEDEF_(0x887A0031L)")] - public const int DXGI_ERROR_DYNAMIC_CODE_POLICY_VIOLATION = unchecked((int)(0x887A0031)); + [NativeTypeName("#define GCN_E_DEFAULTNAMESPACE_EXISTS _HRESULT_TYPEDEF_(0x803B0029L)")] + public const int GCN_E_DEFAULTNAMESPACE_EXISTS = unchecked((int)(0x803B0029)); - [NativeTypeName("#define DXGI_ERROR_NON_COMPOSITED_UI _HRESULT_TYPEDEF_(0x887A0032L)")] - public const int DXGI_ERROR_NON_COMPOSITED_UI = unchecked((int)(0x887A0032)); + [NativeTypeName("#define STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x80670011L)")] + public const int STATEREPOSTORY_E_NESTED_TRANSACTION_NOT_SUPPORTED = unchecked((int)(0x80670011)); [NativeTypeName("#define DXCORE_ERROR_EVENT_NOT_UNREGISTERED _HRESULT_TYPEDEF_(0x88800001L)")] public const int DXCORE_ERROR_EVENT_NOT_UNREGISTERED = unchecked((int)(0x88800001)); - [NativeTypeName("#define DXGI_STATUS_UNOCCLUDED _HRESULT_TYPEDEF_(0x087A0009L)")] - public const int DXGI_STATUS_UNOCCLUDED = ((int)(0x087A0009)); - - [NativeTypeName("#define DXGI_STATUS_DDA_WAS_STILL_DRAWING _HRESULT_TYPEDEF_(0x087A000AL)")] - public const int DXGI_STATUS_DDA_WAS_STILL_DRAWING = ((int)(0x087A000A)); - - [NativeTypeName("#define DXGI_ERROR_MODE_CHANGE_IN_PROGRESS _HRESULT_TYPEDEF_(0x887A0025L)")] - public const int DXGI_ERROR_MODE_CHANGE_IN_PROGRESS = unchecked((int)(0x887A0025)); - - [NativeTypeName("#define DXGI_STATUS_PRESENT_REQUIRED _HRESULT_TYPEDEF_(0x087A002FL)")] - public const int DXGI_STATUS_PRESENT_REQUIRED = ((int)(0x087A002F)); - - [NativeTypeName("#define DXGI_ERROR_CACHE_CORRUPT _HRESULT_TYPEDEF_(0x887A0033L)")] - public const int DXGI_ERROR_CACHE_CORRUPT = unchecked((int)(0x887A0033)); - - [NativeTypeName("#define DXGI_ERROR_CACHE_FULL _HRESULT_TYPEDEF_(0x887A0034L)")] - public const int DXGI_ERROR_CACHE_FULL = unchecked((int)(0x887A0034)); - - [NativeTypeName("#define DXGI_ERROR_CACHE_HASH_COLLISION _HRESULT_TYPEDEF_(0x887A0035L)")] - public const int DXGI_ERROR_CACHE_HASH_COLLISION = unchecked((int)(0x887A0035)); - - [NativeTypeName("#define DXGI_ERROR_ALREADY_EXISTS _HRESULT_TYPEDEF_(0x887A0036L)")] - public const int DXGI_ERROR_ALREADY_EXISTS = unchecked((int)(0x887A0036)); - - [NativeTypeName("#define DXGI_DDI_ERR_WASSTILLDRAWING _HRESULT_TYPEDEF_(0x887B0001L)")] - public const int DXGI_DDI_ERR_WASSTILLDRAWING = unchecked((int)(0x887B0001)); - - [NativeTypeName("#define DXGI_DDI_ERR_UNSUPPORTED _HRESULT_TYPEDEF_(0x887B0002L)")] - public const int DXGI_DDI_ERR_UNSUPPORTED = unchecked((int)(0x887B0002)); - - [NativeTypeName("#define DXGI_DDI_ERR_NONEXCLUSIVE _HRESULT_TYPEDEF_(0x887B0003L)")] - public const int DXGI_DDI_ERR_NONEXCLUSIVE = unchecked((int)(0x887B0003)); - - [NativeTypeName("#define D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS _HRESULT_TYPEDEF_(0x88790001L)")] - public const int D3D10_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS = unchecked((int)(0x88790001)); - - [NativeTypeName("#define D3D10_ERROR_FILE_NOT_FOUND _HRESULT_TYPEDEF_(0x88790002L)")] - public const int D3D10_ERROR_FILE_NOT_FOUND = unchecked((int)(0x88790002)); - - [NativeTypeName("#define D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS _HRESULT_TYPEDEF_(0x887C0001L)")] - public const int D3D11_ERROR_TOO_MANY_UNIQUE_STATE_OBJECTS = unchecked((int)(0x887C0001)); - - [NativeTypeName("#define D3D11_ERROR_FILE_NOT_FOUND _HRESULT_TYPEDEF_(0x887C0002L)")] - public const int D3D11_ERROR_FILE_NOT_FOUND = unchecked((int)(0x887C0002)); - - [NativeTypeName("#define D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS _HRESULT_TYPEDEF_(0x887C0003L)")] - public const int D3D11_ERROR_TOO_MANY_UNIQUE_VIEW_OBJECTS = unchecked((int)(0x887C0003)); - - [NativeTypeName("#define D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD _HRESULT_TYPEDEF_(0x887C0004L)")] - public const int D3D11_ERROR_DEFERRED_CONTEXT_MAP_WITHOUT_INITIAL_DISCARD = unchecked((int)(0x887C0004)); - - [NativeTypeName("#define D3D12_ERROR_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x887E0001L)")] - public const int D3D12_ERROR_ADAPTER_NOT_FOUND = unchecked((int)(0x887E0001)); - - [NativeTypeName("#define D3D12_ERROR_DRIVER_VERSION_MISMATCH _HRESULT_TYPEDEF_(0x887E0002L)")] - public const int D3D12_ERROR_DRIVER_VERSION_MISMATCH = unchecked((int)(0x887E0002)); - - [NativeTypeName("#define D3D12_ERROR_INVALID_REDIST _HRESULT_TYPEDEF_(0x887E0003L)")] - public const int D3D12_ERROR_INVALID_REDIST = unchecked((int)(0x887E0003)); - - [NativeTypeName("#define D2DERR_WRONG_STATE _HRESULT_TYPEDEF_(0x88990001L)")] - public const int D2DERR_WRONG_STATE = unchecked((int)(0x88990001)); - - [NativeTypeName("#define D2DERR_NOT_INITIALIZED _HRESULT_TYPEDEF_(0x88990002L)")] - public const int D2DERR_NOT_INITIALIZED = unchecked((int)(0x88990002)); - - [NativeTypeName("#define D2DERR_UNSUPPORTED_OPERATION _HRESULT_TYPEDEF_(0x88990003L)")] - public const int D2DERR_UNSUPPORTED_OPERATION = unchecked((int)(0x88990003)); - - [NativeTypeName("#define D2DERR_SCANNER_FAILED _HRESULT_TYPEDEF_(0x88990004L)")] - public const int D2DERR_SCANNER_FAILED = unchecked((int)(0x88990004)); - - [NativeTypeName("#define D2DERR_SCREEN_ACCESS_DENIED _HRESULT_TYPEDEF_(0x88990005L)")] - public const int D2DERR_SCREEN_ACCESS_DENIED = unchecked((int)(0x88990005)); - - [NativeTypeName("#define D2DERR_DISPLAY_STATE_INVALID _HRESULT_TYPEDEF_(0x88990006L)")] - public const int D2DERR_DISPLAY_STATE_INVALID = unchecked((int)(0x88990006)); - - [NativeTypeName("#define D2DERR_ZERO_VECTOR _HRESULT_TYPEDEF_(0x88990007L)")] - public const int D2DERR_ZERO_VECTOR = unchecked((int)(0x88990007)); - - [NativeTypeName("#define D2DERR_INTERNAL_ERROR _HRESULT_TYPEDEF_(0x88990008L)")] - public const int D2DERR_INTERNAL_ERROR = unchecked((int)(0x88990008)); - - [NativeTypeName("#define D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88990009L)")] - public const int D2DERR_DISPLAY_FORMAT_NOT_SUPPORTED = unchecked((int)(0x88990009)); - - [NativeTypeName("#define D2DERR_INVALID_CALL _HRESULT_TYPEDEF_(0x8899000AL)")] - public const int D2DERR_INVALID_CALL = unchecked((int)(0x8899000A)); - - [NativeTypeName("#define D2DERR_NO_HARDWARE_DEVICE _HRESULT_TYPEDEF_(0x8899000BL)")] - public const int D2DERR_NO_HARDWARE_DEVICE = unchecked((int)(0x8899000B)); - - [NativeTypeName("#define D2DERR_RECREATE_TARGET _HRESULT_TYPEDEF_(0x8899000CL)")] - public const int D2DERR_RECREATE_TARGET = unchecked((int)(0x8899000C)); - - [NativeTypeName("#define D2DERR_TOO_MANY_SHADER_ELEMENTS _HRESULT_TYPEDEF_(0x8899000DL)")] - public const int D2DERR_TOO_MANY_SHADER_ELEMENTS = unchecked((int)(0x8899000D)); - - [NativeTypeName("#define D2DERR_SHADER_COMPILE_FAILED _HRESULT_TYPEDEF_(0x8899000EL)")] - public const int D2DERR_SHADER_COMPILE_FAILED = unchecked((int)(0x8899000E)); - - [NativeTypeName("#define D2DERR_MAX_TEXTURE_SIZE_EXCEEDED _HRESULT_TYPEDEF_(0x8899000FL)")] - public const int D2DERR_MAX_TEXTURE_SIZE_EXCEEDED = unchecked((int)(0x8899000F)); - - [NativeTypeName("#define D2DERR_UNSUPPORTED_VERSION _HRESULT_TYPEDEF_(0x88990010L)")] - public const int D2DERR_UNSUPPORTED_VERSION = unchecked((int)(0x88990010)); - - [NativeTypeName("#define D2DERR_BAD_NUMBER _HRESULT_TYPEDEF_(0x88990011L)")] - public const int D2DERR_BAD_NUMBER = unchecked((int)(0x88990011)); - - [NativeTypeName("#define D2DERR_WRONG_FACTORY _HRESULT_TYPEDEF_(0x88990012L)")] - public const int D2DERR_WRONG_FACTORY = unchecked((int)(0x88990012)); - - [NativeTypeName("#define D2DERR_LAYER_ALREADY_IN_USE _HRESULT_TYPEDEF_(0x88990013L)")] - public const int D2DERR_LAYER_ALREADY_IN_USE = unchecked((int)(0x88990013)); - - [NativeTypeName("#define D2DERR_POP_CALL_DID_NOT_MATCH_PUSH _HRESULT_TYPEDEF_(0x88990014L)")] - public const int D2DERR_POP_CALL_DID_NOT_MATCH_PUSH = unchecked((int)(0x88990014)); - - [NativeTypeName("#define D2DERR_WRONG_RESOURCE_DOMAIN _HRESULT_TYPEDEF_(0x88990015L)")] - public const int D2DERR_WRONG_RESOURCE_DOMAIN = unchecked((int)(0x88990015)); - - [NativeTypeName("#define D2DERR_PUSH_POP_UNBALANCED _HRESULT_TYPEDEF_(0x88990016L)")] - public const int D2DERR_PUSH_POP_UNBALANCED = unchecked((int)(0x88990016)); - - [NativeTypeName("#define D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT _HRESULT_TYPEDEF_(0x88990017L)")] - public const int D2DERR_RENDER_TARGET_HAS_LAYER_OR_CLIPRECT = unchecked((int)(0x88990017)); - - [NativeTypeName("#define D2DERR_INCOMPATIBLE_BRUSH_TYPES _HRESULT_TYPEDEF_(0x88990018L)")] - public const int D2DERR_INCOMPATIBLE_BRUSH_TYPES = unchecked((int)(0x88990018)); - - [NativeTypeName("#define D2DERR_WIN32_ERROR _HRESULT_TYPEDEF_(0x88990019L)")] - public const int D2DERR_WIN32_ERROR = unchecked((int)(0x88990019)); - - [NativeTypeName("#define D2DERR_TARGET_NOT_GDI_COMPATIBLE _HRESULT_TYPEDEF_(0x8899001AL)")] - public const int D2DERR_TARGET_NOT_GDI_COMPATIBLE = unchecked((int)(0x8899001A)); - - [NativeTypeName("#define D2DERR_TEXT_EFFECT_IS_WRONG_TYPE _HRESULT_TYPEDEF_(0x8899001BL)")] - public const int D2DERR_TEXT_EFFECT_IS_WRONG_TYPE = unchecked((int)(0x8899001B)); - - [NativeTypeName("#define D2DERR_TEXT_RENDERER_NOT_RELEASED _HRESULT_TYPEDEF_(0x8899001CL)")] - public const int D2DERR_TEXT_RENDERER_NOT_RELEASED = unchecked((int)(0x8899001C)); - - [NativeTypeName("#define D2DERR_EXCEEDS_MAX_BITMAP_SIZE _HRESULT_TYPEDEF_(0x8899001DL)")] - public const int D2DERR_EXCEEDS_MAX_BITMAP_SIZE = unchecked((int)(0x8899001D)); - - [NativeTypeName("#define D2DERR_INVALID_GRAPH_CONFIGURATION _HRESULT_TYPEDEF_(0x8899001EL)")] - public const int D2DERR_INVALID_GRAPH_CONFIGURATION = unchecked((int)(0x8899001E)); - - [NativeTypeName("#define D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION _HRESULT_TYPEDEF_(0x8899001FL)")] - public const int D2DERR_INVALID_INTERNAL_GRAPH_CONFIGURATION = unchecked((int)(0x8899001F)); - - [NativeTypeName("#define D2DERR_CYCLIC_GRAPH _HRESULT_TYPEDEF_(0x88990020L)")] - public const int D2DERR_CYCLIC_GRAPH = unchecked((int)(0x88990020)); - - [NativeTypeName("#define D2DERR_BITMAP_CANNOT_DRAW _HRESULT_TYPEDEF_(0x88990021L)")] - public const int D2DERR_BITMAP_CANNOT_DRAW = unchecked((int)(0x88990021)); - - [NativeTypeName("#define D2DERR_OUTSTANDING_BITMAP_REFERENCES _HRESULT_TYPEDEF_(0x88990022L)")] - public const int D2DERR_OUTSTANDING_BITMAP_REFERENCES = unchecked((int)(0x88990022)); - - [NativeTypeName("#define D2DERR_ORIGINAL_TARGET_NOT_BOUND _HRESULT_TYPEDEF_(0x88990023L)")] - public const int D2DERR_ORIGINAL_TARGET_NOT_BOUND = unchecked((int)(0x88990023)); - - [NativeTypeName("#define D2DERR_INVALID_TARGET _HRESULT_TYPEDEF_(0x88990024L)")] - public const int D2DERR_INVALID_TARGET = unchecked((int)(0x88990024)); - - [NativeTypeName("#define D2DERR_BITMAP_BOUND_AS_TARGET _HRESULT_TYPEDEF_(0x88990025L)")] - public const int D2DERR_BITMAP_BOUND_AS_TARGET = unchecked((int)(0x88990025)); - - [NativeTypeName("#define D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES _HRESULT_TYPEDEF_(0x88990026L)")] - public const int D2DERR_INSUFFICIENT_DEVICE_CAPABILITIES = unchecked((int)(0x88990026)); - - [NativeTypeName("#define D2DERR_INTERMEDIATE_TOO_LARGE _HRESULT_TYPEDEF_(0x88990027L)")] - public const int D2DERR_INTERMEDIATE_TOO_LARGE = unchecked((int)(0x88990027)); - - [NativeTypeName("#define D2DERR_EFFECT_IS_NOT_REGISTERED _HRESULT_TYPEDEF_(0x88990028L)")] - public const int D2DERR_EFFECT_IS_NOT_REGISTERED = unchecked((int)(0x88990028)); - - [NativeTypeName("#define D2DERR_INVALID_PROPERTY _HRESULT_TYPEDEF_(0x88990029L)")] - public const int D2DERR_INVALID_PROPERTY = unchecked((int)(0x88990029)); - - [NativeTypeName("#define D2DERR_NO_SUBPROPERTIES _HRESULT_TYPEDEF_(0x8899002AL)")] - public const int D2DERR_NO_SUBPROPERTIES = unchecked((int)(0x8899002A)); - - [NativeTypeName("#define D2DERR_PRINT_JOB_CLOSED _HRESULT_TYPEDEF_(0x8899002BL)")] - public const int D2DERR_PRINT_JOB_CLOSED = unchecked((int)(0x8899002B)); - - [NativeTypeName("#define D2DERR_PRINT_FORMAT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8899002CL)")] - public const int D2DERR_PRINT_FORMAT_NOT_SUPPORTED = unchecked((int)(0x8899002C)); - - [NativeTypeName("#define D2DERR_TOO_MANY_TRANSFORM_INPUTS _HRESULT_TYPEDEF_(0x8899002DL)")] - public const int D2DERR_TOO_MANY_TRANSFORM_INPUTS = unchecked((int)(0x8899002D)); - - [NativeTypeName("#define D2DERR_INVALID_GLYPH_IMAGE _HRESULT_TYPEDEF_(0x8899002EL)")] - public const int D2DERR_INVALID_GLYPH_IMAGE = unchecked((int)(0x8899002E)); - - [NativeTypeName("#define DWRITE_E_FILEFORMAT _HRESULT_TYPEDEF_(0x88985000L)")] - public const int DWRITE_E_FILEFORMAT = unchecked((int)(0x88985000)); - - [NativeTypeName("#define DWRITE_E_UNEXPECTED _HRESULT_TYPEDEF_(0x88985001L)")] - public const int DWRITE_E_UNEXPECTED = unchecked((int)(0x88985001)); - - [NativeTypeName("#define DWRITE_E_NOFONT _HRESULT_TYPEDEF_(0x88985002L)")] - public const int DWRITE_E_NOFONT = unchecked((int)(0x88985002)); - - [NativeTypeName("#define DWRITE_E_FILENOTFOUND _HRESULT_TYPEDEF_(0x88985003L)")] - public const int DWRITE_E_FILENOTFOUND = unchecked((int)(0x88985003)); - - [NativeTypeName("#define DWRITE_E_FILEACCESS _HRESULT_TYPEDEF_(0x88985004L)")] - public const int DWRITE_E_FILEACCESS = unchecked((int)(0x88985004)); - - [NativeTypeName("#define DWRITE_E_FONTCOLLECTIONOBSOLETE _HRESULT_TYPEDEF_(0x88985005L)")] - public const int DWRITE_E_FONTCOLLECTIONOBSOLETE = unchecked((int)(0x88985005)); - - [NativeTypeName("#define DWRITE_E_ALREADYREGISTERED _HRESULT_TYPEDEF_(0x88985006L)")] - public const int DWRITE_E_ALREADYREGISTERED = unchecked((int)(0x88985006)); - - [NativeTypeName("#define DWRITE_E_CACHEFORMAT _HRESULT_TYPEDEF_(0x88985007L)")] - public const int DWRITE_E_CACHEFORMAT = unchecked((int)(0x88985007)); - - [NativeTypeName("#define DWRITE_E_CACHEVERSION _HRESULT_TYPEDEF_(0x88985008L)")] - public const int DWRITE_E_CACHEVERSION = unchecked((int)(0x88985008)); - - [NativeTypeName("#define DWRITE_E_UNSUPPORTEDOPERATION _HRESULT_TYPEDEF_(0x88985009L)")] - public const int DWRITE_E_UNSUPPORTEDOPERATION = unchecked((int)(0x88985009)); - - [NativeTypeName("#define DWRITE_E_TEXTRENDERERINCOMPATIBLE _HRESULT_TYPEDEF_(0x8898500AL)")] - public const int DWRITE_E_TEXTRENDERERINCOMPATIBLE = unchecked((int)(0x8898500A)); - - [NativeTypeName("#define DWRITE_E_FLOWDIRECTIONCONFLICTS _HRESULT_TYPEDEF_(0x8898500BL)")] - public const int DWRITE_E_FLOWDIRECTIONCONFLICTS = unchecked((int)(0x8898500B)); - - [NativeTypeName("#define DWRITE_E_NOCOLOR _HRESULT_TYPEDEF_(0x8898500CL)")] - public const int DWRITE_E_NOCOLOR = unchecked((int)(0x8898500C)); - - [NativeTypeName("#define DWRITE_E_REMOTEFONT _HRESULT_TYPEDEF_(0x8898500DL)")] - public const int DWRITE_E_REMOTEFONT = unchecked((int)(0x8898500D)); - - [NativeTypeName("#define DWRITE_E_DOWNLOADCANCELLED _HRESULT_TYPEDEF_(0x8898500EL)")] - public const int DWRITE_E_DOWNLOADCANCELLED = unchecked((int)(0x8898500E)); - - [NativeTypeName("#define DWRITE_E_DOWNLOADFAILED _HRESULT_TYPEDEF_(0x8898500FL)")] - public const int DWRITE_E_DOWNLOADFAILED = unchecked((int)(0x8898500F)); - - [NativeTypeName("#define DWRITE_E_TOOMANYDOWNLOADS _HRESULT_TYPEDEF_(0x88985010L)")] - public const int DWRITE_E_TOOMANYDOWNLOADS = unchecked((int)(0x88985010)); - - [NativeTypeName("#define MILERR_OBJECTBUSY _HRESULT_TYPEDEF_(0x88980001L)")] - public const int MILERR_OBJECTBUSY = unchecked((int)(0x88980001)); - - [NativeTypeName("#define MILERR_INSUFFICIENTBUFFER _HRESULT_TYPEDEF_(0x88980002L)")] - public const int MILERR_INSUFFICIENTBUFFER = unchecked((int)(0x88980002)); - - [NativeTypeName("#define MILERR_WIN32ERROR _HRESULT_TYPEDEF_(0x88980003L)")] - public const int MILERR_WIN32ERROR = unchecked((int)(0x88980003)); - - [NativeTypeName("#define MILERR_SCANNER_FAILED _HRESULT_TYPEDEF_(0x88980004L)")] - public const int MILERR_SCANNER_FAILED = unchecked((int)(0x88980004)); - - [NativeTypeName("#define MILERR_SCREENACCESSDENIED _HRESULT_TYPEDEF_(0x88980005L)")] - public const int MILERR_SCREENACCESSDENIED = unchecked((int)(0x88980005)); - - [NativeTypeName("#define MILERR_DISPLAYSTATEINVALID _HRESULT_TYPEDEF_(0x88980006L)")] - public const int MILERR_DISPLAYSTATEINVALID = unchecked((int)(0x88980006)); - - [NativeTypeName("#define MILERR_NONINVERTIBLEMATRIX _HRESULT_TYPEDEF_(0x88980007L)")] - public const int MILERR_NONINVERTIBLEMATRIX = unchecked((int)(0x88980007)); - - [NativeTypeName("#define MILERR_ZEROVECTOR _HRESULT_TYPEDEF_(0x88980008L)")] - public const int MILERR_ZEROVECTOR = unchecked((int)(0x88980008)); - - [NativeTypeName("#define MILERR_TERMINATED _HRESULT_TYPEDEF_(0x88980009L)")] - public const int MILERR_TERMINATED = unchecked((int)(0x88980009)); - - [NativeTypeName("#define MILERR_BADNUMBER _HRESULT_TYPEDEF_(0x8898000AL)")] - public const int MILERR_BADNUMBER = unchecked((int)(0x8898000A)); - - [NativeTypeName("#define MILERR_INTERNALERROR _HRESULT_TYPEDEF_(0x88980080L)")] - public const int MILERR_INTERNALERROR = unchecked((int)(0x88980080)); - - [NativeTypeName("#define MILERR_DISPLAYFORMATNOTSUPPORTED _HRESULT_TYPEDEF_(0x88980084L)")] - public const int MILERR_DISPLAYFORMATNOTSUPPORTED = unchecked((int)(0x88980084)); - - [NativeTypeName("#define MILERR_INVALIDCALL _HRESULT_TYPEDEF_(0x88980085L)")] - public const int MILERR_INVALIDCALL = unchecked((int)(0x88980085)); - - [NativeTypeName("#define MILERR_ALREADYLOCKED _HRESULT_TYPEDEF_(0x88980086L)")] - public const int MILERR_ALREADYLOCKED = unchecked((int)(0x88980086)); - - [NativeTypeName("#define MILERR_NOTLOCKED _HRESULT_TYPEDEF_(0x88980087L)")] - public const int MILERR_NOTLOCKED = unchecked((int)(0x88980087)); - - [NativeTypeName("#define MILERR_DEVICECANNOTRENDERTEXT _HRESULT_TYPEDEF_(0x88980088L)")] - public const int MILERR_DEVICECANNOTRENDERTEXT = unchecked((int)(0x88980088)); - - [NativeTypeName("#define MILERR_GLYPHBITMAPMISSED _HRESULT_TYPEDEF_(0x88980089L)")] - public const int MILERR_GLYPHBITMAPMISSED = unchecked((int)(0x88980089)); - - [NativeTypeName("#define MILERR_MALFORMEDGLYPHCACHE _HRESULT_TYPEDEF_(0x8898008AL)")] - public const int MILERR_MALFORMEDGLYPHCACHE = unchecked((int)(0x8898008A)); - - [NativeTypeName("#define MILERR_GENERIC_IGNORE _HRESULT_TYPEDEF_(0x8898008BL)")] - public const int MILERR_GENERIC_IGNORE = unchecked((int)(0x8898008B)); - - [NativeTypeName("#define MILERR_MALFORMED_GUIDELINE_DATA _HRESULT_TYPEDEF_(0x8898008CL)")] - public const int MILERR_MALFORMED_GUIDELINE_DATA = unchecked((int)(0x8898008C)); - - [NativeTypeName("#define MILERR_NO_HARDWARE_DEVICE _HRESULT_TYPEDEF_(0x8898008DL)")] - public const int MILERR_NO_HARDWARE_DEVICE = unchecked((int)(0x8898008D)); - - [NativeTypeName("#define MILERR_NEED_RECREATE_AND_PRESENT _HRESULT_TYPEDEF_(0x8898008EL)")] - public const int MILERR_NEED_RECREATE_AND_PRESENT = unchecked((int)(0x8898008E)); - - [NativeTypeName("#define MILERR_ALREADY_INITIALIZED _HRESULT_TYPEDEF_(0x8898008FL)")] - public const int MILERR_ALREADY_INITIALIZED = unchecked((int)(0x8898008F)); - - [NativeTypeName("#define MILERR_MISMATCHED_SIZE _HRESULT_TYPEDEF_(0x88980090L)")] - public const int MILERR_MISMATCHED_SIZE = unchecked((int)(0x88980090)); - - [NativeTypeName("#define MILERR_NO_REDIRECTION_SURFACE_AVAILABLE _HRESULT_TYPEDEF_(0x88980091L)")] - public const int MILERR_NO_REDIRECTION_SURFACE_AVAILABLE = unchecked((int)(0x88980091)); - - [NativeTypeName("#define MILERR_REMOTING_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88980092L)")] - public const int MILERR_REMOTING_NOT_SUPPORTED = unchecked((int)(0x88980092)); - - [NativeTypeName("#define MILERR_QUEUED_PRESENT_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x88980093L)")] - public const int MILERR_QUEUED_PRESENT_NOT_SUPPORTED = unchecked((int)(0x88980093)); - - [NativeTypeName("#define MILERR_NOT_QUEUING_PRESENTS _HRESULT_TYPEDEF_(0x88980094L)")] - public const int MILERR_NOT_QUEUING_PRESENTS = unchecked((int)(0x88980094)); - - [NativeTypeName("#define MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER _HRESULT_TYPEDEF_(0x88980095L)")] - public const int MILERR_NO_REDIRECTION_SURFACE_RETRY_LATER = unchecked((int)(0x88980095)); - - [NativeTypeName("#define MILERR_TOOMANYSHADERELEMNTS _HRESULT_TYPEDEF_(0x88980096L)")] - public const int MILERR_TOOMANYSHADERELEMNTS = unchecked((int)(0x88980096)); - - [NativeTypeName("#define MILERR_MROW_READLOCK_FAILED _HRESULT_TYPEDEF_(0x88980097L)")] - public const int MILERR_MROW_READLOCK_FAILED = unchecked((int)(0x88980097)); - - [NativeTypeName("#define MILERR_MROW_UPDATE_FAILED _HRESULT_TYPEDEF_(0x88980098L)")] - public const int MILERR_MROW_UPDATE_FAILED = unchecked((int)(0x88980098)); - - [NativeTypeName("#define MILERR_SHADER_COMPILE_FAILED _HRESULT_TYPEDEF_(0x88980099L)")] - public const int MILERR_SHADER_COMPILE_FAILED = unchecked((int)(0x88980099)); - - [NativeTypeName("#define MILERR_MAX_TEXTURE_SIZE_EXCEEDED _HRESULT_TYPEDEF_(0x8898009AL)")] - public const int MILERR_MAX_TEXTURE_SIZE_EXCEEDED = unchecked((int)(0x8898009A)); - - [NativeTypeName("#define MILERR_QPC_TIME_WENT_BACKWARD _HRESULT_TYPEDEF_(0x8898009BL)")] - public const int MILERR_QPC_TIME_WENT_BACKWARD = unchecked((int)(0x8898009B)); - - [NativeTypeName("#define MILERR_DXGI_ENUMERATION_OUT_OF_SYNC _HRESULT_TYPEDEF_(0x8898009DL)")] - public const int MILERR_DXGI_ENUMERATION_OUT_OF_SYNC = unchecked((int)(0x8898009D)); - - [NativeTypeName("#define MILERR_ADAPTER_NOT_FOUND _HRESULT_TYPEDEF_(0x8898009EL)")] - public const int MILERR_ADAPTER_NOT_FOUND = unchecked((int)(0x8898009E)); - - [NativeTypeName("#define MILERR_COLORSPACE_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x8898009FL)")] - public const int MILERR_COLORSPACE_NOT_SUPPORTED = unchecked((int)(0x8898009F)); - - [NativeTypeName("#define MILERR_PREFILTER_NOT_SUPPORTED _HRESULT_TYPEDEF_(0x889800A0L)")] - public const int MILERR_PREFILTER_NOT_SUPPORTED = unchecked((int)(0x889800A0)); - - [NativeTypeName("#define MILERR_DISPLAYID_ACCESS_DENIED _HRESULT_TYPEDEF_(0x889800A1L)")] - public const int MILERR_DISPLAYID_ACCESS_DENIED = unchecked((int)(0x889800A1)); - - [NativeTypeName("#define UCEERR_INVALIDPACKETHEADER _HRESULT_TYPEDEF_(0x88980400L)")] - public const int UCEERR_INVALIDPACKETHEADER = unchecked((int)(0x88980400)); - - [NativeTypeName("#define UCEERR_UNKNOWNPACKET _HRESULT_TYPEDEF_(0x88980401L)")] - public const int UCEERR_UNKNOWNPACKET = unchecked((int)(0x88980401)); - - [NativeTypeName("#define UCEERR_ILLEGALPACKET _HRESULT_TYPEDEF_(0x88980402L)")] - public const int UCEERR_ILLEGALPACKET = unchecked((int)(0x88980402)); - - [NativeTypeName("#define UCEERR_MALFORMEDPACKET _HRESULT_TYPEDEF_(0x88980403L)")] - public const int UCEERR_MALFORMEDPACKET = unchecked((int)(0x88980403)); - - [NativeTypeName("#define UCEERR_ILLEGALHANDLE _HRESULT_TYPEDEF_(0x88980404L)")] - public const int UCEERR_ILLEGALHANDLE = unchecked((int)(0x88980404)); - - [NativeTypeName("#define UCEERR_HANDLELOOKUPFAILED _HRESULT_TYPEDEF_(0x88980405L)")] - public const int UCEERR_HANDLELOOKUPFAILED = unchecked((int)(0x88980405)); - - [NativeTypeName("#define UCEERR_RENDERTHREADFAILURE _HRESULT_TYPEDEF_(0x88980406L)")] - public const int UCEERR_RENDERTHREADFAILURE = unchecked((int)(0x88980406)); - - [NativeTypeName("#define UCEERR_CTXSTACKFRSTTARGETNULL _HRESULT_TYPEDEF_(0x88980407L)")] - public const int UCEERR_CTXSTACKFRSTTARGETNULL = unchecked((int)(0x88980407)); - - [NativeTypeName("#define UCEERR_CONNECTIONIDLOOKUPFAILED _HRESULT_TYPEDEF_(0x88980408L)")] - public const int UCEERR_CONNECTIONIDLOOKUPFAILED = unchecked((int)(0x88980408)); - - [NativeTypeName("#define UCEERR_BLOCKSFULL _HRESULT_TYPEDEF_(0x88980409L)")] - public const int UCEERR_BLOCKSFULL = unchecked((int)(0x88980409)); - - [NativeTypeName("#define UCEERR_MEMORYFAILURE _HRESULT_TYPEDEF_(0x8898040AL)")] - public const int UCEERR_MEMORYFAILURE = unchecked((int)(0x8898040A)); - - [NativeTypeName("#define UCEERR_PACKETRECORDOUTOFRANGE _HRESULT_TYPEDEF_(0x8898040BL)")] - public const int UCEERR_PACKETRECORDOUTOFRANGE = unchecked((int)(0x8898040B)); - - [NativeTypeName("#define UCEERR_ILLEGALRECORDTYPE _HRESULT_TYPEDEF_(0x8898040CL)")] - public const int UCEERR_ILLEGALRECORDTYPE = unchecked((int)(0x8898040C)); - - [NativeTypeName("#define UCEERR_OUTOFHANDLES _HRESULT_TYPEDEF_(0x8898040DL)")] - public const int UCEERR_OUTOFHANDLES = unchecked((int)(0x8898040D)); - - [NativeTypeName("#define UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED _HRESULT_TYPEDEF_(0x8898040EL)")] - public const int UCEERR_UNCHANGABLE_UPDATE_ATTEMPTED = unchecked((int)(0x8898040E)); - - [NativeTypeName("#define UCEERR_NO_MULTIPLE_WORKER_THREADS _HRESULT_TYPEDEF_(0x8898040FL)")] - public const int UCEERR_NO_MULTIPLE_WORKER_THREADS = unchecked((int)(0x8898040F)); - - [NativeTypeName("#define UCEERR_REMOTINGNOTSUPPORTED _HRESULT_TYPEDEF_(0x88980410L)")] - public const int UCEERR_REMOTINGNOTSUPPORTED = unchecked((int)(0x88980410)); - - [NativeTypeName("#define UCEERR_MISSINGENDCOMMAND _HRESULT_TYPEDEF_(0x88980411L)")] - public const int UCEERR_MISSINGENDCOMMAND = unchecked((int)(0x88980411)); - - [NativeTypeName("#define UCEERR_MISSINGBEGINCOMMAND _HRESULT_TYPEDEF_(0x88980412L)")] - public const int UCEERR_MISSINGBEGINCOMMAND = unchecked((int)(0x88980412)); - - [NativeTypeName("#define UCEERR_CHANNELSYNCTIMEDOUT _HRESULT_TYPEDEF_(0x88980413L)")] - public const int UCEERR_CHANNELSYNCTIMEDOUT = unchecked((int)(0x88980413)); - - [NativeTypeName("#define UCEERR_CHANNELSYNCABANDONED _HRESULT_TYPEDEF_(0x88980414L)")] - public const int UCEERR_CHANNELSYNCABANDONED = unchecked((int)(0x88980414)); - - [NativeTypeName("#define UCEERR_UNSUPPORTEDTRANSPORTVERSION _HRESULT_TYPEDEF_(0x88980415L)")] - public const int UCEERR_UNSUPPORTEDTRANSPORTVERSION = unchecked((int)(0x88980415)); - - [NativeTypeName("#define UCEERR_TRANSPORTUNAVAILABLE _HRESULT_TYPEDEF_(0x88980416L)")] - public const int UCEERR_TRANSPORTUNAVAILABLE = unchecked((int)(0x88980416)); - - [NativeTypeName("#define UCEERR_FEEDBACK_UNSUPPORTED _HRESULT_TYPEDEF_(0x88980417L)")] - public const int UCEERR_FEEDBACK_UNSUPPORTED = unchecked((int)(0x88980417)); - - [NativeTypeName("#define UCEERR_COMMANDTRANSPORTDENIED _HRESULT_TYPEDEF_(0x88980418L)")] - public const int UCEERR_COMMANDTRANSPORTDENIED = unchecked((int)(0x88980418)); - - [NativeTypeName("#define UCEERR_GRAPHICSSTREAMUNAVAILABLE _HRESULT_TYPEDEF_(0x88980419L)")] - public const int UCEERR_GRAPHICSSTREAMUNAVAILABLE = unchecked((int)(0x88980419)); - - [NativeTypeName("#define UCEERR_GRAPHICSSTREAMALREADYOPEN _HRESULT_TYPEDEF_(0x88980420L)")] - public const int UCEERR_GRAPHICSSTREAMALREADYOPEN = unchecked((int)(0x88980420)); - - [NativeTypeName("#define UCEERR_TRANSPORTDISCONNECTED _HRESULT_TYPEDEF_(0x88980421L)")] - public const int UCEERR_TRANSPORTDISCONNECTED = unchecked((int)(0x88980421)); - - [NativeTypeName("#define UCEERR_TRANSPORTOVERLOADED _HRESULT_TYPEDEF_(0x88980422L)")] - public const int UCEERR_TRANSPORTOVERLOADED = unchecked((int)(0x88980422)); - - [NativeTypeName("#define UCEERR_PARTITION_ZOMBIED _HRESULT_TYPEDEF_(0x88980423L)")] - public const int UCEERR_PARTITION_ZOMBIED = unchecked((int)(0x88980423)); - - [NativeTypeName("#define MILAVERR_NOCLOCK _HRESULT_TYPEDEF_(0x88980500L)")] - public const int MILAVERR_NOCLOCK = unchecked((int)(0x88980500)); - - [NativeTypeName("#define MILAVERR_NOMEDIATYPE _HRESULT_TYPEDEF_(0x88980501L)")] - public const int MILAVERR_NOMEDIATYPE = unchecked((int)(0x88980501)); - - [NativeTypeName("#define MILAVERR_NOVIDEOMIXER _HRESULT_TYPEDEF_(0x88980502L)")] - public const int MILAVERR_NOVIDEOMIXER = unchecked((int)(0x88980502)); - - [NativeTypeName("#define MILAVERR_NOVIDEOPRESENTER _HRESULT_TYPEDEF_(0x88980503L)")] - public const int MILAVERR_NOVIDEOPRESENTER = unchecked((int)(0x88980503)); - - [NativeTypeName("#define MILAVERR_NOREADYFRAMES _HRESULT_TYPEDEF_(0x88980504L)")] - public const int MILAVERR_NOREADYFRAMES = unchecked((int)(0x88980504)); - - [NativeTypeName("#define MILAVERR_MODULENOTLOADED _HRESULT_TYPEDEF_(0x88980505L)")] - public const int MILAVERR_MODULENOTLOADED = unchecked((int)(0x88980505)); - - [NativeTypeName("#define MILAVERR_WMPFACTORYNOTREGISTERED _HRESULT_TYPEDEF_(0x88980506L)")] - public const int MILAVERR_WMPFACTORYNOTREGISTERED = unchecked((int)(0x88980506)); - - [NativeTypeName("#define MILAVERR_INVALIDWMPVERSION _HRESULT_TYPEDEF_(0x88980507L)")] - public const int MILAVERR_INVALIDWMPVERSION = unchecked((int)(0x88980507)); - - [NativeTypeName("#define MILAVERR_INSUFFICIENTVIDEORESOURCES _HRESULT_TYPEDEF_(0x88980508L)")] - public const int MILAVERR_INSUFFICIENTVIDEORESOURCES = unchecked((int)(0x88980508)); - - [NativeTypeName("#define MILAVERR_VIDEOACCELERATIONNOTAVAILABLE _HRESULT_TYPEDEF_(0x88980509L)")] - public const int MILAVERR_VIDEOACCELERATIONNOTAVAILABLE = unchecked((int)(0x88980509)); - - [NativeTypeName("#define MILAVERR_REQUESTEDTEXTURETOOBIG _HRESULT_TYPEDEF_(0x8898050AL)")] - public const int MILAVERR_REQUESTEDTEXTURETOOBIG = unchecked((int)(0x8898050A)); - - [NativeTypeName("#define MILAVERR_SEEKFAILED _HRESULT_TYPEDEF_(0x8898050BL)")] - public const int MILAVERR_SEEKFAILED = unchecked((int)(0x8898050B)); - - [NativeTypeName("#define MILAVERR_UNEXPECTEDWMPFAILURE _HRESULT_TYPEDEF_(0x8898050CL)")] - public const int MILAVERR_UNEXPECTEDWMPFAILURE = unchecked((int)(0x8898050C)); - - [NativeTypeName("#define MILAVERR_MEDIAPLAYERCLOSED _HRESULT_TYPEDEF_(0x8898050DL)")] - public const int MILAVERR_MEDIAPLAYERCLOSED = unchecked((int)(0x8898050D)); - - [NativeTypeName("#define MILAVERR_UNKNOWNHARDWAREERROR _HRESULT_TYPEDEF_(0x8898050EL)")] - public const int MILAVERR_UNKNOWNHARDWAREERROR = unchecked((int)(0x8898050E)); - - [NativeTypeName("#define MILEFFECTSERR_UNKNOWNPROPERTY _HRESULT_TYPEDEF_(0x8898060EL)")] - public const int MILEFFECTSERR_UNKNOWNPROPERTY = unchecked((int)(0x8898060E)); - - [NativeTypeName("#define MILEFFECTSERR_EFFECTNOTPARTOFGROUP _HRESULT_TYPEDEF_(0x8898060FL)")] - public const int MILEFFECTSERR_EFFECTNOTPARTOFGROUP = unchecked((int)(0x8898060F)); - - [NativeTypeName("#define MILEFFECTSERR_NOINPUTSOURCEATTACHED _HRESULT_TYPEDEF_(0x88980610L)")] - public const int MILEFFECTSERR_NOINPUTSOURCEATTACHED = unchecked((int)(0x88980610)); - - [NativeTypeName("#define MILEFFECTSERR_CONNECTORNOTCONNECTED _HRESULT_TYPEDEF_(0x88980611L)")] - public const int MILEFFECTSERR_CONNECTORNOTCONNECTED = unchecked((int)(0x88980611)); - - [NativeTypeName("#define MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT _HRESULT_TYPEDEF_(0x88980612L)")] - public const int MILEFFECTSERR_CONNECTORNOTASSOCIATEDWITHEFFECT = unchecked((int)(0x88980612)); - - [NativeTypeName("#define MILEFFECTSERR_RESERVED _HRESULT_TYPEDEF_(0x88980613L)")] - public const int MILEFFECTSERR_RESERVED = unchecked((int)(0x88980613)); - - [NativeTypeName("#define MILEFFECTSERR_CYCLEDETECTED _HRESULT_TYPEDEF_(0x88980614L)")] - public const int MILEFFECTSERR_CYCLEDETECTED = unchecked((int)(0x88980614)); - - [NativeTypeName("#define MILEFFECTSERR_EFFECTINMORETHANONEGRAPH _HRESULT_TYPEDEF_(0x88980615L)")] - public const int MILEFFECTSERR_EFFECTINMORETHANONEGRAPH = unchecked((int)(0x88980615)); - - [NativeTypeName("#define MILEFFECTSERR_EFFECTALREADYINAGRAPH _HRESULT_TYPEDEF_(0x88980616L)")] - public const int MILEFFECTSERR_EFFECTALREADYINAGRAPH = unchecked((int)(0x88980616)); - - [NativeTypeName("#define MILEFFECTSERR_EFFECTHASNOCHILDREN _HRESULT_TYPEDEF_(0x88980617L)")] - public const int MILEFFECTSERR_EFFECTHASNOCHILDREN = unchecked((int)(0x88980617)); - - [NativeTypeName("#define MILEFFECTSERR_ALREADYATTACHEDTOLISTENER _HRESULT_TYPEDEF_(0x88980618L)")] - public const int MILEFFECTSERR_ALREADYATTACHEDTOLISTENER = unchecked((int)(0x88980618)); - - [NativeTypeName("#define MILEFFECTSERR_NOTAFFINETRANSFORM _HRESULT_TYPEDEF_(0x88980619L)")] - public const int MILEFFECTSERR_NOTAFFINETRANSFORM = unchecked((int)(0x88980619)); - - [NativeTypeName("#define MILEFFECTSERR_EMPTYBOUNDS _HRESULT_TYPEDEF_(0x8898061AL)")] - public const int MILEFFECTSERR_EMPTYBOUNDS = unchecked((int)(0x8898061A)); - - [NativeTypeName("#define MILEFFECTSERR_OUTPUTSIZETOOLARGE _HRESULT_TYPEDEF_(0x8898061BL)")] - public const int MILEFFECTSERR_OUTPUTSIZETOOLARGE = unchecked((int)(0x8898061B)); - [NativeTypeName("#define DWMERR_STATE_TRANSITION_FAILED _HRESULT_TYPEDEF_(0x88980700L)")] public const int DWMERR_STATE_TRANSITION_FAILED = unchecked((int)(0x88980700)); @@ -3615,105 +573,12 @@ public static HRESULT HRESULT_FROM_WIN32([NativeTypeName("unsigned long")] uint [NativeTypeName("#define DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED _HRESULT_TYPEDEF_(0x88980802L)")] public const int DCOMPOSITION_ERROR_SURFACE_NOT_BEING_RENDERED = unchecked((int)(0x88980802)); - [NativeTypeName("#define ONL_E_INVALID_AUTHENTICATION_TARGET _HRESULT_TYPEDEF_(0x80860001L)")] - public const int ONL_E_INVALID_AUTHENTICATION_TARGET = unchecked((int)(0x80860001)); - - [NativeTypeName("#define ONL_E_ACCESS_DENIED_BY_TOU _HRESULT_TYPEDEF_(0x80860002L)")] - public const int ONL_E_ACCESS_DENIED_BY_TOU = unchecked((int)(0x80860002)); - - [NativeTypeName("#define ONL_E_INVALID_APPLICATION _HRESULT_TYPEDEF_(0x80860003L)")] - public const int ONL_E_INVALID_APPLICATION = unchecked((int)(0x80860003)); - - [NativeTypeName("#define ONL_E_PASSWORD_UPDATE_REQUIRED _HRESULT_TYPEDEF_(0x80860004L)")] - public const int ONL_E_PASSWORD_UPDATE_REQUIRED = unchecked((int)(0x80860004)); - - [NativeTypeName("#define ONL_E_ACCOUNT_UPDATE_REQUIRED _HRESULT_TYPEDEF_(0x80860005L)")] - public const int ONL_E_ACCOUNT_UPDATE_REQUIRED = unchecked((int)(0x80860005)); - - [NativeTypeName("#define ONL_E_FORCESIGNIN _HRESULT_TYPEDEF_(0x80860006L)")] - public const int ONL_E_FORCESIGNIN = unchecked((int)(0x80860006)); - - [NativeTypeName("#define ONL_E_ACCOUNT_LOCKED _HRESULT_TYPEDEF_(0x80860007L)")] - public const int ONL_E_ACCOUNT_LOCKED = unchecked((int)(0x80860007)); - - [NativeTypeName("#define ONL_E_PARENTAL_CONSENT_REQUIRED _HRESULT_TYPEDEF_(0x80860008L)")] - public const int ONL_E_PARENTAL_CONSENT_REQUIRED = unchecked((int)(0x80860008)); - - [NativeTypeName("#define ONL_E_EMAIL_VERIFICATION_REQUIRED _HRESULT_TYPEDEF_(0x80860009L)")] - public const int ONL_E_EMAIL_VERIFICATION_REQUIRED = unchecked((int)(0x80860009)); - - [NativeTypeName("#define ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE _HRESULT_TYPEDEF_(0x8086000AL)")] - public const int ONL_E_ACCOUNT_SUSPENDED_COMPROIMISE = unchecked((int)(0x8086000A)); - - [NativeTypeName("#define ONL_E_ACCOUNT_SUSPENDED_ABUSE _HRESULT_TYPEDEF_(0x8086000BL)")] - public const int ONL_E_ACCOUNT_SUSPENDED_ABUSE = unchecked((int)(0x8086000B)); - - [NativeTypeName("#define ONL_E_ACTION_REQUIRED _HRESULT_TYPEDEF_(0x8086000CL)")] - public const int ONL_E_ACTION_REQUIRED = unchecked((int)(0x8086000C)); - - [NativeTypeName("#define ONL_CONNECTION_COUNT_LIMIT _HRESULT_TYPEDEF_(0x8086000DL)")] - public const int ONL_CONNECTION_COUNT_LIMIT = unchecked((int)(0x8086000D)); - - [NativeTypeName("#define ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT _HRESULT_TYPEDEF_(0x8086000EL)")] - public const int ONL_E_CONNECTED_ACCOUNT_CAN_NOT_SIGNOUT = unchecked((int)(0x8086000E)); - - [NativeTypeName("#define ONL_E_USER_AUTHENTICATION_REQUIRED _HRESULT_TYPEDEF_(0x8086000FL)")] - public const int ONL_E_USER_AUTHENTICATION_REQUIRED = unchecked((int)(0x8086000F)); - - [NativeTypeName("#define ONL_E_REQUEST_THROTTLED _HRESULT_TYPEDEF_(0x80860010L)")] - public const int ONL_E_REQUEST_THROTTLED = unchecked((int)(0x80860010)); - [NativeTypeName("#define FA_E_MAX_PERSISTED_ITEMS_REACHED _HRESULT_TYPEDEF_(0x80270220L)")] public const int FA_E_MAX_PERSISTED_ITEMS_REACHED = unchecked((int)(0x80270220)); [NativeTypeName("#define FA_E_HOMEGROUP_NOT_AVAILABLE _HRESULT_TYPEDEF_(0x80270222L)")] public const int FA_E_HOMEGROUP_NOT_AVAILABLE = unchecked((int)(0x80270222)); - [NativeTypeName("#define S_STORE_LAUNCHED_FOR_REMEDIATION _HRESULT_TYPEDEF_(0x00270258L)")] - public const int S_STORE_LAUNCHED_FOR_REMEDIATION = ((int)(0x00270258)); - - [NativeTypeName("#define S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG _HRESULT_TYPEDEF_(0x00270259L)")] - public const int S_APPLICATION_ACTIVATION_ERROR_HANDLED_BY_DIALOG = ((int)(0x00270259)); - - [NativeTypeName("#define EAS_E_POLICY_NOT_MANAGED_BY_OS _HRESULT_TYPEDEF_(0x80550001L)")] - public const int EAS_E_POLICY_NOT_MANAGED_BY_OS = unchecked((int)(0x80550001)); - - [NativeTypeName("#define EAS_E_POLICY_COMPLIANT_WITH_ACTIONS _HRESULT_TYPEDEF_(0x80550002L)")] - public const int EAS_E_POLICY_COMPLIANT_WITH_ACTIONS = unchecked((int)(0x80550002)); - - [NativeTypeName("#define EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE _HRESULT_TYPEDEF_(0x80550003L)")] - public const int EAS_E_REQUESTED_POLICY_NOT_ENFORCEABLE = unchecked((int)(0x80550003)); - - [NativeTypeName("#define EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD _HRESULT_TYPEDEF_(0x80550004L)")] - public const int EAS_E_CURRENT_USER_HAS_BLANK_PASSWORD = unchecked((int)(0x80550004)); - - [NativeTypeName("#define EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE _HRESULT_TYPEDEF_(0x80550005L)")] - public const int EAS_E_REQUESTED_POLICY_PASSWORD_EXPIRATION_INCOMPATIBLE = unchecked((int)(0x80550005)); - - [NativeTypeName("#define EAS_E_USER_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550006L)")] - public const int EAS_E_USER_CANNOT_CHANGE_PASSWORD = unchecked((int)(0x80550006)); - - [NativeTypeName("#define EAS_E_ADMINS_HAVE_BLANK_PASSWORD _HRESULT_TYPEDEF_(0x80550007L)")] - public const int EAS_E_ADMINS_HAVE_BLANK_PASSWORD = unchecked((int)(0x80550007)); - - [NativeTypeName("#define EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550008L)")] - public const int EAS_E_ADMINS_CANNOT_CHANGE_PASSWORD = unchecked((int)(0x80550008)); - - [NativeTypeName("#define EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x80550009L)")] - public const int EAS_E_LOCAL_CONTROLLED_USERS_CANNOT_CHANGE_PASSWORD = unchecked((int)(0x80550009)); - - [NativeTypeName("#define EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS _HRESULT_TYPEDEF_(0x8055000AL)")] - public const int EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CONNECTED_ADMINS = unchecked((int)(0x8055000A)); - - [NativeTypeName("#define EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x8055000BL)")] - public const int EAS_E_CONNECTED_ADMINS_NEED_TO_CHANGE_PASSWORD = unchecked((int)(0x8055000B)); - - [NativeTypeName("#define EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER _HRESULT_TYPEDEF_(0x8055000CL)")] - public const int EAS_E_PASSWORD_POLICY_NOT_ENFORCEABLE_FOR_CURRENT_CONNECTED_USER = unchecked((int)(0x8055000C)); - - [NativeTypeName("#define EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD _HRESULT_TYPEDEF_(0x8055000DL)")] - public const int EAS_E_CURRENT_CONNECTED_USER_NEED_TO_CHANGE_PASSWORD = unchecked((int)(0x8055000D)); - [NativeTypeName("#define WEB_E_UNSUPPORTED_FORMAT _HRESULT_TYPEDEF_(0x83750001L)")] public const int WEB_E_UNSUPPORTED_FORMAT = unchecked((int)(0x83750001)); diff --git a/sources/Interop/Windows/Windows/shared/ws2def/AF.cs b/sources/Interop/Windows/Windows/shared/ws2def/AF.cs new file mode 100644 index 0000000000..bcb409db1b --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/AF.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AF + { + [NativeTypeName("#define AF_UNSPEC 0")] + public const int AF_UNSPEC = 0; + + [NativeTypeName("#define AF_UNIX 1")] + public const int AF_UNIX = 1; + + [NativeTypeName("#define AF_INET 2")] + public const int AF_INET = 2; + + [NativeTypeName("#define AF_IMPLINK 3")] + public const int AF_IMPLINK = 3; + + [NativeTypeName("#define AF_PUP 4")] + public const int AF_PUP = 4; + + [NativeTypeName("#define AF_CHAOS 5")] + public const int AF_CHAOS = 5; + + [NativeTypeName("#define AF_NS 6")] + public const int AF_NS = 6; + + [NativeTypeName("#define AF_IPX AF_NS")] + public const int AF_IPX = 6; + + [NativeTypeName("#define AF_ISO 7")] + public const int AF_ISO = 7; + + [NativeTypeName("#define AF_OSI AF_ISO")] + public const int AF_OSI = 7; + + [NativeTypeName("#define AF_ECMA 8")] + public const int AF_ECMA = 8; + + [NativeTypeName("#define AF_DATAKIT 9")] + public const int AF_DATAKIT = 9; + + [NativeTypeName("#define AF_CCITT 10")] + public const int AF_CCITT = 10; + + [NativeTypeName("#define AF_SNA 11")] + public const int AF_SNA = 11; + + [NativeTypeName("#define AF_DECnet 12")] + public const int AF_DECnet = 12; + + [NativeTypeName("#define AF_DLI 13")] + public const int AF_DLI = 13; + + [NativeTypeName("#define AF_LAT 14")] + public const int AF_LAT = 14; + + [NativeTypeName("#define AF_HYLINK 15")] + public const int AF_HYLINK = 15; + + [NativeTypeName("#define AF_APPLETALK 16")] + public const int AF_APPLETALK = 16; + + [NativeTypeName("#define AF_NETBIOS 17")] + public const int AF_NETBIOS = 17; + + [NativeTypeName("#define AF_VOICEVIEW 18")] + public const int AF_VOICEVIEW = 18; + + [NativeTypeName("#define AF_FIREFOX 19")] + public const int AF_FIREFOX = 19; + + [NativeTypeName("#define AF_UNKNOWN1 20")] + public const int AF_UNKNOWN1 = 20; + + [NativeTypeName("#define AF_BAN 21")] + public const int AF_BAN = 21; + + [NativeTypeName("#define AF_ATM 22")] + public const int AF_ATM = 22; + + [NativeTypeName("#define AF_INET6 23")] + public const int AF_INET6 = 23; + + [NativeTypeName("#define AF_CLUSTER 24")] + public const int AF_CLUSTER = 24; + + [NativeTypeName("#define AF_12844 25")] + public const int AF_12844 = 25; + + [NativeTypeName("#define AF_IRDA 26")] + public const int AF_IRDA = 26; + + [NativeTypeName("#define AF_NETDES 28")] + public const int AF_NETDES = 28; + + [NativeTypeName("#define AF_TCNPROCESS 29")] + public const int AF_TCNPROCESS = 29; + + [NativeTypeName("#define AF_TCNMESSAGE 30")] + public const int AF_TCNMESSAGE = 30; + + [NativeTypeName("#define AF_ICLFXBM 31")] + public const int AF_ICLFXBM = 31; + + [NativeTypeName("#define AF_BTH 32")] + public const int AF_BTH = 32; + + [NativeTypeName("#define AF_LINK 33")] + public const int AF_LINK = 33; + + [NativeTypeName("#define AF_HYPERV 34")] + public const int AF_HYPERV = 34; + + [NativeTypeName("#define AF_MAX 35")] + public const int AF_MAX = 35; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/AI.cs b/sources/Interop/Windows/Windows/shared/ws2def/AI.cs new file mode 100644 index 0000000000..ba1613dfcf --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/AI.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AI + { + [NativeTypeName("#define AI_PASSIVE 0x00000001")] + public const int AI_PASSIVE = 0x00000001; + + [NativeTypeName("#define AI_CANONNAME 0x00000002")] + public const int AI_CANONNAME = 0x00000002; + + [NativeTypeName("#define AI_NUMERICHOST 0x00000004")] + public const int AI_NUMERICHOST = 0x00000004; + + [NativeTypeName("#define AI_NUMERICSERV 0x00000008")] + public const int AI_NUMERICSERV = 0x00000008; + + [NativeTypeName("#define AI_DNS_ONLY 0x00000010")] + public const int AI_DNS_ONLY = 0x00000010; + + [NativeTypeName("#define AI_FORCE_CLEAR_TEXT 0x00000020")] + public const int AI_FORCE_CLEAR_TEXT = 0x00000020; + + [NativeTypeName("#define AI_BYPASS_DNS_CACHE 0x00000040")] + public const int AI_BYPASS_DNS_CACHE = 0x00000040; + + [NativeTypeName("#define AI_RETURN_TTL 0x00000080")] + public const int AI_RETURN_TTL = 0x00000080; + + [NativeTypeName("#define AI_ALL 0x00000100")] + public const int AI_ALL = 0x00000100; + + [NativeTypeName("#define AI_ADDRCONFIG 0x00000400")] + public const int AI_ADDRCONFIG = 0x00000400; + + [NativeTypeName("#define AI_V4MAPPED 0x00000800")] + public const int AI_V4MAPPED = 0x00000800; + + [NativeTypeName("#define AI_NON_AUTHORITATIVE 0x00004000")] + public const int AI_NON_AUTHORITATIVE = 0x00004000; + + [NativeTypeName("#define AI_SECURE 0x00008000")] + public const int AI_SECURE = 0x00008000; + + [NativeTypeName("#define AI_RETURN_PREFERRED_NAMES 0x00010000")] + public const int AI_RETURN_PREFERRED_NAMES = 0x00010000; + + [NativeTypeName("#define AI_FQDN 0x00020000")] + public const int AI_FQDN = 0x00020000; + + [NativeTypeName("#define AI_FILESERVER 0x00040000")] + public const int AI_FILESERVER = 0x00040000; + + [NativeTypeName("#define AI_DISABLE_IDN_ENCODING 0x00080000")] + public const int AI_DISABLE_IDN_ENCODING = 0x00080000; + + [NativeTypeName("#define AI_SECURE_WITH_FALLBACK 0x00100000")] + public const int AI_SECURE_WITH_FALLBACK = 0x00100000; + + [NativeTypeName("#define AI_REQUIRE_SECURE 0x20000000")] + public const int AI_REQUIRE_SECURE = 0x20000000; + + [NativeTypeName("#define AI_RESOLUTION_HANDLE 0x40000000")] + public const int AI_RESOLUTION_HANDLE = 0x40000000; + + [NativeTypeName("#define AI_EXTENDED 0x80000000")] + public const uint AI_EXTENDED = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/IN.cs b/sources/Interop/Windows/Windows/shared/ws2def/IN.cs new file mode 100644 index 0000000000..7a9e59bc6c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/IN.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IN + { + [NativeTypeName("#define IN_CLASSA_NET 0xff000000")] + public const uint IN_CLASSA_NET = 0xff000000; + + [NativeTypeName("#define IN_CLASSA_NSHIFT 24")] + public const int IN_CLASSA_NSHIFT = 24; + + [NativeTypeName("#define IN_CLASSA_HOST 0x00ffffff")] + public const int IN_CLASSA_HOST = 0x00ffffff; + + [NativeTypeName("#define IN_CLASSA_MAX 128")] + public const int IN_CLASSA_MAX = 128; + + [NativeTypeName("#define IN_CLASSB_NET 0xffff0000")] + public const uint IN_CLASSB_NET = 0xffff0000; + + [NativeTypeName("#define IN_CLASSB_NSHIFT 16")] + public const int IN_CLASSB_NSHIFT = 16; + + [NativeTypeName("#define IN_CLASSB_HOST 0x0000ffff")] + public const int IN_CLASSB_HOST = 0x0000ffff; + + [NativeTypeName("#define IN_CLASSB_MAX 65536")] + public const int IN_CLASSB_MAX = 65536; + + [NativeTypeName("#define IN_CLASSC_NET 0xffffff00")] + public const uint IN_CLASSC_NET = 0xffffff00; + + [NativeTypeName("#define IN_CLASSC_NSHIFT 8")] + public const int IN_CLASSC_NSHIFT = 8; + + [NativeTypeName("#define IN_CLASSC_HOST 0x000000ff")] + public const int IN_CLASSC_HOST = 0x000000ff; + + [NativeTypeName("#define IN_CLASSD_NET 0xf0000000")] + public const uint IN_CLASSD_NET = 0xf0000000; + + [NativeTypeName("#define IN_CLASSD_NSHIFT 28")] + public const int IN_CLASSD_NSHIFT = 28; + + [NativeTypeName("#define IN_CLASSD_HOST 0x0fffffff")] + public const int IN_CLASSD_HOST = 0x0fffffff; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/IPPORT.cs b/sources/Interop/Windows/Windows/shared/ws2def/IPPORT.cs new file mode 100644 index 0000000000..4c1ba448da --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/IPPORT.cs @@ -0,0 +1,151 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IPPORT + { + [NativeTypeName("#define IPPORT_TCPMUX 1")] + public const int IPPORT_TCPMUX = 1; + + [NativeTypeName("#define IPPORT_ECHO 7")] + public const int IPPORT_ECHO = 7; + + [NativeTypeName("#define IPPORT_DISCARD 9")] + public const int IPPORT_DISCARD = 9; + + [NativeTypeName("#define IPPORT_SYSTAT 11")] + public const int IPPORT_SYSTAT = 11; + + [NativeTypeName("#define IPPORT_DAYTIME 13")] + public const int IPPORT_DAYTIME = 13; + + [NativeTypeName("#define IPPORT_NETSTAT 15")] + public const int IPPORT_NETSTAT = 15; + + [NativeTypeName("#define IPPORT_QOTD 17")] + public const int IPPORT_QOTD = 17; + + [NativeTypeName("#define IPPORT_MSP 18")] + public const int IPPORT_MSP = 18; + + [NativeTypeName("#define IPPORT_CHARGEN 19")] + public const int IPPORT_CHARGEN = 19; + + [NativeTypeName("#define IPPORT_FTP_DATA 20")] + public const int IPPORT_FTP_DATA = 20; + + [NativeTypeName("#define IPPORT_FTP 21")] + public const int IPPORT_FTP = 21; + + [NativeTypeName("#define IPPORT_TELNET 23")] + public const int IPPORT_TELNET = 23; + + [NativeTypeName("#define IPPORT_SMTP 25")] + public const int IPPORT_SMTP = 25; + + [NativeTypeName("#define IPPORT_TIMESERVER 37")] + public const int IPPORT_TIMESERVER = 37; + + [NativeTypeName("#define IPPORT_NAMESERVER 42")] + public const int IPPORT_NAMESERVER = 42; + + [NativeTypeName("#define IPPORT_WHOIS 43")] + public const int IPPORT_WHOIS = 43; + + [NativeTypeName("#define IPPORT_MTP 57")] + public const int IPPORT_MTP = 57; + + [NativeTypeName("#define IPPORT_TFTP 69")] + public const int IPPORT_TFTP = 69; + + [NativeTypeName("#define IPPORT_RJE 77")] + public const int IPPORT_RJE = 77; + + [NativeTypeName("#define IPPORT_FINGER 79")] + public const int IPPORT_FINGER = 79; + + [NativeTypeName("#define IPPORT_TTYLINK 87")] + public const int IPPORT_TTYLINK = 87; + + [NativeTypeName("#define IPPORT_SUPDUP 95")] + public const int IPPORT_SUPDUP = 95; + + [NativeTypeName("#define IPPORT_POP3 110")] + public const int IPPORT_POP3 = 110; + + [NativeTypeName("#define IPPORT_NTP 123")] + public const int IPPORT_NTP = 123; + + [NativeTypeName("#define IPPORT_EPMAP 135")] + public const int IPPORT_EPMAP = 135; + + [NativeTypeName("#define IPPORT_NETBIOS_NS 137")] + public const int IPPORT_NETBIOS_NS = 137; + + [NativeTypeName("#define IPPORT_NETBIOS_DGM 138")] + public const int IPPORT_NETBIOS_DGM = 138; + + [NativeTypeName("#define IPPORT_NETBIOS_SSN 139")] + public const int IPPORT_NETBIOS_SSN = 139; + + [NativeTypeName("#define IPPORT_IMAP 143")] + public const int IPPORT_IMAP = 143; + + [NativeTypeName("#define IPPORT_SNMP 161")] + public const int IPPORT_SNMP = 161; + + [NativeTypeName("#define IPPORT_SNMP_TRAP 162")] + public const int IPPORT_SNMP_TRAP = 162; + + [NativeTypeName("#define IPPORT_IMAP3 220")] + public const int IPPORT_IMAP3 = 220; + + [NativeTypeName("#define IPPORT_LDAP 389")] + public const int IPPORT_LDAP = 389; + + [NativeTypeName("#define IPPORT_HTTPS 443")] + public const int IPPORT_HTTPS = 443; + + [NativeTypeName("#define IPPORT_MICROSOFT_DS 445")] + public const int IPPORT_MICROSOFT_DS = 445; + + [NativeTypeName("#define IPPORT_EXECSERVER 512")] + public const int IPPORT_EXECSERVER = 512; + + [NativeTypeName("#define IPPORT_LOGINSERVER 513")] + public const int IPPORT_LOGINSERVER = 513; + + [NativeTypeName("#define IPPORT_CMDSERVER 514")] + public const int IPPORT_CMDSERVER = 514; + + [NativeTypeName("#define IPPORT_EFSSERVER 520")] + public const int IPPORT_EFSSERVER = 520; + + [NativeTypeName("#define IPPORT_BIFFUDP 512")] + public const int IPPORT_BIFFUDP = 512; + + [NativeTypeName("#define IPPORT_WHOSERVER 513")] + public const int IPPORT_WHOSERVER = 513; + + [NativeTypeName("#define IPPORT_ROUTESERVER 520")] + public const int IPPORT_ROUTESERVER = 520; + + [NativeTypeName("#define IPPORT_RESERVED 1024")] + public const int IPPORT_RESERVED = 1024; + + [NativeTypeName("#define IPPORT_REGISTERED_MIN IPPORT_RESERVED")] + public const int IPPORT_REGISTERED_MIN = 1024; + + [NativeTypeName("#define IPPORT_REGISTERED_MAX 0xbfff")] + public const int IPPORT_REGISTERED_MAX = 0xbfff; + + [NativeTypeName("#define IPPORT_DYNAMIC_MIN 0xc000")] + public const int IPPORT_DYNAMIC_MIN = 0xc000; + + [NativeTypeName("#define IPPORT_DYNAMIC_MAX 0xffff")] + public const int IPPORT_DYNAMIC_MAX = 0xffff; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/NI.cs b/sources/Interop/Windows/Windows/shared/ws2def/NI.cs new file mode 100644 index 0000000000..3ac9b240db --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/NI.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NI + { + [NativeTypeName("#define NI_NOFQDN 0x01")] + public const int NI_NOFQDN = 0x01; + + [NativeTypeName("#define NI_NUMERICHOST 0x02")] + public const int NI_NUMERICHOST = 0x02; + + [NativeTypeName("#define NI_NAMEREQD 0x04")] + public const int NI_NAMEREQD = 0x04; + + [NativeTypeName("#define NI_NUMERICSERV 0x08")] + public const int NI_NUMERICSERV = 0x08; + + [NativeTypeName("#define NI_DGRAM 0x10")] + public const int NI_DGRAM = 0x10; + + [NativeTypeName("#define NI_MAXHOST 1025")] + public const int NI_MAXHOST = 1025; + + [NativeTypeName("#define NI_MAXSERV 32")] + public const int NI_MAXSERV = 32; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/NS.cs b/sources/Interop/Windows/Windows/shared/ws2def/NS.cs new file mode 100644 index 0000000000..8cf3ec6a98 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/NS.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NS + { + [NativeTypeName("#define NS_ALL (0)")] + public const int NS_ALL = (0); + + [NativeTypeName("#define NS_SAP (1)")] + public const int NS_SAP = (1); + + [NativeTypeName("#define NS_NDS (2)")] + public const int NS_NDS = (2); + + [NativeTypeName("#define NS_PEER_BROWSE (3)")] + public const int NS_PEER_BROWSE = (3); + + [NativeTypeName("#define NS_SLP (5)")] + public const int NS_SLP = (5); + + [NativeTypeName("#define NS_DHCP (6)")] + public const int NS_DHCP = (6); + + [NativeTypeName("#define NS_TCPIP_LOCAL (10)")] + public const int NS_TCPIP_LOCAL = (10); + + [NativeTypeName("#define NS_TCPIP_HOSTS (11)")] + public const int NS_TCPIP_HOSTS = (11); + + [NativeTypeName("#define NS_DNS (12)")] + public const int NS_DNS = (12); + + [NativeTypeName("#define NS_NETBT (13)")] + public const int NS_NETBT = (13); + + [NativeTypeName("#define NS_WINS (14)")] + public const int NS_WINS = (14); + + [NativeTypeName("#define NS_NLA (15)")] + public const int NS_NLA = (15); + + [NativeTypeName("#define NS_BTH (16)")] + public const int NS_BTH = (16); + + [NativeTypeName("#define NS_NBP (20)")] + public const int NS_NBP = (20); + + [NativeTypeName("#define NS_MS (30)")] + public const int NS_MS = (30); + + [NativeTypeName("#define NS_STDA (31)")] + public const int NS_STDA = (31); + + [NativeTypeName("#define NS_NTDS (32)")] + public const int NS_NTDS = (32); + + [NativeTypeName("#define NS_EMAIL (37)")] + public const int NS_EMAIL = (37); + + [NativeTypeName("#define NS_PNRPNAME (38)")] + public const int NS_PNRPNAME = (38); + + [NativeTypeName("#define NS_PNRPCLOUD (39)")] + public const int NS_PNRPCLOUD = (39); + + [NativeTypeName("#define NS_X500 (40)")] + public const int NS_X500 = (40); + + [NativeTypeName("#define NS_NIS (41)")] + public const int NS_NIS = (41); + + [NativeTypeName("#define NS_NISPLUS (42)")] + public const int NS_NISPLUS = (42); + + [NativeTypeName("#define NS_WRQ (50)")] + public const int NS_WRQ = (50); + + [NativeTypeName("#define NS_NETDES (60)")] + public const int NS_NETDES = (60); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/SIO.cs b/sources/Interop/Windows/Windows/shared/ws2def/SIO.cs new file mode 100644 index 0000000000..c91b7bed43 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/SIO.cs @@ -0,0 +1,79 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SIO + { + [NativeTypeName("#define SIO_ASSOCIATE_HANDLE _WSAIOW(IOC_WS2,1)")] + public const uint SIO_ASSOCIATE_HANDLE = (0x80000000 | (0x08000000) | (1)); + + [NativeTypeName("#define SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(IOC_WS2,2)")] + public const int SIO_ENABLE_CIRCULAR_QUEUEING = (0x20000000 | (0x08000000) | (2)); + + [NativeTypeName("#define SIO_FIND_ROUTE _WSAIOR(IOC_WS2,3)")] + public const int SIO_FIND_ROUTE = (0x40000000 | (0x08000000) | (3)); + + [NativeTypeName("#define SIO_FLUSH _WSAIO(IOC_WS2,4)")] + public const int SIO_FLUSH = (0x20000000 | (0x08000000) | (4)); + + [NativeTypeName("#define SIO_GET_BROADCAST_ADDRESS _WSAIOR(IOC_WS2,5)")] + public const int SIO_GET_BROADCAST_ADDRESS = (0x40000000 | (0x08000000) | (5)); + + [NativeTypeName("#define SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,6)")] + public const uint SIO_GET_EXTENSION_FUNCTION_POINTER = ((0x80000000 | 0x40000000) | (0x08000000) | (6)); + + [NativeTypeName("#define SIO_GET_QOS _WSAIORW(IOC_WS2,7)")] + public const uint SIO_GET_QOS = ((0x80000000 | 0x40000000) | (0x08000000) | (7)); + + [NativeTypeName("#define SIO_GET_GROUP_QOS _WSAIORW(IOC_WS2,8)")] + public const uint SIO_GET_GROUP_QOS = ((0x80000000 | 0x40000000) | (0x08000000) | (8)); + + [NativeTypeName("#define SIO_MULTIPOINT_LOOPBACK _WSAIOW(IOC_WS2,9)")] + public const uint SIO_MULTIPOINT_LOOPBACK = (0x80000000 | (0x08000000) | (9)); + + [NativeTypeName("#define SIO_MULTICAST_SCOPE _WSAIOW(IOC_WS2,10)")] + public const uint SIO_MULTICAST_SCOPE = (0x80000000 | (0x08000000) | (10)); + + [NativeTypeName("#define SIO_SET_QOS _WSAIOW(IOC_WS2,11)")] + public const uint SIO_SET_QOS = (0x80000000 | (0x08000000) | (11)); + + [NativeTypeName("#define SIO_SET_GROUP_QOS _WSAIOW(IOC_WS2,12)")] + public const uint SIO_SET_GROUP_QOS = (0x80000000 | (0x08000000) | (12)); + + [NativeTypeName("#define SIO_TRANSLATE_HANDLE _WSAIORW(IOC_WS2,13)")] + public const uint SIO_TRANSLATE_HANDLE = ((0x80000000 | 0x40000000) | (0x08000000) | (13)); + + [NativeTypeName("#define SIO_ROUTING_INTERFACE_QUERY _WSAIORW(IOC_WS2,20)")] + public const uint SIO_ROUTING_INTERFACE_QUERY = ((0x80000000 | 0x40000000) | (0x08000000) | (20)); + + [NativeTypeName("#define SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(IOC_WS2,21)")] + public const uint SIO_ROUTING_INTERFACE_CHANGE = (0x80000000 | (0x08000000) | (21)); + + [NativeTypeName("#define SIO_ADDRESS_LIST_QUERY _WSAIOR(IOC_WS2,22)")] + public const int SIO_ADDRESS_LIST_QUERY = (0x40000000 | (0x08000000) | (22)); + + [NativeTypeName("#define SIO_ADDRESS_LIST_CHANGE _WSAIO(IOC_WS2,23)")] + public const int SIO_ADDRESS_LIST_CHANGE = (0x20000000 | (0x08000000) | (23)); + + [NativeTypeName("#define SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(IOC_WS2,24)")] + public const int SIO_QUERY_TARGET_PNP_HANDLE = (0x40000000 | (0x08000000) | (24)); + + [NativeTypeName("#define SIO_QUERY_RSS_PROCESSOR_INFO _WSAIOR(IOC_WS2,37)")] + public const int SIO_QUERY_RSS_PROCESSOR_INFO = (0x40000000 | (0x08000000) | (37)); + + [NativeTypeName("#define SIO_ADDRESS_LIST_SORT _WSAIORW(IOC_WS2,25)")] + public const uint SIO_ADDRESS_LIST_SORT = ((0x80000000 | 0x40000000) | (0x08000000) | (25)); + + [NativeTypeName("#define SIO_RESERVED_1 _WSAIOW(IOC_WS2,26)")] + public const uint SIO_RESERVED_1 = (0x80000000 | (0x08000000) | (26)); + + [NativeTypeName("#define SIO_RESERVED_2 _WSAIOW(IOC_WS2,33)")] + public const uint SIO_RESERVED_2 = (0x80000000 | (0x08000000) | (33)); + + [NativeTypeName("#define SIO_GET_MULTIPLE_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,36)")] + public const uint SIO_GET_MULTIPLE_EXTENSION_FUNCTION_POINTER = ((0x80000000 | 0x40000000) | (0x08000000) | (36)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/SO.cs b/sources/Interop/Windows/Windows/shared/ws2def/SO.cs new file mode 100644 index 0000000000..f9d4a549c1 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/SO.cs @@ -0,0 +1,103 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SO + { + [NativeTypeName("#define SO_DEBUG 0x0001")] + public const int SO_DEBUG = 0x0001; + + [NativeTypeName("#define SO_ACCEPTCONN 0x0002")] + public const int SO_ACCEPTCONN = 0x0002; + + [NativeTypeName("#define SO_REUSEADDR 0x0004")] + public const int SO_REUSEADDR = 0x0004; + + [NativeTypeName("#define SO_KEEPALIVE 0x0008")] + public const int SO_KEEPALIVE = 0x0008; + + [NativeTypeName("#define SO_DONTROUTE 0x0010")] + public const int SO_DONTROUTE = 0x0010; + + [NativeTypeName("#define SO_BROADCAST 0x0020")] + public const int SO_BROADCAST = 0x0020; + + [NativeTypeName("#define SO_USELOOPBACK 0x0040")] + public const int SO_USELOOPBACK = 0x0040; + + [NativeTypeName("#define SO_LINGER 0x0080")] + public const int SO_LINGER = 0x0080; + + [NativeTypeName("#define SO_OOBINLINE 0x0100")] + public const int SO_OOBINLINE = 0x0100; + + [NativeTypeName("#define SO_DONTLINGER (int)(~SO_LINGER)")] + public const int SO_DONTLINGER = (int)(~0x0080); + + [NativeTypeName("#define SO_EXCLUSIVEADDRUSE ((int)(~SO_REUSEADDR))")] + public const int SO_EXCLUSIVEADDRUSE = ((int)(~0x0004)); + + [NativeTypeName("#define SO_SNDBUF 0x1001")] + public const int SO_SNDBUF = 0x1001; + + [NativeTypeName("#define SO_RCVBUF 0x1002")] + public const int SO_RCVBUF = 0x1002; + + [NativeTypeName("#define SO_SNDLOWAT 0x1003")] + public const int SO_SNDLOWAT = 0x1003; + + [NativeTypeName("#define SO_RCVLOWAT 0x1004")] + public const int SO_RCVLOWAT = 0x1004; + + [NativeTypeName("#define SO_SNDTIMEO 0x1005")] + public const int SO_SNDTIMEO = 0x1005; + + [NativeTypeName("#define SO_RCVTIMEO 0x1006")] + public const int SO_RCVTIMEO = 0x1006; + + [NativeTypeName("#define SO_ERROR 0x1007")] + public const int SO_ERROR = 0x1007; + + [NativeTypeName("#define SO_TYPE 0x1008")] + public const int SO_TYPE = 0x1008; + + [NativeTypeName("#define SO_BSP_STATE 0x1009")] + public const int SO_BSP_STATE = 0x1009; + + [NativeTypeName("#define SO_GROUP_ID 0x2001")] + public const int SO_GROUP_ID = 0x2001; + + [NativeTypeName("#define SO_GROUP_PRIORITY 0x2002")] + public const int SO_GROUP_PRIORITY = 0x2002; + + [NativeTypeName("#define SO_MAX_MSG_SIZE 0x2003")] + public const int SO_MAX_MSG_SIZE = 0x2003; + + [NativeTypeName("#define SO_CONDITIONAL_ACCEPT 0x3002")] + public const int SO_CONDITIONAL_ACCEPT = 0x3002; + + [NativeTypeName("#define SO_PAUSE_ACCEPT 0x3003")] + public const int SO_PAUSE_ACCEPT = 0x3003; + + [NativeTypeName("#define SO_COMPARTMENT_ID 0x3004")] + public const int SO_COMPARTMENT_ID = 0x3004; + + [NativeTypeName("#define SO_RANDOMIZE_PORT 0x3005")] + public const int SO_RANDOMIZE_PORT = 0x3005; + + [NativeTypeName("#define SO_PORT_SCALABILITY 0x3006")] + public const int SO_PORT_SCALABILITY = 0x3006; + + [NativeTypeName("#define SO_REUSE_UNICASTPORT 0x3007")] + public const int SO_REUSE_UNICASTPORT = 0x3007; + + [NativeTypeName("#define SO_REUSE_MULTICASTPORT 0x3008")] + public const int SO_REUSE_MULTICASTPORT = 0x3008; + + [NativeTypeName("#define SO_ORIGINAL_DST 0x300F")] + public const int SO_ORIGINAL_DST = 0x300F; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/TCP.cs b/sources/Interop/Windows/Windows/shared/ws2def/TCP.cs new file mode 100644 index 0000000000..e6d17ea442 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2def/TCP.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2def.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TCP + { + [NativeTypeName("#define TCP_NODELAY 0x0001")] + public const int TCP_NODELAY = 0x0001; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2def/Windows.cs b/sources/Interop/Windows/Windows/shared/ws2def/Windows.cs index 02cfa834a4..7b79802698 100644 --- a/sources/Interop/Windows/Windows/shared/ws2def/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/ws2def/Windows.cs @@ -7,117 +7,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define AF_UNSPEC 0")] - public const int AF_UNSPEC = 0; - - [NativeTypeName("#define AF_UNIX 1")] - public const int AF_UNIX = 1; - - [NativeTypeName("#define AF_INET 2")] - public const int AF_INET = 2; - - [NativeTypeName("#define AF_IMPLINK 3")] - public const int AF_IMPLINK = 3; - - [NativeTypeName("#define AF_PUP 4")] - public const int AF_PUP = 4; - - [NativeTypeName("#define AF_CHAOS 5")] - public const int AF_CHAOS = 5; - - [NativeTypeName("#define AF_NS 6")] - public const int AF_NS = 6; - - [NativeTypeName("#define AF_IPX AF_NS")] - public const int AF_IPX = 6; - - [NativeTypeName("#define AF_ISO 7")] - public const int AF_ISO = 7; - - [NativeTypeName("#define AF_OSI AF_ISO")] - public const int AF_OSI = 7; - - [NativeTypeName("#define AF_ECMA 8")] - public const int AF_ECMA = 8; - - [NativeTypeName("#define AF_DATAKIT 9")] - public const int AF_DATAKIT = 9; - - [NativeTypeName("#define AF_CCITT 10")] - public const int AF_CCITT = 10; - - [NativeTypeName("#define AF_SNA 11")] - public const int AF_SNA = 11; - - [NativeTypeName("#define AF_DECnet 12")] - public const int AF_DECnet = 12; - - [NativeTypeName("#define AF_DLI 13")] - public const int AF_DLI = 13; - - [NativeTypeName("#define AF_LAT 14")] - public const int AF_LAT = 14; - - [NativeTypeName("#define AF_HYLINK 15")] - public const int AF_HYLINK = 15; - - [NativeTypeName("#define AF_APPLETALK 16")] - public const int AF_APPLETALK = 16; - - [NativeTypeName("#define AF_NETBIOS 17")] - public const int AF_NETBIOS = 17; - - [NativeTypeName("#define AF_VOICEVIEW 18")] - public const int AF_VOICEVIEW = 18; - - [NativeTypeName("#define AF_FIREFOX 19")] - public const int AF_FIREFOX = 19; - - [NativeTypeName("#define AF_UNKNOWN1 20")] - public const int AF_UNKNOWN1 = 20; - - [NativeTypeName("#define AF_BAN 21")] - public const int AF_BAN = 21; - - [NativeTypeName("#define AF_ATM 22")] - public const int AF_ATM = 22; - - [NativeTypeName("#define AF_INET6 23")] - public const int AF_INET6 = 23; - - [NativeTypeName("#define AF_CLUSTER 24")] - public const int AF_CLUSTER = 24; - - [NativeTypeName("#define AF_12844 25")] - public const int AF_12844 = 25; - - [NativeTypeName("#define AF_IRDA 26")] - public const int AF_IRDA = 26; - - [NativeTypeName("#define AF_NETDES 28")] - public const int AF_NETDES = 28; - - [NativeTypeName("#define AF_TCNPROCESS 29")] - public const int AF_TCNPROCESS = 29; - - [NativeTypeName("#define AF_TCNMESSAGE 30")] - public const int AF_TCNMESSAGE = 30; - - [NativeTypeName("#define AF_ICLFXBM 31")] - public const int AF_ICLFXBM = 31; - - [NativeTypeName("#define AF_BTH 32")] - public const int AF_BTH = 32; - - [NativeTypeName("#define AF_LINK 33")] - public const int AF_LINK = 33; - - [NativeTypeName("#define AF_HYPERV 34")] - public const int AF_HYPERV = 34; - - [NativeTypeName("#define AF_MAX 35")] - public const int AF_MAX = 35; - [NativeTypeName("#define SOCK_STREAM 1")] public const int SOCK_STREAM = 1; @@ -142,108 +31,12 @@ public static partial class Windows [NativeTypeName("#define SOL_IPV6 (SOL_SOCKET-5)")] public const int SOL_IPV6 = (0xffff - 5); - [NativeTypeName("#define SO_DEBUG 0x0001")] - public const int SO_DEBUG = 0x0001; - - [NativeTypeName("#define SO_ACCEPTCONN 0x0002")] - public const int SO_ACCEPTCONN = 0x0002; - - [NativeTypeName("#define SO_REUSEADDR 0x0004")] - public const int SO_REUSEADDR = 0x0004; - - [NativeTypeName("#define SO_KEEPALIVE 0x0008")] - public const int SO_KEEPALIVE = 0x0008; - - [NativeTypeName("#define SO_DONTROUTE 0x0010")] - public const int SO_DONTROUTE = 0x0010; - - [NativeTypeName("#define SO_BROADCAST 0x0020")] - public const int SO_BROADCAST = 0x0020; - - [NativeTypeName("#define SO_USELOOPBACK 0x0040")] - public const int SO_USELOOPBACK = 0x0040; - - [NativeTypeName("#define SO_LINGER 0x0080")] - public const int SO_LINGER = 0x0080; - - [NativeTypeName("#define SO_OOBINLINE 0x0100")] - public const int SO_OOBINLINE = 0x0100; - - [NativeTypeName("#define SO_DONTLINGER (int)(~SO_LINGER)")] - public const int SO_DONTLINGER = (int)(~0x0080); - - [NativeTypeName("#define SO_EXCLUSIVEADDRUSE ((int)(~SO_REUSEADDR))")] - public const int SO_EXCLUSIVEADDRUSE = ((int)(~0x0004)); - - [NativeTypeName("#define SO_SNDBUF 0x1001")] - public const int SO_SNDBUF = 0x1001; - - [NativeTypeName("#define SO_RCVBUF 0x1002")] - public const int SO_RCVBUF = 0x1002; - - [NativeTypeName("#define SO_SNDLOWAT 0x1003")] - public const int SO_SNDLOWAT = 0x1003; - - [NativeTypeName("#define SO_RCVLOWAT 0x1004")] - public const int SO_RCVLOWAT = 0x1004; - - [NativeTypeName("#define SO_SNDTIMEO 0x1005")] - public const int SO_SNDTIMEO = 0x1005; - - [NativeTypeName("#define SO_RCVTIMEO 0x1006")] - public const int SO_RCVTIMEO = 0x1006; - - [NativeTypeName("#define SO_ERROR 0x1007")] - public const int SO_ERROR = 0x1007; - - [NativeTypeName("#define SO_TYPE 0x1008")] - public const int SO_TYPE = 0x1008; - - [NativeTypeName("#define SO_BSP_STATE 0x1009")] - public const int SO_BSP_STATE = 0x1009; - - [NativeTypeName("#define SO_GROUP_ID 0x2001")] - public const int SO_GROUP_ID = 0x2001; - - [NativeTypeName("#define SO_GROUP_PRIORITY 0x2002")] - public const int SO_GROUP_PRIORITY = 0x2002; - - [NativeTypeName("#define SO_MAX_MSG_SIZE 0x2003")] - public const int SO_MAX_MSG_SIZE = 0x2003; - - [NativeTypeName("#define SO_CONDITIONAL_ACCEPT 0x3002")] - public const int SO_CONDITIONAL_ACCEPT = 0x3002; - - [NativeTypeName("#define SO_PAUSE_ACCEPT 0x3003")] - public const int SO_PAUSE_ACCEPT = 0x3003; - - [NativeTypeName("#define SO_COMPARTMENT_ID 0x3004")] - public const int SO_COMPARTMENT_ID = 0x3004; - - [NativeTypeName("#define SO_RANDOMIZE_PORT 0x3005")] - public const int SO_RANDOMIZE_PORT = 0x3005; - - [NativeTypeName("#define SO_PORT_SCALABILITY 0x3006")] - public const int SO_PORT_SCALABILITY = 0x3006; - - [NativeTypeName("#define SO_REUSE_UNICASTPORT 0x3007")] - public const int SO_REUSE_UNICASTPORT = 0x3007; - - [NativeTypeName("#define SO_REUSE_MULTICASTPORT 0x3008")] - public const int SO_REUSE_MULTICASTPORT = 0x3008; - - [NativeTypeName("#define SO_ORIGINAL_DST 0x300F")] - public const int SO_ORIGINAL_DST = 0x300F; - [NativeTypeName("#define IP6T_SO_ORIGINAL_DST SO_ORIGINAL_DST")] public const int IP6T_SO_ORIGINAL_DST = 0x300F; [NativeTypeName("#define WSK_SO_BASE 0x4000")] public const int WSK_SO_BASE = 0x4000; - [NativeTypeName("#define TCP_NODELAY 0x0001")] - public const int TCP_NODELAY = 0x0001; - [NativeTypeName("#define _SS_MAXSIZE 128")] public const int _SS_MAXSIZE = 128; @@ -271,261 +64,9 @@ public static partial class Windows [NativeTypeName("#define IOC_WSK (IOC_WS2|0x07000000)")] public const int IOC_WSK = (0x08000000 | 0x07000000); - [NativeTypeName("#define SIO_ASSOCIATE_HANDLE _WSAIOW(IOC_WS2,1)")] - public const uint SIO_ASSOCIATE_HANDLE = (0x80000000 | (0x08000000) | (1)); - - [NativeTypeName("#define SIO_ENABLE_CIRCULAR_QUEUEING _WSAIO(IOC_WS2,2)")] - public const int SIO_ENABLE_CIRCULAR_QUEUEING = (0x20000000 | (0x08000000) | (2)); - - [NativeTypeName("#define SIO_FIND_ROUTE _WSAIOR(IOC_WS2,3)")] - public const int SIO_FIND_ROUTE = (0x40000000 | (0x08000000) | (3)); - - [NativeTypeName("#define SIO_FLUSH _WSAIO(IOC_WS2,4)")] - public const int SIO_FLUSH = (0x20000000 | (0x08000000) | (4)); - - [NativeTypeName("#define SIO_GET_BROADCAST_ADDRESS _WSAIOR(IOC_WS2,5)")] - public const int SIO_GET_BROADCAST_ADDRESS = (0x40000000 | (0x08000000) | (5)); - - [NativeTypeName("#define SIO_GET_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,6)")] - public const uint SIO_GET_EXTENSION_FUNCTION_POINTER = ((0x80000000 | 0x40000000) | (0x08000000) | (6)); - - [NativeTypeName("#define SIO_GET_QOS _WSAIORW(IOC_WS2,7)")] - public const uint SIO_GET_QOS = ((0x80000000 | 0x40000000) | (0x08000000) | (7)); - - [NativeTypeName("#define SIO_GET_GROUP_QOS _WSAIORW(IOC_WS2,8)")] - public const uint SIO_GET_GROUP_QOS = ((0x80000000 | 0x40000000) | (0x08000000) | (8)); - - [NativeTypeName("#define SIO_MULTIPOINT_LOOPBACK _WSAIOW(IOC_WS2,9)")] - public const uint SIO_MULTIPOINT_LOOPBACK = (0x80000000 | (0x08000000) | (9)); - - [NativeTypeName("#define SIO_MULTICAST_SCOPE _WSAIOW(IOC_WS2,10)")] - public const uint SIO_MULTICAST_SCOPE = (0x80000000 | (0x08000000) | (10)); - - [NativeTypeName("#define SIO_SET_QOS _WSAIOW(IOC_WS2,11)")] - public const uint SIO_SET_QOS = (0x80000000 | (0x08000000) | (11)); - - [NativeTypeName("#define SIO_SET_GROUP_QOS _WSAIOW(IOC_WS2,12)")] - public const uint SIO_SET_GROUP_QOS = (0x80000000 | (0x08000000) | (12)); - - [NativeTypeName("#define SIO_TRANSLATE_HANDLE _WSAIORW(IOC_WS2,13)")] - public const uint SIO_TRANSLATE_HANDLE = ((0x80000000 | 0x40000000) | (0x08000000) | (13)); - - [NativeTypeName("#define SIO_ROUTING_INTERFACE_QUERY _WSAIORW(IOC_WS2,20)")] - public const uint SIO_ROUTING_INTERFACE_QUERY = ((0x80000000 | 0x40000000) | (0x08000000) | (20)); - - [NativeTypeName("#define SIO_ROUTING_INTERFACE_CHANGE _WSAIOW(IOC_WS2,21)")] - public const uint SIO_ROUTING_INTERFACE_CHANGE = (0x80000000 | (0x08000000) | (21)); - - [NativeTypeName("#define SIO_ADDRESS_LIST_QUERY _WSAIOR(IOC_WS2,22)")] - public const int SIO_ADDRESS_LIST_QUERY = (0x40000000 | (0x08000000) | (22)); - - [NativeTypeName("#define SIO_ADDRESS_LIST_CHANGE _WSAIO(IOC_WS2,23)")] - public const int SIO_ADDRESS_LIST_CHANGE = (0x20000000 | (0x08000000) | (23)); - - [NativeTypeName("#define SIO_QUERY_TARGET_PNP_HANDLE _WSAIOR(IOC_WS2,24)")] - public const int SIO_QUERY_TARGET_PNP_HANDLE = (0x40000000 | (0x08000000) | (24)); - - [NativeTypeName("#define SIO_QUERY_RSS_PROCESSOR_INFO _WSAIOR(IOC_WS2,37)")] - public const int SIO_QUERY_RSS_PROCESSOR_INFO = (0x40000000 | (0x08000000) | (37)); - - [NativeTypeName("#define SIO_ADDRESS_LIST_SORT _WSAIORW(IOC_WS2,25)")] - public const uint SIO_ADDRESS_LIST_SORT = ((0x80000000 | 0x40000000) | (0x08000000) | (25)); - - [NativeTypeName("#define SIO_RESERVED_1 _WSAIOW(IOC_WS2,26)")] - public const uint SIO_RESERVED_1 = (0x80000000 | (0x08000000) | (26)); - - [NativeTypeName("#define SIO_RESERVED_2 _WSAIOW(IOC_WS2,33)")] - public const uint SIO_RESERVED_2 = (0x80000000 | (0x08000000) | (33)); - - [NativeTypeName("#define SIO_GET_MULTIPLE_EXTENSION_FUNCTION_POINTER _WSAIORW(IOC_WS2,36)")] - public const uint SIO_GET_MULTIPLE_EXTENSION_FUNCTION_POINTER = ((0x80000000 | 0x40000000) | (0x08000000) | (36)); - [NativeTypeName("#define IPPROTO_IP 0")] public const int IPPROTO_IP = 0; - [NativeTypeName("#define IPPORT_TCPMUX 1")] - public const int IPPORT_TCPMUX = 1; - - [NativeTypeName("#define IPPORT_ECHO 7")] - public const int IPPORT_ECHO = 7; - - [NativeTypeName("#define IPPORT_DISCARD 9")] - public const int IPPORT_DISCARD = 9; - - [NativeTypeName("#define IPPORT_SYSTAT 11")] - public const int IPPORT_SYSTAT = 11; - - [NativeTypeName("#define IPPORT_DAYTIME 13")] - public const int IPPORT_DAYTIME = 13; - - [NativeTypeName("#define IPPORT_NETSTAT 15")] - public const int IPPORT_NETSTAT = 15; - - [NativeTypeName("#define IPPORT_QOTD 17")] - public const int IPPORT_QOTD = 17; - - [NativeTypeName("#define IPPORT_MSP 18")] - public const int IPPORT_MSP = 18; - - [NativeTypeName("#define IPPORT_CHARGEN 19")] - public const int IPPORT_CHARGEN = 19; - - [NativeTypeName("#define IPPORT_FTP_DATA 20")] - public const int IPPORT_FTP_DATA = 20; - - [NativeTypeName("#define IPPORT_FTP 21")] - public const int IPPORT_FTP = 21; - - [NativeTypeName("#define IPPORT_TELNET 23")] - public const int IPPORT_TELNET = 23; - - [NativeTypeName("#define IPPORT_SMTP 25")] - public const int IPPORT_SMTP = 25; - - [NativeTypeName("#define IPPORT_TIMESERVER 37")] - public const int IPPORT_TIMESERVER = 37; - - [NativeTypeName("#define IPPORT_NAMESERVER 42")] - public const int IPPORT_NAMESERVER = 42; - - [NativeTypeName("#define IPPORT_WHOIS 43")] - public const int IPPORT_WHOIS = 43; - - [NativeTypeName("#define IPPORT_MTP 57")] - public const int IPPORT_MTP = 57; - - [NativeTypeName("#define IPPORT_TFTP 69")] - public const int IPPORT_TFTP = 69; - - [NativeTypeName("#define IPPORT_RJE 77")] - public const int IPPORT_RJE = 77; - - [NativeTypeName("#define IPPORT_FINGER 79")] - public const int IPPORT_FINGER = 79; - - [NativeTypeName("#define IPPORT_TTYLINK 87")] - public const int IPPORT_TTYLINK = 87; - - [NativeTypeName("#define IPPORT_SUPDUP 95")] - public const int IPPORT_SUPDUP = 95; - - [NativeTypeName("#define IPPORT_POP3 110")] - public const int IPPORT_POP3 = 110; - - [NativeTypeName("#define IPPORT_NTP 123")] - public const int IPPORT_NTP = 123; - - [NativeTypeName("#define IPPORT_EPMAP 135")] - public const int IPPORT_EPMAP = 135; - - [NativeTypeName("#define IPPORT_NETBIOS_NS 137")] - public const int IPPORT_NETBIOS_NS = 137; - - [NativeTypeName("#define IPPORT_NETBIOS_DGM 138")] - public const int IPPORT_NETBIOS_DGM = 138; - - [NativeTypeName("#define IPPORT_NETBIOS_SSN 139")] - public const int IPPORT_NETBIOS_SSN = 139; - - [NativeTypeName("#define IPPORT_IMAP 143")] - public const int IPPORT_IMAP = 143; - - [NativeTypeName("#define IPPORT_SNMP 161")] - public const int IPPORT_SNMP = 161; - - [NativeTypeName("#define IPPORT_SNMP_TRAP 162")] - public const int IPPORT_SNMP_TRAP = 162; - - [NativeTypeName("#define IPPORT_IMAP3 220")] - public const int IPPORT_IMAP3 = 220; - - [NativeTypeName("#define IPPORT_LDAP 389")] - public const int IPPORT_LDAP = 389; - - [NativeTypeName("#define IPPORT_HTTPS 443")] - public const int IPPORT_HTTPS = 443; - - [NativeTypeName("#define IPPORT_MICROSOFT_DS 445")] - public const int IPPORT_MICROSOFT_DS = 445; - - [NativeTypeName("#define IPPORT_EXECSERVER 512")] - public const int IPPORT_EXECSERVER = 512; - - [NativeTypeName("#define IPPORT_LOGINSERVER 513")] - public const int IPPORT_LOGINSERVER = 513; - - [NativeTypeName("#define IPPORT_CMDSERVER 514")] - public const int IPPORT_CMDSERVER = 514; - - [NativeTypeName("#define IPPORT_EFSSERVER 520")] - public const int IPPORT_EFSSERVER = 520; - - [NativeTypeName("#define IPPORT_BIFFUDP 512")] - public const int IPPORT_BIFFUDP = 512; - - [NativeTypeName("#define IPPORT_WHOSERVER 513")] - public const int IPPORT_WHOSERVER = 513; - - [NativeTypeName("#define IPPORT_ROUTESERVER 520")] - public const int IPPORT_ROUTESERVER = 520; - - [NativeTypeName("#define IPPORT_RESERVED 1024")] - public const int IPPORT_RESERVED = 1024; - - [NativeTypeName("#define IPPORT_REGISTERED_MIN IPPORT_RESERVED")] - public const int IPPORT_REGISTERED_MIN = 1024; - - [NativeTypeName("#define IPPORT_REGISTERED_MAX 0xbfff")] - public const int IPPORT_REGISTERED_MAX = 0xbfff; - - [NativeTypeName("#define IPPORT_DYNAMIC_MIN 0xc000")] - public const int IPPORT_DYNAMIC_MIN = 0xc000; - - [NativeTypeName("#define IPPORT_DYNAMIC_MAX 0xffff")] - public const int IPPORT_DYNAMIC_MAX = 0xffff; - - [NativeTypeName("#define IN_CLASSA_NET 0xff000000")] - public const uint IN_CLASSA_NET = 0xff000000; - - [NativeTypeName("#define IN_CLASSA_NSHIFT 24")] - public const int IN_CLASSA_NSHIFT = 24; - - [NativeTypeName("#define IN_CLASSA_HOST 0x00ffffff")] - public const int IN_CLASSA_HOST = 0x00ffffff; - - [NativeTypeName("#define IN_CLASSA_MAX 128")] - public const int IN_CLASSA_MAX = 128; - - [NativeTypeName("#define IN_CLASSB_NET 0xffff0000")] - public const uint IN_CLASSB_NET = 0xffff0000; - - [NativeTypeName("#define IN_CLASSB_NSHIFT 16")] - public const int IN_CLASSB_NSHIFT = 16; - - [NativeTypeName("#define IN_CLASSB_HOST 0x0000ffff")] - public const int IN_CLASSB_HOST = 0x0000ffff; - - [NativeTypeName("#define IN_CLASSB_MAX 65536")] - public const int IN_CLASSB_MAX = 65536; - - [NativeTypeName("#define IN_CLASSC_NET 0xffffff00")] - public const uint IN_CLASSC_NET = 0xffffff00; - - [NativeTypeName("#define IN_CLASSC_NSHIFT 8")] - public const int IN_CLASSC_NSHIFT = 8; - - [NativeTypeName("#define IN_CLASSC_HOST 0x000000ff")] - public const int IN_CLASSC_HOST = 0x000000ff; - - [NativeTypeName("#define IN_CLASSD_NET 0xf0000000")] - public const uint IN_CLASSD_NET = 0xf0000000; - - [NativeTypeName("#define IN_CLASSD_NSHIFT 28")] - public const int IN_CLASSD_NSHIFT = 28; - - [NativeTypeName("#define IN_CLASSD_HOST 0x0fffffff")] - public const int IN_CLASSD_HOST = 0x0fffffff; - [NativeTypeName("#define INADDR_ANY (ULONG)0x00000000")] public const uint INADDR_ANY = (uint)(0x00000000); @@ -568,69 +109,6 @@ public static partial class Windows [NativeTypeName("#define MSG_ERRQUEUE 0x1000")] public const int MSG_ERRQUEUE = 0x1000; - [NativeTypeName("#define AI_PASSIVE 0x00000001")] - public const int AI_PASSIVE = 0x00000001; - - [NativeTypeName("#define AI_CANONNAME 0x00000002")] - public const int AI_CANONNAME = 0x00000002; - - [NativeTypeName("#define AI_NUMERICHOST 0x00000004")] - public const int AI_NUMERICHOST = 0x00000004; - - [NativeTypeName("#define AI_NUMERICSERV 0x00000008")] - public const int AI_NUMERICSERV = 0x00000008; - - [NativeTypeName("#define AI_DNS_ONLY 0x00000010")] - public const int AI_DNS_ONLY = 0x00000010; - - [NativeTypeName("#define AI_FORCE_CLEAR_TEXT 0x00000020")] - public const int AI_FORCE_CLEAR_TEXT = 0x00000020; - - [NativeTypeName("#define AI_BYPASS_DNS_CACHE 0x00000040")] - public const int AI_BYPASS_DNS_CACHE = 0x00000040; - - [NativeTypeName("#define AI_RETURN_TTL 0x00000080")] - public const int AI_RETURN_TTL = 0x00000080; - - [NativeTypeName("#define AI_ALL 0x00000100")] - public const int AI_ALL = 0x00000100; - - [NativeTypeName("#define AI_ADDRCONFIG 0x00000400")] - public const int AI_ADDRCONFIG = 0x00000400; - - [NativeTypeName("#define AI_V4MAPPED 0x00000800")] - public const int AI_V4MAPPED = 0x00000800; - - [NativeTypeName("#define AI_NON_AUTHORITATIVE 0x00004000")] - public const int AI_NON_AUTHORITATIVE = 0x00004000; - - [NativeTypeName("#define AI_SECURE 0x00008000")] - public const int AI_SECURE = 0x00008000; - - [NativeTypeName("#define AI_RETURN_PREFERRED_NAMES 0x00010000")] - public const int AI_RETURN_PREFERRED_NAMES = 0x00010000; - - [NativeTypeName("#define AI_FQDN 0x00020000")] - public const int AI_FQDN = 0x00020000; - - [NativeTypeName("#define AI_FILESERVER 0x00040000")] - public const int AI_FILESERVER = 0x00040000; - - [NativeTypeName("#define AI_DISABLE_IDN_ENCODING 0x00080000")] - public const int AI_DISABLE_IDN_ENCODING = 0x00080000; - - [NativeTypeName("#define AI_SECURE_WITH_FALLBACK 0x00100000")] - public const int AI_SECURE_WITH_FALLBACK = 0x00100000; - - [NativeTypeName("#define AI_REQUIRE_SECURE 0x20000000")] - public const int AI_REQUIRE_SECURE = 0x20000000; - - [NativeTypeName("#define AI_RESOLUTION_HANDLE 0x40000000")] - public const int AI_RESOLUTION_HANDLE = 0x40000000; - - [NativeTypeName("#define AI_EXTENDED 0x80000000")] - public const uint AI_EXTENDED = 0x80000000; - [NativeTypeName("#define ADDRINFOEX_VERSION_2 2")] public const int ADDRINFOEX_VERSION_2 = 2; @@ -642,101 +120,5 @@ public static partial class Windows [NativeTypeName("#define ADDRINFOEX_VERSION_5 5")] public const int ADDRINFOEX_VERSION_5 = 5; - - [NativeTypeName("#define NS_ALL (0)")] - public const int NS_ALL = (0); - - [NativeTypeName("#define NS_SAP (1)")] - public const int NS_SAP = (1); - - [NativeTypeName("#define NS_NDS (2)")] - public const int NS_NDS = (2); - - [NativeTypeName("#define NS_PEER_BROWSE (3)")] - public const int NS_PEER_BROWSE = (3); - - [NativeTypeName("#define NS_SLP (5)")] - public const int NS_SLP = (5); - - [NativeTypeName("#define NS_DHCP (6)")] - public const int NS_DHCP = (6); - - [NativeTypeName("#define NS_TCPIP_LOCAL (10)")] - public const int NS_TCPIP_LOCAL = (10); - - [NativeTypeName("#define NS_TCPIP_HOSTS (11)")] - public const int NS_TCPIP_HOSTS = (11); - - [NativeTypeName("#define NS_DNS (12)")] - public const int NS_DNS = (12); - - [NativeTypeName("#define NS_NETBT (13)")] - public const int NS_NETBT = (13); - - [NativeTypeName("#define NS_WINS (14)")] - public const int NS_WINS = (14); - - [NativeTypeName("#define NS_NLA (15)")] - public const int NS_NLA = (15); - - [NativeTypeName("#define NS_BTH (16)")] - public const int NS_BTH = (16); - - [NativeTypeName("#define NS_NBP (20)")] - public const int NS_NBP = (20); - - [NativeTypeName("#define NS_MS (30)")] - public const int NS_MS = (30); - - [NativeTypeName("#define NS_STDA (31)")] - public const int NS_STDA = (31); - - [NativeTypeName("#define NS_NTDS (32)")] - public const int NS_NTDS = (32); - - [NativeTypeName("#define NS_EMAIL (37)")] - public const int NS_EMAIL = (37); - - [NativeTypeName("#define NS_PNRPNAME (38)")] - public const int NS_PNRPNAME = (38); - - [NativeTypeName("#define NS_PNRPCLOUD (39)")] - public const int NS_PNRPCLOUD = (39); - - [NativeTypeName("#define NS_X500 (40)")] - public const int NS_X500 = (40); - - [NativeTypeName("#define NS_NIS (41)")] - public const int NS_NIS = (41); - - [NativeTypeName("#define NS_NISPLUS (42)")] - public const int NS_NISPLUS = (42); - - [NativeTypeName("#define NS_WRQ (50)")] - public const int NS_WRQ = (50); - - [NativeTypeName("#define NS_NETDES (60)")] - public const int NS_NETDES = (60); - - [NativeTypeName("#define NI_NOFQDN 0x01")] - public const int NI_NOFQDN = 0x01; - - [NativeTypeName("#define NI_NUMERICHOST 0x02")] - public const int NI_NUMERICHOST = 0x02; - - [NativeTypeName("#define NI_NAMEREQD 0x04")] - public const int NI_NAMEREQD = 0x04; - - [NativeTypeName("#define NI_NUMERICSERV 0x08")] - public const int NI_NUMERICSERV = 0x08; - - [NativeTypeName("#define NI_DGRAM 0x10")] - public const int NI_DGRAM = 0x10; - - [NativeTypeName("#define NI_MAXHOST 1025")] - public const int NI_MAXHOST = 1025; - - [NativeTypeName("#define NI_MAXSERV 32")] - public const int NI_MAXSERV = 32; } } diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/IPV6.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/IPV6.cs new file mode 100644 index 0000000000..1afd1da57b --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/IPV6.cs @@ -0,0 +1,124 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2ipdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IPV6 + { + [NativeTypeName("#define IPV6_ADDRESS_BITS RTL_BITS_OF(IN6_ADDR)")] + public const uint IPV6_ADDRESS_BITS = (16 * 8); + + [NativeTypeName("#define IPV6_HOPOPTS 1")] + public const int IPV6_HOPOPTS = 1; + + [NativeTypeName("#define IPV6_HDRINCL 2")] + public const int IPV6_HDRINCL = 2; + + [NativeTypeName("#define IPV6_UNICAST_HOPS 4")] + public const int IPV6_UNICAST_HOPS = 4; + + [NativeTypeName("#define IPV6_MULTICAST_IF 9")] + public const int IPV6_MULTICAST_IF = 9; + + [NativeTypeName("#define IPV6_MULTICAST_HOPS 10")] + public const int IPV6_MULTICAST_HOPS = 10; + + [NativeTypeName("#define IPV6_MULTICAST_LOOP 11")] + public const int IPV6_MULTICAST_LOOP = 11; + + [NativeTypeName("#define IPV6_ADD_MEMBERSHIP 12")] + public const int IPV6_ADD_MEMBERSHIP = 12; + + [NativeTypeName("#define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP")] + public const int IPV6_JOIN_GROUP = 12; + + [NativeTypeName("#define IPV6_DROP_MEMBERSHIP 13")] + public const int IPV6_DROP_MEMBERSHIP = 13; + + [NativeTypeName("#define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP")] + public const int IPV6_LEAVE_GROUP = 13; + + [NativeTypeName("#define IPV6_DONTFRAG 14")] + public const int IPV6_DONTFRAG = 14; + + [NativeTypeName("#define IPV6_PKTINFO 19")] + public const int IPV6_PKTINFO = 19; + + [NativeTypeName("#define IPV6_HOPLIMIT 21")] + public const int IPV6_HOPLIMIT = 21; + + [NativeTypeName("#define IPV6_PROTECTION_LEVEL 23")] + public const int IPV6_PROTECTION_LEVEL = 23; + + [NativeTypeName("#define IPV6_RECVIF 24")] + public const int IPV6_RECVIF = 24; + + [NativeTypeName("#define IPV6_RECVDSTADDR 25")] + public const int IPV6_RECVDSTADDR = 25; + + [NativeTypeName("#define IPV6_CHECKSUM 26")] + public const int IPV6_CHECKSUM = 26; + + [NativeTypeName("#define IPV6_V6ONLY 27")] + public const int IPV6_V6ONLY = 27; + + [NativeTypeName("#define IPV6_IFLIST 28")] + public const int IPV6_IFLIST = 28; + + [NativeTypeName("#define IPV6_ADD_IFLIST 29")] + public const int IPV6_ADD_IFLIST = 29; + + [NativeTypeName("#define IPV6_DEL_IFLIST 30")] + public const int IPV6_DEL_IFLIST = 30; + + [NativeTypeName("#define IPV6_UNICAST_IF 31")] + public const int IPV6_UNICAST_IF = 31; + + [NativeTypeName("#define IPV6_RTHDR 32")] + public const int IPV6_RTHDR = 32; + + [NativeTypeName("#define IPV6_GET_IFLIST 33")] + public const int IPV6_GET_IFLIST = 33; + + [NativeTypeName("#define IPV6_RECVRTHDR 38")] + public const int IPV6_RECVRTHDR = 38; + + [NativeTypeName("#define IPV6_TCLASS 39")] + public const int IPV6_TCLASS = 39; + + [NativeTypeName("#define IPV6_RECVTCLASS 40")] + public const int IPV6_RECVTCLASS = 40; + + [NativeTypeName("#define IPV6_ECN 50")] + public const int IPV6_ECN = 50; + + [NativeTypeName("#define IPV6_RECVECN 50")] + public const int IPV6_RECVECN = 50; + + [NativeTypeName("#define IPV6_PKTINFO_EX 51")] + public const int IPV6_PKTINFO_EX = 51; + + [NativeTypeName("#define IPV6_WFP_REDIRECT_RECORDS 60")] + public const int IPV6_WFP_REDIRECT_RECORDS = 60; + + [NativeTypeName("#define IPV6_WFP_REDIRECT_CONTEXT 70")] + public const int IPV6_WFP_REDIRECT_CONTEXT = 70; + + [NativeTypeName("#define IPV6_MTU_DISCOVER 71")] + public const int IPV6_MTU_DISCOVER = 71; + + [NativeTypeName("#define IPV6_MTU 72")] + public const int IPV6_MTU = 72; + + [NativeTypeName("#define IPV6_NRT_INTERFACE 74")] + public const int IPV6_NRT_INTERFACE = 74; + + [NativeTypeName("#define IPV6_RECVERR 75")] + public const int IPV6_RECVERR = 75; + + [NativeTypeName("#define IPV6_USER_MTU 76")] + public const int IPV6_USER_MTU = 76; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/MCAST.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/MCAST.cs new file mode 100644 index 0000000000..e870fca626 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/MCAST.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2ipdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MCAST + { + [NativeTypeName("#define MCAST_JOIN_GROUP 41")] + public const int MCAST_JOIN_GROUP = 41; + + [NativeTypeName("#define MCAST_LEAVE_GROUP 42")] + public const int MCAST_LEAVE_GROUP = 42; + + [NativeTypeName("#define MCAST_BLOCK_SOURCE 43")] + public const int MCAST_BLOCK_SOURCE = 43; + + [NativeTypeName("#define MCAST_UNBLOCK_SOURCE 44")] + public const int MCAST_UNBLOCK_SOURCE = 44; + + [NativeTypeName("#define MCAST_JOIN_SOURCE_GROUP 45")] + public const int MCAST_JOIN_SOURCE_GROUP = 45; + + [NativeTypeName("#define MCAST_LEAVE_SOURCE_GROUP 46")] + public const int MCAST_LEAVE_SOURCE_GROUP = 46; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/PROTECTION.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/PROTECTION.cs new file mode 100644 index 0000000000..d0cb15c53c --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/PROTECTION.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2ipdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PROTECTION + { + [NativeTypeName("#define PROTECTION_LEVEL_UNRESTRICTED 10")] + public const int PROTECTION_LEVEL_UNRESTRICTED = 10; + + [NativeTypeName("#define PROTECTION_LEVEL_EDGERESTRICTED 20")] + public const int PROTECTION_LEVEL_EDGERESTRICTED = 20; + + [NativeTypeName("#define PROTECTION_LEVEL_RESTRICTED 30")] + public const int PROTECTION_LEVEL_RESTRICTED = 30; + + [NativeTypeName("#define PROTECTION_LEVEL_DEFAULT ((UINT)-1)")] + public const uint PROTECTION_LEVEL_DEFAULT = unchecked((uint)(-1)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/SIO.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/SIO.cs new file mode 100644 index 0000000000..46457aa5e6 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/SIO.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2ipdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SIO + { + [NativeTypeName("#define SIO_GET_INTERFACE_LIST _IOR('t', 127, ULONG)")] + public const int SIO_GET_INTERFACE_LIST = (0x40000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (127)); + + [NativeTypeName("#define SIO_GET_INTERFACE_LIST_EX _IOR('t', 126, ULONG)")] + public const int SIO_GET_INTERFACE_LIST_EX = (0x40000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (126)); + + [NativeTypeName("#define SIO_SET_MULTICAST_FILTER _IOW('t', 125, ULONG)")] + public const uint SIO_SET_MULTICAST_FILTER = unchecked(0x80000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (125)); + + [NativeTypeName("#define SIO_GET_MULTICAST_FILTER _IOW('t', 124 | IOC_IN, ULONG)")] + public const uint SIO_GET_MULTICAST_FILTER = unchecked(0x80000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (124 | 0x80000000)); + + [NativeTypeName("#define SIO_IDEAL_SEND_BACKLOG_QUERY _IOR('t', 123, ULONG)")] + public const int SIO_IDEAL_SEND_BACKLOG_QUERY = (0x40000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (123)); + + [NativeTypeName("#define SIO_IDEAL_SEND_BACKLOG_CHANGE _IO('t', 122)")] + public const int SIO_IDEAL_SEND_BACKLOG_CHANGE = (0x20000000 | (('t') << 8) | (122)); + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/TCP.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/TCP.cs new file mode 100644 index 0000000000..d3590fb32d --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/TCP.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/ws2ipdef.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TCP + { + [NativeTypeName("#define TCP_OFFLOAD_NO_PREFERENCE 0")] + public const int TCP_OFFLOAD_NO_PREFERENCE = 0; + + [NativeTypeName("#define TCP_OFFLOAD_NOT_PREFERRED 1")] + public const int TCP_OFFLOAD_NOT_PREFERRED = 1; + + [NativeTypeName("#define TCP_OFFLOAD_PREFERRED 2")] + public const int TCP_OFFLOAD_PREFERRED = 2; + + [NativeTypeName("#define TCP_EXPEDITED_1122 0x0002")] + public const int TCP_EXPEDITED_1122 = 0x0002; + + [NativeTypeName("#define TCP_KEEPALIVE 3")] + public const int TCP_KEEPALIVE = 3; + + [NativeTypeName("#define TCP_MAXSEG 4")] + public const int TCP_MAXSEG = 4; + + [NativeTypeName("#define TCP_MAXRT 5")] + public const int TCP_MAXRT = 5; + + [NativeTypeName("#define TCP_STDURG 6")] + public const int TCP_STDURG = 6; + + [NativeTypeName("#define TCP_NOURG 7")] + public const int TCP_NOURG = 7; + + [NativeTypeName("#define TCP_ATMARK 8")] + public const int TCP_ATMARK = 8; + + [NativeTypeName("#define TCP_NOSYNRETRIES 9")] + public const int TCP_NOSYNRETRIES = 9; + + [NativeTypeName("#define TCP_TIMESTAMPS 10")] + public const int TCP_TIMESTAMPS = 10; + + [NativeTypeName("#define TCP_OFFLOAD_PREFERENCE 11")] + public const int TCP_OFFLOAD_PREFERENCE = 11; + + [NativeTypeName("#define TCP_CONGESTION_ALGORITHM 12")] + public const int TCP_CONGESTION_ALGORITHM = 12; + + [NativeTypeName("#define TCP_DELAY_FIN_ACK 13")] + public const int TCP_DELAY_FIN_ACK = 13; + + [NativeTypeName("#define TCP_MAXRTMS 14")] + public const int TCP_MAXRTMS = 14; + + [NativeTypeName("#define TCP_FASTOPEN 15")] + public const int TCP_FASTOPEN = 15; + + [NativeTypeName("#define TCP_KEEPCNT 16")] + public const int TCP_KEEPCNT = 16; + + [NativeTypeName("#define TCP_KEEPIDLE TCP_KEEPALIVE")] + public const int TCP_KEEPIDLE = 3; + + [NativeTypeName("#define TCP_KEEPINTVL 17")] + public const int TCP_KEEPINTVL = 17; + + [NativeTypeName("#define TCP_FAIL_CONNECT_ON_ICMP_ERROR 18")] + public const int TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18; + + [NativeTypeName("#define TCP_ICMP_ERROR_INFO 19")] + public const int TCP_ICMP_ERROR_INFO = 19; + } +} diff --git a/sources/Interop/Windows/Windows/shared/ws2ipdef/Windows.cs b/sources/Interop/Windows/Windows/shared/ws2ipdef/Windows.cs index 113ae7ada2..bc6cf79d9c 100644 --- a/sources/Interop/Windows/Windows/shared/ws2ipdef/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/ws2ipdef/Windows.cs @@ -53,9 +53,6 @@ public static void IN6ADDR_SETLOOPBACK([NativeTypeName("PSOCKADDR_IN6")] SOCKADD [NativeTypeName("#define IFF_MULTICAST 0x00000010")] public const int IFF_MULTICAST = 0x00000010; - [NativeTypeName("#define IPV6_ADDRESS_BITS RTL_BITS_OF(IN6_ADDR)")] - public const uint IPV6_ADDRESS_BITS = (16 * 8); - [NativeTypeName("#define IN6ADDR_LINKLOCALPREFIX_LENGTH 64")] public const int IN6ADDR_LINKLOCALPREFIX_LENGTH = 64; @@ -74,18 +71,6 @@ public static void IN6ADDR_SETLOOPBACK([NativeTypeName("PSOCKADDR_IN6")] SOCKADD [NativeTypeName("#define IN6ADDR_TEREDOPREFIX_LENGTH 32")] public const int IN6ADDR_TEREDOPREFIX_LENGTH = 32; - [NativeTypeName("#define SIO_GET_INTERFACE_LIST _IOR('t', 127, ULONG)")] - public const int SIO_GET_INTERFACE_LIST = (0x40000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (127)); - - [NativeTypeName("#define SIO_GET_INTERFACE_LIST_EX _IOR('t', 126, ULONG)")] - public const int SIO_GET_INTERFACE_LIST_EX = (0x40000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (126)); - - [NativeTypeName("#define SIO_SET_MULTICAST_FILTER _IOW('t', 125, ULONG)")] - public const uint SIO_SET_MULTICAST_FILTER = unchecked(0x80000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (125)); - - [NativeTypeName("#define SIO_GET_MULTICAST_FILTER _IOW('t', 124 | IOC_IN, ULONG)")] - public const uint SIO_GET_MULTICAST_FILTER = unchecked(0x80000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (124 | 0x80000000)); - [NativeTypeName("#define SIOCSIPMSFILTER SIO_SET_MULTICAST_FILTER")] public const uint SIOCSIPMSFILTER = unchecked(0x80000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (125)); @@ -98,222 +83,9 @@ public static void IN6ADDR_SETLOOPBACK([NativeTypeName("PSOCKADDR_IN6")] SOCKADD [NativeTypeName("#define SIOCGMSFILTER _IOW('t', 127 | IOC_IN, ULONG)")] public const uint SIOCGMSFILTER = unchecked(0x80000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (127 | 0x80000000)); - [NativeTypeName("#define SIO_IDEAL_SEND_BACKLOG_QUERY _IOR('t', 123, ULONG)")] - public const int SIO_IDEAL_SEND_BACKLOG_QUERY = (0x40000000 | (((int)(4) & 0x7f) << 16) | (('t') << 8) | (123)); - - [NativeTypeName("#define SIO_IDEAL_SEND_BACKLOG_CHANGE _IO('t', 122)")] - public const int SIO_IDEAL_SEND_BACKLOG_CHANGE = (0x20000000 | (('t') << 8) | (122)); - - [NativeTypeName("#define MCAST_JOIN_GROUP 41")] - public const int MCAST_JOIN_GROUP = 41; - - [NativeTypeName("#define MCAST_LEAVE_GROUP 42")] - public const int MCAST_LEAVE_GROUP = 42; - - [NativeTypeName("#define MCAST_BLOCK_SOURCE 43")] - public const int MCAST_BLOCK_SOURCE = 43; - - [NativeTypeName("#define MCAST_UNBLOCK_SOURCE 44")] - public const int MCAST_UNBLOCK_SOURCE = 44; - - [NativeTypeName("#define MCAST_JOIN_SOURCE_GROUP 45")] - public const int MCAST_JOIN_SOURCE_GROUP = 45; - - [NativeTypeName("#define MCAST_LEAVE_SOURCE_GROUP 46")] - public const int MCAST_LEAVE_SOURCE_GROUP = 46; - - [NativeTypeName("#define IPV6_HOPOPTS 1")] - public const int IPV6_HOPOPTS = 1; - - [NativeTypeName("#define IPV6_HDRINCL 2")] - public const int IPV6_HDRINCL = 2; - - [NativeTypeName("#define IPV6_UNICAST_HOPS 4")] - public const int IPV6_UNICAST_HOPS = 4; - - [NativeTypeName("#define IPV6_MULTICAST_IF 9")] - public const int IPV6_MULTICAST_IF = 9; - - [NativeTypeName("#define IPV6_MULTICAST_HOPS 10")] - public const int IPV6_MULTICAST_HOPS = 10; - - [NativeTypeName("#define IPV6_MULTICAST_LOOP 11")] - public const int IPV6_MULTICAST_LOOP = 11; - - [NativeTypeName("#define IPV6_ADD_MEMBERSHIP 12")] - public const int IPV6_ADD_MEMBERSHIP = 12; - - [NativeTypeName("#define IPV6_JOIN_GROUP IPV6_ADD_MEMBERSHIP")] - public const int IPV6_JOIN_GROUP = 12; - - [NativeTypeName("#define IPV6_DROP_MEMBERSHIP 13")] - public const int IPV6_DROP_MEMBERSHIP = 13; - - [NativeTypeName("#define IPV6_LEAVE_GROUP IPV6_DROP_MEMBERSHIP")] - public const int IPV6_LEAVE_GROUP = 13; - - [NativeTypeName("#define IPV6_DONTFRAG 14")] - public const int IPV6_DONTFRAG = 14; - - [NativeTypeName("#define IPV6_PKTINFO 19")] - public const int IPV6_PKTINFO = 19; - - [NativeTypeName("#define IPV6_HOPLIMIT 21")] - public const int IPV6_HOPLIMIT = 21; - - [NativeTypeName("#define IPV6_PROTECTION_LEVEL 23")] - public const int IPV6_PROTECTION_LEVEL = 23; - - [NativeTypeName("#define IPV6_RECVIF 24")] - public const int IPV6_RECVIF = 24; - - [NativeTypeName("#define IPV6_RECVDSTADDR 25")] - public const int IPV6_RECVDSTADDR = 25; - - [NativeTypeName("#define IPV6_CHECKSUM 26")] - public const int IPV6_CHECKSUM = 26; - - [NativeTypeName("#define IPV6_V6ONLY 27")] - public const int IPV6_V6ONLY = 27; - - [NativeTypeName("#define IPV6_IFLIST 28")] - public const int IPV6_IFLIST = 28; - - [NativeTypeName("#define IPV6_ADD_IFLIST 29")] - public const int IPV6_ADD_IFLIST = 29; - - [NativeTypeName("#define IPV6_DEL_IFLIST 30")] - public const int IPV6_DEL_IFLIST = 30; - - [NativeTypeName("#define IPV6_UNICAST_IF 31")] - public const int IPV6_UNICAST_IF = 31; - - [NativeTypeName("#define IPV6_RTHDR 32")] - public const int IPV6_RTHDR = 32; - - [NativeTypeName("#define IPV6_GET_IFLIST 33")] - public const int IPV6_GET_IFLIST = 33; - - [NativeTypeName("#define IPV6_RECVRTHDR 38")] - public const int IPV6_RECVRTHDR = 38; - - [NativeTypeName("#define IPV6_TCLASS 39")] - public const int IPV6_TCLASS = 39; - - [NativeTypeName("#define IPV6_RECVTCLASS 40")] - public const int IPV6_RECVTCLASS = 40; - - [NativeTypeName("#define IPV6_ECN 50")] - public const int IPV6_ECN = 50; - - [NativeTypeName("#define IPV6_RECVECN 50")] - public const int IPV6_RECVECN = 50; - - [NativeTypeName("#define IPV6_PKTINFO_EX 51")] - public const int IPV6_PKTINFO_EX = 51; - - [NativeTypeName("#define IPV6_WFP_REDIRECT_RECORDS 60")] - public const int IPV6_WFP_REDIRECT_RECORDS = 60; - - [NativeTypeName("#define IPV6_WFP_REDIRECT_CONTEXT 70")] - public const int IPV6_WFP_REDIRECT_CONTEXT = 70; - - [NativeTypeName("#define IPV6_MTU_DISCOVER 71")] - public const int IPV6_MTU_DISCOVER = 71; - - [NativeTypeName("#define IPV6_MTU 72")] - public const int IPV6_MTU = 72; - - [NativeTypeName("#define IPV6_NRT_INTERFACE 74")] - public const int IPV6_NRT_INTERFACE = 74; - - [NativeTypeName("#define IPV6_RECVERR 75")] - public const int IPV6_RECVERR = 75; - - [NativeTypeName("#define IPV6_USER_MTU 76")] - public const int IPV6_USER_MTU = 76; - - [NativeTypeName("#define PROTECTION_LEVEL_UNRESTRICTED 10")] - public const int PROTECTION_LEVEL_UNRESTRICTED = 10; - - [NativeTypeName("#define PROTECTION_LEVEL_EDGERESTRICTED 20")] - public const int PROTECTION_LEVEL_EDGERESTRICTED = 20; - - [NativeTypeName("#define PROTECTION_LEVEL_RESTRICTED 30")] - public const int PROTECTION_LEVEL_RESTRICTED = 30; - - [NativeTypeName("#define PROTECTION_LEVEL_DEFAULT ((UINT)-1)")] - public const uint PROTECTION_LEVEL_DEFAULT = unchecked((uint)(-1)); - [NativeTypeName("#define INET6_ADDRSTRLEN 65")] public const int INET6_ADDRSTRLEN = 65; - [NativeTypeName("#define TCP_OFFLOAD_NO_PREFERENCE 0")] - public const int TCP_OFFLOAD_NO_PREFERENCE = 0; - - [NativeTypeName("#define TCP_OFFLOAD_NOT_PREFERRED 1")] - public const int TCP_OFFLOAD_NOT_PREFERRED = 1; - - [NativeTypeName("#define TCP_OFFLOAD_PREFERRED 2")] - public const int TCP_OFFLOAD_PREFERRED = 2; - - [NativeTypeName("#define TCP_EXPEDITED_1122 0x0002")] - public const int TCP_EXPEDITED_1122 = 0x0002; - - [NativeTypeName("#define TCP_KEEPALIVE 3")] - public const int TCP_KEEPALIVE = 3; - - [NativeTypeName("#define TCP_MAXSEG 4")] - public const int TCP_MAXSEG = 4; - - [NativeTypeName("#define TCP_MAXRT 5")] - public const int TCP_MAXRT = 5; - - [NativeTypeName("#define TCP_STDURG 6")] - public const int TCP_STDURG = 6; - - [NativeTypeName("#define TCP_NOURG 7")] - public const int TCP_NOURG = 7; - - [NativeTypeName("#define TCP_ATMARK 8")] - public const int TCP_ATMARK = 8; - - [NativeTypeName("#define TCP_NOSYNRETRIES 9")] - public const int TCP_NOSYNRETRIES = 9; - - [NativeTypeName("#define TCP_TIMESTAMPS 10")] - public const int TCP_TIMESTAMPS = 10; - - [NativeTypeName("#define TCP_OFFLOAD_PREFERENCE 11")] - public const int TCP_OFFLOAD_PREFERENCE = 11; - - [NativeTypeName("#define TCP_CONGESTION_ALGORITHM 12")] - public const int TCP_CONGESTION_ALGORITHM = 12; - - [NativeTypeName("#define TCP_DELAY_FIN_ACK 13")] - public const int TCP_DELAY_FIN_ACK = 13; - - [NativeTypeName("#define TCP_MAXRTMS 14")] - public const int TCP_MAXRTMS = 14; - - [NativeTypeName("#define TCP_FASTOPEN 15")] - public const int TCP_FASTOPEN = 15; - - [NativeTypeName("#define TCP_KEEPCNT 16")] - public const int TCP_KEEPCNT = 16; - - [NativeTypeName("#define TCP_KEEPIDLE TCP_KEEPALIVE")] - public const int TCP_KEEPIDLE = 3; - - [NativeTypeName("#define TCP_KEEPINTVL 17")] - public const int TCP_KEEPINTVL = 17; - - [NativeTypeName("#define TCP_FAIL_CONNECT_ON_ICMP_ERROR 18")] - public const int TCP_FAIL_CONNECT_ON_ICMP_ERROR = 18; - - [NativeTypeName("#define TCP_ICMP_ERROR_INFO 19")] - public const int TCP_ICMP_ERROR_INFO = 19; - [NativeTypeName("#define UDP_SEND_MSG_SIZE 2")] public const int UDP_SEND_MSG_SIZE = 2; diff --git a/sources/Interop/Windows/Windows/shared/wtypesbase/APPIDREGFLAGS.cs b/sources/Interop/Windows/Windows/shared/wtypesbase/APPIDREGFLAGS.cs new file mode 100644 index 0000000000..656db92987 --- /dev/null +++ b/sources/Interop/Windows/Windows/shared/wtypesbase/APPIDREGFLAGS.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/wtypesbase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class APPIDREGFLAGS + { + [NativeTypeName("#define APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP 0x1")] + public const int APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP = 0x1; + + [NativeTypeName("#define APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND 0x2")] + public const int APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND = 0x2; + + [NativeTypeName("#define APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY 0x4")] + public const int APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY = 0x4; + + [NativeTypeName("#define APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN 0x8")] + public const int APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN = 0x8; + + [NativeTypeName("#define APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION 0x10")] + public const int APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION = 0x10; + + [NativeTypeName("#define APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY 0x20")] + public const int APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY = 0x20; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED1 0x40")] + public const int APPIDREGFLAGS_RESERVED1 = 0x40; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED2 0x80")] + public const int APPIDREGFLAGS_RESERVED2 = 0x80; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED3 0x100")] + public const int APPIDREGFLAGS_RESERVED3 = 0x100; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED4 0x200")] + public const int APPIDREGFLAGS_RESERVED4 = 0x200; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED5 0x400")] + public const int APPIDREGFLAGS_RESERVED5 = 0x400; + + [NativeTypeName("#define APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU 0x800")] + public const int APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU = 0x800; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED7 0x1000")] + public const int APPIDREGFLAGS_RESERVED7 = 0x1000; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED8 0x2000")] + public const int APPIDREGFLAGS_RESERVED8 = 0x2000; + + [NativeTypeName("#define APPIDREGFLAGS_RESERVED9 0x4000")] + public const int APPIDREGFLAGS_RESERVED9 = 0x4000; + } +} diff --git a/sources/Interop/Windows/Windows/shared/wtypesbase/Windows.cs b/sources/Interop/Windows/Windows/shared/wtypesbase/Windows.cs index db6913f710..b29e4e630f 100644 --- a/sources/Interop/Windows/Windows/shared/wtypesbase/Windows.cs +++ b/sources/Interop/Windows/Windows/shared/wtypesbase/Windows.cs @@ -12,51 +12,6 @@ public static partial class Windows [NativeTypeName("#define ROTREGFLAGS_ALLOWANYCLIENT 0x1")] public const int ROTREGFLAGS_ALLOWANYCLIENT = 0x1; - [NativeTypeName("#define APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP 0x1")] - public const int APPIDREGFLAGS_ACTIVATE_IUSERVER_INDESKTOP = 0x1; - - [NativeTypeName("#define APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND 0x2")] - public const int APPIDREGFLAGS_SECURE_SERVER_PROCESS_SD_AND_BIND = 0x2; - - [NativeTypeName("#define APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY 0x4")] - public const int APPIDREGFLAGS_ISSUE_ACTIVATION_RPC_AT_IDENTIFY = 0x4; - - [NativeTypeName("#define APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN 0x8")] - public const int APPIDREGFLAGS_IUSERVER_UNMODIFIED_LOGON_TOKEN = 0x8; - - [NativeTypeName("#define APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION 0x10")] - public const int APPIDREGFLAGS_IUSERVER_SELF_SID_IN_LAUNCH_PERMISSION = 0x10; - - [NativeTypeName("#define APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY 0x20")] - public const int APPIDREGFLAGS_IUSERVER_ACTIVATE_IN_CLIENT_SESSION_ONLY = 0x20; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED1 0x40")] - public const int APPIDREGFLAGS_RESERVED1 = 0x40; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED2 0x80")] - public const int APPIDREGFLAGS_RESERVED2 = 0x80; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED3 0x100")] - public const int APPIDREGFLAGS_RESERVED3 = 0x100; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED4 0x200")] - public const int APPIDREGFLAGS_RESERVED4 = 0x200; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED5 0x400")] - public const int APPIDREGFLAGS_RESERVED5 = 0x400; - - [NativeTypeName("#define APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU 0x800")] - public const int APPIDREGFLAGS_AAA_NO_IMPLICIT_ACTIVATE_AS_IU = 0x800; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED7 0x1000")] - public const int APPIDREGFLAGS_RESERVED7 = 0x1000; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED8 0x2000")] - public const int APPIDREGFLAGS_RESERVED8 = 0x2000; - - [NativeTypeName("#define APPIDREGFLAGS_RESERVED9 0x4000")] - public const int APPIDREGFLAGS_RESERVED9 = 0x4000; - [NativeTypeName("#define DCOMSCM_ACTIVATION_USE_ALL_AUTHNSERVICES 0x1")] public const int DCOMSCM_ACTIVATION_USE_ALL_AUTHNSERVICES = 0x1; diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/CLSID.Manual.cs similarity index 84% rename from sources/Interop/Windows/Windows/um/AppxPackaging/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/AppxPackaging/CLSID.Manual.cs index 1f4f296361..703e0729bf 100644 --- a/sources/Interop/Windows/Windows/um/AppxPackaging/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/CLSID.Manual.cs @@ -9,31 +9,8 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class CLSID { - public static ref readonly Guid LIBID_APPXPACKAGING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0xA1, 0x42, 0x58, - 0x9F, 0xFF, - 0x66, 0x41, - 0x8F, - 0x5C, - 0x62, - 0xF5, - 0xB7, - 0xB0, - 0xC7, - 0x81 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - public static ref readonly Guid CLSID_AppxFactory { [MethodImpl(MethodImplOptions.AggressiveInlining)] diff --git a/sources/Interop/Windows/Windows/um/AppxPackaging/LIBID.Manual.cs b/sources/Interop/Windows/Windows/um/AppxPackaging/LIBID.Manual.cs new file mode 100644 index 0000000000..ddd46f5b4a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/AppxPackaging/LIBID.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/AppxPackaging.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class LIBID + { + public static ref readonly Guid LIBID_APPXPACKAGING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0xA1, 0x42, 0x58, + 0x9F, 0xFF, + 0x66, 0x41, + 0x8F, + 0x5C, + 0x62, + 0xF5, + 0xB7, + 0xB0, + 0xC7, + 0x81 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/AudioSessionTypes/AUDCLNT.cs b/sources/Interop/Windows/Windows/um/AudioSessionTypes/AUDCLNT.cs new file mode 100644 index 0000000000..8f4f151fa7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/AudioSessionTypes/AUDCLNT.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/AudioSessionTypes.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AUDCLNT + { + [NativeTypeName("#define AUDCLNT_STREAMFLAGS_CROSSPROCESS 0x00010000")] + public const int AUDCLNT_STREAMFLAGS_CROSSPROCESS = 0x00010000; + + [NativeTypeName("#define AUDCLNT_STREAMFLAGS_LOOPBACK 0x00020000")] + public const int AUDCLNT_STREAMFLAGS_LOOPBACK = 0x00020000; + + [NativeTypeName("#define AUDCLNT_STREAMFLAGS_EVENTCALLBACK 0x00040000")] + public const int AUDCLNT_STREAMFLAGS_EVENTCALLBACK = 0x00040000; + + [NativeTypeName("#define AUDCLNT_STREAMFLAGS_NOPERSIST 0x00080000")] + public const int AUDCLNT_STREAMFLAGS_NOPERSIST = 0x00080000; + + [NativeTypeName("#define AUDCLNT_STREAMFLAGS_RATEADJUST 0x00100000")] + public const int AUDCLNT_STREAMFLAGS_RATEADJUST = 0x00100000; + + [NativeTypeName("#define AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY 0x08000000")] + public const int AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY = 0x08000000; + + [NativeTypeName("#define AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM 0x80000000")] + public const uint AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM = 0x80000000; + + [NativeTypeName("#define AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED 0x10000000")] + public const int AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED = 0x10000000; + + [NativeTypeName("#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE 0x20000000")] + public const int AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE = 0x20000000; + + [NativeTypeName("#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED 0x40000000")] + public const int AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED = 0x40000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/AudioSessionTypes/Windows.cs b/sources/Interop/Windows/Windows/um/AudioSessionTypes/Windows.cs index 50e6c23b54..a0a35b51b8 100644 --- a/sources/Interop/Windows/Windows/um/AudioSessionTypes/Windows.cs +++ b/sources/Interop/Windows/Windows/um/AudioSessionTypes/Windows.cs @@ -9,35 +9,5 @@ public static partial class Windows { [NativeTypeName("#define MIDL_ANYSIZE_ARRAY ANYSIZE_ARRAY")] public const int MIDL_ANYSIZE_ARRAY = 1; - - [NativeTypeName("#define AUDCLNT_STREAMFLAGS_CROSSPROCESS 0x00010000")] - public const int AUDCLNT_STREAMFLAGS_CROSSPROCESS = 0x00010000; - - [NativeTypeName("#define AUDCLNT_STREAMFLAGS_LOOPBACK 0x00020000")] - public const int AUDCLNT_STREAMFLAGS_LOOPBACK = 0x00020000; - - [NativeTypeName("#define AUDCLNT_STREAMFLAGS_EVENTCALLBACK 0x00040000")] - public const int AUDCLNT_STREAMFLAGS_EVENTCALLBACK = 0x00040000; - - [NativeTypeName("#define AUDCLNT_STREAMFLAGS_NOPERSIST 0x00080000")] - public const int AUDCLNT_STREAMFLAGS_NOPERSIST = 0x00080000; - - [NativeTypeName("#define AUDCLNT_STREAMFLAGS_RATEADJUST 0x00100000")] - public const int AUDCLNT_STREAMFLAGS_RATEADJUST = 0x00100000; - - [NativeTypeName("#define AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY 0x08000000")] - public const int AUDCLNT_STREAMFLAGS_SRC_DEFAULT_QUALITY = 0x08000000; - - [NativeTypeName("#define AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM 0x80000000")] - public const uint AUDCLNT_STREAMFLAGS_AUTOCONVERTPCM = 0x80000000; - - [NativeTypeName("#define AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED 0x10000000")] - public const int AUDCLNT_SESSIONFLAGS_EXPIREWHENUNOWNED = 0x10000000; - - [NativeTypeName("#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE 0x20000000")] - public const int AUDCLNT_SESSIONFLAGS_DISPLAY_HIDE = 0x20000000; - - [NativeTypeName("#define AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED 0x40000000")] - public const int AUDCLNT_SESSIONFLAGS_DISPLAY_HIDEWHENEXPIRED = 0x40000000; } } diff --git a/sources/Interop/Windows/Windows/um/Audioclient/AUDCLNT.cs b/sources/Interop/Windows/Windows/um/Audioclient/AUDCLNT.cs new file mode 100644 index 0000000000..dbbd8a701c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Audioclient/AUDCLNT.cs @@ -0,0 +1,127 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Audioclient.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AUDCLNT + { + [NativeTypeName("#define AUDCLNT_E_NOT_INITIALIZED AUDCLNT_ERR(0x001)")] + public const int AUDCLNT_E_NOT_INITIALIZED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x001)))); + + [NativeTypeName("#define AUDCLNT_E_ALREADY_INITIALIZED AUDCLNT_ERR(0x002)")] + public const int AUDCLNT_E_ALREADY_INITIALIZED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x002)))); + + [NativeTypeName("#define AUDCLNT_E_WRONG_ENDPOINT_TYPE AUDCLNT_ERR(0x003)")] + public const int AUDCLNT_E_WRONG_ENDPOINT_TYPE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x003)))); + + [NativeTypeName("#define AUDCLNT_E_DEVICE_INVALIDATED AUDCLNT_ERR(0x004)")] + public const int AUDCLNT_E_DEVICE_INVALIDATED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x004)))); + + [NativeTypeName("#define AUDCLNT_E_NOT_STOPPED AUDCLNT_ERR(0x005)")] + public const int AUDCLNT_E_NOT_STOPPED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x005)))); + + [NativeTypeName("#define AUDCLNT_E_BUFFER_TOO_LARGE AUDCLNT_ERR(0x006)")] + public const int AUDCLNT_E_BUFFER_TOO_LARGE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x006)))); + + [NativeTypeName("#define AUDCLNT_E_OUT_OF_ORDER AUDCLNT_ERR(0x007)")] + public const int AUDCLNT_E_OUT_OF_ORDER = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x007)))); + + [NativeTypeName("#define AUDCLNT_E_UNSUPPORTED_FORMAT AUDCLNT_ERR(0x008)")] + public const int AUDCLNT_E_UNSUPPORTED_FORMAT = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x008)))); + + [NativeTypeName("#define AUDCLNT_E_INVALID_SIZE AUDCLNT_ERR(0x009)")] + public const int AUDCLNT_E_INVALID_SIZE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x009)))); + + [NativeTypeName("#define AUDCLNT_E_DEVICE_IN_USE AUDCLNT_ERR(0x00a)")] + public const int AUDCLNT_E_DEVICE_IN_USE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00a)))); + + [NativeTypeName("#define AUDCLNT_E_BUFFER_OPERATION_PENDING AUDCLNT_ERR(0x00b)")] + public const int AUDCLNT_E_BUFFER_OPERATION_PENDING = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00b)))); + + [NativeTypeName("#define AUDCLNT_E_THREAD_NOT_REGISTERED AUDCLNT_ERR(0x00c)")] + public const int AUDCLNT_E_THREAD_NOT_REGISTERED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00c)))); + + [NativeTypeName("#define AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR(0x00e)")] + public const int AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00e)))); + + [NativeTypeName("#define AUDCLNT_E_ENDPOINT_CREATE_FAILED AUDCLNT_ERR(0x00f)")] + public const int AUDCLNT_E_ENDPOINT_CREATE_FAILED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00f)))); + + [NativeTypeName("#define AUDCLNT_E_SERVICE_NOT_RUNNING AUDCLNT_ERR(0x010)")] + public const int AUDCLNT_E_SERVICE_NOT_RUNNING = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x010)))); + + [NativeTypeName("#define AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED AUDCLNT_ERR(0x011)")] + public const int AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x011)))); + + [NativeTypeName("#define AUDCLNT_E_EXCLUSIVE_MODE_ONLY AUDCLNT_ERR(0x012)")] + public const int AUDCLNT_E_EXCLUSIVE_MODE_ONLY = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x012)))); + + [NativeTypeName("#define AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL AUDCLNT_ERR(0x013)")] + public const int AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x013)))); + + [NativeTypeName("#define AUDCLNT_E_EVENTHANDLE_NOT_SET AUDCLNT_ERR(0x014)")] + public const int AUDCLNT_E_EVENTHANDLE_NOT_SET = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x014)))); + + [NativeTypeName("#define AUDCLNT_E_INCORRECT_BUFFER_SIZE AUDCLNT_ERR(0x015)")] + public const int AUDCLNT_E_INCORRECT_BUFFER_SIZE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x015)))); + + [NativeTypeName("#define AUDCLNT_E_BUFFER_SIZE_ERROR AUDCLNT_ERR(0x016)")] + public const int AUDCLNT_E_BUFFER_SIZE_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x016)))); + + [NativeTypeName("#define AUDCLNT_E_CPUUSAGE_EXCEEDED AUDCLNT_ERR(0x017)")] + public const int AUDCLNT_E_CPUUSAGE_EXCEEDED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x017)))); + + [NativeTypeName("#define AUDCLNT_E_BUFFER_ERROR AUDCLNT_ERR(0x018)")] + public const int AUDCLNT_E_BUFFER_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x018)))); + + [NativeTypeName("#define AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED AUDCLNT_ERR(0x019)")] + public const int AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x019)))); + + [NativeTypeName("#define AUDCLNT_E_INVALID_DEVICE_PERIOD AUDCLNT_ERR(0x020)")] + public const int AUDCLNT_E_INVALID_DEVICE_PERIOD = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x020)))); + + [NativeTypeName("#define AUDCLNT_E_INVALID_STREAM_FLAG AUDCLNT_ERR(0x021)")] + public const int AUDCLNT_E_INVALID_STREAM_FLAG = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x021)))); + + [NativeTypeName("#define AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE AUDCLNT_ERR(0x022)")] + public const int AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x022)))); + + [NativeTypeName("#define AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES AUDCLNT_ERR(0x023)")] + public const int AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x023)))); + + [NativeTypeName("#define AUDCLNT_E_OFFLOAD_MODE_ONLY AUDCLNT_ERR(0x024)")] + public const int AUDCLNT_E_OFFLOAD_MODE_ONLY = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x024)))); + + [NativeTypeName("#define AUDCLNT_E_NONOFFLOAD_MODE_ONLY AUDCLNT_ERR(0x025)")] + public const int AUDCLNT_E_NONOFFLOAD_MODE_ONLY = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x025)))); + + [NativeTypeName("#define AUDCLNT_E_RESOURCES_INVALIDATED AUDCLNT_ERR(0x026)")] + public const int AUDCLNT_E_RESOURCES_INVALIDATED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x026)))); + + [NativeTypeName("#define AUDCLNT_E_RAW_MODE_UNSUPPORTED AUDCLNT_ERR(0x027)")] + public const int AUDCLNT_E_RAW_MODE_UNSUPPORTED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x027)))); + + [NativeTypeName("#define AUDCLNT_E_ENGINE_PERIODICITY_LOCKED AUDCLNT_ERR(0x028)")] + public const int AUDCLNT_E_ENGINE_PERIODICITY_LOCKED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x028)))); + + [NativeTypeName("#define AUDCLNT_E_ENGINE_FORMAT_LOCKED AUDCLNT_ERR(0x029)")] + public const int AUDCLNT_E_ENGINE_FORMAT_LOCKED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x029)))); + + [NativeTypeName("#define AUDCLNT_E_HEADTRACKING_ENABLED AUDCLNT_ERR(0x030)")] + public const int AUDCLNT_E_HEADTRACKING_ENABLED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x030)))); + + [NativeTypeName("#define AUDCLNT_E_HEADTRACKING_UNSUPPORTED AUDCLNT_ERR(0x040)")] + public const int AUDCLNT_E_HEADTRACKING_UNSUPPORTED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x040)))); + + [NativeTypeName("#define AUDCLNT_S_BUFFER_EMPTY AUDCLNT_SUCCESS(0x001)")] + public const int AUDCLNT_S_BUFFER_EMPTY = unchecked((int)(((uint)(0) << 31) | ((uint)(2185) << 16) | ((uint)(0x001)))); + + [NativeTypeName("#define AUDCLNT_S_THREAD_ALREADY_REGISTERED AUDCLNT_SUCCESS(0x002)")] + public const int AUDCLNT_S_THREAD_ALREADY_REGISTERED = unchecked((int)(((uint)(0) << 31) | ((uint)(2185) << 16) | ((uint)(0x002)))); + + [NativeTypeName("#define AUDCLNT_S_POSITION_STALLED AUDCLNT_SUCCESS(0x003)")] + public const int AUDCLNT_S_POSITION_STALLED = unchecked((int)(((uint)(0) << 31) | ((uint)(2185) << 16) | ((uint)(0x003)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/Audioclient/Windows.cs b/sources/Interop/Windows/Windows/um/Audioclient/Windows.cs index 22b409a540..e6e8b6e1b0 100644 --- a/sources/Interop/Windows/Windows/um/Audioclient/Windows.cs +++ b/sources/Interop/Windows/Windows/um/Audioclient/Windows.cs @@ -12,122 +12,5 @@ public static partial class Windows [NativeTypeName("#define AMBISONICS_PARAM_VERSION_1 1")] public const int AMBISONICS_PARAM_VERSION_1 = 1; - - [NativeTypeName("#define AUDCLNT_E_NOT_INITIALIZED AUDCLNT_ERR(0x001)")] - public const int AUDCLNT_E_NOT_INITIALIZED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x001)))); - - [NativeTypeName("#define AUDCLNT_E_ALREADY_INITIALIZED AUDCLNT_ERR(0x002)")] - public const int AUDCLNT_E_ALREADY_INITIALIZED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x002)))); - - [NativeTypeName("#define AUDCLNT_E_WRONG_ENDPOINT_TYPE AUDCLNT_ERR(0x003)")] - public const int AUDCLNT_E_WRONG_ENDPOINT_TYPE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x003)))); - - [NativeTypeName("#define AUDCLNT_E_DEVICE_INVALIDATED AUDCLNT_ERR(0x004)")] - public const int AUDCLNT_E_DEVICE_INVALIDATED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x004)))); - - [NativeTypeName("#define AUDCLNT_E_NOT_STOPPED AUDCLNT_ERR(0x005)")] - public const int AUDCLNT_E_NOT_STOPPED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x005)))); - - [NativeTypeName("#define AUDCLNT_E_BUFFER_TOO_LARGE AUDCLNT_ERR(0x006)")] - public const int AUDCLNT_E_BUFFER_TOO_LARGE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x006)))); - - [NativeTypeName("#define AUDCLNT_E_OUT_OF_ORDER AUDCLNT_ERR(0x007)")] - public const int AUDCLNT_E_OUT_OF_ORDER = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x007)))); - - [NativeTypeName("#define AUDCLNT_E_UNSUPPORTED_FORMAT AUDCLNT_ERR(0x008)")] - public const int AUDCLNT_E_UNSUPPORTED_FORMAT = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x008)))); - - [NativeTypeName("#define AUDCLNT_E_INVALID_SIZE AUDCLNT_ERR(0x009)")] - public const int AUDCLNT_E_INVALID_SIZE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x009)))); - - [NativeTypeName("#define AUDCLNT_E_DEVICE_IN_USE AUDCLNT_ERR(0x00a)")] - public const int AUDCLNT_E_DEVICE_IN_USE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00a)))); - - [NativeTypeName("#define AUDCLNT_E_BUFFER_OPERATION_PENDING AUDCLNT_ERR(0x00b)")] - public const int AUDCLNT_E_BUFFER_OPERATION_PENDING = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00b)))); - - [NativeTypeName("#define AUDCLNT_E_THREAD_NOT_REGISTERED AUDCLNT_ERR(0x00c)")] - public const int AUDCLNT_E_THREAD_NOT_REGISTERED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00c)))); - - [NativeTypeName("#define AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED AUDCLNT_ERR(0x00e)")] - public const int AUDCLNT_E_EXCLUSIVE_MODE_NOT_ALLOWED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00e)))); - - [NativeTypeName("#define AUDCLNT_E_ENDPOINT_CREATE_FAILED AUDCLNT_ERR(0x00f)")] - public const int AUDCLNT_E_ENDPOINT_CREATE_FAILED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x00f)))); - - [NativeTypeName("#define AUDCLNT_E_SERVICE_NOT_RUNNING AUDCLNT_ERR(0x010)")] - public const int AUDCLNT_E_SERVICE_NOT_RUNNING = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x010)))); - - [NativeTypeName("#define AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED AUDCLNT_ERR(0x011)")] - public const int AUDCLNT_E_EVENTHANDLE_NOT_EXPECTED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x011)))); - - [NativeTypeName("#define AUDCLNT_E_EXCLUSIVE_MODE_ONLY AUDCLNT_ERR(0x012)")] - public const int AUDCLNT_E_EXCLUSIVE_MODE_ONLY = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x012)))); - - [NativeTypeName("#define AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL AUDCLNT_ERR(0x013)")] - public const int AUDCLNT_E_BUFDURATION_PERIOD_NOT_EQUAL = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x013)))); - - [NativeTypeName("#define AUDCLNT_E_EVENTHANDLE_NOT_SET AUDCLNT_ERR(0x014)")] - public const int AUDCLNT_E_EVENTHANDLE_NOT_SET = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x014)))); - - [NativeTypeName("#define AUDCLNT_E_INCORRECT_BUFFER_SIZE AUDCLNT_ERR(0x015)")] - public const int AUDCLNT_E_INCORRECT_BUFFER_SIZE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x015)))); - - [NativeTypeName("#define AUDCLNT_E_BUFFER_SIZE_ERROR AUDCLNT_ERR(0x016)")] - public const int AUDCLNT_E_BUFFER_SIZE_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x016)))); - - [NativeTypeName("#define AUDCLNT_E_CPUUSAGE_EXCEEDED AUDCLNT_ERR(0x017)")] - public const int AUDCLNT_E_CPUUSAGE_EXCEEDED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x017)))); - - [NativeTypeName("#define AUDCLNT_E_BUFFER_ERROR AUDCLNT_ERR(0x018)")] - public const int AUDCLNT_E_BUFFER_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x018)))); - - [NativeTypeName("#define AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED AUDCLNT_ERR(0x019)")] - public const int AUDCLNT_E_BUFFER_SIZE_NOT_ALIGNED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x019)))); - - [NativeTypeName("#define AUDCLNT_E_INVALID_DEVICE_PERIOD AUDCLNT_ERR(0x020)")] - public const int AUDCLNT_E_INVALID_DEVICE_PERIOD = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x020)))); - - [NativeTypeName("#define AUDCLNT_E_INVALID_STREAM_FLAG AUDCLNT_ERR(0x021)")] - public const int AUDCLNT_E_INVALID_STREAM_FLAG = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x021)))); - - [NativeTypeName("#define AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE AUDCLNT_ERR(0x022)")] - public const int AUDCLNT_E_ENDPOINT_OFFLOAD_NOT_CAPABLE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x022)))); - - [NativeTypeName("#define AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES AUDCLNT_ERR(0x023)")] - public const int AUDCLNT_E_OUT_OF_OFFLOAD_RESOURCES = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x023)))); - - [NativeTypeName("#define AUDCLNT_E_OFFLOAD_MODE_ONLY AUDCLNT_ERR(0x024)")] - public const int AUDCLNT_E_OFFLOAD_MODE_ONLY = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x024)))); - - [NativeTypeName("#define AUDCLNT_E_NONOFFLOAD_MODE_ONLY AUDCLNT_ERR(0x025)")] - public const int AUDCLNT_E_NONOFFLOAD_MODE_ONLY = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x025)))); - - [NativeTypeName("#define AUDCLNT_E_RESOURCES_INVALIDATED AUDCLNT_ERR(0x026)")] - public const int AUDCLNT_E_RESOURCES_INVALIDATED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x026)))); - - [NativeTypeName("#define AUDCLNT_E_RAW_MODE_UNSUPPORTED AUDCLNT_ERR(0x027)")] - public const int AUDCLNT_E_RAW_MODE_UNSUPPORTED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x027)))); - - [NativeTypeName("#define AUDCLNT_E_ENGINE_PERIODICITY_LOCKED AUDCLNT_ERR(0x028)")] - public const int AUDCLNT_E_ENGINE_PERIODICITY_LOCKED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x028)))); - - [NativeTypeName("#define AUDCLNT_E_ENGINE_FORMAT_LOCKED AUDCLNT_ERR(0x029)")] - public const int AUDCLNT_E_ENGINE_FORMAT_LOCKED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x029)))); - - [NativeTypeName("#define AUDCLNT_E_HEADTRACKING_ENABLED AUDCLNT_ERR(0x030)")] - public const int AUDCLNT_E_HEADTRACKING_ENABLED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x030)))); - - [NativeTypeName("#define AUDCLNT_E_HEADTRACKING_UNSUPPORTED AUDCLNT_ERR(0x040)")] - public const int AUDCLNT_E_HEADTRACKING_UNSUPPORTED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x040)))); - - [NativeTypeName("#define AUDCLNT_S_BUFFER_EMPTY AUDCLNT_SUCCESS(0x001)")] - public const int AUDCLNT_S_BUFFER_EMPTY = unchecked((int)(((uint)(0) << 31) | ((uint)(2185) << 16) | ((uint)(0x001)))); - - [NativeTypeName("#define AUDCLNT_S_THREAD_ALREADY_REGISTERED AUDCLNT_SUCCESS(0x002)")] - public const int AUDCLNT_S_THREAD_ALREADY_REGISTERED = unchecked((int)(((uint)(0) << 31) | ((uint)(2185) << 16) | ((uint)(0x002)))); - - [NativeTypeName("#define AUDCLNT_S_POSITION_STALLED AUDCLNT_SUCCESS(0x003)")] - public const int AUDCLNT_S_POSITION_STALLED = unchecked((int)(((uint)(0) << 31) | ((uint)(2185) << 16) | ((uint)(0x003)))); } } diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/ACM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/ACM.cs new file mode 100644 index 0000000000..05b1c66255 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/ACM.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ACM + { + [NativeTypeName("#define ACM_OPENA (WM_USER+100)")] + public const int ACM_OPENA = (0x0400 + 100); + + [NativeTypeName("#define ACM_OPENW (WM_USER+103)")] + public const int ACM_OPENW = (0x0400 + 103); + + [NativeTypeName("#define ACM_OPEN ACM_OPENW")] + public const int ACM_OPEN = (0x0400 + 103); + + [NativeTypeName("#define ACM_PLAY (WM_USER+101)")] + public const int ACM_PLAY = (0x0400 + 101); + + [NativeTypeName("#define ACM_STOP (WM_USER+102)")] + public const int ACM_STOP = (0x0400 + 102); + + [NativeTypeName("#define ACM_ISPLAYING (WM_USER+104)")] + public const int ACM_ISPLAYING = (0x0400 + 104); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/BCM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/BCM.cs new file mode 100644 index 0000000000..066ae62c7e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/BCM.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BCM + { + [NativeTypeName("#define BCM_FIRST 0x1600")] + public const int BCM_FIRST = 0x1600; + + [NativeTypeName("#define BCM_GETIDEALSIZE (BCM_FIRST + 0x0001)")] + public const int BCM_GETIDEALSIZE = (0x1600 + 0x0001); + + [NativeTypeName("#define BCM_SETIMAGELIST (BCM_FIRST + 0x0002)")] + public const int BCM_SETIMAGELIST = (0x1600 + 0x0002); + + [NativeTypeName("#define BCM_GETIMAGELIST (BCM_FIRST + 0x0003)")] + public const int BCM_GETIMAGELIST = (0x1600 + 0x0003); + + [NativeTypeName("#define BCM_SETTEXTMARGIN (BCM_FIRST + 0x0004)")] + public const int BCM_SETTEXTMARGIN = (0x1600 + 0x0004); + + [NativeTypeName("#define BCM_GETTEXTMARGIN (BCM_FIRST + 0x0005)")] + public const int BCM_GETTEXTMARGIN = (0x1600 + 0x0005); + + [NativeTypeName("#define BCM_SETDROPDOWNSTATE (BCM_FIRST + 0x0006)")] + public const int BCM_SETDROPDOWNSTATE = (0x1600 + 0x0006); + + [NativeTypeName("#define BCM_SETSPLITINFO (BCM_FIRST + 0x0007)")] + public const int BCM_SETSPLITINFO = (0x1600 + 0x0007); + + [NativeTypeName("#define BCM_GETSPLITINFO (BCM_FIRST + 0x0008)")] + public const int BCM_GETSPLITINFO = (0x1600 + 0x0008); + + [NativeTypeName("#define BCM_SETNOTE (BCM_FIRST + 0x0009)")] + public const int BCM_SETNOTE = (0x1600 + 0x0009); + + [NativeTypeName("#define BCM_GETNOTE (BCM_FIRST + 0x000A)")] + public const int BCM_GETNOTE = (0x1600 + 0x000A); + + [NativeTypeName("#define BCM_GETNOTELENGTH (BCM_FIRST + 0x000B)")] + public const int BCM_GETNOTELENGTH = (0x1600 + 0x000B); + + [NativeTypeName("#define BCM_SETSHIELD (BCM_FIRST + 0x000C)")] + public const int BCM_SETSHIELD = (0x1600 + 0x000C); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/BS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/BS.cs new file mode 100644 index 0000000000..de1ed57f96 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/BS.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BS + { + [NativeTypeName("#define BS_SPLITBUTTON 0x0000000CL")] + public const int BS_SPLITBUTTON = 0x0000000C; + + [NativeTypeName("#define BS_DEFSPLITBUTTON 0x0000000DL")] + public const int BS_DEFSPLITBUTTON = 0x0000000D; + + [NativeTypeName("#define BS_COMMANDLINK 0x0000000EL")] + public const int BS_COMMANDLINK = 0x0000000E; + + [NativeTypeName("#define BS_DEFCOMMANDLINK 0x0000000FL")] + public const int BS_DEFCOMMANDLINK = 0x0000000F; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/BTNS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/BTNS.cs new file mode 100644 index 0000000000..02fbf2c3c8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/BTNS.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BTNS + { + [NativeTypeName("#define BTNS_BUTTON TBSTYLE_BUTTON")] + public const int BTNS_BUTTON = 0x0000; + + [NativeTypeName("#define BTNS_SEP TBSTYLE_SEP")] + public const int BTNS_SEP = 0x0001; + + [NativeTypeName("#define BTNS_CHECK TBSTYLE_CHECK")] + public const int BTNS_CHECK = 0x0002; + + [NativeTypeName("#define BTNS_GROUP TBSTYLE_GROUP")] + public const int BTNS_GROUP = 0x0004; + + [NativeTypeName("#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP")] + public const int BTNS_CHECKGROUP = (0x0004 | 0x0002); + + [NativeTypeName("#define BTNS_DROPDOWN TBSTYLE_DROPDOWN")] + public const int BTNS_DROPDOWN = 0x0008; + + [NativeTypeName("#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE")] + public const int BTNS_AUTOSIZE = 0x0010; + + [NativeTypeName("#define BTNS_NOPREFIX TBSTYLE_NOPREFIX")] + public const int BTNS_NOPREFIX = 0x0020; + + [NativeTypeName("#define BTNS_SHOWTEXT 0x0040")] + public const int BTNS_SHOWTEXT = 0x0040; + + [NativeTypeName("#define BTNS_WHOLEDROPDOWN 0x0080")] + public const int BTNS_WHOLEDROPDOWN = 0x0080; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/CB.cs b/sources/Interop/Windows/Windows/um/CommCtrl/CB.cs new file mode 100644 index 0000000000..3cf0cad147 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/CB.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CB + { + [NativeTypeName("#define CB_SETMINVISIBLE (CBM_FIRST + 1)")] + public const int CB_SETMINVISIBLE = (0x1700 + 1); + + [NativeTypeName("#define CB_GETMINVISIBLE (CBM_FIRST + 2)")] + public const int CB_GETMINVISIBLE = (0x1700 + 2); + + [NativeTypeName("#define CB_SETCUEBANNER (CBM_FIRST + 3)")] + public const int CB_SETCUEBANNER = (0x1700 + 3); + + [NativeTypeName("#define CB_GETCUEBANNER (CBM_FIRST + 4)")] + public const int CB_GETCUEBANNER = (0x1700 + 4); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/CBEM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/CBEM.cs new file mode 100644 index 0000000000..8a7d29abec --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/CBEM.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CBEM + { + [NativeTypeName("#define CBEM_INSERTITEMA (WM_USER + 1)")] + public const int CBEM_INSERTITEMA = (0x0400 + 1); + + [NativeTypeName("#define CBEM_SETIMAGELIST (WM_USER + 2)")] + public const int CBEM_SETIMAGELIST = (0x0400 + 2); + + [NativeTypeName("#define CBEM_GETIMAGELIST (WM_USER + 3)")] + public const int CBEM_GETIMAGELIST = (0x0400 + 3); + + [NativeTypeName("#define CBEM_GETITEMA (WM_USER + 4)")] + public const int CBEM_GETITEMA = (0x0400 + 4); + + [NativeTypeName("#define CBEM_SETITEMA (WM_USER + 5)")] + public const int CBEM_SETITEMA = (0x0400 + 5); + + [NativeTypeName("#define CBEM_DELETEITEM CB_DELETESTRING")] + public const int CBEM_DELETEITEM = 0x0144; + + [NativeTypeName("#define CBEM_GETCOMBOCONTROL (WM_USER + 6)")] + public const int CBEM_GETCOMBOCONTROL = (0x0400 + 6); + + [NativeTypeName("#define CBEM_GETEDITCONTROL (WM_USER + 7)")] + public const int CBEM_GETEDITCONTROL = (0x0400 + 7); + + [NativeTypeName("#define CBEM_SETEXSTYLE (WM_USER + 8)")] + public const int CBEM_SETEXSTYLE = (0x0400 + 8); + + [NativeTypeName("#define CBEM_SETEXTENDEDSTYLE (WM_USER + 14)")] + public const int CBEM_SETEXTENDEDSTYLE = (0x0400 + 14); + + [NativeTypeName("#define CBEM_GETEXSTYLE (WM_USER + 9)")] + public const int CBEM_GETEXSTYLE = (0x0400 + 9); + + [NativeTypeName("#define CBEM_GETEXTENDEDSTYLE (WM_USER + 9)")] + public const int CBEM_GETEXTENDEDSTYLE = (0x0400 + 9); + + [NativeTypeName("#define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] + public const int CBEM_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] + public const int CBEM_GETUNICODEFORMAT = (0x2000 + 6); + + [NativeTypeName("#define CBEM_HASEDITCHANGED (WM_USER + 10)")] + public const int CBEM_HASEDITCHANGED = (0x0400 + 10); + + [NativeTypeName("#define CBEM_INSERTITEMW (WM_USER + 11)")] + public const int CBEM_INSERTITEMW = (0x0400 + 11); + + [NativeTypeName("#define CBEM_SETITEMW (WM_USER + 12)")] + public const int CBEM_SETITEMW = (0x0400 + 12); + + [NativeTypeName("#define CBEM_GETITEMW (WM_USER + 13)")] + public const int CBEM_GETITEMW = (0x0400 + 13); + + [NativeTypeName("#define CBEM_INSERTITEM CBEM_INSERTITEMW")] + public const int CBEM_INSERTITEM = (0x0400 + 11); + + [NativeTypeName("#define CBEM_SETITEM CBEM_SETITEMW")] + public const int CBEM_SETITEM = (0x0400 + 12); + + [NativeTypeName("#define CBEM_GETITEM CBEM_GETITEMW")] + public const int CBEM_GETITEM = (0x0400 + 13); + + [NativeTypeName("#define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME")] + public const int CBEM_SETWINDOWTHEME = (0x2000 + 0xb); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/CBEN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/CBEN.cs new file mode 100644 index 0000000000..d10456cc0b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/CBEN.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CBEN + { + [NativeTypeName("#define CBEN_FIRST (0U-800U)")] + public const uint CBEN_FIRST = unchecked(0U - 800U); + + [NativeTypeName("#define CBEN_LAST (0U-830U)")] + public const uint CBEN_LAST = unchecked(0U - 830U); + + [NativeTypeName("#define CBEN_GETDISPINFO CBEN_GETDISPINFOW")] + public const uint CBEN_GETDISPINFO = unchecked((0U - 800U) - 7); + + [NativeTypeName("#define CBEN_GETDISPINFOA (CBEN_FIRST - 0)")] + public const uint CBEN_GETDISPINFOA = unchecked((0U - 800U) - 0); + + [NativeTypeName("#define CBEN_INSERTITEM (CBEN_FIRST - 1)")] + public const uint CBEN_INSERTITEM = unchecked((0U - 800U) - 1); + + [NativeTypeName("#define CBEN_DELETEITEM (CBEN_FIRST - 2)")] + public const uint CBEN_DELETEITEM = unchecked((0U - 800U) - 2); + + [NativeTypeName("#define CBEN_BEGINEDIT (CBEN_FIRST - 4)")] + public const uint CBEN_BEGINEDIT = unchecked((0U - 800U) - 4); + + [NativeTypeName("#define CBEN_ENDEDITA (CBEN_FIRST - 5)")] + public const uint CBEN_ENDEDITA = unchecked((0U - 800U) - 5); + + [NativeTypeName("#define CBEN_ENDEDITW (CBEN_FIRST - 6)")] + public const uint CBEN_ENDEDITW = unchecked((0U - 800U) - 6); + + [NativeTypeName("#define CBEN_GETDISPINFOW (CBEN_FIRST - 7)")] + public const uint CBEN_GETDISPINFOW = unchecked((0U - 800U) - 7); + + [NativeTypeName("#define CBEN_DRAGBEGINA (CBEN_FIRST - 8)")] + public const uint CBEN_DRAGBEGINA = unchecked((0U - 800U) - 8); + + [NativeTypeName("#define CBEN_DRAGBEGINW (CBEN_FIRST - 9)")] + public const uint CBEN_DRAGBEGINW = unchecked((0U - 800U) - 9); + + [NativeTypeName("#define CBEN_DRAGBEGIN CBEN_DRAGBEGINW")] + public const uint CBEN_DRAGBEGIN = unchecked((0U - 800U) - 9); + + [NativeTypeName("#define CBEN_ENDEDIT CBEN_ENDEDITW")] + public const uint CBEN_ENDEDIT = unchecked((0U - 800U) - 6); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/CCM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/CCM.cs new file mode 100644 index 0000000000..da974e8b3e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/CCM.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CCM + { + [NativeTypeName("#define CCM_FIRST 0x2000")] + public const int CCM_FIRST = 0x2000; + + [NativeTypeName("#define CCM_LAST (CCM_FIRST + 0x200)")] + public const int CCM_LAST = (0x2000 + 0x200); + + [NativeTypeName("#define CCM_SETBKCOLOR (CCM_FIRST + 1)")] + public const int CCM_SETBKCOLOR = (0x2000 + 1); + + [NativeTypeName("#define CCM_SETCOLORSCHEME (CCM_FIRST + 2)")] + public const int CCM_SETCOLORSCHEME = (0x2000 + 2); + + [NativeTypeName("#define CCM_GETCOLORSCHEME (CCM_FIRST + 3)")] + public const int CCM_GETCOLORSCHEME = (0x2000 + 3); + + [NativeTypeName("#define CCM_GETDROPTARGET (CCM_FIRST + 4)")] + public const int CCM_GETDROPTARGET = (0x2000 + 4); + + [NativeTypeName("#define CCM_SETUNICODEFORMAT (CCM_FIRST + 5)")] + public const int CCM_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define CCM_GETUNICODEFORMAT (CCM_FIRST + 6)")] + public const int CCM_GETUNICODEFORMAT = (0x2000 + 6); + + [NativeTypeName("#define CCM_SETVERSION (CCM_FIRST + 0x7)")] + public const int CCM_SETVERSION = (0x2000 + 0x7); + + [NativeTypeName("#define CCM_GETVERSION (CCM_FIRST + 0x8)")] + public const int CCM_GETVERSION = (0x2000 + 0x8); + + [NativeTypeName("#define CCM_SETNOTIFYWINDOW (CCM_FIRST + 0x9)")] + public const int CCM_SETNOTIFYWINDOW = (0x2000 + 0x9); + + [NativeTypeName("#define CCM_SETWINDOWTHEME (CCM_FIRST + 0xb)")] + public const int CCM_SETWINDOWTHEME = (0x2000 + 0xb); + + [NativeTypeName("#define CCM_DPISCALE (CCM_FIRST + 0xc)")] + public const int CCM_DPISCALE = (0x2000 + 0xc); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/CCS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/CCS.cs new file mode 100644 index 0000000000..038a762dd5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/CCS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CCS + { + [NativeTypeName("#define CCS_TOP 0x00000001L")] + public const int CCS_TOP = 0x00000001; + + [NativeTypeName("#define CCS_NOMOVEY 0x00000002L")] + public const int CCS_NOMOVEY = 0x00000002; + + [NativeTypeName("#define CCS_BOTTOM 0x00000003L")] + public const int CCS_BOTTOM = 0x00000003; + + [NativeTypeName("#define CCS_NORESIZE 0x00000004L")] + public const int CCS_NORESIZE = 0x00000004; + + [NativeTypeName("#define CCS_NOPARENTALIGN 0x00000008L")] + public const int CCS_NOPARENTALIGN = 0x00000008; + + [NativeTypeName("#define CCS_ADJUSTABLE 0x00000020L")] + public const int CCS_ADJUSTABLE = 0x00000020; + + [NativeTypeName("#define CCS_NODIVIDER 0x00000040L")] + public const int CCS_NODIVIDER = 0x00000040; + + [NativeTypeName("#define CCS_VERT 0x00000080L")] + public const int CCS_VERT = 0x00000080; + + [NativeTypeName("#define CCS_LEFT (CCS_VERT | CCS_TOP)")] + public const int CCS_LEFT = (0x00000080 | 0x00000001); + + [NativeTypeName("#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)")] + public const int CCS_RIGHT = (0x00000080 | 0x00000003); + + [NativeTypeName("#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)")] + public const int CCS_NOMOVEX = (0x00000080 | 0x00000002); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/CDDS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/CDDS.cs new file mode 100644 index 0000000000..632c6d6a0f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/CDDS.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CDDS + { + [NativeTypeName("#define CDDS_PREPAINT 0x00000001")] + public const int CDDS_PREPAINT = 0x00000001; + + [NativeTypeName("#define CDDS_POSTPAINT 0x00000002")] + public const int CDDS_POSTPAINT = 0x00000002; + + [NativeTypeName("#define CDDS_PREERASE 0x00000003")] + public const int CDDS_PREERASE = 0x00000003; + + [NativeTypeName("#define CDDS_POSTERASE 0x00000004")] + public const int CDDS_POSTERASE = 0x00000004; + + [NativeTypeName("#define CDDS_ITEM 0x00010000")] + public const int CDDS_ITEM = 0x00010000; + + [NativeTypeName("#define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)")] + public const int CDDS_ITEMPREPAINT = (0x00010000 | 0x00000001); + + [NativeTypeName("#define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)")] + public const int CDDS_ITEMPOSTPAINT = (0x00010000 | 0x00000002); + + [NativeTypeName("#define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)")] + public const int CDDS_ITEMPREERASE = (0x00010000 | 0x00000003); + + [NativeTypeName("#define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)")] + public const int CDDS_ITEMPOSTERASE = (0x00010000 | 0x00000004); + + [NativeTypeName("#define CDDS_SUBITEM 0x00020000")] + public const int CDDS_SUBITEM = 0x00020000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/CDIS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/CDIS.cs new file mode 100644 index 0000000000..08a3db483f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/CDIS.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CDIS + { + [NativeTypeName("#define CDIS_SELECTED 0x0001")] + public const int CDIS_SELECTED = 0x0001; + + [NativeTypeName("#define CDIS_GRAYED 0x0002")] + public const int CDIS_GRAYED = 0x0002; + + [NativeTypeName("#define CDIS_DISABLED 0x0004")] + public const int CDIS_DISABLED = 0x0004; + + [NativeTypeName("#define CDIS_CHECKED 0x0008")] + public const int CDIS_CHECKED = 0x0008; + + [NativeTypeName("#define CDIS_FOCUS 0x0010")] + public const int CDIS_FOCUS = 0x0010; + + [NativeTypeName("#define CDIS_DEFAULT 0x0020")] + public const int CDIS_DEFAULT = 0x0020; + + [NativeTypeName("#define CDIS_HOT 0x0040")] + public const int CDIS_HOT = 0x0040; + + [NativeTypeName("#define CDIS_MARKED 0x0080")] + public const int CDIS_MARKED = 0x0080; + + [NativeTypeName("#define CDIS_INDETERMINATE 0x0100")] + public const int CDIS_INDETERMINATE = 0x0100; + + [NativeTypeName("#define CDIS_SHOWKEYBOARDCUES 0x0200")] + public const int CDIS_SHOWKEYBOARDCUES = 0x0200; + + [NativeTypeName("#define CDIS_NEARHOT 0x0400")] + public const int CDIS_NEARHOT = 0x0400; + + [NativeTypeName("#define CDIS_OTHERSIDEHOT 0x0800")] + public const int CDIS_OTHERSIDEHOT = 0x0800; + + [NativeTypeName("#define CDIS_DROPHILITED 0x1000")] + public const int CDIS_DROPHILITED = 0x1000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/DTM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/DTM.cs new file mode 100644 index 0000000000..3285f102e3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/DTM.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DTM + { + [NativeTypeName("#define DTM_FIRST 0x1000")] + public const int DTM_FIRST = 0x1000; + + [NativeTypeName("#define DTM_GETSYSTEMTIME (DTM_FIRST + 1)")] + public const int DTM_GETSYSTEMTIME = (0x1000 + 1); + + [NativeTypeName("#define DTM_SETSYSTEMTIME (DTM_FIRST + 2)")] + public const int DTM_SETSYSTEMTIME = (0x1000 + 2); + + [NativeTypeName("#define DTM_GETRANGE (DTM_FIRST + 3)")] + public const int DTM_GETRANGE = (0x1000 + 3); + + [NativeTypeName("#define DTM_SETRANGE (DTM_FIRST + 4)")] + public const int DTM_SETRANGE = (0x1000 + 4); + + [NativeTypeName("#define DTM_SETFORMATA (DTM_FIRST + 5)")] + public const int DTM_SETFORMATA = (0x1000 + 5); + + [NativeTypeName("#define DTM_SETFORMATW (DTM_FIRST + 50)")] + public const int DTM_SETFORMATW = (0x1000 + 50); + + [NativeTypeName("#define DTM_SETFORMAT DTM_SETFORMATW")] + public const int DTM_SETFORMAT = (0x1000 + 50); + + [NativeTypeName("#define DTM_SETMCCOLOR (DTM_FIRST + 6)")] + public const int DTM_SETMCCOLOR = (0x1000 + 6); + + [NativeTypeName("#define DTM_GETMCCOLOR (DTM_FIRST + 7)")] + public const int DTM_GETMCCOLOR = (0x1000 + 7); + + [NativeTypeName("#define DTM_GETMONTHCAL (DTM_FIRST + 8)")] + public const int DTM_GETMONTHCAL = (0x1000 + 8); + + [NativeTypeName("#define DTM_SETMCFONT (DTM_FIRST + 9)")] + public const int DTM_SETMCFONT = (0x1000 + 9); + + [NativeTypeName("#define DTM_GETMCFONT (DTM_FIRST + 10)")] + public const int DTM_GETMCFONT = (0x1000 + 10); + + [NativeTypeName("#define DTM_SETMCSTYLE (DTM_FIRST + 11)")] + public const int DTM_SETMCSTYLE = (0x1000 + 11); + + [NativeTypeName("#define DTM_GETMCSTYLE (DTM_FIRST + 12)")] + public const int DTM_GETMCSTYLE = (0x1000 + 12); + + [NativeTypeName("#define DTM_CLOSEMONTHCAL (DTM_FIRST + 13)")] + public const int DTM_CLOSEMONTHCAL = (0x1000 + 13); + + [NativeTypeName("#define DTM_GETDATETIMEPICKERINFO (DTM_FIRST + 14)")] + public const int DTM_GETDATETIMEPICKERINFO = (0x1000 + 14); + + [NativeTypeName("#define DTM_GETIDEALSIZE (DTM_FIRST + 15)")] + public const int DTM_GETIDEALSIZE = (0x1000 + 15); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/DTN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/DTN.cs new file mode 100644 index 0000000000..03b8beeae9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/DTN.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DTN + { + [NativeTypeName("#define DTN_FIRST (0U-740U)")] + public const uint DTN_FIRST = unchecked(0U - 740U); + + [NativeTypeName("#define DTN_LAST (0U-745U)")] + public const uint DTN_LAST = unchecked(0U - 745U); + + [NativeTypeName("#define DTN_FIRST2 (0U-753U)")] + public const uint DTN_FIRST2 = unchecked(0U - 753U); + + [NativeTypeName("#define DTN_LAST2 (0U-799U)")] + public const uint DTN_LAST2 = unchecked(0U - 799U); + + [NativeTypeName("#define DTN_DATETIMECHANGE (DTN_FIRST2 - 6)")] + public const uint DTN_DATETIMECHANGE = unchecked((0U - 753U) - 6); + + [NativeTypeName("#define DTN_USERSTRINGA (DTN_FIRST2 - 5)")] + public const uint DTN_USERSTRINGA = unchecked((0U - 753U) - 5); + + [NativeTypeName("#define DTN_USERSTRINGW (DTN_FIRST - 5)")] + public const uint DTN_USERSTRINGW = unchecked((0U - 740U) - 5); + + [NativeTypeName("#define DTN_USERSTRING DTN_USERSTRINGW")] + public const uint DTN_USERSTRING = unchecked((0U - 740U) - 5); + + [NativeTypeName("#define DTN_WMKEYDOWNA (DTN_FIRST2 - 4)")] + public const uint DTN_WMKEYDOWNA = unchecked((0U - 753U) - 4); + + [NativeTypeName("#define DTN_WMKEYDOWNW (DTN_FIRST - 4)")] + public const uint DTN_WMKEYDOWNW = unchecked((0U - 740U) - 4); + + [NativeTypeName("#define DTN_WMKEYDOWN DTN_WMKEYDOWNW")] + public const uint DTN_WMKEYDOWN = unchecked((0U - 740U) - 4); + + [NativeTypeName("#define DTN_FORMATA (DTN_FIRST2 - 3)")] + public const uint DTN_FORMATA = unchecked((0U - 753U) - 3); + + [NativeTypeName("#define DTN_FORMATW (DTN_FIRST - 3)")] + public const uint DTN_FORMATW = unchecked((0U - 740U) - 3); + + [NativeTypeName("#define DTN_FORMAT DTN_FORMATW")] + public const uint DTN_FORMAT = unchecked((0U - 740U) - 3); + + [NativeTypeName("#define DTN_FORMATQUERYA (DTN_FIRST2 - 2)")] + public const uint DTN_FORMATQUERYA = unchecked((0U - 753U) - 2); + + [NativeTypeName("#define DTN_FORMATQUERYW (DTN_FIRST - 2)")] + public const uint DTN_FORMATQUERYW = unchecked((0U - 740U) - 2); + + [NativeTypeName("#define DTN_FORMATQUERY DTN_FORMATQUERYW")] + public const uint DTN_FORMATQUERY = unchecked((0U - 740U) - 2); + + [NativeTypeName("#define DTN_DROPDOWN (DTN_FIRST2 - 1)")] + public const uint DTN_DROPDOWN = unchecked((0U - 753U) - 1); + + [NativeTypeName("#define DTN_CLOSEUP (DTN_FIRST2)")] + public const uint DTN_CLOSEUP = unchecked((0U - 753U)); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/EN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/EN.cs new file mode 100644 index 0000000000..a7b3007728 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/EN.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EN + { + [NativeTypeName("#define EN_FIRST (0U-1520U)")] + public const uint EN_FIRST = unchecked(0U - 1520U); + + [NativeTypeName("#define EN_LAST (0U-1540U)")] + public const uint EN_LAST = unchecked(0U - 1540U); + + [NativeTypeName("#define EN_SEARCHWEB (EN_FIRST - 0)")] + public const uint EN_SEARCHWEB = unchecked((0U - 1520U) - 0); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/ES.cs b/sources/Interop/Windows/Windows/um/CommCtrl/ES.cs new file mode 100644 index 0000000000..7391400537 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/ES.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ES + { + [NativeTypeName("#define ES_EX_ALLOWEOL_CR 0x0001L")] + public const int ES_EX_ALLOWEOL_CR = 0x0001; + + [NativeTypeName("#define ES_EX_ALLOWEOL_LF 0x0002L")] + public const int ES_EX_ALLOWEOL_LF = 0x0002; + + [NativeTypeName("#define ES_EX_ALLOWEOL_ALL (ES_EX_ALLOWEOL_CR | ES_EX_ALLOWEOL_LF)")] + public const int ES_EX_ALLOWEOL_ALL = (0x0001 | 0x0002); + + [NativeTypeName("#define ES_EX_CONVERT_EOL_ON_PASTE 0x0004L")] + public const int ES_EX_CONVERT_EOL_ON_PASTE = 0x0004; + + [NativeTypeName("#define ES_EX_ZOOMABLE 0x0010L")] + public const int ES_EX_ZOOMABLE = 0x0010; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/HDF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/HDF.cs new file mode 100644 index 0000000000..c672bc64a8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/HDF.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HDF + { + [NativeTypeName("#define HDF_LEFT 0x0000")] + public const int HDF_LEFT = 0x0000; + + [NativeTypeName("#define HDF_RIGHT 0x0001")] + public const int HDF_RIGHT = 0x0001; + + [NativeTypeName("#define HDF_CENTER 0x0002")] + public const int HDF_CENTER = 0x0002; + + [NativeTypeName("#define HDF_JUSTIFYMASK 0x0003")] + public const int HDF_JUSTIFYMASK = 0x0003; + + [NativeTypeName("#define HDF_RTLREADING 0x0004")] + public const int HDF_RTLREADING = 0x0004; + + [NativeTypeName("#define HDF_BITMAP 0x2000")] + public const int HDF_BITMAP = 0x2000; + + [NativeTypeName("#define HDF_STRING 0x4000")] + public const int HDF_STRING = 0x4000; + + [NativeTypeName("#define HDF_OWNERDRAW 0x8000")] + public const int HDF_OWNERDRAW = 0x8000; + + [NativeTypeName("#define HDF_IMAGE 0x0800")] + public const int HDF_IMAGE = 0x0800; + + [NativeTypeName("#define HDF_BITMAP_ON_RIGHT 0x1000")] + public const int HDF_BITMAP_ON_RIGHT = 0x1000; + + [NativeTypeName("#define HDF_SORTUP 0x0400")] + public const int HDF_SORTUP = 0x0400; + + [NativeTypeName("#define HDF_SORTDOWN 0x0200")] + public const int HDF_SORTDOWN = 0x0200; + + [NativeTypeName("#define HDF_CHECKBOX 0x0040")] + public const int HDF_CHECKBOX = 0x0040; + + [NativeTypeName("#define HDF_CHECKED 0x0080")] + public const int HDF_CHECKED = 0x0080; + + [NativeTypeName("#define HDF_FIXEDWIDTH 0x0100")] + public const int HDF_FIXEDWIDTH = 0x0100; + + [NativeTypeName("#define HDF_SPLITBUTTON 0x1000000")] + public const int HDF_SPLITBUTTON = 0x1000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/HDI.cs b/sources/Interop/Windows/Windows/um/CommCtrl/HDI.cs new file mode 100644 index 0000000000..3c04416f44 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/HDI.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HDI + { + [NativeTypeName("#define HDI_WIDTH 0x0001")] + public const int HDI_WIDTH = 0x0001; + + [NativeTypeName("#define HDI_HEIGHT HDI_WIDTH")] + public const int HDI_HEIGHT = 0x0001; + + [NativeTypeName("#define HDI_TEXT 0x0002")] + public const int HDI_TEXT = 0x0002; + + [NativeTypeName("#define HDI_FORMAT 0x0004")] + public const int HDI_FORMAT = 0x0004; + + [NativeTypeName("#define HDI_LPARAM 0x0008")] + public const int HDI_LPARAM = 0x0008; + + [NativeTypeName("#define HDI_BITMAP 0x0010")] + public const int HDI_BITMAP = 0x0010; + + [NativeTypeName("#define HDI_IMAGE 0x0020")] + public const int HDI_IMAGE = 0x0020; + + [NativeTypeName("#define HDI_DI_SETITEM 0x0040")] + public const int HDI_DI_SETITEM = 0x0040; + + [NativeTypeName("#define HDI_ORDER 0x0080")] + public const int HDI_ORDER = 0x0080; + + [NativeTypeName("#define HDI_FILTER 0x0100")] + public const int HDI_FILTER = 0x0100; + + [NativeTypeName("#define HDI_STATE 0x0200")] + public const int HDI_STATE = 0x0200; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/HDM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/HDM.cs new file mode 100644 index 0000000000..45d8590e7f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/HDM.cs @@ -0,0 +1,109 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HDM + { + [NativeTypeName("#define HDM_FIRST 0x1200")] + public const int HDM_FIRST = 0x1200; + + [NativeTypeName("#define HDM_GETITEMCOUNT (HDM_FIRST + 0)")] + public const int HDM_GETITEMCOUNT = (0x1200 + 0); + + [NativeTypeName("#define HDM_INSERTITEMA (HDM_FIRST + 1)")] + public const int HDM_INSERTITEMA = (0x1200 + 1); + + [NativeTypeName("#define HDM_INSERTITEMW (HDM_FIRST + 10)")] + public const int HDM_INSERTITEMW = (0x1200 + 10); + + [NativeTypeName("#define HDM_INSERTITEM HDM_INSERTITEMW")] + public const int HDM_INSERTITEM = (0x1200 + 10); + + [NativeTypeName("#define HDM_DELETEITEM (HDM_FIRST + 2)")] + public const int HDM_DELETEITEM = (0x1200 + 2); + + [NativeTypeName("#define HDM_GETITEMA (HDM_FIRST + 3)")] + public const int HDM_GETITEMA = (0x1200 + 3); + + [NativeTypeName("#define HDM_GETITEMW (HDM_FIRST + 11)")] + public const int HDM_GETITEMW = (0x1200 + 11); + + [NativeTypeName("#define HDM_GETITEM HDM_GETITEMW")] + public const int HDM_GETITEM = (0x1200 + 11); + + [NativeTypeName("#define HDM_SETITEMA (HDM_FIRST + 4)")] + public const int HDM_SETITEMA = (0x1200 + 4); + + [NativeTypeName("#define HDM_SETITEMW (HDM_FIRST + 12)")] + public const int HDM_SETITEMW = (0x1200 + 12); + + [NativeTypeName("#define HDM_SETITEM HDM_SETITEMW")] + public const int HDM_SETITEM = (0x1200 + 12); + + [NativeTypeName("#define HDM_LAYOUT (HDM_FIRST + 5)")] + public const int HDM_LAYOUT = (0x1200 + 5); + + [NativeTypeName("#define HDM_HITTEST (HDM_FIRST + 6)")] + public const int HDM_HITTEST = (0x1200 + 6); + + [NativeTypeName("#define HDM_GETITEMRECT (HDM_FIRST + 7)")] + public const int HDM_GETITEMRECT = (0x1200 + 7); + + [NativeTypeName("#define HDM_SETIMAGELIST (HDM_FIRST + 8)")] + public const int HDM_SETIMAGELIST = (0x1200 + 8); + + [NativeTypeName("#define HDM_GETIMAGELIST (HDM_FIRST + 9)")] + public const int HDM_GETIMAGELIST = (0x1200 + 9); + + [NativeTypeName("#define HDM_ORDERTOINDEX (HDM_FIRST + 15)")] + public const int HDM_ORDERTOINDEX = (0x1200 + 15); + + [NativeTypeName("#define HDM_CREATEDRAGIMAGE (HDM_FIRST + 16)")] + public const int HDM_CREATEDRAGIMAGE = (0x1200 + 16); + + [NativeTypeName("#define HDM_GETORDERARRAY (HDM_FIRST + 17)")] + public const int HDM_GETORDERARRAY = (0x1200 + 17); + + [NativeTypeName("#define HDM_SETORDERARRAY (HDM_FIRST + 18)")] + public const int HDM_SETORDERARRAY = (0x1200 + 18); + + [NativeTypeName("#define HDM_SETHOTDIVIDER (HDM_FIRST + 19)")] + public const int HDM_SETHOTDIVIDER = (0x1200 + 19); + + [NativeTypeName("#define HDM_SETBITMAPMARGIN (HDM_FIRST + 20)")] + public const int HDM_SETBITMAPMARGIN = (0x1200 + 20); + + [NativeTypeName("#define HDM_GETBITMAPMARGIN (HDM_FIRST + 21)")] + public const int HDM_GETBITMAPMARGIN = (0x1200 + 21); + + [NativeTypeName("#define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] + public const int HDM_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] + public const int HDM_GETUNICODEFORMAT = (0x2000 + 6); + + [NativeTypeName("#define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22)")] + public const int HDM_SETFILTERCHANGETIMEOUT = (0x1200 + 22); + + [NativeTypeName("#define HDM_EDITFILTER (HDM_FIRST+23)")] + public const int HDM_EDITFILTER = (0x1200 + 23); + + [NativeTypeName("#define HDM_CLEARFILTER (HDM_FIRST+24)")] + public const int HDM_CLEARFILTER = (0x1200 + 24); + + [NativeTypeName("#define HDM_GETITEMDROPDOWNRECT (HDM_FIRST+25)")] + public const int HDM_GETITEMDROPDOWNRECT = (0x1200 + 25); + + [NativeTypeName("#define HDM_GETOVERFLOWRECT (HDM_FIRST+26)")] + public const int HDM_GETOVERFLOWRECT = (0x1200 + 26); + + [NativeTypeName("#define HDM_GETFOCUSEDITEM (HDM_FIRST+27)")] + public const int HDM_GETFOCUSEDITEM = (0x1200 + 27); + + [NativeTypeName("#define HDM_SETFOCUSEDITEM (HDM_FIRST+28)")] + public const int HDM_SETFOCUSEDITEM = (0x1200 + 28); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/HDN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/HDN.cs new file mode 100644 index 0000000000..3159c323f4 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/HDN.cs @@ -0,0 +1,127 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HDN + { + [NativeTypeName("#define HDN_FIRST (0U-300U)")] + public const uint HDN_FIRST = unchecked(0U - 300U); + + [NativeTypeName("#define HDN_LAST (0U-399U)")] + public const uint HDN_LAST = unchecked(0U - 399U); + + [NativeTypeName("#define HDN_ITEMCHANGINGA (HDN_FIRST-0)")] + public const uint HDN_ITEMCHANGINGA = unchecked((0U - 300U) - 0); + + [NativeTypeName("#define HDN_ITEMCHANGINGW (HDN_FIRST-20)")] + public const uint HDN_ITEMCHANGINGW = unchecked((0U - 300U) - 20); + + [NativeTypeName("#define HDN_ITEMCHANGEDA (HDN_FIRST-1)")] + public const uint HDN_ITEMCHANGEDA = unchecked((0U - 300U) - 1); + + [NativeTypeName("#define HDN_ITEMCHANGEDW (HDN_FIRST-21)")] + public const uint HDN_ITEMCHANGEDW = unchecked((0U - 300U) - 21); + + [NativeTypeName("#define HDN_ITEMCLICKA (HDN_FIRST-2)")] + public const uint HDN_ITEMCLICKA = unchecked((0U - 300U) - 2); + + [NativeTypeName("#define HDN_ITEMCLICKW (HDN_FIRST-22)")] + public const uint HDN_ITEMCLICKW = unchecked((0U - 300U) - 22); + + [NativeTypeName("#define HDN_ITEMDBLCLICKA (HDN_FIRST-3)")] + public const uint HDN_ITEMDBLCLICKA = unchecked((0U - 300U) - 3); + + [NativeTypeName("#define HDN_ITEMDBLCLICKW (HDN_FIRST-23)")] + public const uint HDN_ITEMDBLCLICKW = unchecked((0U - 300U) - 23); + + [NativeTypeName("#define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)")] + public const uint HDN_DIVIDERDBLCLICKA = unchecked((0U - 300U) - 5); + + [NativeTypeName("#define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)")] + public const uint HDN_DIVIDERDBLCLICKW = unchecked((0U - 300U) - 25); + + [NativeTypeName("#define HDN_BEGINTRACKA (HDN_FIRST-6)")] + public const uint HDN_BEGINTRACKA = unchecked((0U - 300U) - 6); + + [NativeTypeName("#define HDN_BEGINTRACKW (HDN_FIRST-26)")] + public const uint HDN_BEGINTRACKW = unchecked((0U - 300U) - 26); + + [NativeTypeName("#define HDN_ENDTRACKA (HDN_FIRST-7)")] + public const uint HDN_ENDTRACKA = unchecked((0U - 300U) - 7); + + [NativeTypeName("#define HDN_ENDTRACKW (HDN_FIRST-27)")] + public const uint HDN_ENDTRACKW = unchecked((0U - 300U) - 27); + + [NativeTypeName("#define HDN_TRACKA (HDN_FIRST-8)")] + public const uint HDN_TRACKA = unchecked((0U - 300U) - 8); + + [NativeTypeName("#define HDN_TRACKW (HDN_FIRST-28)")] + public const uint HDN_TRACKW = unchecked((0U - 300U) - 28); + + [NativeTypeName("#define HDN_GETDISPINFOA (HDN_FIRST-9)")] + public const uint HDN_GETDISPINFOA = unchecked((0U - 300U) - 9); + + [NativeTypeName("#define HDN_GETDISPINFOW (HDN_FIRST-29)")] + public const uint HDN_GETDISPINFOW = unchecked((0U - 300U) - 29); + + [NativeTypeName("#define HDN_BEGINDRAG (HDN_FIRST-10)")] + public const uint HDN_BEGINDRAG = unchecked((0U - 300U) - 10); + + [NativeTypeName("#define HDN_ENDDRAG (HDN_FIRST-11)")] + public const uint HDN_ENDDRAG = unchecked((0U - 300U) - 11); + + [NativeTypeName("#define HDN_FILTERCHANGE (HDN_FIRST-12)")] + public const uint HDN_FILTERCHANGE = unchecked((0U - 300U) - 12); + + [NativeTypeName("#define HDN_FILTERBTNCLICK (HDN_FIRST-13)")] + public const uint HDN_FILTERBTNCLICK = unchecked((0U - 300U) - 13); + + [NativeTypeName("#define HDN_BEGINFILTEREDIT (HDN_FIRST-14)")] + public const uint HDN_BEGINFILTEREDIT = unchecked((0U - 300U) - 14); + + [NativeTypeName("#define HDN_ENDFILTEREDIT (HDN_FIRST-15)")] + public const uint HDN_ENDFILTEREDIT = unchecked((0U - 300U) - 15); + + [NativeTypeName("#define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16)")] + public const uint HDN_ITEMSTATEICONCLICK = unchecked((0U - 300U) - 16); + + [NativeTypeName("#define HDN_ITEMKEYDOWN (HDN_FIRST-17)")] + public const uint HDN_ITEMKEYDOWN = unchecked((0U - 300U) - 17); + + [NativeTypeName("#define HDN_DROPDOWN (HDN_FIRST-18)")] + public const uint HDN_DROPDOWN = unchecked((0U - 300U) - 18); + + [NativeTypeName("#define HDN_OVERFLOWCLICK (HDN_FIRST-19)")] + public const uint HDN_OVERFLOWCLICK = unchecked((0U - 300U) - 19); + + [NativeTypeName("#define HDN_ITEMCHANGING HDN_ITEMCHANGINGW")] + public const uint HDN_ITEMCHANGING = unchecked((0U - 300U) - 20); + + [NativeTypeName("#define HDN_ITEMCHANGED HDN_ITEMCHANGEDW")] + public const uint HDN_ITEMCHANGED = unchecked((0U - 300U) - 21); + + [NativeTypeName("#define HDN_ITEMCLICK HDN_ITEMCLICKW")] + public const uint HDN_ITEMCLICK = unchecked((0U - 300U) - 22); + + [NativeTypeName("#define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKW")] + public const uint HDN_ITEMDBLCLICK = unchecked((0U - 300U) - 23); + + [NativeTypeName("#define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKW")] + public const uint HDN_DIVIDERDBLCLICK = unchecked((0U - 300U) - 25); + + [NativeTypeName("#define HDN_BEGINTRACK HDN_BEGINTRACKW")] + public const uint HDN_BEGINTRACK = unchecked((0U - 300U) - 26); + + [NativeTypeName("#define HDN_ENDTRACK HDN_ENDTRACKW")] + public const uint HDN_ENDTRACK = unchecked((0U - 300U) - 27); + + [NativeTypeName("#define HDN_TRACK HDN_TRACKW")] + public const uint HDN_TRACK = unchecked((0U - 300U) - 28); + + [NativeTypeName("#define HDN_GETDISPINFO HDN_GETDISPINFOW")] + public const uint HDN_GETDISPINFO = unchecked((0U - 300U) - 29); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/HDS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/HDS.cs new file mode 100644 index 0000000000..5567fb3e21 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/HDS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HDS + { + [NativeTypeName("#define HDS_HORZ 0x0000")] + public const int HDS_HORZ = 0x0000; + + [NativeTypeName("#define HDS_BUTTONS 0x0002")] + public const int HDS_BUTTONS = 0x0002; + + [NativeTypeName("#define HDS_HOTTRACK 0x0004")] + public const int HDS_HOTTRACK = 0x0004; + + [NativeTypeName("#define HDS_HIDDEN 0x0008")] + public const int HDS_HIDDEN = 0x0008; + + [NativeTypeName("#define HDS_DRAGDROP 0x0040")] + public const int HDS_DRAGDROP = 0x0040; + + [NativeTypeName("#define HDS_FULLDRAG 0x0080")] + public const int HDS_FULLDRAG = 0x0080; + + [NativeTypeName("#define HDS_FILTERBAR 0x0100")] + public const int HDS_FILTERBAR = 0x0100; + + [NativeTypeName("#define HDS_FLAT 0x0200")] + public const int HDS_FLAT = 0x0200; + + [NativeTypeName("#define HDS_CHECKBOXES 0x0400")] + public const int HDS_CHECKBOXES = 0x0400; + + [NativeTypeName("#define HDS_NOSIZING 0x0800")] + public const int HDS_NOSIZING = 0x0800; + + [NativeTypeName("#define HDS_OVERFLOW 0x1000")] + public const int HDS_OVERFLOW = 0x1000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/HHT.cs b/sources/Interop/Windows/Windows/um/CommCtrl/HHT.cs new file mode 100644 index 0000000000..c1bcabefe8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/HHT.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HHT + { + [NativeTypeName("#define HHT_NOWHERE 0x0001")] + public const int HHT_NOWHERE = 0x0001; + + [NativeTypeName("#define HHT_ONHEADER 0x0002")] + public const int HHT_ONHEADER = 0x0002; + + [NativeTypeName("#define HHT_ONDIVIDER 0x0004")] + public const int HHT_ONDIVIDER = 0x0004; + + [NativeTypeName("#define HHT_ONDIVOPEN 0x0008")] + public const int HHT_ONDIVOPEN = 0x0008; + + [NativeTypeName("#define HHT_ONFILTER 0x0010")] + public const int HHT_ONFILTER = 0x0010; + + [NativeTypeName("#define HHT_ONFILTERBUTTON 0x0020")] + public const int HHT_ONFILTERBUTTON = 0x0020; + + [NativeTypeName("#define HHT_ABOVE 0x0100")] + public const int HHT_ABOVE = 0x0100; + + [NativeTypeName("#define HHT_BELOW 0x0200")] + public const int HHT_BELOW = 0x0200; + + [NativeTypeName("#define HHT_TORIGHT 0x0400")] + public const int HHT_TORIGHT = 0x0400; + + [NativeTypeName("#define HHT_TOLEFT 0x0800")] + public const int HHT_TOLEFT = 0x0800; + + [NativeTypeName("#define HHT_ONITEMSTATEICON 0x1000")] + public const int HHT_ONITEMSTATEICON = 0x1000; + + [NativeTypeName("#define HHT_ONDROPDOWN 0x2000")] + public const int HHT_ONDROPDOWN = 0x2000; + + [NativeTypeName("#define HHT_ONOVERFLOW 0x4000")] + public const int HHT_ONOVERFLOW = 0x4000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/HICF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/HICF.cs new file mode 100644 index 0000000000..2de8e20e09 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/HICF.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HICF + { + [NativeTypeName("#define HICF_OTHER 0x00000000")] + public const int HICF_OTHER = 0x00000000; + + [NativeTypeName("#define HICF_MOUSE 0x00000001")] + public const int HICF_MOUSE = 0x00000001; + + [NativeTypeName("#define HICF_ARROWKEYS 0x00000002")] + public const int HICF_ARROWKEYS = 0x00000002; + + [NativeTypeName("#define HICF_ACCELERATOR 0x00000004")] + public const int HICF_ACCELERATOR = 0x00000004; + + [NativeTypeName("#define HICF_DUPACCEL 0x00000008")] + public const int HICF_DUPACCEL = 0x00000008; + + [NativeTypeName("#define HICF_ENTERING 0x00000010")] + public const int HICF_ENTERING = 0x00000010; + + [NativeTypeName("#define HICF_LEAVING 0x00000020")] + public const int HICF_LEAVING = 0x00000020; + + [NativeTypeName("#define HICF_RESELECT 0x00000040")] + public const int HICF_RESELECT = 0x00000040; + + [NativeTypeName("#define HICF_LMOUSE 0x00000080")] + public const int HICF_LMOUSE = 0x00000080; + + [NativeTypeName("#define HICF_TOGGLEDROPDOWN 0x00000100")] + public const int HICF_TOGGLEDROPDOWN = 0x00000100; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/ICC.cs b/sources/Interop/Windows/Windows/um/CommCtrl/ICC.cs new file mode 100644 index 0000000000..301a9bbee1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/ICC.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ICC + { + [NativeTypeName("#define ICC_LISTVIEW_CLASSES 0x00000001")] + public const int ICC_LISTVIEW_CLASSES = 0x00000001; + + [NativeTypeName("#define ICC_TREEVIEW_CLASSES 0x00000002")] + public const int ICC_TREEVIEW_CLASSES = 0x00000002; + + [NativeTypeName("#define ICC_BAR_CLASSES 0x00000004")] + public const int ICC_BAR_CLASSES = 0x00000004; + + [NativeTypeName("#define ICC_TAB_CLASSES 0x00000008")] + public const int ICC_TAB_CLASSES = 0x00000008; + + [NativeTypeName("#define ICC_UPDOWN_CLASS 0x00000010")] + public const int ICC_UPDOWN_CLASS = 0x00000010; + + [NativeTypeName("#define ICC_PROGRESS_CLASS 0x00000020")] + public const int ICC_PROGRESS_CLASS = 0x00000020; + + [NativeTypeName("#define ICC_HOTKEY_CLASS 0x00000040")] + public const int ICC_HOTKEY_CLASS = 0x00000040; + + [NativeTypeName("#define ICC_ANIMATE_CLASS 0x00000080")] + public const int ICC_ANIMATE_CLASS = 0x00000080; + + [NativeTypeName("#define ICC_WIN95_CLASSES 0x000000FF")] + public const int ICC_WIN95_CLASSES = 0x000000FF; + + [NativeTypeName("#define ICC_DATE_CLASSES 0x00000100")] + public const int ICC_DATE_CLASSES = 0x00000100; + + [NativeTypeName("#define ICC_USEREX_CLASSES 0x00000200")] + public const int ICC_USEREX_CLASSES = 0x00000200; + + [NativeTypeName("#define ICC_COOL_CLASSES 0x00000400")] + public const int ICC_COOL_CLASSES = 0x00000400; + + [NativeTypeName("#define ICC_INTERNET_CLASSES 0x00000800")] + public const int ICC_INTERNET_CLASSES = 0x00000800; + + [NativeTypeName("#define ICC_PAGESCROLLER_CLASS 0x00001000")] + public const int ICC_PAGESCROLLER_CLASS = 0x00001000; + + [NativeTypeName("#define ICC_NATIVEFNTCTL_CLASS 0x00002000")] + public const int ICC_NATIVEFNTCTL_CLASS = 0x00002000; + + [NativeTypeName("#define ICC_STANDARD_CLASSES 0x00004000")] + public const int ICC_STANDARD_CLASSES = 0x00004000; + + [NativeTypeName("#define ICC_LINK_CLASS 0x00008000")] + public const int ICC_LINK_CLASS = 0x00008000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/IDB.cs b/sources/Interop/Windows/Windows/um/CommCtrl/IDB.cs new file mode 100644 index 0000000000..0047e03238 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/IDB.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IDB + { + [NativeTypeName("#define IDB_STD_SMALL_COLOR 0")] + public const int IDB_STD_SMALL_COLOR = 0; + + [NativeTypeName("#define IDB_STD_LARGE_COLOR 1")] + public const int IDB_STD_LARGE_COLOR = 1; + + [NativeTypeName("#define IDB_VIEW_SMALL_COLOR 4")] + public const int IDB_VIEW_SMALL_COLOR = 4; + + [NativeTypeName("#define IDB_VIEW_LARGE_COLOR 5")] + public const int IDB_VIEW_LARGE_COLOR = 5; + + [NativeTypeName("#define IDB_HIST_SMALL_COLOR 8")] + public const int IDB_HIST_SMALL_COLOR = 8; + + [NativeTypeName("#define IDB_HIST_LARGE_COLOR 9")] + public const int IDB_HIST_LARGE_COLOR = 9; + + [NativeTypeName("#define IDB_HIST_NORMAL 12")] + public const int IDB_HIST_NORMAL = 12; + + [NativeTypeName("#define IDB_HIST_HOT 13")] + public const int IDB_HIST_HOT = 13; + + [NativeTypeName("#define IDB_HIST_DISABLED 14")] + public const int IDB_HIST_DISABLED = 14; + + [NativeTypeName("#define IDB_HIST_PRESSED 15")] + public const int IDB_HIST_PRESSED = 15; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/ILC.cs b/sources/Interop/Windows/Windows/um/CommCtrl/ILC.cs new file mode 100644 index 0000000000..3563aeda3f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/ILC.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ILC + { + [NativeTypeName("#define ILC_MASK 0x00000001")] + public const int ILC_MASK = 0x00000001; + + [NativeTypeName("#define ILC_COLOR 0x00000000")] + public const int ILC_COLOR = 0x00000000; + + [NativeTypeName("#define ILC_COLORDDB 0x000000FE")] + public const int ILC_COLORDDB = 0x000000FE; + + [NativeTypeName("#define ILC_COLOR4 0x00000004")] + public const int ILC_COLOR4 = 0x00000004; + + [NativeTypeName("#define ILC_COLOR8 0x00000008")] + public const int ILC_COLOR8 = 0x00000008; + + [NativeTypeName("#define ILC_COLOR16 0x00000010")] + public const int ILC_COLOR16 = 0x00000010; + + [NativeTypeName("#define ILC_COLOR24 0x00000018")] + public const int ILC_COLOR24 = 0x00000018; + + [NativeTypeName("#define ILC_COLOR32 0x00000020")] + public const int ILC_COLOR32 = 0x00000020; + + [NativeTypeName("#define ILC_PALETTE 0x00000800")] + public const int ILC_PALETTE = 0x00000800; + + [NativeTypeName("#define ILC_MIRROR 0x00002000")] + public const int ILC_MIRROR = 0x00002000; + + [NativeTypeName("#define ILC_PERITEMMIRROR 0x00008000")] + public const int ILC_PERITEMMIRROR = 0x00008000; + + [NativeTypeName("#define ILC_ORIGINALSIZE 0x00010000")] + public const int ILC_ORIGINALSIZE = 0x00010000; + + [NativeTypeName("#define ILC_HIGHQUALITYSCALE 0x00020000")] + public const int ILC_HIGHQUALITYSCALE = 0x00020000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/ILD.cs b/sources/Interop/Windows/Windows/um/CommCtrl/ILD.cs new file mode 100644 index 0000000000..af845c2d4a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/ILD.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ILD + { + [NativeTypeName("#define ILD_NORMAL 0x00000000")] + public const int ILD_NORMAL = 0x00000000; + + [NativeTypeName("#define ILD_TRANSPARENT 0x00000001")] + public const int ILD_TRANSPARENT = 0x00000001; + + [NativeTypeName("#define ILD_MASK 0x00000010")] + public const int ILD_MASK = 0x00000010; + + [NativeTypeName("#define ILD_IMAGE 0x00000020")] + public const int ILD_IMAGE = 0x00000020; + + [NativeTypeName("#define ILD_ROP 0x00000040")] + public const int ILD_ROP = 0x00000040; + + [NativeTypeName("#define ILD_BLEND25 0x00000002")] + public const int ILD_BLEND25 = 0x00000002; + + [NativeTypeName("#define ILD_BLEND50 0x00000004")] + public const int ILD_BLEND50 = 0x00000004; + + [NativeTypeName("#define ILD_OVERLAYMASK 0x00000F00")] + public const int ILD_OVERLAYMASK = 0x00000F00; + + [NativeTypeName("#define ILD_PRESERVEALPHA 0x00001000")] + public const int ILD_PRESERVEALPHA = 0x00001000; + + [NativeTypeName("#define ILD_SCALE 0x00002000")] + public const int ILD_SCALE = 0x00002000; + + [NativeTypeName("#define ILD_DPISCALE 0x00004000")] + public const int ILD_DPISCALE = 0x00004000; + + [NativeTypeName("#define ILD_ASYNC 0x00008000")] + public const int ILD_ASYNC = 0x00008000; + + [NativeTypeName("#define ILD_SELECTED ILD_BLEND50")] + public const int ILD_SELECTED = 0x00000004; + + [NativeTypeName("#define ILD_FOCUS ILD_BLEND25")] + public const int ILD_FOCUS = 0x00000002; + + [NativeTypeName("#define ILD_BLEND ILD_BLEND50")] + public const int ILD_BLEND = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/LVBKIF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/LVBKIF.cs new file mode 100644 index 0000000000..4ab0c93063 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/LVBKIF.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LVBKIF + { + [NativeTypeName("#define LVBKIF_SOURCE_NONE 0x00000000")] + public const int LVBKIF_SOURCE_NONE = 0x00000000; + + [NativeTypeName("#define LVBKIF_SOURCE_HBITMAP 0x00000001")] + public const int LVBKIF_SOURCE_HBITMAP = 0x00000001; + + [NativeTypeName("#define LVBKIF_SOURCE_URL 0x00000002")] + public const int LVBKIF_SOURCE_URL = 0x00000002; + + [NativeTypeName("#define LVBKIF_SOURCE_MASK 0x00000003")] + public const int LVBKIF_SOURCE_MASK = 0x00000003; + + [NativeTypeName("#define LVBKIF_STYLE_NORMAL 0x00000000")] + public const int LVBKIF_STYLE_NORMAL = 0x00000000; + + [NativeTypeName("#define LVBKIF_STYLE_TILE 0x00000010")] + public const int LVBKIF_STYLE_TILE = 0x00000010; + + [NativeTypeName("#define LVBKIF_STYLE_MASK 0x00000010")] + public const int LVBKIF_STYLE_MASK = 0x00000010; + + [NativeTypeName("#define LVBKIF_FLAG_TILEOFFSET 0x00000100")] + public const int LVBKIF_FLAG_TILEOFFSET = 0x00000100; + + [NativeTypeName("#define LVBKIF_TYPE_WATERMARK 0x10000000")] + public const int LVBKIF_TYPE_WATERMARK = 0x10000000; + + [NativeTypeName("#define LVBKIF_FLAG_ALPHABLEND 0x20000000")] + public const int LVBKIF_FLAG_ALPHABLEND = 0x20000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/LVCFMT.cs b/sources/Interop/Windows/Windows/um/CommCtrl/LVCFMT.cs new file mode 100644 index 0000000000..3e33d10501 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/LVCFMT.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LVCFMT + { + [NativeTypeName("#define LVCFMT_LEFT 0x0000")] + public const int LVCFMT_LEFT = 0x0000; + + [NativeTypeName("#define LVCFMT_RIGHT 0x0001")] + public const int LVCFMT_RIGHT = 0x0001; + + [NativeTypeName("#define LVCFMT_CENTER 0x0002")] + public const int LVCFMT_CENTER = 0x0002; + + [NativeTypeName("#define LVCFMT_JUSTIFYMASK 0x0003")] + public const int LVCFMT_JUSTIFYMASK = 0x0003; + + [NativeTypeName("#define LVCFMT_IMAGE 0x0800")] + public const int LVCFMT_IMAGE = 0x0800; + + [NativeTypeName("#define LVCFMT_BITMAP_ON_RIGHT 0x1000")] + public const int LVCFMT_BITMAP_ON_RIGHT = 0x1000; + + [NativeTypeName("#define LVCFMT_COL_HAS_IMAGES 0x8000")] + public const int LVCFMT_COL_HAS_IMAGES = 0x8000; + + [NativeTypeName("#define LVCFMT_FIXED_WIDTH 0x00100")] + public const int LVCFMT_FIXED_WIDTH = 0x00100; + + [NativeTypeName("#define LVCFMT_NO_DPI_SCALE 0x40000")] + public const int LVCFMT_NO_DPI_SCALE = 0x40000; + + [NativeTypeName("#define LVCFMT_FIXED_RATIO 0x80000")] + public const int LVCFMT_FIXED_RATIO = 0x80000; + + [NativeTypeName("#define LVCFMT_LINE_BREAK 0x100000")] + public const int LVCFMT_LINE_BREAK = 0x100000; + + [NativeTypeName("#define LVCFMT_FILL 0x200000")] + public const int LVCFMT_FILL = 0x200000; + + [NativeTypeName("#define LVCFMT_WRAP 0x400000")] + public const int LVCFMT_WRAP = 0x400000; + + [NativeTypeName("#define LVCFMT_NO_TITLE 0x800000")] + public const int LVCFMT_NO_TITLE = 0x800000; + + [NativeTypeName("#define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK | LVCFMT_FILL)")] + public const int LVCFMT_TILE_PLACEMENTMASK = (0x100000 | 0x200000); + + [NativeTypeName("#define LVCFMT_SPLITBUTTON 0x1000000")] + public const int LVCFMT_SPLITBUTTON = 0x1000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/LVGF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/LVGF.cs new file mode 100644 index 0000000000..433a336ef1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/LVGF.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LVGF + { + [NativeTypeName("#define LVGF_NONE 0x00000000")] + public const int LVGF_NONE = 0x00000000; + + [NativeTypeName("#define LVGF_HEADER 0x00000001")] + public const int LVGF_HEADER = 0x00000001; + + [NativeTypeName("#define LVGF_FOOTER 0x00000002")] + public const int LVGF_FOOTER = 0x00000002; + + [NativeTypeName("#define LVGF_STATE 0x00000004")] + public const int LVGF_STATE = 0x00000004; + + [NativeTypeName("#define LVGF_ALIGN 0x00000008")] + public const int LVGF_ALIGN = 0x00000008; + + [NativeTypeName("#define LVGF_GROUPID 0x00000010")] + public const int LVGF_GROUPID = 0x00000010; + + [NativeTypeName("#define LVGF_SUBTITLE 0x00000100")] + public const int LVGF_SUBTITLE = 0x00000100; + + [NativeTypeName("#define LVGF_TASK 0x00000200")] + public const int LVGF_TASK = 0x00000200; + + [NativeTypeName("#define LVGF_DESCRIPTIONTOP 0x00000400")] + public const int LVGF_DESCRIPTIONTOP = 0x00000400; + + [NativeTypeName("#define LVGF_DESCRIPTIONBOTTOM 0x00000800")] + public const int LVGF_DESCRIPTIONBOTTOM = 0x00000800; + + [NativeTypeName("#define LVGF_TITLEIMAGE 0x00001000")] + public const int LVGF_TITLEIMAGE = 0x00001000; + + [NativeTypeName("#define LVGF_EXTENDEDIMAGE 0x00002000")] + public const int LVGF_EXTENDEDIMAGE = 0x00002000; + + [NativeTypeName("#define LVGF_ITEMS 0x00004000")] + public const int LVGF_ITEMS = 0x00004000; + + [NativeTypeName("#define LVGF_SUBSET 0x00008000")] + public const int LVGF_SUBSET = 0x00008000; + + [NativeTypeName("#define LVGF_SUBSETITEMS 0x00010000")] + public const int LVGF_SUBSETITEMS = 0x00010000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/LVHT.cs b/sources/Interop/Windows/Windows/um/CommCtrl/LVHT.cs new file mode 100644 index 0000000000..934403c69a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/LVHT.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LVHT + { + [NativeTypeName("#define LVHT_NOWHERE 0x00000001")] + public const int LVHT_NOWHERE = 0x00000001; + + [NativeTypeName("#define LVHT_ONITEMICON 0x00000002")] + public const int LVHT_ONITEMICON = 0x00000002; + + [NativeTypeName("#define LVHT_ONITEMLABEL 0x00000004")] + public const int LVHT_ONITEMLABEL = 0x00000004; + + [NativeTypeName("#define LVHT_ONITEMSTATEICON 0x00000008")] + public const int LVHT_ONITEMSTATEICON = 0x00000008; + + [NativeTypeName("#define LVHT_ONITEM (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)")] + public const int LVHT_ONITEM = (0x00000002 | 0x00000004 | 0x00000008); + + [NativeTypeName("#define LVHT_ABOVE 0x00000008")] + public const int LVHT_ABOVE = 0x00000008; + + [NativeTypeName("#define LVHT_BELOW 0x00000010")] + public const int LVHT_BELOW = 0x00000010; + + [NativeTypeName("#define LVHT_TORIGHT 0x00000020")] + public const int LVHT_TORIGHT = 0x00000020; + + [NativeTypeName("#define LVHT_TOLEFT 0x00000040")] + public const int LVHT_TOLEFT = 0x00000040; + + [NativeTypeName("#define LVHT_EX_GROUP_HEADER 0x10000000")] + public const int LVHT_EX_GROUP_HEADER = 0x10000000; + + [NativeTypeName("#define LVHT_EX_GROUP_FOOTER 0x20000000")] + public const int LVHT_EX_GROUP_FOOTER = 0x20000000; + + [NativeTypeName("#define LVHT_EX_GROUP_COLLAPSE 0x40000000")] + public const int LVHT_EX_GROUP_COLLAPSE = 0x40000000; + + [NativeTypeName("#define LVHT_EX_GROUP_BACKGROUND 0x80000000")] + public const uint LVHT_EX_GROUP_BACKGROUND = 0x80000000; + + [NativeTypeName("#define LVHT_EX_GROUP_STATEICON 0x01000000")] + public const int LVHT_EX_GROUP_STATEICON = 0x01000000; + + [NativeTypeName("#define LVHT_EX_GROUP_SUBSETLINK 0x02000000")] + public const int LVHT_EX_GROUP_SUBSETLINK = 0x02000000; + + [NativeTypeName("#define LVHT_EX_GROUP (LVHT_EX_GROUP_BACKGROUND | LVHT_EX_GROUP_COLLAPSE | LVHT_EX_GROUP_FOOTER | LVHT_EX_GROUP_HEADER | LVHT_EX_GROUP_STATEICON | LVHT_EX_GROUP_SUBSETLINK)")] + public const uint LVHT_EX_GROUP = (0x80000000 | 0x40000000 | 0x20000000 | 0x10000000 | 0x01000000 | 0x02000000); + + [NativeTypeName("#define LVHT_EX_ONCONTENTS 0x04000000")] + public const int LVHT_EX_ONCONTENTS = 0x04000000; + + [NativeTypeName("#define LVHT_EX_FOOTER 0x08000000")] + public const int LVHT_EX_FOOTER = 0x08000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/LVIF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/LVIF.cs new file mode 100644 index 0000000000..175c1be40c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/LVIF.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LVIF + { + [NativeTypeName("#define LVIF_TEXT 0x00000001")] + public const int LVIF_TEXT = 0x00000001; + + [NativeTypeName("#define LVIF_IMAGE 0x00000002")] + public const int LVIF_IMAGE = 0x00000002; + + [NativeTypeName("#define LVIF_PARAM 0x00000004")] + public const int LVIF_PARAM = 0x00000004; + + [NativeTypeName("#define LVIF_STATE 0x00000008")] + public const int LVIF_STATE = 0x00000008; + + [NativeTypeName("#define LVIF_INDENT 0x00000010")] + public const int LVIF_INDENT = 0x00000010; + + [NativeTypeName("#define LVIF_NORECOMPUTE 0x00000800")] + public const int LVIF_NORECOMPUTE = 0x00000800; + + [NativeTypeName("#define LVIF_GROUPID 0x00000100")] + public const int LVIF_GROUPID = 0x00000100; + + [NativeTypeName("#define LVIF_COLUMNS 0x00000200")] + public const int LVIF_COLUMNS = 0x00000200; + + [NativeTypeName("#define LVIF_COLFMT 0x00010000")] + public const int LVIF_COLFMT = 0x00010000; + + [NativeTypeName("#define LVIF_DI_SETITEM 0x1000")] + public const int LVIF_DI_SETITEM = 0x1000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/LVN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/LVN.cs new file mode 100644 index 0000000000..b6162bfcfb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/LVN.cs @@ -0,0 +1,139 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LVN + { + [NativeTypeName("#define LVN_FIRST (0U-100U)")] + public const uint LVN_FIRST = unchecked(0U - 100U); + + [NativeTypeName("#define LVN_LAST (0U-199U)")] + public const uint LVN_LAST = unchecked(0U - 199U); + + [NativeTypeName("#define LVN_ITEMCHANGING (LVN_FIRST-0)")] + public const uint LVN_ITEMCHANGING = unchecked((0U - 100U) - 0); + + [NativeTypeName("#define LVN_ITEMCHANGED (LVN_FIRST-1)")] + public const uint LVN_ITEMCHANGED = unchecked((0U - 100U) - 1); + + [NativeTypeName("#define LVN_INSERTITEM (LVN_FIRST-2)")] + public const uint LVN_INSERTITEM = unchecked((0U - 100U) - 2); + + [NativeTypeName("#define LVN_DELETEITEM (LVN_FIRST-3)")] + public const uint LVN_DELETEITEM = unchecked((0U - 100U) - 3); + + [NativeTypeName("#define LVN_DELETEALLITEMS (LVN_FIRST-4)")] + public const uint LVN_DELETEALLITEMS = unchecked((0U - 100U) - 4); + + [NativeTypeName("#define LVN_BEGINLABELEDITA (LVN_FIRST-5)")] + public const uint LVN_BEGINLABELEDITA = unchecked((0U - 100U) - 5); + + [NativeTypeName("#define LVN_BEGINLABELEDITW (LVN_FIRST-75)")] + public const uint LVN_BEGINLABELEDITW = unchecked((0U - 100U) - 75); + + [NativeTypeName("#define LVN_ENDLABELEDITA (LVN_FIRST-6)")] + public const uint LVN_ENDLABELEDITA = unchecked((0U - 100U) - 6); + + [NativeTypeName("#define LVN_ENDLABELEDITW (LVN_FIRST-76)")] + public const uint LVN_ENDLABELEDITW = unchecked((0U - 100U) - 76); + + [NativeTypeName("#define LVN_COLUMNCLICK (LVN_FIRST-8)")] + public const uint LVN_COLUMNCLICK = unchecked((0U - 100U) - 8); + + [NativeTypeName("#define LVN_BEGINDRAG (LVN_FIRST-9)")] + public const uint LVN_BEGINDRAG = unchecked((0U - 100U) - 9); + + [NativeTypeName("#define LVN_BEGINRDRAG (LVN_FIRST-11)")] + public const uint LVN_BEGINRDRAG = unchecked((0U - 100U) - 11); + + [NativeTypeName("#define LVN_ODCACHEHINT (LVN_FIRST-13)")] + public const uint LVN_ODCACHEHINT = unchecked((0U - 100U) - 13); + + [NativeTypeName("#define LVN_ODFINDITEMA (LVN_FIRST-52)")] + public const uint LVN_ODFINDITEMA = unchecked((0U - 100U) - 52); + + [NativeTypeName("#define LVN_ODFINDITEMW (LVN_FIRST-79)")] + public const uint LVN_ODFINDITEMW = unchecked((0U - 100U) - 79); + + [NativeTypeName("#define LVN_ITEMACTIVATE (LVN_FIRST-14)")] + public const uint LVN_ITEMACTIVATE = unchecked((0U - 100U) - 14); + + [NativeTypeName("#define LVN_ODSTATECHANGED (LVN_FIRST-15)")] + public const uint LVN_ODSTATECHANGED = unchecked((0U - 100U) - 15); + + [NativeTypeName("#define LVN_ODFINDITEM LVN_ODFINDITEMW")] + public const uint LVN_ODFINDITEM = unchecked((0U - 100U) - 79); + + [NativeTypeName("#define LVN_HOTTRACK (LVN_FIRST-21)")] + public const uint LVN_HOTTRACK = unchecked((0U - 100U) - 21); + + [NativeTypeName("#define LVN_GETDISPINFOA (LVN_FIRST-50)")] + public const uint LVN_GETDISPINFOA = unchecked((0U - 100U) - 50); + + [NativeTypeName("#define LVN_GETDISPINFOW (LVN_FIRST-77)")] + public const uint LVN_GETDISPINFOW = unchecked((0U - 100U) - 77); + + [NativeTypeName("#define LVN_SETDISPINFOA (LVN_FIRST-51)")] + public const uint LVN_SETDISPINFOA = unchecked((0U - 100U) - 51); + + [NativeTypeName("#define LVN_SETDISPINFOW (LVN_FIRST-78)")] + public const uint LVN_SETDISPINFOW = unchecked((0U - 100U) - 78); + + [NativeTypeName("#define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITW")] + public const uint LVN_BEGINLABELEDIT = unchecked((0U - 100U) - 75); + + [NativeTypeName("#define LVN_ENDLABELEDIT LVN_ENDLABELEDITW")] + public const uint LVN_ENDLABELEDIT = unchecked((0U - 100U) - 76); + + [NativeTypeName("#define LVN_GETDISPINFO LVN_GETDISPINFOW")] + public const uint LVN_GETDISPINFO = unchecked((0U - 100U) - 77); + + [NativeTypeName("#define LVN_SETDISPINFO LVN_SETDISPINFOW")] + public const uint LVN_SETDISPINFO = unchecked((0U - 100U) - 78); + + [NativeTypeName("#define LVN_KEYDOWN (LVN_FIRST-55)")] + public const uint LVN_KEYDOWN = unchecked((0U - 100U) - 55); + + [NativeTypeName("#define LVN_MARQUEEBEGIN (LVN_FIRST-56)")] + public const uint LVN_MARQUEEBEGIN = unchecked((0U - 100U) - 56); + + [NativeTypeName("#define LVN_GETINFOTIPA (LVN_FIRST-57)")] + public const uint LVN_GETINFOTIPA = unchecked((0U - 100U) - 57); + + [NativeTypeName("#define LVN_GETINFOTIPW (LVN_FIRST-58)")] + public const uint LVN_GETINFOTIPW = unchecked((0U - 100U) - 58); + + [NativeTypeName("#define LVN_GETINFOTIP LVN_GETINFOTIPW")] + public const uint LVN_GETINFOTIP = unchecked((0U - 100U) - 58); + + [NativeTypeName("#define LVN_INCREMENTALSEARCHA (LVN_FIRST-62)")] + public const uint LVN_INCREMENTALSEARCHA = unchecked((0U - 100U) - 62); + + [NativeTypeName("#define LVN_INCREMENTALSEARCHW (LVN_FIRST-63)")] + public const uint LVN_INCREMENTALSEARCHW = unchecked((0U - 100U) - 63); + + [NativeTypeName("#define LVN_INCREMENTALSEARCH LVN_INCREMENTALSEARCHW")] + public const uint LVN_INCREMENTALSEARCH = unchecked((0U - 100U) - 63); + + [NativeTypeName("#define LVN_COLUMNDROPDOWN (LVN_FIRST-64)")] + public const uint LVN_COLUMNDROPDOWN = unchecked((0U - 100U) - 64); + + [NativeTypeName("#define LVN_COLUMNOVERFLOWCLICK (LVN_FIRST-66)")] + public const uint LVN_COLUMNOVERFLOWCLICK = unchecked((0U - 100U) - 66); + + [NativeTypeName("#define LVN_BEGINSCROLL (LVN_FIRST-80)")] + public const uint LVN_BEGINSCROLL = unchecked((0U - 100U) - 80); + + [NativeTypeName("#define LVN_ENDSCROLL (LVN_FIRST-81)")] + public const uint LVN_ENDSCROLL = unchecked((0U - 100U) - 81); + + [NativeTypeName("#define LVN_LINKCLICK (LVN_FIRST-84)")] + public const uint LVN_LINKCLICK = unchecked((0U - 100U) - 84); + + [NativeTypeName("#define LVN_GETEMPTYMARKUP (LVN_FIRST-87)")] + public const uint LVN_GETEMPTYMARKUP = unchecked((0U - 100U) - 87); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/LVNI.cs b/sources/Interop/Windows/Windows/um/CommCtrl/LVNI.cs new file mode 100644 index 0000000000..f32da19d3e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/LVNI.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LVNI + { + [NativeTypeName("#define LVNI_ALL 0x0000")] + public const int LVNI_ALL = 0x0000; + + [NativeTypeName("#define LVNI_FOCUSED 0x0001")] + public const int LVNI_FOCUSED = 0x0001; + + [NativeTypeName("#define LVNI_SELECTED 0x0002")] + public const int LVNI_SELECTED = 0x0002; + + [NativeTypeName("#define LVNI_CUT 0x0004")] + public const int LVNI_CUT = 0x0004; + + [NativeTypeName("#define LVNI_DROPHILITED 0x0008")] + public const int LVNI_DROPHILITED = 0x0008; + + [NativeTypeName("#define LVNI_STATEMASK (LVNI_FOCUSED | LVNI_SELECTED | LVNI_CUT | LVNI_DROPHILITED)")] + public const int LVNI_STATEMASK = (0x0001 | 0x0002 | 0x0004 | 0x0008); + + [NativeTypeName("#define LVNI_VISIBLEORDER 0x0010")] + public const int LVNI_VISIBLEORDER = 0x0010; + + [NativeTypeName("#define LVNI_PREVIOUS 0x0020")] + public const int LVNI_PREVIOUS = 0x0020; + + [NativeTypeName("#define LVNI_VISIBLEONLY 0x0040")] + public const int LVNI_VISIBLEONLY = 0x0040; + + [NativeTypeName("#define LVNI_SAMEGROUPONLY 0x0080")] + public const int LVNI_SAMEGROUPONLY = 0x0080; + + [NativeTypeName("#define LVNI_ABOVE 0x0100")] + public const int LVNI_ABOVE = 0x0100; + + [NativeTypeName("#define LVNI_BELOW 0x0200")] + public const int LVNI_BELOW = 0x0200; + + [NativeTypeName("#define LVNI_TOLEFT 0x0400")] + public const int LVNI_TOLEFT = 0x0400; + + [NativeTypeName("#define LVNI_TORIGHT 0x0800")] + public const int LVNI_TORIGHT = 0x0800; + + [NativeTypeName("#define LVNI_DIRECTIONMASK (LVNI_ABOVE | LVNI_BELOW | LVNI_TOLEFT | LVNI_TORIGHT)")] + public const int LVNI_DIRECTIONMASK = (0x0100 | 0x0200 | 0x0400 | 0x0800); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/MCHT.cs b/sources/Interop/Windows/Windows/um/CommCtrl/MCHT.cs new file mode 100644 index 0000000000..cccf994533 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/MCHT.cs @@ -0,0 +1,70 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MCHT + { + [NativeTypeName("#define MCHT_TITLE 0x00010000")] + public const int MCHT_TITLE = 0x00010000; + + [NativeTypeName("#define MCHT_CALENDAR 0x00020000")] + public const int MCHT_CALENDAR = 0x00020000; + + [NativeTypeName("#define MCHT_TODAYLINK 0x00030000")] + public const int MCHT_TODAYLINK = 0x00030000; + + [NativeTypeName("#define MCHT_CALENDARCONTROL 0x00100000")] + public const int MCHT_CALENDARCONTROL = 0x00100000; + + [NativeTypeName("#define MCHT_NEXT 0x01000000")] + public const int MCHT_NEXT = 0x01000000; + + [NativeTypeName("#define MCHT_PREV 0x02000000")] + public const int MCHT_PREV = 0x02000000; + + [NativeTypeName("#define MCHT_NOWHERE 0x00000000")] + public const int MCHT_NOWHERE = 0x00000000; + + [NativeTypeName("#define MCHT_TITLEBK (MCHT_TITLE)")] + public const int MCHT_TITLEBK = (0x00010000); + + [NativeTypeName("#define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)")] + public const int MCHT_TITLEMONTH = (0x00010000 | 0x0001); + + [NativeTypeName("#define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)")] + public const int MCHT_TITLEYEAR = (0x00010000 | 0x0002); + + [NativeTypeName("#define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)")] + public const int MCHT_TITLEBTNNEXT = (0x00010000 | 0x01000000 | 0x0003); + + [NativeTypeName("#define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)")] + public const int MCHT_TITLEBTNPREV = (0x00010000 | 0x02000000 | 0x0003); + + [NativeTypeName("#define MCHT_CALENDARBK (MCHT_CALENDAR)")] + public const int MCHT_CALENDARBK = (0x00020000); + + [NativeTypeName("#define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)")] + public const int MCHT_CALENDARDATE = (0x00020000 | 0x0001); + + [NativeTypeName("#define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)")] + public const int MCHT_CALENDARDATENEXT = ((0x00020000 | 0x0001) | 0x01000000); + + [NativeTypeName("#define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)")] + public const int MCHT_CALENDARDATEPREV = ((0x00020000 | 0x0001) | 0x02000000); + + [NativeTypeName("#define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)")] + public const int MCHT_CALENDARDAY = (0x00020000 | 0x0002); + + [NativeTypeName("#define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)")] + public const int MCHT_CALENDARWEEKNUM = (0x00020000 | 0x0003); + + [NativeTypeName("#define MCHT_CALENDARDATEMIN (MCHT_CALENDAR | 0x0004)")] + public const int MCHT_CALENDARDATEMIN = (0x00020000 | 0x0004); + + [NativeTypeName("#define MCHT_CALENDARDATEMAX (MCHT_CALENDAR | 0x0005)")] + public const int MCHT_CALENDARDATEMAX = (0x00020000 | 0x0005); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/MCM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/MCM.cs new file mode 100644 index 0000000000..ec1e3856c5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/MCM.cs @@ -0,0 +1,109 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MCM + { + [NativeTypeName("#define MCM_FIRST 0x1000")] + public const int MCM_FIRST = 0x1000; + + [NativeTypeName("#define MCM_GETCURSEL (MCM_FIRST + 1)")] + public const int MCM_GETCURSEL = (0x1000 + 1); + + [NativeTypeName("#define MCM_SETCURSEL (MCM_FIRST + 2)")] + public const int MCM_SETCURSEL = (0x1000 + 2); + + [NativeTypeName("#define MCM_GETMAXSELCOUNT (MCM_FIRST + 3)")] + public const int MCM_GETMAXSELCOUNT = (0x1000 + 3); + + [NativeTypeName("#define MCM_SETMAXSELCOUNT (MCM_FIRST + 4)")] + public const int MCM_SETMAXSELCOUNT = (0x1000 + 4); + + [NativeTypeName("#define MCM_GETSELRANGE (MCM_FIRST + 5)")] + public const int MCM_GETSELRANGE = (0x1000 + 5); + + [NativeTypeName("#define MCM_SETSELRANGE (MCM_FIRST + 6)")] + public const int MCM_SETSELRANGE = (0x1000 + 6); + + [NativeTypeName("#define MCM_GETMONTHRANGE (MCM_FIRST + 7)")] + public const int MCM_GETMONTHRANGE = (0x1000 + 7); + + [NativeTypeName("#define MCM_SETDAYSTATE (MCM_FIRST + 8)")] + public const int MCM_SETDAYSTATE = (0x1000 + 8); + + [NativeTypeName("#define MCM_GETMINREQRECT (MCM_FIRST + 9)")] + public const int MCM_GETMINREQRECT = (0x1000 + 9); + + [NativeTypeName("#define MCM_SETCOLOR (MCM_FIRST + 10)")] + public const int MCM_SETCOLOR = (0x1000 + 10); + + [NativeTypeName("#define MCM_GETCOLOR (MCM_FIRST + 11)")] + public const int MCM_GETCOLOR = (0x1000 + 11); + + [NativeTypeName("#define MCM_SETTODAY (MCM_FIRST + 12)")] + public const int MCM_SETTODAY = (0x1000 + 12); + + [NativeTypeName("#define MCM_GETTODAY (MCM_FIRST + 13)")] + public const int MCM_GETTODAY = (0x1000 + 13); + + [NativeTypeName("#define MCM_HITTEST (MCM_FIRST + 14)")] + public const int MCM_HITTEST = (0x1000 + 14); + + [NativeTypeName("#define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)")] + public const int MCM_SETFIRSTDAYOFWEEK = (0x1000 + 15); + + [NativeTypeName("#define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)")] + public const int MCM_GETFIRSTDAYOFWEEK = (0x1000 + 16); + + [NativeTypeName("#define MCM_GETRANGE (MCM_FIRST + 17)")] + public const int MCM_GETRANGE = (0x1000 + 17); + + [NativeTypeName("#define MCM_SETRANGE (MCM_FIRST + 18)")] + public const int MCM_SETRANGE = (0x1000 + 18); + + [NativeTypeName("#define MCM_GETMONTHDELTA (MCM_FIRST + 19)")] + public const int MCM_GETMONTHDELTA = (0x1000 + 19); + + [NativeTypeName("#define MCM_SETMONTHDELTA (MCM_FIRST + 20)")] + public const int MCM_SETMONTHDELTA = (0x1000 + 20); + + [NativeTypeName("#define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)")] + public const int MCM_GETMAXTODAYWIDTH = (0x1000 + 21); + + [NativeTypeName("#define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] + public const int MCM_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] + public const int MCM_GETUNICODEFORMAT = (0x2000 + 6); + + [NativeTypeName("#define MCM_GETCURRENTVIEW (MCM_FIRST + 22)")] + public const int MCM_GETCURRENTVIEW = (0x1000 + 22); + + [NativeTypeName("#define MCM_GETCALENDARCOUNT (MCM_FIRST + 23)")] + public const int MCM_GETCALENDARCOUNT = (0x1000 + 23); + + [NativeTypeName("#define MCM_GETCALENDARGRIDINFO (MCM_FIRST + 24)")] + public const int MCM_GETCALENDARGRIDINFO = (0x1000 + 24); + + [NativeTypeName("#define MCM_GETCALID (MCM_FIRST + 27)")] + public const int MCM_GETCALID = (0x1000 + 27); + + [NativeTypeName("#define MCM_SETCALID (MCM_FIRST + 28)")] + public const int MCM_SETCALID = (0x1000 + 28); + + [NativeTypeName("#define MCM_SIZERECTTOMIN (MCM_FIRST + 29)")] + public const int MCM_SIZERECTTOMIN = (0x1000 + 29); + + [NativeTypeName("#define MCM_SETCALENDARBORDER (MCM_FIRST + 30)")] + public const int MCM_SETCALENDARBORDER = (0x1000 + 30); + + [NativeTypeName("#define MCM_GETCALENDARBORDER (MCM_FIRST + 31)")] + public const int MCM_GETCALENDARBORDER = (0x1000 + 31); + + [NativeTypeName("#define MCM_SETCURRENTVIEW (MCM_FIRST + 32)")] + public const int MCM_SETCURRENTVIEW = (0x1000 + 32); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/MSGF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/MSGF.cs new file mode 100644 index 0000000000..5187bdf1ea --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/MSGF.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MSGF + { + [NativeTypeName("#define MSGF_COMMCTRL_BEGINDRAG 0x4200")] + public const int MSGF_COMMCTRL_BEGINDRAG = 0x4200; + + [NativeTypeName("#define MSGF_COMMCTRL_SIZEHEADER 0x4201")] + public const int MSGF_COMMCTRL_SIZEHEADER = 0x4201; + + [NativeTypeName("#define MSGF_COMMCTRL_DRAGSELECT 0x4202")] + public const int MSGF_COMMCTRL_DRAGSELECT = 0x4202; + + [NativeTypeName("#define MSGF_COMMCTRL_TOOLBARCUST 0x4203")] + public const int MSGF_COMMCTRL_TOOLBARCUST = 0x4203; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/NM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/NM.cs new file mode 100644 index 0000000000..c28940497e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/NM.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NM + { + [NativeTypeName("#define NM_OUTOFMEMORY (NM_FIRST-1)")] + public const uint NM_OUTOFMEMORY = unchecked((0U - 0U) - 1); + + [NativeTypeName("#define NM_CLICK (NM_FIRST-2)")] + public const uint NM_CLICK = unchecked((0U - 0U) - 2); + + [NativeTypeName("#define NM_DBLCLK (NM_FIRST-3)")] + public const uint NM_DBLCLK = unchecked((0U - 0U) - 3); + + [NativeTypeName("#define NM_RETURN (NM_FIRST-4)")] + public const uint NM_RETURN = unchecked((0U - 0U) - 4); + + [NativeTypeName("#define NM_RCLICK (NM_FIRST-5)")] + public const uint NM_RCLICK = unchecked((0U - 0U) - 5); + + [NativeTypeName("#define NM_RDBLCLK (NM_FIRST-6)")] + public const uint NM_RDBLCLK = unchecked((0U - 0U) - 6); + + [NativeTypeName("#define NM_SETFOCUS (NM_FIRST-7)")] + public const uint NM_SETFOCUS = unchecked((0U - 0U) - 7); + + [NativeTypeName("#define NM_KILLFOCUS (NM_FIRST-8)")] + public const uint NM_KILLFOCUS = unchecked((0U - 0U) - 8); + + [NativeTypeName("#define NM_CUSTOMDRAW (NM_FIRST-12)")] + public const uint NM_CUSTOMDRAW = unchecked((0U - 0U) - 12); + + [NativeTypeName("#define NM_HOVER (NM_FIRST-13)")] + public const uint NM_HOVER = unchecked((0U - 0U) - 13); + + [NativeTypeName("#define NM_NCHITTEST (NM_FIRST-14)")] + public const uint NM_NCHITTEST = unchecked((0U - 0U) - 14); + + [NativeTypeName("#define NM_KEYDOWN (NM_FIRST-15)")] + public const uint NM_KEYDOWN = unchecked((0U - 0U) - 15); + + [NativeTypeName("#define NM_RELEASEDCAPTURE (NM_FIRST-16)")] + public const uint NM_RELEASEDCAPTURE = unchecked((0U - 0U) - 16); + + [NativeTypeName("#define NM_SETCURSOR (NM_FIRST-17)")] + public const uint NM_SETCURSOR = unchecked((0U - 0U) - 17); + + [NativeTypeName("#define NM_CHAR (NM_FIRST-18)")] + public const uint NM_CHAR = unchecked((0U - 0U) - 18); + + [NativeTypeName("#define NM_TOOLTIPSCREATED (NM_FIRST-19)")] + public const uint NM_TOOLTIPSCREATED = unchecked((0U - 0U) - 19); + + [NativeTypeName("#define NM_LDOWN (NM_FIRST-20)")] + public const uint NM_LDOWN = unchecked((0U - 0U) - 20); + + [NativeTypeName("#define NM_RDOWN (NM_FIRST-21)")] + public const uint NM_RDOWN = unchecked((0U - 0U) - 21); + + [NativeTypeName("#define NM_THEMECHANGED (NM_FIRST-22)")] + public const uint NM_THEMECHANGED = unchecked((0U - 0U) - 22); + + [NativeTypeName("#define NM_FONTCHANGED (NM_FIRST-23)")] + public const uint NM_FONTCHANGED = unchecked((0U - 0U) - 23); + + [NativeTypeName("#define NM_CUSTOMTEXT (NM_FIRST-24)")] + public const uint NM_CUSTOMTEXT = unchecked((0U - 0U) - 24); + + [NativeTypeName("#define NM_TVSTATEIMAGECHANGING (NM_FIRST-24)")] + public const uint NM_TVSTATEIMAGECHANGING = unchecked((0U - 0U) - 24); + + [NativeTypeName("#define NM_FIRST (0U- 0U)")] + public const uint NM_FIRST = (0U - 0U); + + [NativeTypeName("#define NM_LAST (0U- 99U)")] + public const uint NM_LAST = unchecked(0U - 99U); + + [NativeTypeName("#define NM_GETCUSTOMSPLITRECT (BCN_FIRST + 0x0003)")] + public const uint NM_GETCUSTOMSPLITRECT = unchecked((0U - 1250U) + 0x0003); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/PBM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/PBM.cs new file mode 100644 index 0000000000..8c06c90ab6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/PBM.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PBM + { + [NativeTypeName("#define PBM_SETRANGE (WM_USER+1)")] + public const int PBM_SETRANGE = (0x0400 + 1); + + [NativeTypeName("#define PBM_SETPOS (WM_USER+2)")] + public const int PBM_SETPOS = (0x0400 + 2); + + [NativeTypeName("#define PBM_DELTAPOS (WM_USER+3)")] + public const int PBM_DELTAPOS = (0x0400 + 3); + + [NativeTypeName("#define PBM_SETSTEP (WM_USER+4)")] + public const int PBM_SETSTEP = (0x0400 + 4); + + [NativeTypeName("#define PBM_STEPIT (WM_USER+5)")] + public const int PBM_STEPIT = (0x0400 + 5); + + [NativeTypeName("#define PBM_SETRANGE32 (WM_USER+6)")] + public const int PBM_SETRANGE32 = (0x0400 + 6); + + [NativeTypeName("#define PBM_GETRANGE (WM_USER+7)")] + public const int PBM_GETRANGE = (0x0400 + 7); + + [NativeTypeName("#define PBM_GETPOS (WM_USER+8)")] + public const int PBM_GETPOS = (0x0400 + 8); + + [NativeTypeName("#define PBM_SETBARCOLOR (WM_USER+9)")] + public const int PBM_SETBARCOLOR = (0x0400 + 9); + + [NativeTypeName("#define PBM_SETBKCOLOR CCM_SETBKCOLOR")] + public const int PBM_SETBKCOLOR = (0x2000 + 1); + + [NativeTypeName("#define PBM_SETMARQUEE (WM_USER+10)")] + public const int PBM_SETMARQUEE = (0x0400 + 10); + + [NativeTypeName("#define PBM_GETSTEP (WM_USER+13)")] + public const int PBM_GETSTEP = (0x0400 + 13); + + [NativeTypeName("#define PBM_GETBKCOLOR (WM_USER+14)")] + public const int PBM_GETBKCOLOR = (0x0400 + 14); + + [NativeTypeName("#define PBM_GETBARCOLOR (WM_USER+15)")] + public const int PBM_GETBARCOLOR = (0x0400 + 15); + + [NativeTypeName("#define PBM_SETSTATE (WM_USER+16)")] + public const int PBM_SETSTATE = (0x0400 + 16); + + [NativeTypeName("#define PBM_GETSTATE (WM_USER+17)")] + public const int PBM_GETSTATE = (0x0400 + 17); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/PGF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/PGF.cs new file mode 100644 index 0000000000..cc2c0f8a96 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/PGF.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PGF + { + [NativeTypeName("#define PGF_INVISIBLE 0")] + public const int PGF_INVISIBLE = 0; + + [NativeTypeName("#define PGF_NORMAL 1")] + public const int PGF_NORMAL = 1; + + [NativeTypeName("#define PGF_GRAYED 2")] + public const int PGF_GRAYED = 2; + + [NativeTypeName("#define PGF_DEPRESSED 4")] + public const int PGF_DEPRESSED = 4; + + [NativeTypeName("#define PGF_HOT 8")] + public const int PGF_HOT = 8; + + [NativeTypeName("#define PGF_SCROLLUP 1")] + public const int PGF_SCROLLUP = 1; + + [NativeTypeName("#define PGF_SCROLLDOWN 2")] + public const int PGF_SCROLLDOWN = 2; + + [NativeTypeName("#define PGF_SCROLLLEFT 4")] + public const int PGF_SCROLLLEFT = 4; + + [NativeTypeName("#define PGF_SCROLLRIGHT 8")] + public const int PGF_SCROLLRIGHT = 8; + + [NativeTypeName("#define PGF_CALCWIDTH 1")] + public const int PGF_CALCWIDTH = 1; + + [NativeTypeName("#define PGF_CALCHEIGHT 2")] + public const int PGF_CALCHEIGHT = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/PGM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/PGM.cs new file mode 100644 index 0000000000..53f3279281 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/PGM.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PGM + { + [NativeTypeName("#define PGM_FIRST 0x1400")] + public const int PGM_FIRST = 0x1400; + + [NativeTypeName("#define PGM_SETCHILD (PGM_FIRST + 1)")] + public const int PGM_SETCHILD = (0x1400 + 1); + + [NativeTypeName("#define PGM_RECALCSIZE (PGM_FIRST + 2)")] + public const int PGM_RECALCSIZE = (0x1400 + 2); + + [NativeTypeName("#define PGM_FORWARDMOUSE (PGM_FIRST + 3)")] + public const int PGM_FORWARDMOUSE = (0x1400 + 3); + + [NativeTypeName("#define PGM_SETBKCOLOR (PGM_FIRST + 4)")] + public const int PGM_SETBKCOLOR = (0x1400 + 4); + + [NativeTypeName("#define PGM_GETBKCOLOR (PGM_FIRST + 5)")] + public const int PGM_GETBKCOLOR = (0x1400 + 5); + + [NativeTypeName("#define PGM_SETBORDER (PGM_FIRST + 6)")] + public const int PGM_SETBORDER = (0x1400 + 6); + + [NativeTypeName("#define PGM_GETBORDER (PGM_FIRST + 7)")] + public const int PGM_GETBORDER = (0x1400 + 7); + + [NativeTypeName("#define PGM_SETPOS (PGM_FIRST + 8)")] + public const int PGM_SETPOS = (0x1400 + 8); + + [NativeTypeName("#define PGM_GETPOS (PGM_FIRST + 9)")] + public const int PGM_GETPOS = (0x1400 + 9); + + [NativeTypeName("#define PGM_SETBUTTONSIZE (PGM_FIRST + 10)")] + public const int PGM_SETBUTTONSIZE = (0x1400 + 10); + + [NativeTypeName("#define PGM_GETBUTTONSIZE (PGM_FIRST + 11)")] + public const int PGM_GETBUTTONSIZE = (0x1400 + 11); + + [NativeTypeName("#define PGM_GETBUTTONSTATE (PGM_FIRST + 12)")] + public const int PGM_GETBUTTONSTATE = (0x1400 + 12); + + [NativeTypeName("#define PGM_GETDROPTARGET CCM_GETDROPTARGET")] + public const int PGM_GETDROPTARGET = (0x2000 + 4); + + [NativeTypeName("#define PGM_SETSCROLLINFO (PGM_FIRST + 13)")] + public const int PGM_SETSCROLLINFO = (0x1400 + 13); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/RB.cs b/sources/Interop/Windows/Windows/um/CommCtrl/RB.cs new file mode 100644 index 0000000000..f9ba408b74 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/RB.cs @@ -0,0 +1,154 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RB + { + [NativeTypeName("#define RB_INSERTBANDA (WM_USER + 1)")] + public const int RB_INSERTBANDA = (0x0400 + 1); + + [NativeTypeName("#define RB_DELETEBAND (WM_USER + 2)")] + public const int RB_DELETEBAND = (0x0400 + 2); + + [NativeTypeName("#define RB_GETBARINFO (WM_USER + 3)")] + public const int RB_GETBARINFO = (0x0400 + 3); + + [NativeTypeName("#define RB_SETBARINFO (WM_USER + 4)")] + public const int RB_SETBARINFO = (0x0400 + 4); + + [NativeTypeName("#define RB_SETBANDINFOA (WM_USER + 6)")] + public const int RB_SETBANDINFOA = (0x0400 + 6); + + [NativeTypeName("#define RB_SETPARENT (WM_USER + 7)")] + public const int RB_SETPARENT = (0x0400 + 7); + + [NativeTypeName("#define RB_HITTEST (WM_USER + 8)")] + public const int RB_HITTEST = (0x0400 + 8); + + [NativeTypeName("#define RB_GETRECT (WM_USER + 9)")] + public const int RB_GETRECT = (0x0400 + 9); + + [NativeTypeName("#define RB_INSERTBANDW (WM_USER + 10)")] + public const int RB_INSERTBANDW = (0x0400 + 10); + + [NativeTypeName("#define RB_SETBANDINFOW (WM_USER + 11)")] + public const int RB_SETBANDINFOW = (0x0400 + 11); + + [NativeTypeName("#define RB_GETBANDCOUNT (WM_USER + 12)")] + public const int RB_GETBANDCOUNT = (0x0400 + 12); + + [NativeTypeName("#define RB_GETROWCOUNT (WM_USER + 13)")] + public const int RB_GETROWCOUNT = (0x0400 + 13); + + [NativeTypeName("#define RB_GETROWHEIGHT (WM_USER + 14)")] + public const int RB_GETROWHEIGHT = (0x0400 + 14); + + [NativeTypeName("#define RB_IDTOINDEX (WM_USER + 16)")] + public const int RB_IDTOINDEX = (0x0400 + 16); + + [NativeTypeName("#define RB_GETTOOLTIPS (WM_USER + 17)")] + public const int RB_GETTOOLTIPS = (0x0400 + 17); + + [NativeTypeName("#define RB_SETTOOLTIPS (WM_USER + 18)")] + public const int RB_SETTOOLTIPS = (0x0400 + 18); + + [NativeTypeName("#define RB_SETBKCOLOR (WM_USER + 19)")] + public const int RB_SETBKCOLOR = (0x0400 + 19); + + [NativeTypeName("#define RB_GETBKCOLOR (WM_USER + 20)")] + public const int RB_GETBKCOLOR = (0x0400 + 20); + + [NativeTypeName("#define RB_SETTEXTCOLOR (WM_USER + 21)")] + public const int RB_SETTEXTCOLOR = (0x0400 + 21); + + [NativeTypeName("#define RB_GETTEXTCOLOR (WM_USER + 22)")] + public const int RB_GETTEXTCOLOR = (0x0400 + 22); + + [NativeTypeName("#define RB_SIZETORECT (WM_USER + 23)")] + public const int RB_SIZETORECT = (0x0400 + 23); + + [NativeTypeName("#define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME")] + public const int RB_SETCOLORSCHEME = (0x2000 + 2); + + [NativeTypeName("#define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME")] + public const int RB_GETCOLORSCHEME = (0x2000 + 3); + + [NativeTypeName("#define RB_INSERTBAND RB_INSERTBANDW")] + public const int RB_INSERTBAND = (0x0400 + 10); + + [NativeTypeName("#define RB_SETBANDINFO RB_SETBANDINFOW")] + public const int RB_SETBANDINFO = (0x0400 + 11); + + [NativeTypeName("#define RB_BEGINDRAG (WM_USER + 24)")] + public const int RB_BEGINDRAG = (0x0400 + 24); + + [NativeTypeName("#define RB_ENDDRAG (WM_USER + 25)")] + public const int RB_ENDDRAG = (0x0400 + 25); + + [NativeTypeName("#define RB_DRAGMOVE (WM_USER + 26)")] + public const int RB_DRAGMOVE = (0x0400 + 26); + + [NativeTypeName("#define RB_GETBARHEIGHT (WM_USER + 27)")] + public const int RB_GETBARHEIGHT = (0x0400 + 27); + + [NativeTypeName("#define RB_GETBANDINFOW (WM_USER + 28)")] + public const int RB_GETBANDINFOW = (0x0400 + 28); + + [NativeTypeName("#define RB_GETBANDINFOA (WM_USER + 29)")] + public const int RB_GETBANDINFOA = (0x0400 + 29); + + [NativeTypeName("#define RB_GETBANDINFO RB_GETBANDINFOW")] + public const int RB_GETBANDINFO = (0x0400 + 28); + + [NativeTypeName("#define RB_MINIMIZEBAND (WM_USER + 30)")] + public const int RB_MINIMIZEBAND = (0x0400 + 30); + + [NativeTypeName("#define RB_MAXIMIZEBAND (WM_USER + 31)")] + public const int RB_MAXIMIZEBAND = (0x0400 + 31); + + [NativeTypeName("#define RB_GETDROPTARGET (CCM_GETDROPTARGET)")] + public const int RB_GETDROPTARGET = ((0x2000 + 4)); + + [NativeTypeName("#define RB_GETBANDBORDERS (WM_USER + 34)")] + public const int RB_GETBANDBORDERS = (0x0400 + 34); + + [NativeTypeName("#define RB_SHOWBAND (WM_USER + 35)")] + public const int RB_SHOWBAND = (0x0400 + 35); + + [NativeTypeName("#define RB_SETPALETTE (WM_USER + 37)")] + public const int RB_SETPALETTE = (0x0400 + 37); + + [NativeTypeName("#define RB_GETPALETTE (WM_USER + 38)")] + public const int RB_GETPALETTE = (0x0400 + 38); + + [NativeTypeName("#define RB_MOVEBAND (WM_USER + 39)")] + public const int RB_MOVEBAND = (0x0400 + 39); + + [NativeTypeName("#define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] + public const int RB_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] + public const int RB_GETUNICODEFORMAT = (0x2000 + 6); + + [NativeTypeName("#define RB_GETBANDMARGINS (WM_USER + 40)")] + public const int RB_GETBANDMARGINS = (0x0400 + 40); + + [NativeTypeName("#define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME")] + public const int RB_SETWINDOWTHEME = (0x2000 + 0xb); + + [NativeTypeName("#define RB_SETEXTENDEDSTYLE (WM_USER + 41)")] + public const int RB_SETEXTENDEDSTYLE = (0x0400 + 41); + + [NativeTypeName("#define RB_GETEXTENDEDSTYLE (WM_USER + 42)")] + public const int RB_GETEXTENDEDSTYLE = (0x0400 + 42); + + [NativeTypeName("#define RB_PUSHCHEVRON (WM_USER + 43)")] + public const int RB_PUSHCHEVRON = (0x0400 + 43); + + [NativeTypeName("#define RB_SETBANDWIDTH (WM_USER + 44)")] + public const int RB_SETBANDWIDTH = (0x0400 + 44); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/RBBIM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/RBBIM.cs new file mode 100644 index 0000000000..f237b6a863 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/RBBIM.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RBBIM + { + [NativeTypeName("#define RBBIM_STYLE 0x00000001")] + public const int RBBIM_STYLE = 0x00000001; + + [NativeTypeName("#define RBBIM_COLORS 0x00000002")] + public const int RBBIM_COLORS = 0x00000002; + + [NativeTypeName("#define RBBIM_TEXT 0x00000004")] + public const int RBBIM_TEXT = 0x00000004; + + [NativeTypeName("#define RBBIM_IMAGE 0x00000008")] + public const int RBBIM_IMAGE = 0x00000008; + + [NativeTypeName("#define RBBIM_CHILD 0x00000010")] + public const int RBBIM_CHILD = 0x00000010; + + [NativeTypeName("#define RBBIM_CHILDSIZE 0x00000020")] + public const int RBBIM_CHILDSIZE = 0x00000020; + + [NativeTypeName("#define RBBIM_SIZE 0x00000040")] + public const int RBBIM_SIZE = 0x00000040; + + [NativeTypeName("#define RBBIM_BACKGROUND 0x00000080")] + public const int RBBIM_BACKGROUND = 0x00000080; + + [NativeTypeName("#define RBBIM_ID 0x00000100")] + public const int RBBIM_ID = 0x00000100; + + [NativeTypeName("#define RBBIM_IDEALSIZE 0x00000200")] + public const int RBBIM_IDEALSIZE = 0x00000200; + + [NativeTypeName("#define RBBIM_LPARAM 0x00000400")] + public const int RBBIM_LPARAM = 0x00000400; + + [NativeTypeName("#define RBBIM_HEADERSIZE 0x00000800")] + public const int RBBIM_HEADERSIZE = 0x00000800; + + [NativeTypeName("#define RBBIM_CHEVRONLOCATION 0x00001000")] + public const int RBBIM_CHEVRONLOCATION = 0x00001000; + + [NativeTypeName("#define RBBIM_CHEVRONSTATE 0x00002000")] + public const int RBBIM_CHEVRONSTATE = 0x00002000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/RBBS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/RBBS.cs new file mode 100644 index 0000000000..b7384b4705 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/RBBS.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RBBS + { + [NativeTypeName("#define RBBS_BREAK 0x00000001")] + public const int RBBS_BREAK = 0x00000001; + + [NativeTypeName("#define RBBS_FIXEDSIZE 0x00000002")] + public const int RBBS_FIXEDSIZE = 0x00000002; + + [NativeTypeName("#define RBBS_CHILDEDGE 0x00000004")] + public const int RBBS_CHILDEDGE = 0x00000004; + + [NativeTypeName("#define RBBS_HIDDEN 0x00000008")] + public const int RBBS_HIDDEN = 0x00000008; + + [NativeTypeName("#define RBBS_NOVERT 0x00000010")] + public const int RBBS_NOVERT = 0x00000010; + + [NativeTypeName("#define RBBS_FIXEDBMP 0x00000020")] + public const int RBBS_FIXEDBMP = 0x00000020; + + [NativeTypeName("#define RBBS_VARIABLEHEIGHT 0x00000040")] + public const int RBBS_VARIABLEHEIGHT = 0x00000040; + + [NativeTypeName("#define RBBS_GRIPPERALWAYS 0x00000080")] + public const int RBBS_GRIPPERALWAYS = 0x00000080; + + [NativeTypeName("#define RBBS_NOGRIPPER 0x00000100")] + public const int RBBS_NOGRIPPER = 0x00000100; + + [NativeTypeName("#define RBBS_USECHEVRON 0x00000200")] + public const int RBBS_USECHEVRON = 0x00000200; + + [NativeTypeName("#define RBBS_HIDETITLE 0x00000400")] + public const int RBBS_HIDETITLE = 0x00000400; + + [NativeTypeName("#define RBBS_TOPALIGN 0x00000800")] + public const int RBBS_TOPALIGN = 0x00000800; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/RBN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/RBN.cs new file mode 100644 index 0000000000..f677b5c74f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/RBN.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RBN + { + [NativeTypeName("#define RBN_FIRST (0U-831U)")] + public const uint RBN_FIRST = unchecked(0U - 831U); + + [NativeTypeName("#define RBN_LAST (0U-859U)")] + public const uint RBN_LAST = unchecked(0U - 859U); + + [NativeTypeName("#define RBN_HEIGHTCHANGE (RBN_FIRST - 0)")] + public const uint RBN_HEIGHTCHANGE = unchecked((0U - 831U) - 0); + + [NativeTypeName("#define RBN_GETOBJECT (RBN_FIRST - 1)")] + public const uint RBN_GETOBJECT = unchecked((0U - 831U) - 1); + + [NativeTypeName("#define RBN_LAYOUTCHANGED (RBN_FIRST - 2)")] + public const uint RBN_LAYOUTCHANGED = unchecked((0U - 831U) - 2); + + [NativeTypeName("#define RBN_AUTOSIZE (RBN_FIRST - 3)")] + public const uint RBN_AUTOSIZE = unchecked((0U - 831U) - 3); + + [NativeTypeName("#define RBN_BEGINDRAG (RBN_FIRST - 4)")] + public const uint RBN_BEGINDRAG = unchecked((0U - 831U) - 4); + + [NativeTypeName("#define RBN_ENDDRAG (RBN_FIRST - 5)")] + public const uint RBN_ENDDRAG = unchecked((0U - 831U) - 5); + + [NativeTypeName("#define RBN_DELETINGBAND (RBN_FIRST - 6)")] + public const uint RBN_DELETINGBAND = unchecked((0U - 831U) - 6); + + [NativeTypeName("#define RBN_DELETEDBAND (RBN_FIRST - 7)")] + public const uint RBN_DELETEDBAND = unchecked((0U - 831U) - 7); + + [NativeTypeName("#define RBN_CHILDSIZE (RBN_FIRST - 8)")] + public const uint RBN_CHILDSIZE = unchecked((0U - 831U) - 8); + + [NativeTypeName("#define RBN_CHEVRONPUSHED (RBN_FIRST - 10)")] + public const uint RBN_CHEVRONPUSHED = unchecked((0U - 831U) - 10); + + [NativeTypeName("#define RBN_SPLITTERDRAG (RBN_FIRST - 11)")] + public const uint RBN_SPLITTERDRAG = unchecked((0U - 831U) - 11); + + [NativeTypeName("#define RBN_MINMAX (RBN_FIRST - 21)")] + public const uint RBN_MINMAX = unchecked((0U - 831U) - 21); + + [NativeTypeName("#define RBN_AUTOBREAK (RBN_FIRST - 22)")] + public const uint RBN_AUTOBREAK = unchecked((0U - 831U) - 22); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/STD.cs b/sources/Interop/Windows/Windows/um/CommCtrl/STD.cs new file mode 100644 index 0000000000..887eccbdad --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/STD.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STD + { + [NativeTypeName("#define STD_CUT 0")] + public const int STD_CUT = 0; + + [NativeTypeName("#define STD_COPY 1")] + public const int STD_COPY = 1; + + [NativeTypeName("#define STD_PASTE 2")] + public const int STD_PASTE = 2; + + [NativeTypeName("#define STD_UNDO 3")] + public const int STD_UNDO = 3; + + [NativeTypeName("#define STD_REDOW 4")] + public const int STD_REDOW = 4; + + [NativeTypeName("#define STD_DELETE 5")] + public const int STD_DELETE = 5; + + [NativeTypeName("#define STD_FILENEW 6")] + public const int STD_FILENEW = 6; + + [NativeTypeName("#define STD_FILEOPEN 7")] + public const int STD_FILEOPEN = 7; + + [NativeTypeName("#define STD_FILESAVE 8")] + public const int STD_FILESAVE = 8; + + [NativeTypeName("#define STD_PRINTPRE 9")] + public const int STD_PRINTPRE = 9; + + [NativeTypeName("#define STD_PROPERTIES 10")] + public const int STD_PROPERTIES = 10; + + [NativeTypeName("#define STD_HELP 11")] + public const int STD_HELP = 11; + + [NativeTypeName("#define STD_FIND 12")] + public const int STD_FIND = 12; + + [NativeTypeName("#define STD_REPLACE 13")] + public const int STD_REPLACE = 13; + + [NativeTypeName("#define STD_PRINT 14")] + public const int STD_PRINT = 14; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TBIF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TBIF.cs new file mode 100644 index 0000000000..d98d1a2b5a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TBIF.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TBIF + { + [NativeTypeName("#define TBIF_IMAGE 0x00000001")] + public const int TBIF_IMAGE = 0x00000001; + + [NativeTypeName("#define TBIF_TEXT 0x00000002")] + public const int TBIF_TEXT = 0x00000002; + + [NativeTypeName("#define TBIF_STATE 0x00000004")] + public const int TBIF_STATE = 0x00000004; + + [NativeTypeName("#define TBIF_STYLE 0x00000008")] + public const int TBIF_STYLE = 0x00000008; + + [NativeTypeName("#define TBIF_LPARAM 0x00000010")] + public const int TBIF_LPARAM = 0x00000010; + + [NativeTypeName("#define TBIF_COMMAND 0x00000020")] + public const int TBIF_COMMAND = 0x00000020; + + [NativeTypeName("#define TBIF_SIZE 0x00000040")] + public const int TBIF_SIZE = 0x00000040; + + [NativeTypeName("#define TBIF_BYINDEX 0x80000000")] + public const uint TBIF_BYINDEX = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TBM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TBM.cs new file mode 100644 index 0000000000..497434dbcf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TBM.cs @@ -0,0 +1,118 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TBM + { + [NativeTypeName("#define TBM_GETPOS (WM_USER)")] + public const int TBM_GETPOS = (0x0400); + + [NativeTypeName("#define TBM_GETRANGEMIN (WM_USER+1)")] + public const int TBM_GETRANGEMIN = (0x0400 + 1); + + [NativeTypeName("#define TBM_GETRANGEMAX (WM_USER+2)")] + public const int TBM_GETRANGEMAX = (0x0400 + 2); + + [NativeTypeName("#define TBM_GETTIC (WM_USER+3)")] + public const int TBM_GETTIC = (0x0400 + 3); + + [NativeTypeName("#define TBM_SETTIC (WM_USER+4)")] + public const int TBM_SETTIC = (0x0400 + 4); + + [NativeTypeName("#define TBM_SETPOS (WM_USER+5)")] + public const int TBM_SETPOS = (0x0400 + 5); + + [NativeTypeName("#define TBM_SETRANGE (WM_USER+6)")] + public const int TBM_SETRANGE = (0x0400 + 6); + + [NativeTypeName("#define TBM_SETRANGEMIN (WM_USER+7)")] + public const int TBM_SETRANGEMIN = (0x0400 + 7); + + [NativeTypeName("#define TBM_SETRANGEMAX (WM_USER+8)")] + public const int TBM_SETRANGEMAX = (0x0400 + 8); + + [NativeTypeName("#define TBM_CLEARTICS (WM_USER+9)")] + public const int TBM_CLEARTICS = (0x0400 + 9); + + [NativeTypeName("#define TBM_SETSEL (WM_USER+10)")] + public const int TBM_SETSEL = (0x0400 + 10); + + [NativeTypeName("#define TBM_SETSELSTART (WM_USER+11)")] + public const int TBM_SETSELSTART = (0x0400 + 11); + + [NativeTypeName("#define TBM_SETSELEND (WM_USER+12)")] + public const int TBM_SETSELEND = (0x0400 + 12); + + [NativeTypeName("#define TBM_GETPTICS (WM_USER+14)")] + public const int TBM_GETPTICS = (0x0400 + 14); + + [NativeTypeName("#define TBM_GETTICPOS (WM_USER+15)")] + public const int TBM_GETTICPOS = (0x0400 + 15); + + [NativeTypeName("#define TBM_GETNUMTICS (WM_USER+16)")] + public const int TBM_GETNUMTICS = (0x0400 + 16); + + [NativeTypeName("#define TBM_GETSELSTART (WM_USER+17)")] + public const int TBM_GETSELSTART = (0x0400 + 17); + + [NativeTypeName("#define TBM_GETSELEND (WM_USER+18)")] + public const int TBM_GETSELEND = (0x0400 + 18); + + [NativeTypeName("#define TBM_CLEARSEL (WM_USER+19)")] + public const int TBM_CLEARSEL = (0x0400 + 19); + + [NativeTypeName("#define TBM_SETTICFREQ (WM_USER+20)")] + public const int TBM_SETTICFREQ = (0x0400 + 20); + + [NativeTypeName("#define TBM_SETPAGESIZE (WM_USER+21)")] + public const int TBM_SETPAGESIZE = (0x0400 + 21); + + [NativeTypeName("#define TBM_GETPAGESIZE (WM_USER+22)")] + public const int TBM_GETPAGESIZE = (0x0400 + 22); + + [NativeTypeName("#define TBM_SETLINESIZE (WM_USER+23)")] + public const int TBM_SETLINESIZE = (0x0400 + 23); + + [NativeTypeName("#define TBM_GETLINESIZE (WM_USER+24)")] + public const int TBM_GETLINESIZE = (0x0400 + 24); + + [NativeTypeName("#define TBM_GETTHUMBRECT (WM_USER+25)")] + public const int TBM_GETTHUMBRECT = (0x0400 + 25); + + [NativeTypeName("#define TBM_GETCHANNELRECT (WM_USER+26)")] + public const int TBM_GETCHANNELRECT = (0x0400 + 26); + + [NativeTypeName("#define TBM_SETTHUMBLENGTH (WM_USER+27)")] + public const int TBM_SETTHUMBLENGTH = (0x0400 + 27); + + [NativeTypeName("#define TBM_GETTHUMBLENGTH (WM_USER+28)")] + public const int TBM_GETTHUMBLENGTH = (0x0400 + 28); + + [NativeTypeName("#define TBM_SETTOOLTIPS (WM_USER+29)")] + public const int TBM_SETTOOLTIPS = (0x0400 + 29); + + [NativeTypeName("#define TBM_GETTOOLTIPS (WM_USER+30)")] + public const int TBM_GETTOOLTIPS = (0x0400 + 30); + + [NativeTypeName("#define TBM_SETTIPSIDE (WM_USER+31)")] + public const int TBM_SETTIPSIDE = (0x0400 + 31); + + [NativeTypeName("#define TBM_SETBUDDY (WM_USER+32)")] + public const int TBM_SETBUDDY = (0x0400 + 32); + + [NativeTypeName("#define TBM_GETBUDDY (WM_USER+33)")] + public const int TBM_GETBUDDY = (0x0400 + 33); + + [NativeTypeName("#define TBM_SETPOSNOTIFY (WM_USER+34)")] + public const int TBM_SETPOSNOTIFY = (0x0400 + 34); + + [NativeTypeName("#define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] + public const int TBM_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] + public const int TBM_GETUNICODEFORMAT = (0x2000 + 6); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TBN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TBN.cs new file mode 100644 index 0000000000..ad60be7aac --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TBN.cs @@ -0,0 +1,109 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TBN + { + [NativeTypeName("#define TBN_FIRST (0U-700U)")] + public const uint TBN_FIRST = unchecked(0U - 700U); + + [NativeTypeName("#define TBN_LAST (0U-720U)")] + public const uint TBN_LAST = unchecked(0U - 720U); + + [NativeTypeName("#define TBN_GETBUTTONINFOA (TBN_FIRST-0)")] + public const uint TBN_GETBUTTONINFOA = unchecked((0U - 700U) - 0); + + [NativeTypeName("#define TBN_BEGINDRAG (TBN_FIRST-1)")] + public const uint TBN_BEGINDRAG = unchecked((0U - 700U) - 1); + + [NativeTypeName("#define TBN_ENDDRAG (TBN_FIRST-2)")] + public const uint TBN_ENDDRAG = unchecked((0U - 700U) - 2); + + [NativeTypeName("#define TBN_BEGINADJUST (TBN_FIRST-3)")] + public const uint TBN_BEGINADJUST = unchecked((0U - 700U) - 3); + + [NativeTypeName("#define TBN_ENDADJUST (TBN_FIRST-4)")] + public const uint TBN_ENDADJUST = unchecked((0U - 700U) - 4); + + [NativeTypeName("#define TBN_RESET (TBN_FIRST-5)")] + public const uint TBN_RESET = unchecked((0U - 700U) - 5); + + [NativeTypeName("#define TBN_QUERYINSERT (TBN_FIRST-6)")] + public const uint TBN_QUERYINSERT = unchecked((0U - 700U) - 6); + + [NativeTypeName("#define TBN_QUERYDELETE (TBN_FIRST-7)")] + public const uint TBN_QUERYDELETE = unchecked((0U - 700U) - 7); + + [NativeTypeName("#define TBN_TOOLBARCHANGE (TBN_FIRST-8)")] + public const uint TBN_TOOLBARCHANGE = unchecked((0U - 700U) - 8); + + [NativeTypeName("#define TBN_CUSTHELP (TBN_FIRST-9)")] + public const uint TBN_CUSTHELP = unchecked((0U - 700U) - 9); + + [NativeTypeName("#define TBN_DROPDOWN (TBN_FIRST - 10)")] + public const uint TBN_DROPDOWN = unchecked((0U - 700U) - 10); + + [NativeTypeName("#define TBN_GETOBJECT (TBN_FIRST - 12)")] + public const uint TBN_GETOBJECT = unchecked((0U - 700U) - 12); + + [NativeTypeName("#define TBN_HOTITEMCHANGE (TBN_FIRST - 13)")] + public const uint TBN_HOTITEMCHANGE = unchecked((0U - 700U) - 13); + + [NativeTypeName("#define TBN_DRAGOUT (TBN_FIRST - 14)")] + public const uint TBN_DRAGOUT = unchecked((0U - 700U) - 14); + + [NativeTypeName("#define TBN_DELETINGBUTTON (TBN_FIRST - 15)")] + public const uint TBN_DELETINGBUTTON = unchecked((0U - 700U) - 15); + + [NativeTypeName("#define TBN_GETDISPINFOA (TBN_FIRST - 16)")] + public const uint TBN_GETDISPINFOA = unchecked((0U - 700U) - 16); + + [NativeTypeName("#define TBN_GETDISPINFOW (TBN_FIRST - 17)")] + public const uint TBN_GETDISPINFOW = unchecked((0U - 700U) - 17); + + [NativeTypeName("#define TBN_GETINFOTIPA (TBN_FIRST - 18)")] + public const uint TBN_GETINFOTIPA = unchecked((0U - 700U) - 18); + + [NativeTypeName("#define TBN_GETINFOTIPW (TBN_FIRST - 19)")] + public const uint TBN_GETINFOTIPW = unchecked((0U - 700U) - 19); + + [NativeTypeName("#define TBN_GETBUTTONINFOW (TBN_FIRST - 20)")] + public const uint TBN_GETBUTTONINFOW = unchecked((0U - 700U) - 20); + + [NativeTypeName("#define TBN_RESTORE (TBN_FIRST - 21)")] + public const uint TBN_RESTORE = unchecked((0U - 700U) - 21); + + [NativeTypeName("#define TBN_SAVE (TBN_FIRST - 22)")] + public const uint TBN_SAVE = unchecked((0U - 700U) - 22); + + [NativeTypeName("#define TBN_INITCUSTOMIZE (TBN_FIRST - 23)")] + public const uint TBN_INITCUSTOMIZE = unchecked((0U - 700U) - 23); + + [NativeTypeName("#define TBN_WRAPHOTITEM (TBN_FIRST - 24)")] + public const uint TBN_WRAPHOTITEM = unchecked((0U - 700U) - 24); + + [NativeTypeName("#define TBN_DUPACCELERATOR (TBN_FIRST - 25)")] + public const uint TBN_DUPACCELERATOR = unchecked((0U - 700U) - 25); + + [NativeTypeName("#define TBN_WRAPACCELERATOR (TBN_FIRST - 26)")] + public const uint TBN_WRAPACCELERATOR = unchecked((0U - 700U) - 26); + + [NativeTypeName("#define TBN_DRAGOVER (TBN_FIRST - 27)")] + public const uint TBN_DRAGOVER = unchecked((0U - 700U) - 27); + + [NativeTypeName("#define TBN_MAPACCELERATOR (TBN_FIRST - 28)")] + public const uint TBN_MAPACCELERATOR = unchecked((0U - 700U) - 28); + + [NativeTypeName("#define TBN_GETINFOTIP TBN_GETINFOTIPW")] + public const uint TBN_GETINFOTIP = unchecked((0U - 700U) - 19); + + [NativeTypeName("#define TBN_GETDISPINFO TBN_GETDISPINFOW")] + public const uint TBN_GETDISPINFO = unchecked((0U - 700U) - 17); + + [NativeTypeName("#define TBN_GETBUTTONINFO TBN_GETBUTTONINFOW")] + public const uint TBN_GETBUTTONINFO = unchecked((0U - 700U) - 20); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TBSTYLE.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TBSTYLE.cs new file mode 100644 index 0000000000..b0928ec5a4 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TBSTYLE.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TBSTYLE + { + [NativeTypeName("#define TBSTYLE_BUTTON 0x0000")] + public const int TBSTYLE_BUTTON = 0x0000; + + [NativeTypeName("#define TBSTYLE_SEP 0x0001")] + public const int TBSTYLE_SEP = 0x0001; + + [NativeTypeName("#define TBSTYLE_CHECK 0x0002")] + public const int TBSTYLE_CHECK = 0x0002; + + [NativeTypeName("#define TBSTYLE_GROUP 0x0004")] + public const int TBSTYLE_GROUP = 0x0004; + + [NativeTypeName("#define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)")] + public const int TBSTYLE_CHECKGROUP = (0x0004 | 0x0002); + + [NativeTypeName("#define TBSTYLE_DROPDOWN 0x0008")] + public const int TBSTYLE_DROPDOWN = 0x0008; + + [NativeTypeName("#define TBSTYLE_AUTOSIZE 0x0010")] + public const int TBSTYLE_AUTOSIZE = 0x0010; + + [NativeTypeName("#define TBSTYLE_NOPREFIX 0x0020")] + public const int TBSTYLE_NOPREFIX = 0x0020; + + [NativeTypeName("#define TBSTYLE_TOOLTIPS 0x0100")] + public const int TBSTYLE_TOOLTIPS = 0x0100; + + [NativeTypeName("#define TBSTYLE_WRAPABLE 0x0200")] + public const int TBSTYLE_WRAPABLE = 0x0200; + + [NativeTypeName("#define TBSTYLE_ALTDRAG 0x0400")] + public const int TBSTYLE_ALTDRAG = 0x0400; + + [NativeTypeName("#define TBSTYLE_FLAT 0x0800")] + public const int TBSTYLE_FLAT = 0x0800; + + [NativeTypeName("#define TBSTYLE_LIST 0x1000")] + public const int TBSTYLE_LIST = 0x1000; + + [NativeTypeName("#define TBSTYLE_CUSTOMERASE 0x2000")] + public const int TBSTYLE_CUSTOMERASE = 0x2000; + + [NativeTypeName("#define TBSTYLE_REGISTERDROP 0x4000")] + public const int TBSTYLE_REGISTERDROP = 0x4000; + + [NativeTypeName("#define TBSTYLE_TRANSPARENT 0x8000")] + public const int TBSTYLE_TRANSPARENT = 0x8000; + + [NativeTypeName("#define TBSTYLE_EX_DRAWDDARROWS 0x00000001")] + public const int TBSTYLE_EX_DRAWDDARROWS = 0x00000001; + + [NativeTypeName("#define TBSTYLE_EX_MIXEDBUTTONS 0x00000008")] + public const int TBSTYLE_EX_MIXEDBUTTONS = 0x00000008; + + [NativeTypeName("#define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010")] + public const int TBSTYLE_EX_HIDECLIPPEDBUTTONS = 0x00000010; + + [NativeTypeName("#define TBSTYLE_EX_MULTICOLUMN 0x00000002")] + public const int TBSTYLE_EX_MULTICOLUMN = 0x00000002; + + [NativeTypeName("#define TBSTYLE_EX_VERTICAL 0x00000004")] + public const int TBSTYLE_EX_VERTICAL = 0x00000004; + + [NativeTypeName("#define TBSTYLE_EX_DOUBLEBUFFER 0x00000080")] + public const int TBSTYLE_EX_DOUBLEBUFFER = 0x00000080; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TCM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TCM.cs new file mode 100644 index 0000000000..b69500b8af --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TCM.cs @@ -0,0 +1,118 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TCM + { + [NativeTypeName("#define TCM_FIRST 0x1300")] + public const int TCM_FIRST = 0x1300; + + [NativeTypeName("#define TCM_GETIMAGELIST (TCM_FIRST + 2)")] + public const int TCM_GETIMAGELIST = (0x1300 + 2); + + [NativeTypeName("#define TCM_SETIMAGELIST (TCM_FIRST + 3)")] + public const int TCM_SETIMAGELIST = (0x1300 + 3); + + [NativeTypeName("#define TCM_GETITEMCOUNT (TCM_FIRST + 4)")] + public const int TCM_GETITEMCOUNT = (0x1300 + 4); + + [NativeTypeName("#define TCM_GETITEMA (TCM_FIRST + 5)")] + public const int TCM_GETITEMA = (0x1300 + 5); + + [NativeTypeName("#define TCM_GETITEMW (TCM_FIRST + 60)")] + public const int TCM_GETITEMW = (0x1300 + 60); + + [NativeTypeName("#define TCM_GETITEM TCM_GETITEMW")] + public const int TCM_GETITEM = (0x1300 + 60); + + [NativeTypeName("#define TCM_SETITEMA (TCM_FIRST + 6)")] + public const int TCM_SETITEMA = (0x1300 + 6); + + [NativeTypeName("#define TCM_SETITEMW (TCM_FIRST + 61)")] + public const int TCM_SETITEMW = (0x1300 + 61); + + [NativeTypeName("#define TCM_SETITEM TCM_SETITEMW")] + public const int TCM_SETITEM = (0x1300 + 61); + + [NativeTypeName("#define TCM_INSERTITEMA (TCM_FIRST + 7)")] + public const int TCM_INSERTITEMA = (0x1300 + 7); + + [NativeTypeName("#define TCM_INSERTITEMW (TCM_FIRST + 62)")] + public const int TCM_INSERTITEMW = (0x1300 + 62); + + [NativeTypeName("#define TCM_INSERTITEM TCM_INSERTITEMW")] + public const int TCM_INSERTITEM = (0x1300 + 62); + + [NativeTypeName("#define TCM_DELETEITEM (TCM_FIRST + 8)")] + public const int TCM_DELETEITEM = (0x1300 + 8); + + [NativeTypeName("#define TCM_DELETEALLITEMS (TCM_FIRST + 9)")] + public const int TCM_DELETEALLITEMS = (0x1300 + 9); + + [NativeTypeName("#define TCM_GETITEMRECT (TCM_FIRST + 10)")] + public const int TCM_GETITEMRECT = (0x1300 + 10); + + [NativeTypeName("#define TCM_GETCURSEL (TCM_FIRST + 11)")] + public const int TCM_GETCURSEL = (0x1300 + 11); + + [NativeTypeName("#define TCM_SETCURSEL (TCM_FIRST + 12)")] + public const int TCM_SETCURSEL = (0x1300 + 12); + + [NativeTypeName("#define TCM_HITTEST (TCM_FIRST + 13)")] + public const int TCM_HITTEST = (0x1300 + 13); + + [NativeTypeName("#define TCM_SETITEMEXTRA (TCM_FIRST + 14)")] + public const int TCM_SETITEMEXTRA = (0x1300 + 14); + + [NativeTypeName("#define TCM_ADJUSTRECT (TCM_FIRST + 40)")] + public const int TCM_ADJUSTRECT = (0x1300 + 40); + + [NativeTypeName("#define TCM_SETITEMSIZE (TCM_FIRST + 41)")] + public const int TCM_SETITEMSIZE = (0x1300 + 41); + + [NativeTypeName("#define TCM_REMOVEIMAGE (TCM_FIRST + 42)")] + public const int TCM_REMOVEIMAGE = (0x1300 + 42); + + [NativeTypeName("#define TCM_SETPADDING (TCM_FIRST + 43)")] + public const int TCM_SETPADDING = (0x1300 + 43); + + [NativeTypeName("#define TCM_GETROWCOUNT (TCM_FIRST + 44)")] + public const int TCM_GETROWCOUNT = (0x1300 + 44); + + [NativeTypeName("#define TCM_GETTOOLTIPS (TCM_FIRST + 45)")] + public const int TCM_GETTOOLTIPS = (0x1300 + 45); + + [NativeTypeName("#define TCM_SETTOOLTIPS (TCM_FIRST + 46)")] + public const int TCM_SETTOOLTIPS = (0x1300 + 46); + + [NativeTypeName("#define TCM_GETCURFOCUS (TCM_FIRST + 47)")] + public const int TCM_GETCURFOCUS = (0x1300 + 47); + + [NativeTypeName("#define TCM_SETCURFOCUS (TCM_FIRST + 48)")] + public const int TCM_SETCURFOCUS = (0x1300 + 48); + + [NativeTypeName("#define TCM_SETMINTABWIDTH (TCM_FIRST + 49)")] + public const int TCM_SETMINTABWIDTH = (0x1300 + 49); + + [NativeTypeName("#define TCM_DESELECTALL (TCM_FIRST + 50)")] + public const int TCM_DESELECTALL = (0x1300 + 50); + + [NativeTypeName("#define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)")] + public const int TCM_HIGHLIGHTITEM = (0x1300 + 51); + + [NativeTypeName("#define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)")] + public const int TCM_SETEXTENDEDSTYLE = (0x1300 + 52); + + [NativeTypeName("#define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)")] + public const int TCM_GETEXTENDEDSTYLE = (0x1300 + 53); + + [NativeTypeName("#define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] + public const int TCM_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] + public const int TCM_GETUNICODEFORMAT = (0x2000 + 6); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TCS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TCS.cs new file mode 100644 index 0000000000..dacc34ce08 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TCS.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TCS + { + [NativeTypeName("#define TCS_SCROLLOPPOSITE 0x0001")] + public const int TCS_SCROLLOPPOSITE = 0x0001; + + [NativeTypeName("#define TCS_BOTTOM 0x0002")] + public const int TCS_BOTTOM = 0x0002; + + [NativeTypeName("#define TCS_RIGHT 0x0002")] + public const int TCS_RIGHT = 0x0002; + + [NativeTypeName("#define TCS_MULTISELECT 0x0004")] + public const int TCS_MULTISELECT = 0x0004; + + [NativeTypeName("#define TCS_FLATBUTTONS 0x0008")] + public const int TCS_FLATBUTTONS = 0x0008; + + [NativeTypeName("#define TCS_FORCEICONLEFT 0x0010")] + public const int TCS_FORCEICONLEFT = 0x0010; + + [NativeTypeName("#define TCS_FORCELABELLEFT 0x0020")] + public const int TCS_FORCELABELLEFT = 0x0020; + + [NativeTypeName("#define TCS_HOTTRACK 0x0040")] + public const int TCS_HOTTRACK = 0x0040; + + [NativeTypeName("#define TCS_VERTICAL 0x0080")] + public const int TCS_VERTICAL = 0x0080; + + [NativeTypeName("#define TCS_TABS 0x0000")] + public const int TCS_TABS = 0x0000; + + [NativeTypeName("#define TCS_BUTTONS 0x0100")] + public const int TCS_BUTTONS = 0x0100; + + [NativeTypeName("#define TCS_SINGLELINE 0x0000")] + public const int TCS_SINGLELINE = 0x0000; + + [NativeTypeName("#define TCS_MULTILINE 0x0200")] + public const int TCS_MULTILINE = 0x0200; + + [NativeTypeName("#define TCS_RIGHTJUSTIFY 0x0000")] + public const int TCS_RIGHTJUSTIFY = 0x0000; + + [NativeTypeName("#define TCS_FIXEDWIDTH 0x0400")] + public const int TCS_FIXEDWIDTH = 0x0400; + + [NativeTypeName("#define TCS_RAGGEDRIGHT 0x0800")] + public const int TCS_RAGGEDRIGHT = 0x0800; + + [NativeTypeName("#define TCS_FOCUSONBUTTONDOWN 0x1000")] + public const int TCS_FOCUSONBUTTONDOWN = 0x1000; + + [NativeTypeName("#define TCS_OWNERDRAWFIXED 0x2000")] + public const int TCS_OWNERDRAWFIXED = 0x2000; + + [NativeTypeName("#define TCS_TOOLTIPS 0x4000")] + public const int TCS_TOOLTIPS = 0x4000; + + [NativeTypeName("#define TCS_FOCUSNEVER 0x8000")] + public const int TCS_FOCUSNEVER = 0x8000; + + [NativeTypeName("#define TCS_EX_FLATSEPARATORS 0x00000001")] + public const int TCS_EX_FLATSEPARATORS = 0x00000001; + + [NativeTypeName("#define TCS_EX_REGISTERDROP 0x00000002")] + public const int TCS_EX_REGISTERDROP = 0x00000002; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TTN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TTN.cs new file mode 100644 index 0000000000..18891c4363 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TTN.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TTN + { + [NativeTypeName("#define TTN_FIRST (0U-520U)")] + public const uint TTN_FIRST = unchecked(0U - 520U); + + [NativeTypeName("#define TTN_LAST (0U-549U)")] + public const uint TTN_LAST = unchecked(0U - 549U); + + [NativeTypeName("#define TTN_GETDISPINFOA (TTN_FIRST - 0)")] + public const uint TTN_GETDISPINFOA = unchecked((0U - 520U) - 0); + + [NativeTypeName("#define TTN_GETDISPINFOW (TTN_FIRST - 10)")] + public const uint TTN_GETDISPINFOW = unchecked((0U - 520U) - 10); + + [NativeTypeName("#define TTN_SHOW (TTN_FIRST - 1)")] + public const uint TTN_SHOW = unchecked((0U - 520U) - 1); + + [NativeTypeName("#define TTN_POP (TTN_FIRST - 2)")] + public const uint TTN_POP = unchecked((0U - 520U) - 2); + + [NativeTypeName("#define TTN_LINKCLICK (TTN_FIRST - 3)")] + public const uint TTN_LINKCLICK = unchecked((0U - 520U) - 3); + + [NativeTypeName("#define TTN_GETDISPINFO TTN_GETDISPINFOW")] + public const uint TTN_GETDISPINFO = unchecked((0U - 520U) - 10); + + [NativeTypeName("#define TTN_NEEDTEXT TTN_GETDISPINFO")] + public const uint TTN_NEEDTEXT = unchecked((0U - 520U) - 10); + + [NativeTypeName("#define TTN_NEEDTEXTA TTN_GETDISPINFOA")] + public const uint TTN_NEEDTEXTA = unchecked((0U - 520U) - 0); + + [NativeTypeName("#define TTN_NEEDTEXTW TTN_GETDISPINFOW")] + public const uint TTN_NEEDTEXTW = unchecked((0U - 520U) - 10); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVGN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVGN.cs new file mode 100644 index 0000000000..81cf43bcca --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVGN.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TVGN + { + [NativeTypeName("#define TVGN_ROOT 0x0000")] + public const int TVGN_ROOT = 0x0000; + + [NativeTypeName("#define TVGN_NEXT 0x0001")] + public const int TVGN_NEXT = 0x0001; + + [NativeTypeName("#define TVGN_PREVIOUS 0x0002")] + public const int TVGN_PREVIOUS = 0x0002; + + [NativeTypeName("#define TVGN_PARENT 0x0003")] + public const int TVGN_PARENT = 0x0003; + + [NativeTypeName("#define TVGN_CHILD 0x0004")] + public const int TVGN_CHILD = 0x0004; + + [NativeTypeName("#define TVGN_FIRSTVISIBLE 0x0005")] + public const int TVGN_FIRSTVISIBLE = 0x0005; + + [NativeTypeName("#define TVGN_NEXTVISIBLE 0x0006")] + public const int TVGN_NEXTVISIBLE = 0x0006; + + [NativeTypeName("#define TVGN_PREVIOUSVISIBLE 0x0007")] + public const int TVGN_PREVIOUSVISIBLE = 0x0007; + + [NativeTypeName("#define TVGN_DROPHILITE 0x0008")] + public const int TVGN_DROPHILITE = 0x0008; + + [NativeTypeName("#define TVGN_CARET 0x0009")] + public const int TVGN_CARET = 0x0009; + + [NativeTypeName("#define TVGN_LASTVISIBLE 0x000A")] + public const int TVGN_LASTVISIBLE = 0x000A; + + [NativeTypeName("#define TVGN_NEXTSELECTED 0x000B")] + public const int TVGN_NEXTSELECTED = 0x000B; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVHT.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVHT.cs new file mode 100644 index 0000000000..e5d2bd7d5e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVHT.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TVHT + { + [NativeTypeName("#define TVHT_NOWHERE 0x0001")] + public const int TVHT_NOWHERE = 0x0001; + + [NativeTypeName("#define TVHT_ONITEMICON 0x0002")] + public const int TVHT_ONITEMICON = 0x0002; + + [NativeTypeName("#define TVHT_ONITEMLABEL 0x0004")] + public const int TVHT_ONITEMLABEL = 0x0004; + + [NativeTypeName("#define TVHT_ONITEM (TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON)")] + public const int TVHT_ONITEM = (0x0002 | 0x0004 | 0x0040); + + [NativeTypeName("#define TVHT_ONITEMINDENT 0x0008")] + public const int TVHT_ONITEMINDENT = 0x0008; + + [NativeTypeName("#define TVHT_ONITEMBUTTON 0x0010")] + public const int TVHT_ONITEMBUTTON = 0x0010; + + [NativeTypeName("#define TVHT_ONITEMRIGHT 0x0020")] + public const int TVHT_ONITEMRIGHT = 0x0020; + + [NativeTypeName("#define TVHT_ONITEMSTATEICON 0x0040")] + public const int TVHT_ONITEMSTATEICON = 0x0040; + + [NativeTypeName("#define TVHT_ABOVE 0x0100")] + public const int TVHT_ABOVE = 0x0100; + + [NativeTypeName("#define TVHT_BELOW 0x0200")] + public const int TVHT_BELOW = 0x0200; + + [NativeTypeName("#define TVHT_TORIGHT 0x0400")] + public const int TVHT_TORIGHT = 0x0400; + + [NativeTypeName("#define TVHT_TOLEFT 0x0800")] + public const int TVHT_TOLEFT = 0x0800; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVIF.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVIF.cs new file mode 100644 index 0000000000..e97710f053 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVIF.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TVIF + { + [NativeTypeName("#define TVIF_TEXT 0x0001")] + public const int TVIF_TEXT = 0x0001; + + [NativeTypeName("#define TVIF_IMAGE 0x0002")] + public const int TVIF_IMAGE = 0x0002; + + [NativeTypeName("#define TVIF_PARAM 0x0004")] + public const int TVIF_PARAM = 0x0004; + + [NativeTypeName("#define TVIF_STATE 0x0008")] + public const int TVIF_STATE = 0x0008; + + [NativeTypeName("#define TVIF_HANDLE 0x0010")] + public const int TVIF_HANDLE = 0x0010; + + [NativeTypeName("#define TVIF_SELECTEDIMAGE 0x0020")] + public const int TVIF_SELECTEDIMAGE = 0x0020; + + [NativeTypeName("#define TVIF_CHILDREN 0x0040")] + public const int TVIF_CHILDREN = 0x0040; + + [NativeTypeName("#define TVIF_INTEGRAL 0x0080")] + public const int TVIF_INTEGRAL = 0x0080; + + [NativeTypeName("#define TVIF_STATEEX 0x0100")] + public const int TVIF_STATEEX = 0x0100; + + [NativeTypeName("#define TVIF_EXPANDEDIMAGE 0x0200")] + public const int TVIF_EXPANDEDIMAGE = 0x0200; + + [NativeTypeName("#define TVIF_DI_SETITEM 0x1000")] + public const int TVIF_DI_SETITEM = 0x1000; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVIS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVIS.cs new file mode 100644 index 0000000000..d5408f7f2a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVIS.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TVIS + { + [NativeTypeName("#define TVIS_SELECTED 0x0002")] + public const int TVIS_SELECTED = 0x0002; + + [NativeTypeName("#define TVIS_CUT 0x0004")] + public const int TVIS_CUT = 0x0004; + + [NativeTypeName("#define TVIS_DROPHILITED 0x0008")] + public const int TVIS_DROPHILITED = 0x0008; + + [NativeTypeName("#define TVIS_BOLD 0x0010")] + public const int TVIS_BOLD = 0x0010; + + [NativeTypeName("#define TVIS_EXPANDED 0x0020")] + public const int TVIS_EXPANDED = 0x0020; + + [NativeTypeName("#define TVIS_EXPANDEDONCE 0x0040")] + public const int TVIS_EXPANDEDONCE = 0x0040; + + [NativeTypeName("#define TVIS_EXPANDPARTIAL 0x0080")] + public const int TVIS_EXPANDPARTIAL = 0x0080; + + [NativeTypeName("#define TVIS_OVERLAYMASK 0x0F00")] + public const int TVIS_OVERLAYMASK = 0x0F00; + + [NativeTypeName("#define TVIS_STATEIMAGEMASK 0xF000")] + public const int TVIS_STATEIMAGEMASK = 0xF000; + + [NativeTypeName("#define TVIS_USERMASK 0xF000")] + public const int TVIS_USERMASK = 0xF000; + + [NativeTypeName("#define TVIS_EX_FLAT 0x0001")] + public const int TVIS_EX_FLAT = 0x0001; + + [NativeTypeName("#define TVIS_EX_DISABLED 0x0002")] + public const int TVIS_EX_DISABLED = 0x0002; + + [NativeTypeName("#define TVIS_EX_ALL 0x0002")] + public const int TVIS_EX_ALL = 0x0002; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVN.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVN.cs new file mode 100644 index 0000000000..cf300f836a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVN.cs @@ -0,0 +1,151 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TVN + { + [NativeTypeName("#define TVN_FIRST (0U-400U)")] + public const uint TVN_FIRST = unchecked(0U - 400U); + + [NativeTypeName("#define TVN_LAST (0U-499U)")] + public const uint TVN_LAST = unchecked(0U - 499U); + + [NativeTypeName("#define TVN_SELCHANGINGA (TVN_FIRST-1)")] + public const uint TVN_SELCHANGINGA = unchecked((0U - 400U) - 1); + + [NativeTypeName("#define TVN_SELCHANGINGW (TVN_FIRST-50)")] + public const uint TVN_SELCHANGINGW = unchecked((0U - 400U) - 50); + + [NativeTypeName("#define TVN_SELCHANGEDA (TVN_FIRST-2)")] + public const uint TVN_SELCHANGEDA = unchecked((0U - 400U) - 2); + + [NativeTypeName("#define TVN_SELCHANGEDW (TVN_FIRST-51)")] + public const uint TVN_SELCHANGEDW = unchecked((0U - 400U) - 51); + + [NativeTypeName("#define TVN_GETDISPINFOA (TVN_FIRST-3)")] + public const uint TVN_GETDISPINFOA = unchecked((0U - 400U) - 3); + + [NativeTypeName("#define TVN_GETDISPINFOW (TVN_FIRST-52)")] + public const uint TVN_GETDISPINFOW = unchecked((0U - 400U) - 52); + + [NativeTypeName("#define TVN_SETDISPINFOA (TVN_FIRST-4)")] + public const uint TVN_SETDISPINFOA = unchecked((0U - 400U) - 4); + + [NativeTypeName("#define TVN_SETDISPINFOW (TVN_FIRST-53)")] + public const uint TVN_SETDISPINFOW = unchecked((0U - 400U) - 53); + + [NativeTypeName("#define TVN_ITEMEXPANDINGA (TVN_FIRST-5)")] + public const uint TVN_ITEMEXPANDINGA = unchecked((0U - 400U) - 5); + + [NativeTypeName("#define TVN_ITEMEXPANDINGW (TVN_FIRST-54)")] + public const uint TVN_ITEMEXPANDINGW = unchecked((0U - 400U) - 54); + + [NativeTypeName("#define TVN_ITEMEXPANDEDA (TVN_FIRST-6)")] + public const uint TVN_ITEMEXPANDEDA = unchecked((0U - 400U) - 6); + + [NativeTypeName("#define TVN_ITEMEXPANDEDW (TVN_FIRST-55)")] + public const uint TVN_ITEMEXPANDEDW = unchecked((0U - 400U) - 55); + + [NativeTypeName("#define TVN_BEGINDRAGA (TVN_FIRST-7)")] + public const uint TVN_BEGINDRAGA = unchecked((0U - 400U) - 7); + + [NativeTypeName("#define TVN_BEGINDRAGW (TVN_FIRST-56)")] + public const uint TVN_BEGINDRAGW = unchecked((0U - 400U) - 56); + + [NativeTypeName("#define TVN_BEGINRDRAGA (TVN_FIRST-8)")] + public const uint TVN_BEGINRDRAGA = unchecked((0U - 400U) - 8); + + [NativeTypeName("#define TVN_BEGINRDRAGW (TVN_FIRST-57)")] + public const uint TVN_BEGINRDRAGW = unchecked((0U - 400U) - 57); + + [NativeTypeName("#define TVN_DELETEITEMA (TVN_FIRST-9)")] + public const uint TVN_DELETEITEMA = unchecked((0U - 400U) - 9); + + [NativeTypeName("#define TVN_DELETEITEMW (TVN_FIRST-58)")] + public const uint TVN_DELETEITEMW = unchecked((0U - 400U) - 58); + + [NativeTypeName("#define TVN_BEGINLABELEDITA (TVN_FIRST-10)")] + public const uint TVN_BEGINLABELEDITA = unchecked((0U - 400U) - 10); + + [NativeTypeName("#define TVN_BEGINLABELEDITW (TVN_FIRST-59)")] + public const uint TVN_BEGINLABELEDITW = unchecked((0U - 400U) - 59); + + [NativeTypeName("#define TVN_ENDLABELEDITA (TVN_FIRST-11)")] + public const uint TVN_ENDLABELEDITA = unchecked((0U - 400U) - 11); + + [NativeTypeName("#define TVN_ENDLABELEDITW (TVN_FIRST-60)")] + public const uint TVN_ENDLABELEDITW = unchecked((0U - 400U) - 60); + + [NativeTypeName("#define TVN_KEYDOWN (TVN_FIRST-12)")] + public const uint TVN_KEYDOWN = unchecked((0U - 400U) - 12); + + [NativeTypeName("#define TVN_GETINFOTIPA (TVN_FIRST-13)")] + public const uint TVN_GETINFOTIPA = unchecked((0U - 400U) - 13); + + [NativeTypeName("#define TVN_GETINFOTIPW (TVN_FIRST-14)")] + public const uint TVN_GETINFOTIPW = unchecked((0U - 400U) - 14); + + [NativeTypeName("#define TVN_SINGLEEXPAND (TVN_FIRST-15)")] + public const uint TVN_SINGLEEXPAND = unchecked((0U - 400U) - 15); + + [NativeTypeName("#define TVN_ITEMCHANGINGA (TVN_FIRST-16)")] + public const uint TVN_ITEMCHANGINGA = unchecked((0U - 400U) - 16); + + [NativeTypeName("#define TVN_ITEMCHANGINGW (TVN_FIRST-17)")] + public const uint TVN_ITEMCHANGINGW = unchecked((0U - 400U) - 17); + + [NativeTypeName("#define TVN_ITEMCHANGEDA (TVN_FIRST-18)")] + public const uint TVN_ITEMCHANGEDA = unchecked((0U - 400U) - 18); + + [NativeTypeName("#define TVN_ITEMCHANGEDW (TVN_FIRST-19)")] + public const uint TVN_ITEMCHANGEDW = unchecked((0U - 400U) - 19); + + [NativeTypeName("#define TVN_ASYNCDRAW (TVN_FIRST-20)")] + public const uint TVN_ASYNCDRAW = unchecked((0U - 400U) - 20); + + [NativeTypeName("#define TVN_SELCHANGING TVN_SELCHANGINGW")] + public const uint TVN_SELCHANGING = unchecked((0U - 400U) - 50); + + [NativeTypeName("#define TVN_SELCHANGED TVN_SELCHANGEDW")] + public const uint TVN_SELCHANGED = unchecked((0U - 400U) - 51); + + [NativeTypeName("#define TVN_GETDISPINFO TVN_GETDISPINFOW")] + public const uint TVN_GETDISPINFO = unchecked((0U - 400U) - 52); + + [NativeTypeName("#define TVN_SETDISPINFO TVN_SETDISPINFOW")] + public const uint TVN_SETDISPINFO = unchecked((0U - 400U) - 53); + + [NativeTypeName("#define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGW")] + public const uint TVN_ITEMEXPANDING = unchecked((0U - 400U) - 54); + + [NativeTypeName("#define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDW")] + public const uint TVN_ITEMEXPANDED = unchecked((0U - 400U) - 55); + + [NativeTypeName("#define TVN_BEGINDRAG TVN_BEGINDRAGW")] + public const uint TVN_BEGINDRAG = unchecked((0U - 400U) - 56); + + [NativeTypeName("#define TVN_BEGINRDRAG TVN_BEGINRDRAGW")] + public const uint TVN_BEGINRDRAG = unchecked((0U - 400U) - 57); + + [NativeTypeName("#define TVN_DELETEITEM TVN_DELETEITEMW")] + public const uint TVN_DELETEITEM = unchecked((0U - 400U) - 58); + + [NativeTypeName("#define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITW")] + public const uint TVN_BEGINLABELEDIT = unchecked((0U - 400U) - 59); + + [NativeTypeName("#define TVN_ENDLABELEDIT TVN_ENDLABELEDITW")] + public const uint TVN_ENDLABELEDIT = unchecked((0U - 400U) - 60); + + [NativeTypeName("#define TVN_GETINFOTIP TVN_GETINFOTIPW")] + public const uint TVN_GETINFOTIP = unchecked((0U - 400U) - 14); + + [NativeTypeName("#define TVN_ITEMCHANGING TVN_ITEMCHANGINGW")] + public const uint TVN_ITEMCHANGING = unchecked((0U - 400U) - 17); + + [NativeTypeName("#define TVN_ITEMCHANGED TVN_ITEMCHANGEDW")] + public const uint TVN_ITEMCHANGED = unchecked((0U - 400U) - 19); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/TVS.cs b/sources/Interop/Windows/Windows/um/CommCtrl/TVS.cs new file mode 100644 index 0000000000..ae48c85f74 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/TVS.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TVS + { + [NativeTypeName("#define TVS_HASBUTTONS 0x0001")] + public const int TVS_HASBUTTONS = 0x0001; + + [NativeTypeName("#define TVS_HASLINES 0x0002")] + public const int TVS_HASLINES = 0x0002; + + [NativeTypeName("#define TVS_LINESATROOT 0x0004")] + public const int TVS_LINESATROOT = 0x0004; + + [NativeTypeName("#define TVS_EDITLABELS 0x0008")] + public const int TVS_EDITLABELS = 0x0008; + + [NativeTypeName("#define TVS_DISABLEDRAGDROP 0x0010")] + public const int TVS_DISABLEDRAGDROP = 0x0010; + + [NativeTypeName("#define TVS_SHOWSELALWAYS 0x0020")] + public const int TVS_SHOWSELALWAYS = 0x0020; + + [NativeTypeName("#define TVS_RTLREADING 0x0040")] + public const int TVS_RTLREADING = 0x0040; + + [NativeTypeName("#define TVS_NOTOOLTIPS 0x0080")] + public const int TVS_NOTOOLTIPS = 0x0080; + + [NativeTypeName("#define TVS_CHECKBOXES 0x0100")] + public const int TVS_CHECKBOXES = 0x0100; + + [NativeTypeName("#define TVS_TRACKSELECT 0x0200")] + public const int TVS_TRACKSELECT = 0x0200; + + [NativeTypeName("#define TVS_SINGLEEXPAND 0x0400")] + public const int TVS_SINGLEEXPAND = 0x0400; + + [NativeTypeName("#define TVS_INFOTIP 0x0800")] + public const int TVS_INFOTIP = 0x0800; + + [NativeTypeName("#define TVS_FULLROWSELECT 0x1000")] + public const int TVS_FULLROWSELECT = 0x1000; + + [NativeTypeName("#define TVS_NOSCROLL 0x2000")] + public const int TVS_NOSCROLL = 0x2000; + + [NativeTypeName("#define TVS_NONEVENHEIGHT 0x4000")] + public const int TVS_NONEVENHEIGHT = 0x4000; + + [NativeTypeName("#define TVS_NOHSCROLL 0x8000")] + public const int TVS_NOHSCROLL = 0x8000; + + [NativeTypeName("#define TVS_EX_NOSINGLECOLLAPSE 0x0001")] + public const int TVS_EX_NOSINGLECOLLAPSE = 0x0001; + + [NativeTypeName("#define TVS_EX_MULTISELECT 0x0002")] + public const int TVS_EX_MULTISELECT = 0x0002; + + [NativeTypeName("#define TVS_EX_DOUBLEBUFFER 0x0004")] + public const int TVS_EX_DOUBLEBUFFER = 0x0004; + + [NativeTypeName("#define TVS_EX_NOINDENTSTATE 0x0008")] + public const int TVS_EX_NOINDENTSTATE = 0x0008; + + [NativeTypeName("#define TVS_EX_RICHTOOLTIP 0x0010")] + public const int TVS_EX_RICHTOOLTIP = 0x0010; + + [NativeTypeName("#define TVS_EX_AUTOHSCROLL 0x0020")] + public const int TVS_EX_AUTOHSCROLL = 0x0020; + + [NativeTypeName("#define TVS_EX_FADEINOUTEXPANDOS 0x0040")] + public const int TVS_EX_FADEINOUTEXPANDOS = 0x0040; + + [NativeTypeName("#define TVS_EX_PARTIALCHECKBOXES 0x0080")] + public const int TVS_EX_PARTIALCHECKBOXES = 0x0080; + + [NativeTypeName("#define TVS_EX_EXCLUSIONCHECKBOXES 0x0100")] + public const int TVS_EX_EXCLUSIONCHECKBOXES = 0x0100; + + [NativeTypeName("#define TVS_EX_DIMMEDCHECKBOXES 0x0200")] + public const int TVS_EX_DIMMEDCHECKBOXES = 0x0200; + + [NativeTypeName("#define TVS_EX_DRAWIMAGEASYNC 0x0400")] + public const int TVS_EX_DRAWIMAGEASYNC = 0x0400; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/UDM.cs b/sources/Interop/Windows/Windows/um/CommCtrl/UDM.cs new file mode 100644 index 0000000000..e5b08b0ac3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/UDM.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class UDM + { + [NativeTypeName("#define UDM_SETRANGE (WM_USER+101)")] + public const int UDM_SETRANGE = (0x0400 + 101); + + [NativeTypeName("#define UDM_GETRANGE (WM_USER+102)")] + public const int UDM_GETRANGE = (0x0400 + 102); + + [NativeTypeName("#define UDM_SETPOS (WM_USER+103)")] + public const int UDM_SETPOS = (0x0400 + 103); + + [NativeTypeName("#define UDM_GETPOS (WM_USER+104)")] + public const int UDM_GETPOS = (0x0400 + 104); + + [NativeTypeName("#define UDM_SETBUDDY (WM_USER+105)")] + public const int UDM_SETBUDDY = (0x0400 + 105); + + [NativeTypeName("#define UDM_GETBUDDY (WM_USER+106)")] + public const int UDM_GETBUDDY = (0x0400 + 106); + + [NativeTypeName("#define UDM_SETACCEL (WM_USER+107)")] + public const int UDM_SETACCEL = (0x0400 + 107); + + [NativeTypeName("#define UDM_GETACCEL (WM_USER+108)")] + public const int UDM_GETACCEL = (0x0400 + 108); + + [NativeTypeName("#define UDM_SETBASE (WM_USER+109)")] + public const int UDM_SETBASE = (0x0400 + 109); + + [NativeTypeName("#define UDM_GETBASE (WM_USER+110)")] + public const int UDM_GETBASE = (0x0400 + 110); + + [NativeTypeName("#define UDM_SETRANGE32 (WM_USER+111)")] + public const int UDM_SETRANGE32 = (0x0400 + 111); + + [NativeTypeName("#define UDM_GETRANGE32 (WM_USER+112)")] + public const int UDM_GETRANGE32 = (0x0400 + 112); + + [NativeTypeName("#define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] + public const int UDM_SETUNICODEFORMAT = (0x2000 + 5); + + [NativeTypeName("#define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] + public const int UDM_GETUNICODEFORMAT = (0x2000 + 6); + + [NativeTypeName("#define UDM_SETPOS32 (WM_USER+113)")] + public const int UDM_SETPOS32 = (0x0400 + 113); + + [NativeTypeName("#define UDM_GETPOS32 (WM_USER+114)")] + public const int UDM_GETPOS32 = (0x0400 + 114); + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/VIEW.cs b/sources/Interop/Windows/Windows/um/CommCtrl/VIEW.cs new file mode 100644 index 0000000000..03dadd07a9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/VIEW.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class VIEW + { + [NativeTypeName("#define VIEW_LARGEICONS 0")] + public const int VIEW_LARGEICONS = 0; + + [NativeTypeName("#define VIEW_SMALLICONS 1")] + public const int VIEW_SMALLICONS = 1; + + [NativeTypeName("#define VIEW_LIST 2")] + public const int VIEW_LIST = 2; + + [NativeTypeName("#define VIEW_DETAILS 3")] + public const int VIEW_DETAILS = 3; + + [NativeTypeName("#define VIEW_SORTNAME 4")] + public const int VIEW_SORTNAME = 4; + + [NativeTypeName("#define VIEW_SORTSIZE 5")] + public const int VIEW_SORTSIZE = 5; + + [NativeTypeName("#define VIEW_SORTDATE 6")] + public const int VIEW_SORTDATE = 6; + + [NativeTypeName("#define VIEW_SORTTYPE 7")] + public const int VIEW_SORTTYPE = 7; + + [NativeTypeName("#define VIEW_PARENTFOLDER 8")] + public const int VIEW_PARENTFOLDER = 8; + + [NativeTypeName("#define VIEW_NETCONNECT 9")] + public const int VIEW_NETCONNECT = 9; + + [NativeTypeName("#define VIEW_NETDISCONNECT 10")] + public const int VIEW_NETDISCONNECT = 10; + + [NativeTypeName("#define VIEW_NEWFOLDER 11")] + public const int VIEW_NEWFOLDER = 11; + + [NativeTypeName("#define VIEW_VIEWMENU 12")] + public const int VIEW_VIEWMENU = 12; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/WC.cs b/sources/Interop/Windows/Windows/um/CommCtrl/WC.cs new file mode 100644 index 0000000000..0afd01356f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/WC.cs @@ -0,0 +1,141 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class WC + { + [NativeTypeName("#define WC_HEADERA \"SysHeader32\"")] + public static ReadOnlySpan WC_HEADERA => new byte[] { 0x53, 0x79, 0x73, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x33, 0x32, 0x00 }; + + [NativeTypeName("#define WC_HEADERW L\"SysHeader32\"")] + public const string WC_HEADERW = "SysHeader32"; + + [NativeTypeName("#define WC_HEADER WC_HEADERW")] + public const string WC_HEADER = "SysHeader32"; + + [NativeTypeName("#define WC_LINK L\"SysLink\"")] + public const string WC_LINK = "SysLink"; + + [NativeTypeName("#define WC_LISTVIEWA \"SysListView32\"")] + public static ReadOnlySpan WC_LISTVIEWA => new byte[] { 0x53, 0x79, 0x73, 0x4C, 0x69, 0x73, 0x74, 0x56, 0x69, 0x65, 0x77, 0x33, 0x32, 0x00 }; + + [NativeTypeName("#define WC_LISTVIEWW L\"SysListView32\"")] + public const string WC_LISTVIEWW = "SysListView32"; + + [NativeTypeName("#define WC_LISTVIEW WC_LISTVIEWW")] + public const string WC_LISTVIEW = "SysListView32"; + + [NativeTypeName("#define WC_TREEVIEWA \"SysTreeView32\"")] + public static ReadOnlySpan WC_TREEVIEWA => new byte[] { 0x53, 0x79, 0x73, 0x54, 0x72, 0x65, 0x65, 0x56, 0x69, 0x65, 0x77, 0x33, 0x32, 0x00 }; + + [NativeTypeName("#define WC_TREEVIEWW L\"SysTreeView32\"")] + public const string WC_TREEVIEWW = "SysTreeView32"; + + [NativeTypeName("#define WC_TREEVIEW WC_TREEVIEWW")] + public const string WC_TREEVIEW = "SysTreeView32"; + + [NativeTypeName("#define WC_COMBOBOXEXW L\"ComboBoxEx32\"")] + public const string WC_COMBOBOXEXW = "ComboBoxEx32"; + + [NativeTypeName("#define WC_COMBOBOXEXA \"ComboBoxEx32\"")] + public static ReadOnlySpan WC_COMBOBOXEXA => new byte[] { 0x43, 0x6F, 0x6D, 0x62, 0x6F, 0x42, 0x6F, 0x78, 0x45, 0x78, 0x33, 0x32, 0x00 }; + + [NativeTypeName("#define WC_COMBOBOXEX WC_COMBOBOXEXW")] + public const string WC_COMBOBOXEX = "ComboBoxEx32"; + + [NativeTypeName("#define WC_TABCONTROLA \"SysTabControl32\"")] + public static ReadOnlySpan WC_TABCONTROLA => new byte[] { 0x53, 0x79, 0x73, 0x54, 0x61, 0x62, 0x43, 0x6F, 0x6E, 0x74, 0x72, 0x6F, 0x6C, 0x33, 0x32, 0x00 }; + + [NativeTypeName("#define WC_TABCONTROLW L\"SysTabControl32\"")] + public const string WC_TABCONTROLW = "SysTabControl32"; + + [NativeTypeName("#define WC_TABCONTROL WC_TABCONTROLW")] + public const string WC_TABCONTROL = "SysTabControl32"; + + [NativeTypeName("#define WC_IPADDRESSW L\"SysIPAddress32\"")] + public const string WC_IPADDRESSW = "SysIPAddress32"; + + [NativeTypeName("#define WC_IPADDRESSA \"SysIPAddress32\"")] + public static ReadOnlySpan WC_IPADDRESSA => new byte[] { 0x53, 0x79, 0x73, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x33, 0x32, 0x00 }; + + [NativeTypeName("#define WC_IPADDRESS WC_IPADDRESSW")] + public const string WC_IPADDRESS = "SysIPAddress32"; + + [NativeTypeName("#define WC_PAGESCROLLERW L\"SysPager\"")] + public const string WC_PAGESCROLLERW = "SysPager"; + + [NativeTypeName("#define WC_PAGESCROLLERA \"SysPager\"")] + public static ReadOnlySpan WC_PAGESCROLLERA => new byte[] { 0x53, 0x79, 0x73, 0x50, 0x61, 0x67, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define WC_PAGESCROLLER WC_PAGESCROLLERW")] + public const string WC_PAGESCROLLER = "SysPager"; + + [NativeTypeName("#define WC_NATIVEFONTCTLW L\"NativeFontCtl\"")] + public const string WC_NATIVEFONTCTLW = "NativeFontCtl"; + + [NativeTypeName("#define WC_NATIVEFONTCTLA \"NativeFontCtl\"")] + public static ReadOnlySpan WC_NATIVEFONTCTLA => new byte[] { 0x4E, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46, 0x6F, 0x6E, 0x74, 0x43, 0x74, 0x6C, 0x00 }; + + [NativeTypeName("#define WC_NATIVEFONTCTL WC_NATIVEFONTCTLW")] + public const string WC_NATIVEFONTCTL = "NativeFontCtl"; + + [NativeTypeName("#define WC_BUTTONA \"Button\"")] + public static ReadOnlySpan WC_BUTTONA => new byte[] { 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E, 0x00 }; + + [NativeTypeName("#define WC_BUTTONW L\"Button\"")] + public const string WC_BUTTONW = "Button"; + + [NativeTypeName("#define WC_BUTTON WC_BUTTONW")] + public const string WC_BUTTON = "Button"; + + [NativeTypeName("#define WC_STATICA \"Static\"")] + public static ReadOnlySpan WC_STATICA => new byte[] { 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x00 }; + + [NativeTypeName("#define WC_STATICW L\"Static\"")] + public const string WC_STATICW = "Static"; + + [NativeTypeName("#define WC_STATIC WC_STATICW")] + public const string WC_STATIC = "Static"; + + [NativeTypeName("#define WC_EDITA \"Edit\"")] + public static ReadOnlySpan WC_EDITA => new byte[] { 0x45, 0x64, 0x69, 0x74, 0x00 }; + + [NativeTypeName("#define WC_EDITW L\"Edit\"")] + public const string WC_EDITW = "Edit"; + + [NativeTypeName("#define WC_EDIT WC_EDITW")] + public const string WC_EDIT = "Edit"; + + [NativeTypeName("#define WC_LISTBOXA \"ListBox\"")] + public static ReadOnlySpan WC_LISTBOXA => new byte[] { 0x4C, 0x69, 0x73, 0x74, 0x42, 0x6F, 0x78, 0x00 }; + + [NativeTypeName("#define WC_LISTBOXW L\"ListBox\"")] + public const string WC_LISTBOXW = "ListBox"; + + [NativeTypeName("#define WC_LISTBOX WC_LISTBOXW")] + public const string WC_LISTBOX = "ListBox"; + + [NativeTypeName("#define WC_COMBOBOXA \"ComboBox\"")] + public static ReadOnlySpan WC_COMBOBOXA => new byte[] { 0x43, 0x6F, 0x6D, 0x62, 0x6F, 0x42, 0x6F, 0x78, 0x00 }; + + [NativeTypeName("#define WC_COMBOBOXW L\"ComboBox\"")] + public const string WC_COMBOBOXW = "ComboBox"; + + [NativeTypeName("#define WC_COMBOBOX WC_COMBOBOXW")] + public const string WC_COMBOBOX = "ComboBox"; + + [NativeTypeName("#define WC_SCROLLBARA \"ScrollBar\"")] + public static ReadOnlySpan WC_SCROLLBARA => new byte[] { 0x53, 0x63, 0x72, 0x6F, 0x6C, 0x6C, 0x42, 0x61, 0x72, 0x00 }; + + [NativeTypeName("#define WC_SCROLLBARW L\"ScrollBar\"")] + public const string WC_SCROLLBARW = "ScrollBar"; + + [NativeTypeName("#define WC_SCROLLBAR WC_SCROLLBARW")] + public const string WC_SCROLLBAR = "ScrollBar"; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/WSB.cs b/sources/Interop/Windows/Windows/um/CommCtrl/WSB.cs new file mode 100644 index 0000000000..6ad1325f4e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/CommCtrl/WSB.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/CommCtrl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WSB + { + [NativeTypeName("#define WSB_PROP_CYVSCROLL 0x00000001L")] + public const int WSB_PROP_CYVSCROLL = 0x00000001; + + [NativeTypeName("#define WSB_PROP_CXHSCROLL 0x00000002L")] + public const int WSB_PROP_CXHSCROLL = 0x00000002; + + [NativeTypeName("#define WSB_PROP_CYHSCROLL 0x00000004L")] + public const int WSB_PROP_CYHSCROLL = 0x00000004; + + [NativeTypeName("#define WSB_PROP_CXVSCROLL 0x00000008L")] + public const int WSB_PROP_CXVSCROLL = 0x00000008; + + [NativeTypeName("#define WSB_PROP_CXHTHUMB 0x00000010L")] + public const int WSB_PROP_CXHTHUMB = 0x00000010; + + [NativeTypeName("#define WSB_PROP_CYVTHUMB 0x00000020L")] + public const int WSB_PROP_CYVTHUMB = 0x00000020; + + [NativeTypeName("#define WSB_PROP_VBKGCOLOR 0x00000040L")] + public const int WSB_PROP_VBKGCOLOR = 0x00000040; + + [NativeTypeName("#define WSB_PROP_HBKGCOLOR 0x00000080L")] + public const int WSB_PROP_HBKGCOLOR = 0x00000080; + + [NativeTypeName("#define WSB_PROP_VSTYLE 0x00000100L")] + public const int WSB_PROP_VSTYLE = 0x00000100; + + [NativeTypeName("#define WSB_PROP_HSTYLE 0x00000200L")] + public const int WSB_PROP_HSTYLE = 0x00000200; + + [NativeTypeName("#define WSB_PROP_WINSTYLE 0x00000400L")] + public const int WSB_PROP_WINSTYLE = 0x00000400; + + [NativeTypeName("#define WSB_PROP_PALETTE 0x00000800L")] + public const int WSB_PROP_PALETTE = 0x00000800; + + [NativeTypeName("#define WSB_PROP_MASK 0x00000FFFL")] + public const int WSB_PROP_MASK = 0x00000FFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs b/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs index b7277bb59b..356e3d8527 100644 --- a/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/CommCtrl/Windows.cs @@ -244,57 +244,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [DllImport("comctl32", ExactSpelling = true)] public static extern int DrawShadowText(HDC hdc, [NativeTypeName("LPCWSTR")] ushort* pszText, uint cch, RECT* prc, [NativeTypeName("DWORD")] uint dwFlags, COLORREF crText, COLORREF crShadow, int ixOffset, int iyOffset); - [NativeTypeName("#define ICC_LISTVIEW_CLASSES 0x00000001")] - public const int ICC_LISTVIEW_CLASSES = 0x00000001; - - [NativeTypeName("#define ICC_TREEVIEW_CLASSES 0x00000002")] - public const int ICC_TREEVIEW_CLASSES = 0x00000002; - - [NativeTypeName("#define ICC_BAR_CLASSES 0x00000004")] - public const int ICC_BAR_CLASSES = 0x00000004; - - [NativeTypeName("#define ICC_TAB_CLASSES 0x00000008")] - public const int ICC_TAB_CLASSES = 0x00000008; - - [NativeTypeName("#define ICC_UPDOWN_CLASS 0x00000010")] - public const int ICC_UPDOWN_CLASS = 0x00000010; - - [NativeTypeName("#define ICC_PROGRESS_CLASS 0x00000020")] - public const int ICC_PROGRESS_CLASS = 0x00000020; - - [NativeTypeName("#define ICC_HOTKEY_CLASS 0x00000040")] - public const int ICC_HOTKEY_CLASS = 0x00000040; - - [NativeTypeName("#define ICC_ANIMATE_CLASS 0x00000080")] - public const int ICC_ANIMATE_CLASS = 0x00000080; - - [NativeTypeName("#define ICC_WIN95_CLASSES 0x000000FF")] - public const int ICC_WIN95_CLASSES = 0x000000FF; - - [NativeTypeName("#define ICC_DATE_CLASSES 0x00000100")] - public const int ICC_DATE_CLASSES = 0x00000100; - - [NativeTypeName("#define ICC_USEREX_CLASSES 0x00000200")] - public const int ICC_USEREX_CLASSES = 0x00000200; - - [NativeTypeName("#define ICC_COOL_CLASSES 0x00000400")] - public const int ICC_COOL_CLASSES = 0x00000400; - - [NativeTypeName("#define ICC_INTERNET_CLASSES 0x00000800")] - public const int ICC_INTERNET_CLASSES = 0x00000800; - - [NativeTypeName("#define ICC_PAGESCROLLER_CLASS 0x00001000")] - public const int ICC_PAGESCROLLER_CLASS = 0x00001000; - - [NativeTypeName("#define ICC_NATIVEFNTCTL_CLASS 0x00002000")] - public const int ICC_NATIVEFNTCTL_CLASS = 0x00002000; - - [NativeTypeName("#define ICC_STANDARD_CLASSES 0x00004000")] - public const int ICC_STANDARD_CLASSES = 0x00004000; - - [NativeTypeName("#define ICC_LINK_CLASS 0x00008000")] - public const int ICC_LINK_CLASS = 0x00008000; - [NativeTypeName("#define ODT_HEADER 100")] public const int ODT_HEADER = 100; @@ -307,165 +256,18 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TV_FIRST 0x1100")] public const int TV_FIRST = 0x1100; - [NativeTypeName("#define HDM_FIRST 0x1200")] - public const int HDM_FIRST = 0x1200; - - [NativeTypeName("#define TCM_FIRST 0x1300")] - public const int TCM_FIRST = 0x1300; - - [NativeTypeName("#define PGM_FIRST 0x1400")] - public const int PGM_FIRST = 0x1400; - [NativeTypeName("#define ECM_FIRST 0x1500")] public const int ECM_FIRST = 0x1500; - [NativeTypeName("#define BCM_FIRST 0x1600")] - public const int BCM_FIRST = 0x1600; - [NativeTypeName("#define CBM_FIRST 0x1700")] public const int CBM_FIRST = 0x1700; - [NativeTypeName("#define CCM_FIRST 0x2000")] - public const int CCM_FIRST = 0x2000; - - [NativeTypeName("#define CCM_LAST (CCM_FIRST + 0x200)")] - public const int CCM_LAST = (0x2000 + 0x200); - - [NativeTypeName("#define CCM_SETBKCOLOR (CCM_FIRST + 1)")] - public const int CCM_SETBKCOLOR = (0x2000 + 1); - - [NativeTypeName("#define CCM_SETCOLORSCHEME (CCM_FIRST + 2)")] - public const int CCM_SETCOLORSCHEME = (0x2000 + 2); - - [NativeTypeName("#define CCM_GETCOLORSCHEME (CCM_FIRST + 3)")] - public const int CCM_GETCOLORSCHEME = (0x2000 + 3); - - [NativeTypeName("#define CCM_GETDROPTARGET (CCM_FIRST + 4)")] - public const int CCM_GETDROPTARGET = (0x2000 + 4); - - [NativeTypeName("#define CCM_SETUNICODEFORMAT (CCM_FIRST + 5)")] - public const int CCM_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define CCM_GETUNICODEFORMAT (CCM_FIRST + 6)")] - public const int CCM_GETUNICODEFORMAT = (0x2000 + 6); - [NativeTypeName("#define COMCTL32_VERSION 6")] public const int COMCTL32_VERSION = 6; - [NativeTypeName("#define CCM_SETVERSION (CCM_FIRST + 0x7)")] - public const int CCM_SETVERSION = (0x2000 + 0x7); - - [NativeTypeName("#define CCM_GETVERSION (CCM_FIRST + 0x8)")] - public const int CCM_GETVERSION = (0x2000 + 0x8); - - [NativeTypeName("#define CCM_SETNOTIFYWINDOW (CCM_FIRST + 0x9)")] - public const int CCM_SETNOTIFYWINDOW = (0x2000 + 0x9); - - [NativeTypeName("#define CCM_SETWINDOWTHEME (CCM_FIRST + 0xb)")] - public const int CCM_SETWINDOWTHEME = (0x2000 + 0xb); - - [NativeTypeName("#define CCM_DPISCALE (CCM_FIRST + 0xc)")] - public const int CCM_DPISCALE = (0x2000 + 0xc); - [NativeTypeName("#define INFOTIPSIZE 1024")] public const int INFOTIPSIZE = 1024; - [NativeTypeName("#define NM_OUTOFMEMORY (NM_FIRST-1)")] - public const uint NM_OUTOFMEMORY = unchecked((0U - 0U) - 1); - - [NativeTypeName("#define NM_CLICK (NM_FIRST-2)")] - public const uint NM_CLICK = unchecked((0U - 0U) - 2); - - [NativeTypeName("#define NM_DBLCLK (NM_FIRST-3)")] - public const uint NM_DBLCLK = unchecked((0U - 0U) - 3); - - [NativeTypeName("#define NM_RETURN (NM_FIRST-4)")] - public const uint NM_RETURN = unchecked((0U - 0U) - 4); - - [NativeTypeName("#define NM_RCLICK (NM_FIRST-5)")] - public const uint NM_RCLICK = unchecked((0U - 0U) - 5); - - [NativeTypeName("#define NM_RDBLCLK (NM_FIRST-6)")] - public const uint NM_RDBLCLK = unchecked((0U - 0U) - 6); - - [NativeTypeName("#define NM_SETFOCUS (NM_FIRST-7)")] - public const uint NM_SETFOCUS = unchecked((0U - 0U) - 7); - - [NativeTypeName("#define NM_KILLFOCUS (NM_FIRST-8)")] - public const uint NM_KILLFOCUS = unchecked((0U - 0U) - 8); - - [NativeTypeName("#define NM_CUSTOMDRAW (NM_FIRST-12)")] - public const uint NM_CUSTOMDRAW = unchecked((0U - 0U) - 12); - - [NativeTypeName("#define NM_HOVER (NM_FIRST-13)")] - public const uint NM_HOVER = unchecked((0U - 0U) - 13); - - [NativeTypeName("#define NM_NCHITTEST (NM_FIRST-14)")] - public const uint NM_NCHITTEST = unchecked((0U - 0U) - 14); - - [NativeTypeName("#define NM_KEYDOWN (NM_FIRST-15)")] - public const uint NM_KEYDOWN = unchecked((0U - 0U) - 15); - - [NativeTypeName("#define NM_RELEASEDCAPTURE (NM_FIRST-16)")] - public const uint NM_RELEASEDCAPTURE = unchecked((0U - 0U) - 16); - - [NativeTypeName("#define NM_SETCURSOR (NM_FIRST-17)")] - public const uint NM_SETCURSOR = unchecked((0U - 0U) - 17); - - [NativeTypeName("#define NM_CHAR (NM_FIRST-18)")] - public const uint NM_CHAR = unchecked((0U - 0U) - 18); - - [NativeTypeName("#define NM_TOOLTIPSCREATED (NM_FIRST-19)")] - public const uint NM_TOOLTIPSCREATED = unchecked((0U - 0U) - 19); - - [NativeTypeName("#define NM_LDOWN (NM_FIRST-20)")] - public const uint NM_LDOWN = unchecked((0U - 0U) - 20); - - [NativeTypeName("#define NM_RDOWN (NM_FIRST-21)")] - public const uint NM_RDOWN = unchecked((0U - 0U) - 21); - - [NativeTypeName("#define NM_THEMECHANGED (NM_FIRST-22)")] - public const uint NM_THEMECHANGED = unchecked((0U - 0U) - 22); - - [NativeTypeName("#define NM_FONTCHANGED (NM_FIRST-23)")] - public const uint NM_FONTCHANGED = unchecked((0U - 0U) - 23); - - [NativeTypeName("#define NM_CUSTOMTEXT (NM_FIRST-24)")] - public const uint NM_CUSTOMTEXT = unchecked((0U - 0U) - 24); - - [NativeTypeName("#define NM_TVSTATEIMAGECHANGING (NM_FIRST-24)")] - public const uint NM_TVSTATEIMAGECHANGING = unchecked((0U - 0U) - 24); - - [NativeTypeName("#define NM_FIRST (0U- 0U)")] - public const uint NM_FIRST = (0U - 0U); - - [NativeTypeName("#define NM_LAST (0U- 99U)")] - public const uint NM_LAST = unchecked(0U - 99U); - - [NativeTypeName("#define LVN_FIRST (0U-100U)")] - public const uint LVN_FIRST = unchecked(0U - 100U); - - [NativeTypeName("#define LVN_LAST (0U-199U)")] - public const uint LVN_LAST = unchecked(0U - 199U); - - [NativeTypeName("#define HDN_FIRST (0U-300U)")] - public const uint HDN_FIRST = unchecked(0U - 300U); - - [NativeTypeName("#define HDN_LAST (0U-399U)")] - public const uint HDN_LAST = unchecked(0U - 399U); - - [NativeTypeName("#define TVN_FIRST (0U-400U)")] - public const uint TVN_FIRST = unchecked(0U - 400U); - - [NativeTypeName("#define TVN_LAST (0U-499U)")] - public const uint TVN_LAST = unchecked(0U - 499U); - - [NativeTypeName("#define TTN_FIRST (0U-520U)")] - public const uint TTN_FIRST = unchecked(0U - 520U); - - [NativeTypeName("#define TTN_LAST (0U-549U)")] - public const uint TTN_LAST = unchecked(0U - 549U); - [NativeTypeName("#define TCN_FIRST (0U-550U)")] public const uint TCN_FIRST = unchecked(0U - 550U); @@ -478,48 +280,18 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define CDN_LAST (0U-699U)")] public const uint CDN_LAST = unchecked(0U - 699U); - [NativeTypeName("#define TBN_FIRST (0U-700U)")] - public const uint TBN_FIRST = unchecked(0U - 700U); - - [NativeTypeName("#define TBN_LAST (0U-720U)")] - public const uint TBN_LAST = unchecked(0U - 720U); - [NativeTypeName("#define UDN_FIRST (0U-721U)")] public const uint UDN_FIRST = unchecked(0U - 721U); [NativeTypeName("#define UDN_LAST (0U-729U)")] public const uint UDN_LAST = unchecked(0U - 729U); - [NativeTypeName("#define DTN_FIRST (0U-740U)")] - public const uint DTN_FIRST = unchecked(0U - 740U); - - [NativeTypeName("#define DTN_LAST (0U-745U)")] - public const uint DTN_LAST = unchecked(0U - 745U); - [NativeTypeName("#define MCN_FIRST (0U-746U)")] public const uint MCN_FIRST = unchecked(0U - 746U); [NativeTypeName("#define MCN_LAST (0U-752U)")] public const uint MCN_LAST = unchecked(0U - 752U); - [NativeTypeName("#define DTN_FIRST2 (0U-753U)")] - public const uint DTN_FIRST2 = unchecked(0U - 753U); - - [NativeTypeName("#define DTN_LAST2 (0U-799U)")] - public const uint DTN_LAST2 = unchecked(0U - 799U); - - [NativeTypeName("#define CBEN_FIRST (0U-800U)")] - public const uint CBEN_FIRST = unchecked(0U - 800U); - - [NativeTypeName("#define CBEN_LAST (0U-830U)")] - public const uint CBEN_LAST = unchecked(0U - 830U); - - [NativeTypeName("#define RBN_FIRST (0U-831U)")] - public const uint RBN_FIRST = unchecked(0U - 831U); - - [NativeTypeName("#define RBN_LAST (0U-859U)")] - public const uint RBN_LAST = unchecked(0U - 859U); - [NativeTypeName("#define IPN_FIRST (0U-860U)")] public const uint IPN_FIRST = unchecked(0U - 860U); @@ -556,24 +328,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TRBN_LAST (0U-1519U)")] public const uint TRBN_LAST = unchecked(0U - 1519U); - [NativeTypeName("#define EN_FIRST (0U-1520U)")] - public const uint EN_FIRST = unchecked(0U - 1520U); - - [NativeTypeName("#define EN_LAST (0U-1540U)")] - public const uint EN_LAST = unchecked(0U - 1540U); - - [NativeTypeName("#define MSGF_COMMCTRL_BEGINDRAG 0x4200")] - public const int MSGF_COMMCTRL_BEGINDRAG = 0x4200; - - [NativeTypeName("#define MSGF_COMMCTRL_SIZEHEADER 0x4201")] - public const int MSGF_COMMCTRL_SIZEHEADER = 0x4201; - - [NativeTypeName("#define MSGF_COMMCTRL_DRAGSELECT 0x4202")] - public const int MSGF_COMMCTRL_DRAGSELECT = 0x4202; - - [NativeTypeName("#define MSGF_COMMCTRL_TOOLBARCUST 0x4203")] - public const int MSGF_COMMCTRL_TOOLBARCUST = 0x4203; - [NativeTypeName("#define CDRF_DODEFAULT 0x00000000")] public const int CDRF_DODEFAULT = 0x00000000; @@ -601,168 +355,12 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define CDRF_NOTIFYPOSTERASE 0x00000040")] public const int CDRF_NOTIFYPOSTERASE = 0x00000040; - [NativeTypeName("#define CDDS_PREPAINT 0x00000001")] - public const int CDDS_PREPAINT = 0x00000001; - - [NativeTypeName("#define CDDS_POSTPAINT 0x00000002")] - public const int CDDS_POSTPAINT = 0x00000002; - - [NativeTypeName("#define CDDS_PREERASE 0x00000003")] - public const int CDDS_PREERASE = 0x00000003; - - [NativeTypeName("#define CDDS_POSTERASE 0x00000004")] - public const int CDDS_POSTERASE = 0x00000004; - - [NativeTypeName("#define CDDS_ITEM 0x00010000")] - public const int CDDS_ITEM = 0x00010000; - - [NativeTypeName("#define CDDS_ITEMPREPAINT (CDDS_ITEM | CDDS_PREPAINT)")] - public const int CDDS_ITEMPREPAINT = (0x00010000 | 0x00000001); - - [NativeTypeName("#define CDDS_ITEMPOSTPAINT (CDDS_ITEM | CDDS_POSTPAINT)")] - public const int CDDS_ITEMPOSTPAINT = (0x00010000 | 0x00000002); - - [NativeTypeName("#define CDDS_ITEMPREERASE (CDDS_ITEM | CDDS_PREERASE)")] - public const int CDDS_ITEMPREERASE = (0x00010000 | 0x00000003); - - [NativeTypeName("#define CDDS_ITEMPOSTERASE (CDDS_ITEM | CDDS_POSTERASE)")] - public const int CDDS_ITEMPOSTERASE = (0x00010000 | 0x00000004); - - [NativeTypeName("#define CDDS_SUBITEM 0x00020000")] - public const int CDDS_SUBITEM = 0x00020000; - - [NativeTypeName("#define CDIS_SELECTED 0x0001")] - public const int CDIS_SELECTED = 0x0001; - - [NativeTypeName("#define CDIS_GRAYED 0x0002")] - public const int CDIS_GRAYED = 0x0002; - - [NativeTypeName("#define CDIS_DISABLED 0x0004")] - public const int CDIS_DISABLED = 0x0004; - - [NativeTypeName("#define CDIS_CHECKED 0x0008")] - public const int CDIS_CHECKED = 0x0008; - - [NativeTypeName("#define CDIS_FOCUS 0x0010")] - public const int CDIS_FOCUS = 0x0010; - - [NativeTypeName("#define CDIS_DEFAULT 0x0020")] - public const int CDIS_DEFAULT = 0x0020; - - [NativeTypeName("#define CDIS_HOT 0x0040")] - public const int CDIS_HOT = 0x0040; - - [NativeTypeName("#define CDIS_MARKED 0x0080")] - public const int CDIS_MARKED = 0x0080; - - [NativeTypeName("#define CDIS_INDETERMINATE 0x0100")] - public const int CDIS_INDETERMINATE = 0x0100; - - [NativeTypeName("#define CDIS_SHOWKEYBOARDCUES 0x0200")] - public const int CDIS_SHOWKEYBOARDCUES = 0x0200; - - [NativeTypeName("#define CDIS_NEARHOT 0x0400")] - public const int CDIS_NEARHOT = 0x0400; - - [NativeTypeName("#define CDIS_OTHERSIDEHOT 0x0800")] - public const int CDIS_OTHERSIDEHOT = 0x0800; - - [NativeTypeName("#define CDIS_DROPHILITED 0x1000")] - public const int CDIS_DROPHILITED = 0x1000; - - [NativeTypeName("#define NM_GETCUSTOMSPLITRECT (BCN_FIRST + 0x0003)")] - public const uint NM_GETCUSTOMSPLITRECT = unchecked((0U - 1250U) + 0x0003); - [NativeTypeName("#define CLR_NONE 0xFFFFFFFFL")] public const uint CLR_NONE = 0xFFFFFFFF; [NativeTypeName("#define CLR_DEFAULT 0xFF000000L")] public const uint CLR_DEFAULT = 0xFF000000; - [NativeTypeName("#define ILC_MASK 0x00000001")] - public const int ILC_MASK = 0x00000001; - - [NativeTypeName("#define ILC_COLOR 0x00000000")] - public const int ILC_COLOR = 0x00000000; - - [NativeTypeName("#define ILC_COLORDDB 0x000000FE")] - public const int ILC_COLORDDB = 0x000000FE; - - [NativeTypeName("#define ILC_COLOR4 0x00000004")] - public const int ILC_COLOR4 = 0x00000004; - - [NativeTypeName("#define ILC_COLOR8 0x00000008")] - public const int ILC_COLOR8 = 0x00000008; - - [NativeTypeName("#define ILC_COLOR16 0x00000010")] - public const int ILC_COLOR16 = 0x00000010; - - [NativeTypeName("#define ILC_COLOR24 0x00000018")] - public const int ILC_COLOR24 = 0x00000018; - - [NativeTypeName("#define ILC_COLOR32 0x00000020")] - public const int ILC_COLOR32 = 0x00000020; - - [NativeTypeName("#define ILC_PALETTE 0x00000800")] - public const int ILC_PALETTE = 0x00000800; - - [NativeTypeName("#define ILC_MIRROR 0x00002000")] - public const int ILC_MIRROR = 0x00002000; - - [NativeTypeName("#define ILC_PERITEMMIRROR 0x00008000")] - public const int ILC_PERITEMMIRROR = 0x00008000; - - [NativeTypeName("#define ILC_ORIGINALSIZE 0x00010000")] - public const int ILC_ORIGINALSIZE = 0x00010000; - - [NativeTypeName("#define ILC_HIGHQUALITYSCALE 0x00020000")] - public const int ILC_HIGHQUALITYSCALE = 0x00020000; - - [NativeTypeName("#define ILD_NORMAL 0x00000000")] - public const int ILD_NORMAL = 0x00000000; - - [NativeTypeName("#define ILD_TRANSPARENT 0x00000001")] - public const int ILD_TRANSPARENT = 0x00000001; - - [NativeTypeName("#define ILD_MASK 0x00000010")] - public const int ILD_MASK = 0x00000010; - - [NativeTypeName("#define ILD_IMAGE 0x00000020")] - public const int ILD_IMAGE = 0x00000020; - - [NativeTypeName("#define ILD_ROP 0x00000040")] - public const int ILD_ROP = 0x00000040; - - [NativeTypeName("#define ILD_BLEND25 0x00000002")] - public const int ILD_BLEND25 = 0x00000002; - - [NativeTypeName("#define ILD_BLEND50 0x00000004")] - public const int ILD_BLEND50 = 0x00000004; - - [NativeTypeName("#define ILD_OVERLAYMASK 0x00000F00")] - public const int ILD_OVERLAYMASK = 0x00000F00; - - [NativeTypeName("#define ILD_PRESERVEALPHA 0x00001000")] - public const int ILD_PRESERVEALPHA = 0x00001000; - - [NativeTypeName("#define ILD_SCALE 0x00002000")] - public const int ILD_SCALE = 0x00002000; - - [NativeTypeName("#define ILD_DPISCALE 0x00004000")] - public const int ILD_DPISCALE = 0x00004000; - - [NativeTypeName("#define ILD_ASYNC 0x00008000")] - public const int ILD_ASYNC = 0x00008000; - - [NativeTypeName("#define ILD_SELECTED ILD_BLEND50")] - public const int ILD_SELECTED = 0x00000004; - - [NativeTypeName("#define ILD_FOCUS ILD_BLEND25")] - public const int ILD_FOCUS = 0x00000002; - - [NativeTypeName("#define ILD_BLEND ILD_BLEND50")] - public const int ILD_BLEND = 0x00000004; - [NativeTypeName("#define CLR_HILIGHT CLR_DEFAULT")] public const uint CLR_HILIGHT = 0xFF000000; @@ -802,48 +400,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define ILP_DOWNLEVEL 1")] public const int ILP_DOWNLEVEL = 1; - [NativeTypeName("#define WC_HEADERA \"SysHeader32\"")] - public static ReadOnlySpan WC_HEADERA => new byte[] { 0x53, 0x79, 0x73, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x33, 0x32, 0x00 }; - - [NativeTypeName("#define WC_HEADERW L\"SysHeader32\"")] - public const string WC_HEADERW = "SysHeader32"; - - [NativeTypeName("#define WC_HEADER WC_HEADERW")] - public const string WC_HEADER = "SysHeader32"; - - [NativeTypeName("#define HDS_HORZ 0x0000")] - public const int HDS_HORZ = 0x0000; - - [NativeTypeName("#define HDS_BUTTONS 0x0002")] - public const int HDS_BUTTONS = 0x0002; - - [NativeTypeName("#define HDS_HOTTRACK 0x0004")] - public const int HDS_HOTTRACK = 0x0004; - - [NativeTypeName("#define HDS_HIDDEN 0x0008")] - public const int HDS_HIDDEN = 0x0008; - - [NativeTypeName("#define HDS_DRAGDROP 0x0040")] - public const int HDS_DRAGDROP = 0x0040; - - [NativeTypeName("#define HDS_FULLDRAG 0x0080")] - public const int HDS_FULLDRAG = 0x0080; - - [NativeTypeName("#define HDS_FILTERBAR 0x0100")] - public const int HDS_FILTERBAR = 0x0100; - - [NativeTypeName("#define HDS_FLAT 0x0200")] - public const int HDS_FLAT = 0x0200; - - [NativeTypeName("#define HDS_CHECKBOXES 0x0400")] - public const int HDS_CHECKBOXES = 0x0400; - - [NativeTypeName("#define HDS_NOSIZING 0x0800")] - public const int HDS_NOSIZING = 0x0800; - - [NativeTypeName("#define HDS_OVERFLOW 0x1000")] - public const int HDS_OVERFLOW = 0x1000; - [NativeTypeName("#define HDFT_ISSTRING 0x0000")] public const int HDFT_ISSTRING = 0x0000; @@ -856,342 +412,15 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define HDFT_HASNOVALUE 0x8000")] public const int HDFT_HASNOVALUE = 0x8000; - [NativeTypeName("#define HDI_WIDTH 0x0001")] - public const int HDI_WIDTH = 0x0001; - - [NativeTypeName("#define HDI_HEIGHT HDI_WIDTH")] - public const int HDI_HEIGHT = 0x0001; - - [NativeTypeName("#define HDI_TEXT 0x0002")] - public const int HDI_TEXT = 0x0002; - - [NativeTypeName("#define HDI_FORMAT 0x0004")] - public const int HDI_FORMAT = 0x0004; - - [NativeTypeName("#define HDI_LPARAM 0x0008")] - public const int HDI_LPARAM = 0x0008; - - [NativeTypeName("#define HDI_BITMAP 0x0010")] - public const int HDI_BITMAP = 0x0010; - - [NativeTypeName("#define HDI_IMAGE 0x0020")] - public const int HDI_IMAGE = 0x0020; - - [NativeTypeName("#define HDI_DI_SETITEM 0x0040")] - public const int HDI_DI_SETITEM = 0x0040; - - [NativeTypeName("#define HDI_ORDER 0x0080")] - public const int HDI_ORDER = 0x0080; - - [NativeTypeName("#define HDI_FILTER 0x0100")] - public const int HDI_FILTER = 0x0100; - - [NativeTypeName("#define HDI_STATE 0x0200")] - public const int HDI_STATE = 0x0200; - - [NativeTypeName("#define HDF_LEFT 0x0000")] - public const int HDF_LEFT = 0x0000; - - [NativeTypeName("#define HDF_RIGHT 0x0001")] - public const int HDF_RIGHT = 0x0001; - - [NativeTypeName("#define HDF_CENTER 0x0002")] - public const int HDF_CENTER = 0x0002; - - [NativeTypeName("#define HDF_JUSTIFYMASK 0x0003")] - public const int HDF_JUSTIFYMASK = 0x0003; - - [NativeTypeName("#define HDF_RTLREADING 0x0004")] - public const int HDF_RTLREADING = 0x0004; - - [NativeTypeName("#define HDF_BITMAP 0x2000")] - public const int HDF_BITMAP = 0x2000; - - [NativeTypeName("#define HDF_STRING 0x4000")] - public const int HDF_STRING = 0x4000; - - [NativeTypeName("#define HDF_OWNERDRAW 0x8000")] - public const int HDF_OWNERDRAW = 0x8000; - - [NativeTypeName("#define HDF_IMAGE 0x0800")] - public const int HDF_IMAGE = 0x0800; - - [NativeTypeName("#define HDF_BITMAP_ON_RIGHT 0x1000")] - public const int HDF_BITMAP_ON_RIGHT = 0x1000; - - [NativeTypeName("#define HDF_SORTUP 0x0400")] - public const int HDF_SORTUP = 0x0400; - - [NativeTypeName("#define HDF_SORTDOWN 0x0200")] - public const int HDF_SORTDOWN = 0x0200; - - [NativeTypeName("#define HDF_CHECKBOX 0x0040")] - public const int HDF_CHECKBOX = 0x0040; - - [NativeTypeName("#define HDF_CHECKED 0x0080")] - public const int HDF_CHECKED = 0x0080; - - [NativeTypeName("#define HDF_FIXEDWIDTH 0x0100")] - public const int HDF_FIXEDWIDTH = 0x0100; - - [NativeTypeName("#define HDF_SPLITBUTTON 0x1000000")] - public const int HDF_SPLITBUTTON = 0x1000000; - [NativeTypeName("#define HDIS_FOCUSED 0x00000001")] public const int HDIS_FOCUSED = 0x00000001; - [NativeTypeName("#define HDM_GETITEMCOUNT (HDM_FIRST + 0)")] - public const int HDM_GETITEMCOUNT = (0x1200 + 0); - - [NativeTypeName("#define HDM_INSERTITEMA (HDM_FIRST + 1)")] - public const int HDM_INSERTITEMA = (0x1200 + 1); - - [NativeTypeName("#define HDM_INSERTITEMW (HDM_FIRST + 10)")] - public const int HDM_INSERTITEMW = (0x1200 + 10); - - [NativeTypeName("#define HDM_INSERTITEM HDM_INSERTITEMW")] - public const int HDM_INSERTITEM = (0x1200 + 10); - - [NativeTypeName("#define HDM_DELETEITEM (HDM_FIRST + 2)")] - public const int HDM_DELETEITEM = (0x1200 + 2); - - [NativeTypeName("#define HDM_GETITEMA (HDM_FIRST + 3)")] - public const int HDM_GETITEMA = (0x1200 + 3); - - [NativeTypeName("#define HDM_GETITEMW (HDM_FIRST + 11)")] - public const int HDM_GETITEMW = (0x1200 + 11); - - [NativeTypeName("#define HDM_GETITEM HDM_GETITEMW")] - public const int HDM_GETITEM = (0x1200 + 11); - - [NativeTypeName("#define HDM_SETITEMA (HDM_FIRST + 4)")] - public const int HDM_SETITEMA = (0x1200 + 4); - - [NativeTypeName("#define HDM_SETITEMW (HDM_FIRST + 12)")] - public const int HDM_SETITEMW = (0x1200 + 12); - - [NativeTypeName("#define HDM_SETITEM HDM_SETITEMW")] - public const int HDM_SETITEM = (0x1200 + 12); - - [NativeTypeName("#define HDM_LAYOUT (HDM_FIRST + 5)")] - public const int HDM_LAYOUT = (0x1200 + 5); - - [NativeTypeName("#define HHT_NOWHERE 0x0001")] - public const int HHT_NOWHERE = 0x0001; - - [NativeTypeName("#define HHT_ONHEADER 0x0002")] - public const int HHT_ONHEADER = 0x0002; - - [NativeTypeName("#define HHT_ONDIVIDER 0x0004")] - public const int HHT_ONDIVIDER = 0x0004; - - [NativeTypeName("#define HHT_ONDIVOPEN 0x0008")] - public const int HHT_ONDIVOPEN = 0x0008; - - [NativeTypeName("#define HHT_ONFILTER 0x0010")] - public const int HHT_ONFILTER = 0x0010; - - [NativeTypeName("#define HHT_ONFILTERBUTTON 0x0020")] - public const int HHT_ONFILTERBUTTON = 0x0020; - - [NativeTypeName("#define HHT_ABOVE 0x0100")] - public const int HHT_ABOVE = 0x0100; - - [NativeTypeName("#define HHT_BELOW 0x0200")] - public const int HHT_BELOW = 0x0200; - - [NativeTypeName("#define HHT_TORIGHT 0x0400")] - public const int HHT_TORIGHT = 0x0400; - - [NativeTypeName("#define HHT_TOLEFT 0x0800")] - public const int HHT_TOLEFT = 0x0800; - - [NativeTypeName("#define HHT_ONITEMSTATEICON 0x1000")] - public const int HHT_ONITEMSTATEICON = 0x1000; - - [NativeTypeName("#define HHT_ONDROPDOWN 0x2000")] - public const int HHT_ONDROPDOWN = 0x2000; - - [NativeTypeName("#define HHT_ONOVERFLOW 0x4000")] - public const int HHT_ONOVERFLOW = 0x4000; - [NativeTypeName("#define HDSIL_NORMAL 0")] public const int HDSIL_NORMAL = 0; [NativeTypeName("#define HDSIL_STATE 1")] public const int HDSIL_STATE = 1; - [NativeTypeName("#define HDM_HITTEST (HDM_FIRST + 6)")] - public const int HDM_HITTEST = (0x1200 + 6); - - [NativeTypeName("#define HDM_GETITEMRECT (HDM_FIRST + 7)")] - public const int HDM_GETITEMRECT = (0x1200 + 7); - - [NativeTypeName("#define HDM_SETIMAGELIST (HDM_FIRST + 8)")] - public const int HDM_SETIMAGELIST = (0x1200 + 8); - - [NativeTypeName("#define HDM_GETIMAGELIST (HDM_FIRST + 9)")] - public const int HDM_GETIMAGELIST = (0x1200 + 9); - - [NativeTypeName("#define HDM_ORDERTOINDEX (HDM_FIRST + 15)")] - public const int HDM_ORDERTOINDEX = (0x1200 + 15); - - [NativeTypeName("#define HDM_CREATEDRAGIMAGE (HDM_FIRST + 16)")] - public const int HDM_CREATEDRAGIMAGE = (0x1200 + 16); - - [NativeTypeName("#define HDM_GETORDERARRAY (HDM_FIRST + 17)")] - public const int HDM_GETORDERARRAY = (0x1200 + 17); - - [NativeTypeName("#define HDM_SETORDERARRAY (HDM_FIRST + 18)")] - public const int HDM_SETORDERARRAY = (0x1200 + 18); - - [NativeTypeName("#define HDM_SETHOTDIVIDER (HDM_FIRST + 19)")] - public const int HDM_SETHOTDIVIDER = (0x1200 + 19); - - [NativeTypeName("#define HDM_SETBITMAPMARGIN (HDM_FIRST + 20)")] - public const int HDM_SETBITMAPMARGIN = (0x1200 + 20); - - [NativeTypeName("#define HDM_GETBITMAPMARGIN (HDM_FIRST + 21)")] - public const int HDM_GETBITMAPMARGIN = (0x1200 + 21); - - [NativeTypeName("#define HDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] - public const int HDM_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define HDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] - public const int HDM_GETUNICODEFORMAT = (0x2000 + 6); - - [NativeTypeName("#define HDM_SETFILTERCHANGETIMEOUT (HDM_FIRST+22)")] - public const int HDM_SETFILTERCHANGETIMEOUT = (0x1200 + 22); - - [NativeTypeName("#define HDM_EDITFILTER (HDM_FIRST+23)")] - public const int HDM_EDITFILTER = (0x1200 + 23); - - [NativeTypeName("#define HDM_CLEARFILTER (HDM_FIRST+24)")] - public const int HDM_CLEARFILTER = (0x1200 + 24); - - [NativeTypeName("#define HDM_GETITEMDROPDOWNRECT (HDM_FIRST+25)")] - public const int HDM_GETITEMDROPDOWNRECT = (0x1200 + 25); - - [NativeTypeName("#define HDM_GETOVERFLOWRECT (HDM_FIRST+26)")] - public const int HDM_GETOVERFLOWRECT = (0x1200 + 26); - - [NativeTypeName("#define HDM_GETFOCUSEDITEM (HDM_FIRST+27)")] - public const int HDM_GETFOCUSEDITEM = (0x1200 + 27); - - [NativeTypeName("#define HDM_SETFOCUSEDITEM (HDM_FIRST+28)")] - public const int HDM_SETFOCUSEDITEM = (0x1200 + 28); - - [NativeTypeName("#define HDN_ITEMCHANGINGA (HDN_FIRST-0)")] - public const uint HDN_ITEMCHANGINGA = unchecked((0U - 300U) - 0); - - [NativeTypeName("#define HDN_ITEMCHANGINGW (HDN_FIRST-20)")] - public const uint HDN_ITEMCHANGINGW = unchecked((0U - 300U) - 20); - - [NativeTypeName("#define HDN_ITEMCHANGEDA (HDN_FIRST-1)")] - public const uint HDN_ITEMCHANGEDA = unchecked((0U - 300U) - 1); - - [NativeTypeName("#define HDN_ITEMCHANGEDW (HDN_FIRST-21)")] - public const uint HDN_ITEMCHANGEDW = unchecked((0U - 300U) - 21); - - [NativeTypeName("#define HDN_ITEMCLICKA (HDN_FIRST-2)")] - public const uint HDN_ITEMCLICKA = unchecked((0U - 300U) - 2); - - [NativeTypeName("#define HDN_ITEMCLICKW (HDN_FIRST-22)")] - public const uint HDN_ITEMCLICKW = unchecked((0U - 300U) - 22); - - [NativeTypeName("#define HDN_ITEMDBLCLICKA (HDN_FIRST-3)")] - public const uint HDN_ITEMDBLCLICKA = unchecked((0U - 300U) - 3); - - [NativeTypeName("#define HDN_ITEMDBLCLICKW (HDN_FIRST-23)")] - public const uint HDN_ITEMDBLCLICKW = unchecked((0U - 300U) - 23); - - [NativeTypeName("#define HDN_DIVIDERDBLCLICKA (HDN_FIRST-5)")] - public const uint HDN_DIVIDERDBLCLICKA = unchecked((0U - 300U) - 5); - - [NativeTypeName("#define HDN_DIVIDERDBLCLICKW (HDN_FIRST-25)")] - public const uint HDN_DIVIDERDBLCLICKW = unchecked((0U - 300U) - 25); - - [NativeTypeName("#define HDN_BEGINTRACKA (HDN_FIRST-6)")] - public const uint HDN_BEGINTRACKA = unchecked((0U - 300U) - 6); - - [NativeTypeName("#define HDN_BEGINTRACKW (HDN_FIRST-26)")] - public const uint HDN_BEGINTRACKW = unchecked((0U - 300U) - 26); - - [NativeTypeName("#define HDN_ENDTRACKA (HDN_FIRST-7)")] - public const uint HDN_ENDTRACKA = unchecked((0U - 300U) - 7); - - [NativeTypeName("#define HDN_ENDTRACKW (HDN_FIRST-27)")] - public const uint HDN_ENDTRACKW = unchecked((0U - 300U) - 27); - - [NativeTypeName("#define HDN_TRACKA (HDN_FIRST-8)")] - public const uint HDN_TRACKA = unchecked((0U - 300U) - 8); - - [NativeTypeName("#define HDN_TRACKW (HDN_FIRST-28)")] - public const uint HDN_TRACKW = unchecked((0U - 300U) - 28); - - [NativeTypeName("#define HDN_GETDISPINFOA (HDN_FIRST-9)")] - public const uint HDN_GETDISPINFOA = unchecked((0U - 300U) - 9); - - [NativeTypeName("#define HDN_GETDISPINFOW (HDN_FIRST-29)")] - public const uint HDN_GETDISPINFOW = unchecked((0U - 300U) - 29); - - [NativeTypeName("#define HDN_BEGINDRAG (HDN_FIRST-10)")] - public const uint HDN_BEGINDRAG = unchecked((0U - 300U) - 10); - - [NativeTypeName("#define HDN_ENDDRAG (HDN_FIRST-11)")] - public const uint HDN_ENDDRAG = unchecked((0U - 300U) - 11); - - [NativeTypeName("#define HDN_FILTERCHANGE (HDN_FIRST-12)")] - public const uint HDN_FILTERCHANGE = unchecked((0U - 300U) - 12); - - [NativeTypeName("#define HDN_FILTERBTNCLICK (HDN_FIRST-13)")] - public const uint HDN_FILTERBTNCLICK = unchecked((0U - 300U) - 13); - - [NativeTypeName("#define HDN_BEGINFILTEREDIT (HDN_FIRST-14)")] - public const uint HDN_BEGINFILTEREDIT = unchecked((0U - 300U) - 14); - - [NativeTypeName("#define HDN_ENDFILTEREDIT (HDN_FIRST-15)")] - public const uint HDN_ENDFILTEREDIT = unchecked((0U - 300U) - 15); - - [NativeTypeName("#define HDN_ITEMSTATEICONCLICK (HDN_FIRST-16)")] - public const uint HDN_ITEMSTATEICONCLICK = unchecked((0U - 300U) - 16); - - [NativeTypeName("#define HDN_ITEMKEYDOWN (HDN_FIRST-17)")] - public const uint HDN_ITEMKEYDOWN = unchecked((0U - 300U) - 17); - - [NativeTypeName("#define HDN_DROPDOWN (HDN_FIRST-18)")] - public const uint HDN_DROPDOWN = unchecked((0U - 300U) - 18); - - [NativeTypeName("#define HDN_OVERFLOWCLICK (HDN_FIRST-19)")] - public const uint HDN_OVERFLOWCLICK = unchecked((0U - 300U) - 19); - - [NativeTypeName("#define HDN_ITEMCHANGING HDN_ITEMCHANGINGW")] - public const uint HDN_ITEMCHANGING = unchecked((0U - 300U) - 20); - - [NativeTypeName("#define HDN_ITEMCHANGED HDN_ITEMCHANGEDW")] - public const uint HDN_ITEMCHANGED = unchecked((0U - 300U) - 21); - - [NativeTypeName("#define HDN_ITEMCLICK HDN_ITEMCLICKW")] - public const uint HDN_ITEMCLICK = unchecked((0U - 300U) - 22); - - [NativeTypeName("#define HDN_ITEMDBLCLICK HDN_ITEMDBLCLICKW")] - public const uint HDN_ITEMDBLCLICK = unchecked((0U - 300U) - 23); - - [NativeTypeName("#define HDN_DIVIDERDBLCLICK HDN_DIVIDERDBLCLICKW")] - public const uint HDN_DIVIDERDBLCLICK = unchecked((0U - 300U) - 25); - - [NativeTypeName("#define HDN_BEGINTRACK HDN_BEGINTRACKW")] - public const uint HDN_BEGINTRACK = unchecked((0U - 300U) - 26); - - [NativeTypeName("#define HDN_ENDTRACK HDN_ENDTRACKW")] - public const uint HDN_ENDTRACK = unchecked((0U - 300U) - 27); - - [NativeTypeName("#define HDN_TRACK HDN_TRACKW")] - public const uint HDN_TRACK = unchecked((0U - 300U) - 28); - - [NativeTypeName("#define HDN_GETDISPINFO HDN_GETDISPINFOW")] - public const uint HDN_GETDISPINFO = unchecked((0U - 300U) - 29); - [NativeTypeName("#define TOOLBARCLASSNAMEW L\"ToolbarWindow32\"")] public const string TOOLBARCLASSNAMEW = "ToolbarWindow32"; @@ -1226,397 +455,64 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const int TBSTATE_ELLIPSES = 0x40; [NativeTypeName("#define TBSTATE_MARKED 0x80")] - public const int TBSTATE_MARKED = 0x80; - - [NativeTypeName("#define TBSTYLE_BUTTON 0x0000")] - public const int TBSTYLE_BUTTON = 0x0000; - - [NativeTypeName("#define TBSTYLE_SEP 0x0001")] - public const int TBSTYLE_SEP = 0x0001; - - [NativeTypeName("#define TBSTYLE_CHECK 0x0002")] - public const int TBSTYLE_CHECK = 0x0002; - - [NativeTypeName("#define TBSTYLE_GROUP 0x0004")] - public const int TBSTYLE_GROUP = 0x0004; - - [NativeTypeName("#define TBSTYLE_CHECKGROUP (TBSTYLE_GROUP | TBSTYLE_CHECK)")] - public const int TBSTYLE_CHECKGROUP = (0x0004 | 0x0002); - - [NativeTypeName("#define TBSTYLE_DROPDOWN 0x0008")] - public const int TBSTYLE_DROPDOWN = 0x0008; - - [NativeTypeName("#define TBSTYLE_AUTOSIZE 0x0010")] - public const int TBSTYLE_AUTOSIZE = 0x0010; - - [NativeTypeName("#define TBSTYLE_NOPREFIX 0x0020")] - public const int TBSTYLE_NOPREFIX = 0x0020; - - [NativeTypeName("#define TBSTYLE_TOOLTIPS 0x0100")] - public const int TBSTYLE_TOOLTIPS = 0x0100; - - [NativeTypeName("#define TBSTYLE_WRAPABLE 0x0200")] - public const int TBSTYLE_WRAPABLE = 0x0200; - - [NativeTypeName("#define TBSTYLE_ALTDRAG 0x0400")] - public const int TBSTYLE_ALTDRAG = 0x0400; - - [NativeTypeName("#define TBSTYLE_FLAT 0x0800")] - public const int TBSTYLE_FLAT = 0x0800; - - [NativeTypeName("#define TBSTYLE_LIST 0x1000")] - public const int TBSTYLE_LIST = 0x1000; - - [NativeTypeName("#define TBSTYLE_CUSTOMERASE 0x2000")] - public const int TBSTYLE_CUSTOMERASE = 0x2000; - - [NativeTypeName("#define TBSTYLE_REGISTERDROP 0x4000")] - public const int TBSTYLE_REGISTERDROP = 0x4000; - - [NativeTypeName("#define TBSTYLE_TRANSPARENT 0x8000")] - public const int TBSTYLE_TRANSPARENT = 0x8000; - - [NativeTypeName("#define TBSTYLE_EX_DRAWDDARROWS 0x00000001")] - public const int TBSTYLE_EX_DRAWDDARROWS = 0x00000001; - - [NativeTypeName("#define BTNS_BUTTON TBSTYLE_BUTTON")] - public const int BTNS_BUTTON = 0x0000; - - [NativeTypeName("#define BTNS_SEP TBSTYLE_SEP")] - public const int BTNS_SEP = 0x0001; - - [NativeTypeName("#define BTNS_CHECK TBSTYLE_CHECK")] - public const int BTNS_CHECK = 0x0002; - - [NativeTypeName("#define BTNS_GROUP TBSTYLE_GROUP")] - public const int BTNS_GROUP = 0x0004; - - [NativeTypeName("#define BTNS_CHECKGROUP TBSTYLE_CHECKGROUP")] - public const int BTNS_CHECKGROUP = (0x0004 | 0x0002); - - [NativeTypeName("#define BTNS_DROPDOWN TBSTYLE_DROPDOWN")] - public const int BTNS_DROPDOWN = 0x0008; - - [NativeTypeName("#define BTNS_AUTOSIZE TBSTYLE_AUTOSIZE")] - public const int BTNS_AUTOSIZE = 0x0010; - - [NativeTypeName("#define BTNS_NOPREFIX TBSTYLE_NOPREFIX")] - public const int BTNS_NOPREFIX = 0x0020; - - [NativeTypeName("#define BTNS_SHOWTEXT 0x0040")] - public const int BTNS_SHOWTEXT = 0x0040; - - [NativeTypeName("#define BTNS_WHOLEDROPDOWN 0x0080")] - public const int BTNS_WHOLEDROPDOWN = 0x0080; - - [NativeTypeName("#define TBSTYLE_EX_MIXEDBUTTONS 0x00000008")] - public const int TBSTYLE_EX_MIXEDBUTTONS = 0x00000008; - - [NativeTypeName("#define TBSTYLE_EX_HIDECLIPPEDBUTTONS 0x00000010")] - public const int TBSTYLE_EX_HIDECLIPPEDBUTTONS = 0x00000010; - - [NativeTypeName("#define TBSTYLE_EX_MULTICOLUMN 0x00000002")] - public const int TBSTYLE_EX_MULTICOLUMN = 0x00000002; - - [NativeTypeName("#define TBSTYLE_EX_VERTICAL 0x00000004")] - public const int TBSTYLE_EX_VERTICAL = 0x00000004; - - [NativeTypeName("#define TBSTYLE_EX_DOUBLEBUFFER 0x00000080")] - public const int TBSTYLE_EX_DOUBLEBUFFER = 0x00000080; - - [NativeTypeName("#define TBCDRF_NOEDGES 0x00010000")] - public const int TBCDRF_NOEDGES = 0x00010000; - - [NativeTypeName("#define TBCDRF_HILITEHOTTRACK 0x00020000")] - public const int TBCDRF_HILITEHOTTRACK = 0x00020000; - - [NativeTypeName("#define TBCDRF_NOOFFSET 0x00040000")] - public const int TBCDRF_NOOFFSET = 0x00040000; - - [NativeTypeName("#define TBCDRF_NOMARK 0x00080000")] - public const int TBCDRF_NOMARK = 0x00080000; - - [NativeTypeName("#define TBCDRF_NOETCHEDEFFECT 0x00100000")] - public const int TBCDRF_NOETCHEDEFFECT = 0x00100000; - - [NativeTypeName("#define TBCDRF_BLENDICON 0x00200000")] - public const int TBCDRF_BLENDICON = 0x00200000; - - [NativeTypeName("#define TBCDRF_NOBACKGROUND 0x00400000")] - public const int TBCDRF_NOBACKGROUND = 0x00400000; - - [NativeTypeName("#define TBCDRF_USECDCOLORS 0x00800000")] - public const int TBCDRF_USECDCOLORS = 0x00800000; - - [NativeTypeName("#define IDB_STD_SMALL_COLOR 0")] - public const int IDB_STD_SMALL_COLOR = 0; - - [NativeTypeName("#define IDB_STD_LARGE_COLOR 1")] - public const int IDB_STD_LARGE_COLOR = 1; - - [NativeTypeName("#define IDB_VIEW_SMALL_COLOR 4")] - public const int IDB_VIEW_SMALL_COLOR = 4; - - [NativeTypeName("#define IDB_VIEW_LARGE_COLOR 5")] - public const int IDB_VIEW_LARGE_COLOR = 5; - - [NativeTypeName("#define IDB_HIST_SMALL_COLOR 8")] - public const int IDB_HIST_SMALL_COLOR = 8; - - [NativeTypeName("#define IDB_HIST_LARGE_COLOR 9")] - public const int IDB_HIST_LARGE_COLOR = 9; - - [NativeTypeName("#define IDB_HIST_NORMAL 12")] - public const int IDB_HIST_NORMAL = 12; - - [NativeTypeName("#define IDB_HIST_HOT 13")] - public const int IDB_HIST_HOT = 13; - - [NativeTypeName("#define IDB_HIST_DISABLED 14")] - public const int IDB_HIST_DISABLED = 14; - - [NativeTypeName("#define IDB_HIST_PRESSED 15")] - public const int IDB_HIST_PRESSED = 15; - - [NativeTypeName("#define STD_CUT 0")] - public const int STD_CUT = 0; - - [NativeTypeName("#define STD_COPY 1")] - public const int STD_COPY = 1; - - [NativeTypeName("#define STD_PASTE 2")] - public const int STD_PASTE = 2; - - [NativeTypeName("#define STD_UNDO 3")] - public const int STD_UNDO = 3; - - [NativeTypeName("#define STD_REDOW 4")] - public const int STD_REDOW = 4; - - [NativeTypeName("#define STD_DELETE 5")] - public const int STD_DELETE = 5; - - [NativeTypeName("#define STD_FILENEW 6")] - public const int STD_FILENEW = 6; - - [NativeTypeName("#define STD_FILEOPEN 7")] - public const int STD_FILEOPEN = 7; - - [NativeTypeName("#define STD_FILESAVE 8")] - public const int STD_FILESAVE = 8; - - [NativeTypeName("#define STD_PRINTPRE 9")] - public const int STD_PRINTPRE = 9; - - [NativeTypeName("#define STD_PROPERTIES 10")] - public const int STD_PROPERTIES = 10; - - [NativeTypeName("#define STD_HELP 11")] - public const int STD_HELP = 11; - - [NativeTypeName("#define STD_FIND 12")] - public const int STD_FIND = 12; - - [NativeTypeName("#define STD_REPLACE 13")] - public const int STD_REPLACE = 13; - - [NativeTypeName("#define STD_PRINT 14")] - public const int STD_PRINT = 14; - - [NativeTypeName("#define VIEW_LARGEICONS 0")] - public const int VIEW_LARGEICONS = 0; - - [NativeTypeName("#define VIEW_SMALLICONS 1")] - public const int VIEW_SMALLICONS = 1; - - [NativeTypeName("#define VIEW_LIST 2")] - public const int VIEW_LIST = 2; - - [NativeTypeName("#define VIEW_DETAILS 3")] - public const int VIEW_DETAILS = 3; - - [NativeTypeName("#define VIEW_SORTNAME 4")] - public const int VIEW_SORTNAME = 4; - - [NativeTypeName("#define VIEW_SORTSIZE 5")] - public const int VIEW_SORTSIZE = 5; - - [NativeTypeName("#define VIEW_SORTDATE 6")] - public const int VIEW_SORTDATE = 6; - - [NativeTypeName("#define VIEW_SORTTYPE 7")] - public const int VIEW_SORTTYPE = 7; - - [NativeTypeName("#define VIEW_PARENTFOLDER 8")] - public const int VIEW_PARENTFOLDER = 8; - - [NativeTypeName("#define VIEW_NETCONNECT 9")] - public const int VIEW_NETCONNECT = 9; - - [NativeTypeName("#define VIEW_NETDISCONNECT 10")] - public const int VIEW_NETDISCONNECT = 10; - - [NativeTypeName("#define VIEW_NEWFOLDER 11")] - public const int VIEW_NEWFOLDER = 11; - - [NativeTypeName("#define VIEW_VIEWMENU 12")] - public const int VIEW_VIEWMENU = 12; - - [NativeTypeName("#define HIST_BACK 0")] - public const int HIST_BACK = 0; - - [NativeTypeName("#define HIST_FORWARD 1")] - public const int HIST_FORWARD = 1; - - [NativeTypeName("#define HIST_FAVORITES 2")] - public const int HIST_FAVORITES = 2; - - [NativeTypeName("#define HIST_ADDTOFAVORITES 3")] - public const int HIST_ADDTOFAVORITES = 3; - - [NativeTypeName("#define HIST_VIEWTREE 4")] - public const int HIST_VIEWTREE = 4; - - [NativeTypeName("#define TBIMHT_AFTER 0x00000001")] - public const int TBIMHT_AFTER = 0x00000001; - - [NativeTypeName("#define TBIMHT_BACKGROUND 0x00000002")] - public const int TBIMHT_BACKGROUND = 0x00000002; - - [NativeTypeName("#define TBBF_LARGE 0x0001")] - public const int TBBF_LARGE = 0x0001; - - [NativeTypeName("#define TBIF_IMAGE 0x00000001")] - public const int TBIF_IMAGE = 0x00000001; - - [NativeTypeName("#define TBIF_TEXT 0x00000002")] - public const int TBIF_TEXT = 0x00000002; - - [NativeTypeName("#define TBIF_STATE 0x00000004")] - public const int TBIF_STATE = 0x00000004; - - [NativeTypeName("#define TBIF_STYLE 0x00000008")] - public const int TBIF_STYLE = 0x00000008; - - [NativeTypeName("#define TBIF_LPARAM 0x00000010")] - public const int TBIF_LPARAM = 0x00000010; - - [NativeTypeName("#define TBIF_COMMAND 0x00000020")] - public const int TBIF_COMMAND = 0x00000020; - - [NativeTypeName("#define TBIF_SIZE 0x00000040")] - public const int TBIF_SIZE = 0x00000040; - - [NativeTypeName("#define TBIF_BYINDEX 0x80000000")] - public const uint TBIF_BYINDEX = 0x80000000; - - [NativeTypeName("#define TBMF_PAD 0x00000001")] - public const int TBMF_PAD = 0x00000001; - - [NativeTypeName("#define TBMF_BARPAD 0x00000002")] - public const int TBMF_BARPAD = 0x00000002; - - [NativeTypeName("#define TBMF_BUTTONSPACING 0x00000004")] - public const int TBMF_BUTTONSPACING = 0x00000004; - - [NativeTypeName("#define TBN_GETBUTTONINFOA (TBN_FIRST-0)")] - public const uint TBN_GETBUTTONINFOA = unchecked((0U - 700U) - 0); - - [NativeTypeName("#define TBN_BEGINDRAG (TBN_FIRST-1)")] - public const uint TBN_BEGINDRAG = unchecked((0U - 700U) - 1); - - [NativeTypeName("#define TBN_ENDDRAG (TBN_FIRST-2)")] - public const uint TBN_ENDDRAG = unchecked((0U - 700U) - 2); - - [NativeTypeName("#define TBN_BEGINADJUST (TBN_FIRST-3)")] - public const uint TBN_BEGINADJUST = unchecked((0U - 700U) - 3); - - [NativeTypeName("#define TBN_ENDADJUST (TBN_FIRST-4)")] - public const uint TBN_ENDADJUST = unchecked((0U - 700U) - 4); - - [NativeTypeName("#define TBN_RESET (TBN_FIRST-5)")] - public const uint TBN_RESET = unchecked((0U - 700U) - 5); - - [NativeTypeName("#define TBN_QUERYINSERT (TBN_FIRST-6)")] - public const uint TBN_QUERYINSERT = unchecked((0U - 700U) - 6); - - [NativeTypeName("#define TBN_QUERYDELETE (TBN_FIRST-7)")] - public const uint TBN_QUERYDELETE = unchecked((0U - 700U) - 7); - - [NativeTypeName("#define TBN_TOOLBARCHANGE (TBN_FIRST-8)")] - public const uint TBN_TOOLBARCHANGE = unchecked((0U - 700U) - 8); - - [NativeTypeName("#define TBN_CUSTHELP (TBN_FIRST-9)")] - public const uint TBN_CUSTHELP = unchecked((0U - 700U) - 9); - - [NativeTypeName("#define TBN_DROPDOWN (TBN_FIRST - 10)")] - public const uint TBN_DROPDOWN = unchecked((0U - 700U) - 10); - - [NativeTypeName("#define TBN_GETOBJECT (TBN_FIRST - 12)")] - public const uint TBN_GETOBJECT = unchecked((0U - 700U) - 12); - - [NativeTypeName("#define HICF_OTHER 0x00000000")] - public const int HICF_OTHER = 0x00000000; - - [NativeTypeName("#define HICF_MOUSE 0x00000001")] - public const int HICF_MOUSE = 0x00000001; + public const int TBSTATE_MARKED = 0x80; - [NativeTypeName("#define HICF_ARROWKEYS 0x00000002")] - public const int HICF_ARROWKEYS = 0x00000002; + [NativeTypeName("#define TBCDRF_NOEDGES 0x00010000")] + public const int TBCDRF_NOEDGES = 0x00010000; - [NativeTypeName("#define HICF_ACCELERATOR 0x00000004")] - public const int HICF_ACCELERATOR = 0x00000004; + [NativeTypeName("#define TBCDRF_HILITEHOTTRACK 0x00020000")] + public const int TBCDRF_HILITEHOTTRACK = 0x00020000; - [NativeTypeName("#define HICF_DUPACCEL 0x00000008")] - public const int HICF_DUPACCEL = 0x00000008; + [NativeTypeName("#define TBCDRF_NOOFFSET 0x00040000")] + public const int TBCDRF_NOOFFSET = 0x00040000; - [NativeTypeName("#define HICF_ENTERING 0x00000010")] - public const int HICF_ENTERING = 0x00000010; + [NativeTypeName("#define TBCDRF_NOMARK 0x00080000")] + public const int TBCDRF_NOMARK = 0x00080000; - [NativeTypeName("#define HICF_LEAVING 0x00000020")] - public const int HICF_LEAVING = 0x00000020; + [NativeTypeName("#define TBCDRF_NOETCHEDEFFECT 0x00100000")] + public const int TBCDRF_NOETCHEDEFFECT = 0x00100000; - [NativeTypeName("#define HICF_RESELECT 0x00000040")] - public const int HICF_RESELECT = 0x00000040; + [NativeTypeName("#define TBCDRF_BLENDICON 0x00200000")] + public const int TBCDRF_BLENDICON = 0x00200000; - [NativeTypeName("#define HICF_LMOUSE 0x00000080")] - public const int HICF_LMOUSE = 0x00000080; + [NativeTypeName("#define TBCDRF_NOBACKGROUND 0x00400000")] + public const int TBCDRF_NOBACKGROUND = 0x00400000; - [NativeTypeName("#define HICF_TOGGLEDROPDOWN 0x00000100")] - public const int HICF_TOGGLEDROPDOWN = 0x00000100; + [NativeTypeName("#define TBCDRF_USECDCOLORS 0x00800000")] + public const int TBCDRF_USECDCOLORS = 0x00800000; - [NativeTypeName("#define TBN_HOTITEMCHANGE (TBN_FIRST - 13)")] - public const uint TBN_HOTITEMCHANGE = unchecked((0U - 700U) - 13); + [NativeTypeName("#define HIST_BACK 0")] + public const int HIST_BACK = 0; - [NativeTypeName("#define TBN_DRAGOUT (TBN_FIRST - 14)")] - public const uint TBN_DRAGOUT = unchecked((0U - 700U) - 14); + [NativeTypeName("#define HIST_FORWARD 1")] + public const int HIST_FORWARD = 1; - [NativeTypeName("#define TBN_DELETINGBUTTON (TBN_FIRST - 15)")] - public const uint TBN_DELETINGBUTTON = unchecked((0U - 700U) - 15); + [NativeTypeName("#define HIST_FAVORITES 2")] + public const int HIST_FAVORITES = 2; - [NativeTypeName("#define TBN_GETDISPINFOA (TBN_FIRST - 16)")] - public const uint TBN_GETDISPINFOA = unchecked((0U - 700U) - 16); + [NativeTypeName("#define HIST_ADDTOFAVORITES 3")] + public const int HIST_ADDTOFAVORITES = 3; - [NativeTypeName("#define TBN_GETDISPINFOW (TBN_FIRST - 17)")] - public const uint TBN_GETDISPINFOW = unchecked((0U - 700U) - 17); + [NativeTypeName("#define HIST_VIEWTREE 4")] + public const int HIST_VIEWTREE = 4; - [NativeTypeName("#define TBN_GETINFOTIPA (TBN_FIRST - 18)")] - public const uint TBN_GETINFOTIPA = unchecked((0U - 700U) - 18); + [NativeTypeName("#define TBIMHT_AFTER 0x00000001")] + public const int TBIMHT_AFTER = 0x00000001; - [NativeTypeName("#define TBN_GETINFOTIPW (TBN_FIRST - 19)")] - public const uint TBN_GETINFOTIPW = unchecked((0U - 700U) - 19); + [NativeTypeName("#define TBIMHT_BACKGROUND 0x00000002")] + public const int TBIMHT_BACKGROUND = 0x00000002; - [NativeTypeName("#define TBN_GETBUTTONINFOW (TBN_FIRST - 20)")] - public const uint TBN_GETBUTTONINFOW = unchecked((0U - 700U) - 20); + [NativeTypeName("#define TBBF_LARGE 0x0001")] + public const int TBBF_LARGE = 0x0001; - [NativeTypeName("#define TBN_RESTORE (TBN_FIRST - 21)")] - public const uint TBN_RESTORE = unchecked((0U - 700U) - 21); + [NativeTypeName("#define TBMF_PAD 0x00000001")] + public const int TBMF_PAD = 0x00000001; - [NativeTypeName("#define TBN_SAVE (TBN_FIRST - 22)")] - public const uint TBN_SAVE = unchecked((0U - 700U) - 22); + [NativeTypeName("#define TBMF_BARPAD 0x00000002")] + public const int TBMF_BARPAD = 0x00000002; - [NativeTypeName("#define TBN_INITCUSTOMIZE (TBN_FIRST - 23)")] - public const uint TBN_INITCUSTOMIZE = unchecked((0U - 700U) - 23); + [NativeTypeName("#define TBMF_BUTTONSPACING 0x00000004")] + public const int TBMF_BUTTONSPACING = 0x00000004; [NativeTypeName("#define TBNRF_HIDEHELP 0x00000001")] public const int TBNRF_HIDEHELP = 0x00000001; @@ -1624,24 +520,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TBNRF_ENDCUSTOMIZE 0x00000002")] public const int TBNRF_ENDCUSTOMIZE = 0x00000002; - [NativeTypeName("#define TBN_WRAPHOTITEM (TBN_FIRST - 24)")] - public const uint TBN_WRAPHOTITEM = unchecked((0U - 700U) - 24); - - [NativeTypeName("#define TBN_DUPACCELERATOR (TBN_FIRST - 25)")] - public const uint TBN_DUPACCELERATOR = unchecked((0U - 700U) - 25); - - [NativeTypeName("#define TBN_WRAPACCELERATOR (TBN_FIRST - 26)")] - public const uint TBN_WRAPACCELERATOR = unchecked((0U - 700U) - 26); - - [NativeTypeName("#define TBN_DRAGOVER (TBN_FIRST - 27)")] - public const uint TBN_DRAGOVER = unchecked((0U - 700U) - 27); - - [NativeTypeName("#define TBN_MAPACCELERATOR (TBN_FIRST - 28)")] - public const uint TBN_MAPACCELERATOR = unchecked((0U - 700U) - 28); - - [NativeTypeName("#define TBN_GETINFOTIP TBN_GETINFOTIPW")] - public const uint TBN_GETINFOTIP = unchecked((0U - 700U) - 19); - [NativeTypeName("#define TBNF_IMAGE 0x00000001")] public const int TBNF_IMAGE = 0x00000001; @@ -1651,9 +529,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TBNF_DI_SETITEM 0x10000000")] public const int TBNF_DI_SETITEM = 0x10000000; - [NativeTypeName("#define TBN_GETDISPINFO TBN_GETDISPINFOW")] - public const uint TBN_GETDISPINFO = unchecked((0U - 700U) - 17); - [NativeTypeName("#define TBDDRET_DEFAULT 0")] public const int TBDDRET_DEFAULT = 0; @@ -1663,9 +538,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TBDDRET_TREATPRESSED 2")] public const int TBDDRET_TREATPRESSED = 2; - [NativeTypeName("#define TBN_GETBUTTONINFO TBN_GETBUTTONINFOW")] - public const uint TBN_GETBUTTONINFO = unchecked((0U - 700U) - 20); - [NativeTypeName("#define REBARCLASSNAMEW L\"ReBarWindow32\"")] public const string REBARCLASSNAMEW = "ReBarWindow32"; @@ -1702,270 +574,9 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define RBS_DBLCLKTOGGLE 0x00008000")] public const int RBS_DBLCLKTOGGLE = 0x00008000; - [NativeTypeName("#define RBBS_BREAK 0x00000001")] - public const int RBBS_BREAK = 0x00000001; - - [NativeTypeName("#define RBBS_FIXEDSIZE 0x00000002")] - public const int RBBS_FIXEDSIZE = 0x00000002; - - [NativeTypeName("#define RBBS_CHILDEDGE 0x00000004")] - public const int RBBS_CHILDEDGE = 0x00000004; - - [NativeTypeName("#define RBBS_HIDDEN 0x00000008")] - public const int RBBS_HIDDEN = 0x00000008; - - [NativeTypeName("#define RBBS_NOVERT 0x00000010")] - public const int RBBS_NOVERT = 0x00000010; - - [NativeTypeName("#define RBBS_FIXEDBMP 0x00000020")] - public const int RBBS_FIXEDBMP = 0x00000020; - - [NativeTypeName("#define RBBS_VARIABLEHEIGHT 0x00000040")] - public const int RBBS_VARIABLEHEIGHT = 0x00000040; - - [NativeTypeName("#define RBBS_GRIPPERALWAYS 0x00000080")] - public const int RBBS_GRIPPERALWAYS = 0x00000080; - - [NativeTypeName("#define RBBS_NOGRIPPER 0x00000100")] - public const int RBBS_NOGRIPPER = 0x00000100; - - [NativeTypeName("#define RBBS_USECHEVRON 0x00000200")] - public const int RBBS_USECHEVRON = 0x00000200; - - [NativeTypeName("#define RBBS_HIDETITLE 0x00000400")] - public const int RBBS_HIDETITLE = 0x00000400; - - [NativeTypeName("#define RBBS_TOPALIGN 0x00000800")] - public const int RBBS_TOPALIGN = 0x00000800; - - [NativeTypeName("#define RBBIM_STYLE 0x00000001")] - public const int RBBIM_STYLE = 0x00000001; - - [NativeTypeName("#define RBBIM_COLORS 0x00000002")] - public const int RBBIM_COLORS = 0x00000002; - - [NativeTypeName("#define RBBIM_TEXT 0x00000004")] - public const int RBBIM_TEXT = 0x00000004; - - [NativeTypeName("#define RBBIM_IMAGE 0x00000008")] - public const int RBBIM_IMAGE = 0x00000008; - - [NativeTypeName("#define RBBIM_CHILD 0x00000010")] - public const int RBBIM_CHILD = 0x00000010; - - [NativeTypeName("#define RBBIM_CHILDSIZE 0x00000020")] - public const int RBBIM_CHILDSIZE = 0x00000020; - - [NativeTypeName("#define RBBIM_SIZE 0x00000040")] - public const int RBBIM_SIZE = 0x00000040; - - [NativeTypeName("#define RBBIM_BACKGROUND 0x00000080")] - public const int RBBIM_BACKGROUND = 0x00000080; - - [NativeTypeName("#define RBBIM_ID 0x00000100")] - public const int RBBIM_ID = 0x00000100; - - [NativeTypeName("#define RBBIM_IDEALSIZE 0x00000200")] - public const int RBBIM_IDEALSIZE = 0x00000200; - - [NativeTypeName("#define RBBIM_LPARAM 0x00000400")] - public const int RBBIM_LPARAM = 0x00000400; - - [NativeTypeName("#define RBBIM_HEADERSIZE 0x00000800")] - public const int RBBIM_HEADERSIZE = 0x00000800; - - [NativeTypeName("#define RBBIM_CHEVRONLOCATION 0x00001000")] - public const int RBBIM_CHEVRONLOCATION = 0x00001000; - - [NativeTypeName("#define RBBIM_CHEVRONSTATE 0x00002000")] - public const int RBBIM_CHEVRONSTATE = 0x00002000; - - [NativeTypeName("#define RB_INSERTBANDA (WM_USER + 1)")] - public const int RB_INSERTBANDA = (0x0400 + 1); - - [NativeTypeName("#define RB_DELETEBAND (WM_USER + 2)")] - public const int RB_DELETEBAND = (0x0400 + 2); - - [NativeTypeName("#define RB_GETBARINFO (WM_USER + 3)")] - public const int RB_GETBARINFO = (0x0400 + 3); - - [NativeTypeName("#define RB_SETBARINFO (WM_USER + 4)")] - public const int RB_SETBARINFO = (0x0400 + 4); - - [NativeTypeName("#define RB_SETBANDINFOA (WM_USER + 6)")] - public const int RB_SETBANDINFOA = (0x0400 + 6); - - [NativeTypeName("#define RB_SETPARENT (WM_USER + 7)")] - public const int RB_SETPARENT = (0x0400 + 7); - - [NativeTypeName("#define RB_HITTEST (WM_USER + 8)")] - public const int RB_HITTEST = (0x0400 + 8); - - [NativeTypeName("#define RB_GETRECT (WM_USER + 9)")] - public const int RB_GETRECT = (0x0400 + 9); - - [NativeTypeName("#define RB_INSERTBANDW (WM_USER + 10)")] - public const int RB_INSERTBANDW = (0x0400 + 10); - - [NativeTypeName("#define RB_SETBANDINFOW (WM_USER + 11)")] - public const int RB_SETBANDINFOW = (0x0400 + 11); - - [NativeTypeName("#define RB_GETBANDCOUNT (WM_USER + 12)")] - public const int RB_GETBANDCOUNT = (0x0400 + 12); - - [NativeTypeName("#define RB_GETROWCOUNT (WM_USER + 13)")] - public const int RB_GETROWCOUNT = (0x0400 + 13); - - [NativeTypeName("#define RB_GETROWHEIGHT (WM_USER + 14)")] - public const int RB_GETROWHEIGHT = (0x0400 + 14); - - [NativeTypeName("#define RB_IDTOINDEX (WM_USER + 16)")] - public const int RB_IDTOINDEX = (0x0400 + 16); - - [NativeTypeName("#define RB_GETTOOLTIPS (WM_USER + 17)")] - public const int RB_GETTOOLTIPS = (0x0400 + 17); - - [NativeTypeName("#define RB_SETTOOLTIPS (WM_USER + 18)")] - public const int RB_SETTOOLTIPS = (0x0400 + 18); - - [NativeTypeName("#define RB_SETBKCOLOR (WM_USER + 19)")] - public const int RB_SETBKCOLOR = (0x0400 + 19); - - [NativeTypeName("#define RB_GETBKCOLOR (WM_USER + 20)")] - public const int RB_GETBKCOLOR = (0x0400 + 20); - - [NativeTypeName("#define RB_SETTEXTCOLOR (WM_USER + 21)")] - public const int RB_SETTEXTCOLOR = (0x0400 + 21); - - [NativeTypeName("#define RB_GETTEXTCOLOR (WM_USER + 22)")] - public const int RB_GETTEXTCOLOR = (0x0400 + 22); - [NativeTypeName("#define RBSTR_CHANGERECT 0x0001")] public const int RBSTR_CHANGERECT = 0x0001; - [NativeTypeName("#define RB_SIZETORECT (WM_USER + 23)")] - public const int RB_SIZETORECT = (0x0400 + 23); - - [NativeTypeName("#define RB_SETCOLORSCHEME CCM_SETCOLORSCHEME")] - public const int RB_SETCOLORSCHEME = (0x2000 + 2); - - [NativeTypeName("#define RB_GETCOLORSCHEME CCM_GETCOLORSCHEME")] - public const int RB_GETCOLORSCHEME = (0x2000 + 3); - - [NativeTypeName("#define RB_INSERTBAND RB_INSERTBANDW")] - public const int RB_INSERTBAND = (0x0400 + 10); - - [NativeTypeName("#define RB_SETBANDINFO RB_SETBANDINFOW")] - public const int RB_SETBANDINFO = (0x0400 + 11); - - [NativeTypeName("#define RB_BEGINDRAG (WM_USER + 24)")] - public const int RB_BEGINDRAG = (0x0400 + 24); - - [NativeTypeName("#define RB_ENDDRAG (WM_USER + 25)")] - public const int RB_ENDDRAG = (0x0400 + 25); - - [NativeTypeName("#define RB_DRAGMOVE (WM_USER + 26)")] - public const int RB_DRAGMOVE = (0x0400 + 26); - - [NativeTypeName("#define RB_GETBARHEIGHT (WM_USER + 27)")] - public const int RB_GETBARHEIGHT = (0x0400 + 27); - - [NativeTypeName("#define RB_GETBANDINFOW (WM_USER + 28)")] - public const int RB_GETBANDINFOW = (0x0400 + 28); - - [NativeTypeName("#define RB_GETBANDINFOA (WM_USER + 29)")] - public const int RB_GETBANDINFOA = (0x0400 + 29); - - [NativeTypeName("#define RB_GETBANDINFO RB_GETBANDINFOW")] - public const int RB_GETBANDINFO = (0x0400 + 28); - - [NativeTypeName("#define RB_MINIMIZEBAND (WM_USER + 30)")] - public const int RB_MINIMIZEBAND = (0x0400 + 30); - - [NativeTypeName("#define RB_MAXIMIZEBAND (WM_USER + 31)")] - public const int RB_MAXIMIZEBAND = (0x0400 + 31); - - [NativeTypeName("#define RB_GETDROPTARGET (CCM_GETDROPTARGET)")] - public const int RB_GETDROPTARGET = ((0x2000 + 4)); - - [NativeTypeName("#define RB_GETBANDBORDERS (WM_USER + 34)")] - public const int RB_GETBANDBORDERS = (0x0400 + 34); - - [NativeTypeName("#define RB_SHOWBAND (WM_USER + 35)")] - public const int RB_SHOWBAND = (0x0400 + 35); - - [NativeTypeName("#define RB_SETPALETTE (WM_USER + 37)")] - public const int RB_SETPALETTE = (0x0400 + 37); - - [NativeTypeName("#define RB_GETPALETTE (WM_USER + 38)")] - public const int RB_GETPALETTE = (0x0400 + 38); - - [NativeTypeName("#define RB_MOVEBAND (WM_USER + 39)")] - public const int RB_MOVEBAND = (0x0400 + 39); - - [NativeTypeName("#define RB_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] - public const int RB_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define RB_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] - public const int RB_GETUNICODEFORMAT = (0x2000 + 6); - - [NativeTypeName("#define RB_GETBANDMARGINS (WM_USER + 40)")] - public const int RB_GETBANDMARGINS = (0x0400 + 40); - - [NativeTypeName("#define RB_SETWINDOWTHEME CCM_SETWINDOWTHEME")] - public const int RB_SETWINDOWTHEME = (0x2000 + 0xb); - - [NativeTypeName("#define RB_SETEXTENDEDSTYLE (WM_USER + 41)")] - public const int RB_SETEXTENDEDSTYLE = (0x0400 + 41); - - [NativeTypeName("#define RB_GETEXTENDEDSTYLE (WM_USER + 42)")] - public const int RB_GETEXTENDEDSTYLE = (0x0400 + 42); - - [NativeTypeName("#define RB_PUSHCHEVRON (WM_USER + 43)")] - public const int RB_PUSHCHEVRON = (0x0400 + 43); - - [NativeTypeName("#define RB_SETBANDWIDTH (WM_USER + 44)")] - public const int RB_SETBANDWIDTH = (0x0400 + 44); - - [NativeTypeName("#define RBN_HEIGHTCHANGE (RBN_FIRST - 0)")] - public const uint RBN_HEIGHTCHANGE = unchecked((0U - 831U) - 0); - - [NativeTypeName("#define RBN_GETOBJECT (RBN_FIRST - 1)")] - public const uint RBN_GETOBJECT = unchecked((0U - 831U) - 1); - - [NativeTypeName("#define RBN_LAYOUTCHANGED (RBN_FIRST - 2)")] - public const uint RBN_LAYOUTCHANGED = unchecked((0U - 831U) - 2); - - [NativeTypeName("#define RBN_AUTOSIZE (RBN_FIRST - 3)")] - public const uint RBN_AUTOSIZE = unchecked((0U - 831U) - 3); - - [NativeTypeName("#define RBN_BEGINDRAG (RBN_FIRST - 4)")] - public const uint RBN_BEGINDRAG = unchecked((0U - 831U) - 4); - - [NativeTypeName("#define RBN_ENDDRAG (RBN_FIRST - 5)")] - public const uint RBN_ENDDRAG = unchecked((0U - 831U) - 5); - - [NativeTypeName("#define RBN_DELETINGBAND (RBN_FIRST - 6)")] - public const uint RBN_DELETINGBAND = unchecked((0U - 831U) - 6); - - [NativeTypeName("#define RBN_DELETEDBAND (RBN_FIRST - 7)")] - public const uint RBN_DELETEDBAND = unchecked((0U - 831U) - 7); - - [NativeTypeName("#define RBN_CHILDSIZE (RBN_FIRST - 8)")] - public const uint RBN_CHILDSIZE = unchecked((0U - 831U) - 8); - - [NativeTypeName("#define RBN_CHEVRONPUSHED (RBN_FIRST - 10)")] - public const uint RBN_CHEVRONPUSHED = unchecked((0U - 831U) - 10); - - [NativeTypeName("#define RBN_SPLITTERDRAG (RBN_FIRST - 11)")] - public const uint RBN_SPLITTERDRAG = unchecked((0U - 831U) - 11); - - [NativeTypeName("#define RBN_MINMAX (RBN_FIRST - 21)")] - public const uint RBN_MINMAX = unchecked((0U - 831U) - 21); - - [NativeTypeName("#define RBN_AUTOBREAK (RBN_FIRST - 22)")] - public const uint RBN_AUTOBREAK = unchecked((0U - 831U) - 22); - [NativeTypeName("#define RBNM_ID 0x00000001")] public const int RBNM_ID = 0x00000001; @@ -2089,33 +700,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TTI_ERROR_LARGE 6")] public const int TTI_ERROR_LARGE = 6; - [NativeTypeName("#define TTN_GETDISPINFOA (TTN_FIRST - 0)")] - public const uint TTN_GETDISPINFOA = unchecked((0U - 520U) - 0); - - [NativeTypeName("#define TTN_GETDISPINFOW (TTN_FIRST - 10)")] - public const uint TTN_GETDISPINFOW = unchecked((0U - 520U) - 10); - - [NativeTypeName("#define TTN_SHOW (TTN_FIRST - 1)")] - public const uint TTN_SHOW = unchecked((0U - 520U) - 1); - - [NativeTypeName("#define TTN_POP (TTN_FIRST - 2)")] - public const uint TTN_POP = unchecked((0U - 520U) - 2); - - [NativeTypeName("#define TTN_LINKCLICK (TTN_FIRST - 3)")] - public const uint TTN_LINKCLICK = unchecked((0U - 520U) - 3); - - [NativeTypeName("#define TTN_GETDISPINFO TTN_GETDISPINFOW")] - public const uint TTN_GETDISPINFO = unchecked((0U - 520U) - 10); - - [NativeTypeName("#define TTN_NEEDTEXT TTN_GETDISPINFO")] - public const uint TTN_NEEDTEXT = unchecked((0U - 520U) - 10); - - [NativeTypeName("#define TTN_NEEDTEXTA TTN_GETDISPINFOA")] - public const uint TTN_NEEDTEXTA = unchecked((0U - 520U) - 0); - - [NativeTypeName("#define TTN_NEEDTEXTW TTN_GETDISPINFOW")] - public const uint TTN_NEEDTEXTW = unchecked((0U - 520U) - 10); - [NativeTypeName("#define SBARS_SIZEGRIP 0x0100")] public const int SBARS_SIZEGRIP = 0x0100; @@ -2170,99 +754,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TRACKBAR_CLASS TRACKBAR_CLASSW")] public const string TRACKBAR_CLASS = "msctls_trackbar32"; - [NativeTypeName("#define TBM_GETPOS (WM_USER)")] - public const int TBM_GETPOS = (0x0400); - - [NativeTypeName("#define TBM_GETRANGEMIN (WM_USER+1)")] - public const int TBM_GETRANGEMIN = (0x0400 + 1); - - [NativeTypeName("#define TBM_GETRANGEMAX (WM_USER+2)")] - public const int TBM_GETRANGEMAX = (0x0400 + 2); - - [NativeTypeName("#define TBM_GETTIC (WM_USER+3)")] - public const int TBM_GETTIC = (0x0400 + 3); - - [NativeTypeName("#define TBM_SETTIC (WM_USER+4)")] - public const int TBM_SETTIC = (0x0400 + 4); - - [NativeTypeName("#define TBM_SETPOS (WM_USER+5)")] - public const int TBM_SETPOS = (0x0400 + 5); - - [NativeTypeName("#define TBM_SETRANGE (WM_USER+6)")] - public const int TBM_SETRANGE = (0x0400 + 6); - - [NativeTypeName("#define TBM_SETRANGEMIN (WM_USER+7)")] - public const int TBM_SETRANGEMIN = (0x0400 + 7); - - [NativeTypeName("#define TBM_SETRANGEMAX (WM_USER+8)")] - public const int TBM_SETRANGEMAX = (0x0400 + 8); - - [NativeTypeName("#define TBM_CLEARTICS (WM_USER+9)")] - public const int TBM_CLEARTICS = (0x0400 + 9); - - [NativeTypeName("#define TBM_SETSEL (WM_USER+10)")] - public const int TBM_SETSEL = (0x0400 + 10); - - [NativeTypeName("#define TBM_SETSELSTART (WM_USER+11)")] - public const int TBM_SETSELSTART = (0x0400 + 11); - - [NativeTypeName("#define TBM_SETSELEND (WM_USER+12)")] - public const int TBM_SETSELEND = (0x0400 + 12); - - [NativeTypeName("#define TBM_GETPTICS (WM_USER+14)")] - public const int TBM_GETPTICS = (0x0400 + 14); - - [NativeTypeName("#define TBM_GETTICPOS (WM_USER+15)")] - public const int TBM_GETTICPOS = (0x0400 + 15); - - [NativeTypeName("#define TBM_GETNUMTICS (WM_USER+16)")] - public const int TBM_GETNUMTICS = (0x0400 + 16); - - [NativeTypeName("#define TBM_GETSELSTART (WM_USER+17)")] - public const int TBM_GETSELSTART = (0x0400 + 17); - - [NativeTypeName("#define TBM_GETSELEND (WM_USER+18)")] - public const int TBM_GETSELEND = (0x0400 + 18); - - [NativeTypeName("#define TBM_CLEARSEL (WM_USER+19)")] - public const int TBM_CLEARSEL = (0x0400 + 19); - - [NativeTypeName("#define TBM_SETTICFREQ (WM_USER+20)")] - public const int TBM_SETTICFREQ = (0x0400 + 20); - - [NativeTypeName("#define TBM_SETPAGESIZE (WM_USER+21)")] - public const int TBM_SETPAGESIZE = (0x0400 + 21); - - [NativeTypeName("#define TBM_GETPAGESIZE (WM_USER+22)")] - public const int TBM_GETPAGESIZE = (0x0400 + 22); - - [NativeTypeName("#define TBM_SETLINESIZE (WM_USER+23)")] - public const int TBM_SETLINESIZE = (0x0400 + 23); - - [NativeTypeName("#define TBM_GETLINESIZE (WM_USER+24)")] - public const int TBM_GETLINESIZE = (0x0400 + 24); - - [NativeTypeName("#define TBM_GETTHUMBRECT (WM_USER+25)")] - public const int TBM_GETTHUMBRECT = (0x0400 + 25); - - [NativeTypeName("#define TBM_GETCHANNELRECT (WM_USER+26)")] - public const int TBM_GETCHANNELRECT = (0x0400 + 26); - - [NativeTypeName("#define TBM_SETTHUMBLENGTH (WM_USER+27)")] - public const int TBM_SETTHUMBLENGTH = (0x0400 + 27); - - [NativeTypeName("#define TBM_GETTHUMBLENGTH (WM_USER+28)")] - public const int TBM_GETTHUMBLENGTH = (0x0400 + 28); - - [NativeTypeName("#define TBM_SETTOOLTIPS (WM_USER+29)")] - public const int TBM_SETTOOLTIPS = (0x0400 + 29); - - [NativeTypeName("#define TBM_GETTOOLTIPS (WM_USER+30)")] - public const int TBM_GETTOOLTIPS = (0x0400 + 30); - - [NativeTypeName("#define TBM_SETTIPSIDE (WM_USER+31)")] - public const int TBM_SETTIPSIDE = (0x0400 + 31); - [NativeTypeName("#define TBTS_TOP 0")] public const int TBTS_TOP = 0; @@ -2275,21 +766,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TBTS_RIGHT 3")] public const int TBTS_RIGHT = 3; - [NativeTypeName("#define TBM_SETBUDDY (WM_USER+32)")] - public const int TBM_SETBUDDY = (0x0400 + 32); - - [NativeTypeName("#define TBM_GETBUDDY (WM_USER+33)")] - public const int TBM_GETBUDDY = (0x0400 + 33); - - [NativeTypeName("#define TBM_SETPOSNOTIFY (WM_USER+34)")] - public const int TBM_SETPOSNOTIFY = (0x0400 + 34); - - [NativeTypeName("#define TBM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] - public const int TBM_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define TBM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] - public const int TBM_GETUNICODEFORMAT = (0x2000 + 6); - [NativeTypeName("#define TBCD_TICS 0x0001")] public const int TBCD_TICS = 0x0001; @@ -2371,54 +847,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define UDS_HOTTRACK 0x0100")] public const int UDS_HOTTRACK = 0x0100; - [NativeTypeName("#define UDM_SETRANGE (WM_USER+101)")] - public const int UDM_SETRANGE = (0x0400 + 101); - - [NativeTypeName("#define UDM_GETRANGE (WM_USER+102)")] - public const int UDM_GETRANGE = (0x0400 + 102); - - [NativeTypeName("#define UDM_SETPOS (WM_USER+103)")] - public const int UDM_SETPOS = (0x0400 + 103); - - [NativeTypeName("#define UDM_GETPOS (WM_USER+104)")] - public const int UDM_GETPOS = (0x0400 + 104); - - [NativeTypeName("#define UDM_SETBUDDY (WM_USER+105)")] - public const int UDM_SETBUDDY = (0x0400 + 105); - - [NativeTypeName("#define UDM_GETBUDDY (WM_USER+106)")] - public const int UDM_GETBUDDY = (0x0400 + 106); - - [NativeTypeName("#define UDM_SETACCEL (WM_USER+107)")] - public const int UDM_SETACCEL = (0x0400 + 107); - - [NativeTypeName("#define UDM_GETACCEL (WM_USER+108)")] - public const int UDM_GETACCEL = (0x0400 + 108); - - [NativeTypeName("#define UDM_SETBASE (WM_USER+109)")] - public const int UDM_SETBASE = (0x0400 + 109); - - [NativeTypeName("#define UDM_GETBASE (WM_USER+110)")] - public const int UDM_GETBASE = (0x0400 + 110); - - [NativeTypeName("#define UDM_SETRANGE32 (WM_USER+111)")] - public const int UDM_SETRANGE32 = (0x0400 + 111); - - [NativeTypeName("#define UDM_GETRANGE32 (WM_USER+112)")] - public const int UDM_GETRANGE32 = (0x0400 + 112); - - [NativeTypeName("#define UDM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] - public const int UDM_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define UDM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] - public const int UDM_GETUNICODEFORMAT = (0x2000 + 6); - - [NativeTypeName("#define UDM_SETPOS32 (WM_USER+113)")] - public const int UDM_SETPOS32 = (0x0400 + 113); - - [NativeTypeName("#define UDM_GETPOS32 (WM_USER+114)")] - public const int UDM_GETPOS32 = (0x0400 + 114); - [NativeTypeName("#define UDN_DELTAPOS (UDN_FIRST - 1)")] public const uint UDN_DELTAPOS = unchecked((0U - 721U) - 1); @@ -2437,60 +865,12 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define PBS_VERTICAL 0x04")] public const int PBS_VERTICAL = 0x04; - [NativeTypeName("#define PBM_SETRANGE (WM_USER+1)")] - public const int PBM_SETRANGE = (0x0400 + 1); - - [NativeTypeName("#define PBM_SETPOS (WM_USER+2)")] - public const int PBM_SETPOS = (0x0400 + 2); - - [NativeTypeName("#define PBM_DELTAPOS (WM_USER+3)")] - public const int PBM_DELTAPOS = (0x0400 + 3); - - [NativeTypeName("#define PBM_SETSTEP (WM_USER+4)")] - public const int PBM_SETSTEP = (0x0400 + 4); - - [NativeTypeName("#define PBM_STEPIT (WM_USER+5)")] - public const int PBM_STEPIT = (0x0400 + 5); - - [NativeTypeName("#define PBM_SETRANGE32 (WM_USER+6)")] - public const int PBM_SETRANGE32 = (0x0400 + 6); - - [NativeTypeName("#define PBM_GETRANGE (WM_USER+7)")] - public const int PBM_GETRANGE = (0x0400 + 7); - - [NativeTypeName("#define PBM_GETPOS (WM_USER+8)")] - public const int PBM_GETPOS = (0x0400 + 8); - - [NativeTypeName("#define PBM_SETBARCOLOR (WM_USER+9)")] - public const int PBM_SETBARCOLOR = (0x0400 + 9); - - [NativeTypeName("#define PBM_SETBKCOLOR CCM_SETBKCOLOR")] - public const int PBM_SETBKCOLOR = (0x2000 + 1); - [NativeTypeName("#define PBS_MARQUEE 0x08")] public const int PBS_MARQUEE = 0x08; - [NativeTypeName("#define PBM_SETMARQUEE (WM_USER+10)")] - public const int PBM_SETMARQUEE = (0x0400 + 10); - [NativeTypeName("#define PBS_SMOOTHREVERSE 0x10")] public const int PBS_SMOOTHREVERSE = 0x10; - [NativeTypeName("#define PBM_GETSTEP (WM_USER+13)")] - public const int PBM_GETSTEP = (0x0400 + 13); - - [NativeTypeName("#define PBM_GETBKCOLOR (WM_USER+14)")] - public const int PBM_GETBKCOLOR = (0x0400 + 14); - - [NativeTypeName("#define PBM_GETBARCOLOR (WM_USER+15)")] - public const int PBM_GETBARCOLOR = (0x0400 + 15); - - [NativeTypeName("#define PBM_SETSTATE (WM_USER+16)")] - public const int PBM_SETSTATE = (0x0400 + 16); - - [NativeTypeName("#define PBM_GETSTATE (WM_USER+17)")] - public const int PBM_GETSTATE = (0x0400 + 17); - [NativeTypeName("#define PBST_NORMAL 0x0001")] public const int PBST_NORMAL = 0x0001; @@ -2554,48 +934,12 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define HOTKEY_CLASS HOTKEY_CLASSW")] public const string HOTKEY_CLASS = "msctls_hotkey32"; - [NativeTypeName("#define CCS_TOP 0x00000001L")] - public const int CCS_TOP = 0x00000001; - - [NativeTypeName("#define CCS_NOMOVEY 0x00000002L")] - public const int CCS_NOMOVEY = 0x00000002; - - [NativeTypeName("#define CCS_BOTTOM 0x00000003L")] - public const int CCS_BOTTOM = 0x00000003; - - [NativeTypeName("#define CCS_NORESIZE 0x00000004L")] - public const int CCS_NORESIZE = 0x00000004; - - [NativeTypeName("#define CCS_NOPARENTALIGN 0x00000008L")] - public const int CCS_NOPARENTALIGN = 0x00000008; - - [NativeTypeName("#define CCS_ADJUSTABLE 0x00000020L")] - public const int CCS_ADJUSTABLE = 0x00000020; - - [NativeTypeName("#define CCS_NODIVIDER 0x00000040L")] - public const int CCS_NODIVIDER = 0x00000040; - - [NativeTypeName("#define CCS_VERT 0x00000080L")] - public const int CCS_VERT = 0x00000080; - - [NativeTypeName("#define CCS_LEFT (CCS_VERT | CCS_TOP)")] - public const int CCS_LEFT = (0x00000080 | 0x00000001); - - [NativeTypeName("#define CCS_RIGHT (CCS_VERT | CCS_BOTTOM)")] - public const int CCS_RIGHT = (0x00000080 | 0x00000003); - - [NativeTypeName("#define CCS_NOMOVEX (CCS_VERT | CCS_NOMOVEY)")] - public const int CCS_NOMOVEX = (0x00000080 | 0x00000002); - [NativeTypeName("#define INVALID_LINK_INDEX (-1)")] public const int INVALID_LINK_INDEX = (-1); [NativeTypeName("#define L_MAX_URL_LENGTH (2048 + 32 + sizeof(\"://\"))")] public const uint L_MAX_URL_LENGTH = (2048 + 32 + 4); - [NativeTypeName("#define WC_LINK L\"SysLink\"")] - public const string WC_LINK = "SysLink"; - [NativeTypeName("#define LWS_TRANSPARENT 0x0001")] public const int LWS_TRANSPARENT = 0x0001; @@ -2656,15 +1000,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LM_GETIDEALSIZE (LM_GETIDEALHEIGHT)")] public const int LM_GETIDEALSIZE = ((0x0400 + 0x301)); - [NativeTypeName("#define WC_LISTVIEWA \"SysListView32\"")] - public static ReadOnlySpan WC_LISTVIEWA => new byte[] { 0x53, 0x79, 0x73, 0x4C, 0x69, 0x73, 0x74, 0x56, 0x69, 0x65, 0x77, 0x33, 0x32, 0x00 }; - - [NativeTypeName("#define WC_LISTVIEWW L\"SysListView32\"")] - public const string WC_LISTVIEWW = "SysListView32"; - - [NativeTypeName("#define WC_LISTVIEW WC_LISTVIEWW")] - public const string WC_LISTVIEW = "SysListView32"; - [NativeTypeName("#define LVSIL_NORMAL 0")] public const int LVSIL_NORMAL = 0; @@ -2677,33 +1012,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LVSIL_GROUPHEADER 3")] public const int LVSIL_GROUPHEADER = 3; - [NativeTypeName("#define LVIF_TEXT 0x00000001")] - public const int LVIF_TEXT = 0x00000001; - - [NativeTypeName("#define LVIF_IMAGE 0x00000002")] - public const int LVIF_IMAGE = 0x00000002; - - [NativeTypeName("#define LVIF_PARAM 0x00000004")] - public const int LVIF_PARAM = 0x00000004; - - [NativeTypeName("#define LVIF_STATE 0x00000008")] - public const int LVIF_STATE = 0x00000008; - - [NativeTypeName("#define LVIF_INDENT 0x00000010")] - public const int LVIF_INDENT = 0x00000010; - - [NativeTypeName("#define LVIF_NORECOMPUTE 0x00000800")] - public const int LVIF_NORECOMPUTE = 0x00000800; - - [NativeTypeName("#define LVIF_GROUPID 0x00000100")] - public const int LVIF_GROUPID = 0x00000100; - - [NativeTypeName("#define LVIF_COLUMNS 0x00000200")] - public const int LVIF_COLUMNS = 0x00000200; - - [NativeTypeName("#define LVIF_COLFMT 0x00010000")] - public const int LVIF_COLFMT = 0x00010000; - [NativeTypeName("#define LVIS_FOCUSED 0x0001")] public const int LVIS_FOCUSED = 0x0001; @@ -2746,59 +1054,14 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LPSTR_TEXTCALLBACK LPSTR_TEXTCALLBACKW")] public static ushort* LPSTR_TEXTCALLBACK => unchecked((ushort*)(-1)); - [NativeTypeName("#define I_IMAGECALLBACK (-1)")] - public const int I_IMAGECALLBACK = (-1); - - [NativeTypeName("#define I_IMAGENONE (-2)")] - public const int I_IMAGENONE = (-2); - - [NativeTypeName("#define I_COLUMNSCALLBACK ((UINT)-1)")] - public const uint I_COLUMNSCALLBACK = unchecked((uint)(-1)); - - [NativeTypeName("#define LVNI_ALL 0x0000")] - public const int LVNI_ALL = 0x0000; - - [NativeTypeName("#define LVNI_FOCUSED 0x0001")] - public const int LVNI_FOCUSED = 0x0001; - - [NativeTypeName("#define LVNI_SELECTED 0x0002")] - public const int LVNI_SELECTED = 0x0002; - - [NativeTypeName("#define LVNI_CUT 0x0004")] - public const int LVNI_CUT = 0x0004; - - [NativeTypeName("#define LVNI_DROPHILITED 0x0008")] - public const int LVNI_DROPHILITED = 0x0008; - - [NativeTypeName("#define LVNI_STATEMASK (LVNI_FOCUSED | LVNI_SELECTED | LVNI_CUT | LVNI_DROPHILITED)")] - public const int LVNI_STATEMASK = (0x0001 | 0x0002 | 0x0004 | 0x0008); - - [NativeTypeName("#define LVNI_VISIBLEORDER 0x0010")] - public const int LVNI_VISIBLEORDER = 0x0010; - - [NativeTypeName("#define LVNI_PREVIOUS 0x0020")] - public const int LVNI_PREVIOUS = 0x0020; - - [NativeTypeName("#define LVNI_VISIBLEONLY 0x0040")] - public const int LVNI_VISIBLEONLY = 0x0040; - - [NativeTypeName("#define LVNI_SAMEGROUPONLY 0x0080")] - public const int LVNI_SAMEGROUPONLY = 0x0080; - - [NativeTypeName("#define LVNI_ABOVE 0x0100")] - public const int LVNI_ABOVE = 0x0100; - - [NativeTypeName("#define LVNI_BELOW 0x0200")] - public const int LVNI_BELOW = 0x0200; - - [NativeTypeName("#define LVNI_TOLEFT 0x0400")] - public const int LVNI_TOLEFT = 0x0400; + [NativeTypeName("#define I_IMAGECALLBACK (-1)")] + public const int I_IMAGECALLBACK = (-1); - [NativeTypeName("#define LVNI_TORIGHT 0x0800")] - public const int LVNI_TORIGHT = 0x0800; + [NativeTypeName("#define I_IMAGENONE (-2)")] + public const int I_IMAGENONE = (-2); - [NativeTypeName("#define LVNI_DIRECTIONMASK (LVNI_ABOVE | LVNI_BELOW | LVNI_TOLEFT | LVNI_TORIGHT)")] - public const int LVNI_DIRECTIONMASK = (0x0100 | 0x0200 | 0x0400 | 0x0800); + [NativeTypeName("#define I_COLUMNSCALLBACK ((UINT)-1)")] + public const uint I_COLUMNSCALLBACK = unchecked((uint)(-1)); [NativeTypeName("#define LVFI_PARAM 0x0001")] public const int LVFI_PARAM = 0x0001; @@ -2830,60 +1093,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LVIR_SELECTBOUNDS 3")] public const int LVIR_SELECTBOUNDS = 3; - [NativeTypeName("#define LVHT_NOWHERE 0x00000001")] - public const int LVHT_NOWHERE = 0x00000001; - - [NativeTypeName("#define LVHT_ONITEMICON 0x00000002")] - public const int LVHT_ONITEMICON = 0x00000002; - - [NativeTypeName("#define LVHT_ONITEMLABEL 0x00000004")] - public const int LVHT_ONITEMLABEL = 0x00000004; - - [NativeTypeName("#define LVHT_ONITEMSTATEICON 0x00000008")] - public const int LVHT_ONITEMSTATEICON = 0x00000008; - - [NativeTypeName("#define LVHT_ONITEM (LVHT_ONITEMICON | LVHT_ONITEMLABEL | LVHT_ONITEMSTATEICON)")] - public const int LVHT_ONITEM = (0x00000002 | 0x00000004 | 0x00000008); - - [NativeTypeName("#define LVHT_ABOVE 0x00000008")] - public const int LVHT_ABOVE = 0x00000008; - - [NativeTypeName("#define LVHT_BELOW 0x00000010")] - public const int LVHT_BELOW = 0x00000010; - - [NativeTypeName("#define LVHT_TORIGHT 0x00000020")] - public const int LVHT_TORIGHT = 0x00000020; - - [NativeTypeName("#define LVHT_TOLEFT 0x00000040")] - public const int LVHT_TOLEFT = 0x00000040; - - [NativeTypeName("#define LVHT_EX_GROUP_HEADER 0x10000000")] - public const int LVHT_EX_GROUP_HEADER = 0x10000000; - - [NativeTypeName("#define LVHT_EX_GROUP_FOOTER 0x20000000")] - public const int LVHT_EX_GROUP_FOOTER = 0x20000000; - - [NativeTypeName("#define LVHT_EX_GROUP_COLLAPSE 0x40000000")] - public const int LVHT_EX_GROUP_COLLAPSE = 0x40000000; - - [NativeTypeName("#define LVHT_EX_GROUP_BACKGROUND 0x80000000")] - public const uint LVHT_EX_GROUP_BACKGROUND = 0x80000000; - - [NativeTypeName("#define LVHT_EX_GROUP_STATEICON 0x01000000")] - public const int LVHT_EX_GROUP_STATEICON = 0x01000000; - - [NativeTypeName("#define LVHT_EX_GROUP_SUBSETLINK 0x02000000")] - public const int LVHT_EX_GROUP_SUBSETLINK = 0x02000000; - - [NativeTypeName("#define LVHT_EX_GROUP (LVHT_EX_GROUP_BACKGROUND | LVHT_EX_GROUP_COLLAPSE | LVHT_EX_GROUP_FOOTER | LVHT_EX_GROUP_HEADER | LVHT_EX_GROUP_STATEICON | LVHT_EX_GROUP_SUBSETLINK)")] - public const uint LVHT_EX_GROUP = (0x80000000 | 0x40000000 | 0x20000000 | 0x10000000 | 0x01000000 | 0x02000000); - - [NativeTypeName("#define LVHT_EX_ONCONTENTS 0x04000000")] - public const int LVHT_EX_ONCONTENTS = 0x04000000; - - [NativeTypeName("#define LVHT_EX_FOOTER 0x08000000")] - public const int LVHT_EX_FOOTER = 0x08000000; - [NativeTypeName("#define LVA_DEFAULT 0x0000")] public const int LVA_DEFAULT = 0x0000; @@ -2923,54 +1132,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LVCF_IDEALWIDTH 0x0100")] public const int LVCF_IDEALWIDTH = 0x0100; - [NativeTypeName("#define LVCFMT_LEFT 0x0000")] - public const int LVCFMT_LEFT = 0x0000; - - [NativeTypeName("#define LVCFMT_RIGHT 0x0001")] - public const int LVCFMT_RIGHT = 0x0001; - - [NativeTypeName("#define LVCFMT_CENTER 0x0002")] - public const int LVCFMT_CENTER = 0x0002; - - [NativeTypeName("#define LVCFMT_JUSTIFYMASK 0x0003")] - public const int LVCFMT_JUSTIFYMASK = 0x0003; - - [NativeTypeName("#define LVCFMT_IMAGE 0x0800")] - public const int LVCFMT_IMAGE = 0x0800; - - [NativeTypeName("#define LVCFMT_BITMAP_ON_RIGHT 0x1000")] - public const int LVCFMT_BITMAP_ON_RIGHT = 0x1000; - - [NativeTypeName("#define LVCFMT_COL_HAS_IMAGES 0x8000")] - public const int LVCFMT_COL_HAS_IMAGES = 0x8000; - - [NativeTypeName("#define LVCFMT_FIXED_WIDTH 0x00100")] - public const int LVCFMT_FIXED_WIDTH = 0x00100; - - [NativeTypeName("#define LVCFMT_NO_DPI_SCALE 0x40000")] - public const int LVCFMT_NO_DPI_SCALE = 0x40000; - - [NativeTypeName("#define LVCFMT_FIXED_RATIO 0x80000")] - public const int LVCFMT_FIXED_RATIO = 0x80000; - - [NativeTypeName("#define LVCFMT_LINE_BREAK 0x100000")] - public const int LVCFMT_LINE_BREAK = 0x100000; - - [NativeTypeName("#define LVCFMT_FILL 0x200000")] - public const int LVCFMT_FILL = 0x200000; - - [NativeTypeName("#define LVCFMT_WRAP 0x400000")] - public const int LVCFMT_WRAP = 0x400000; - - [NativeTypeName("#define LVCFMT_NO_TITLE 0x800000")] - public const int LVCFMT_NO_TITLE = 0x800000; - - [NativeTypeName("#define LVCFMT_TILE_PLACEMENTMASK (LVCFMT_LINE_BREAK | LVCFMT_FILL)")] - public const int LVCFMT_TILE_PLACEMENTMASK = (0x100000 | 0x200000); - - [NativeTypeName("#define LVCFMT_SPLITBUTTON 0x1000000")] - public const int LVCFMT_SPLITBUTTON = 0x1000000; - [NativeTypeName("#define LVSCW_AUTOSIZE -1")] public const int LVSCW_AUTOSIZE = -1; @@ -2986,36 +1147,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LV_MAX_WORKAREAS 16")] public const int LV_MAX_WORKAREAS = 16; - [NativeTypeName("#define LVBKIF_SOURCE_NONE 0x00000000")] - public const int LVBKIF_SOURCE_NONE = 0x00000000; - - [NativeTypeName("#define LVBKIF_SOURCE_HBITMAP 0x00000001")] - public const int LVBKIF_SOURCE_HBITMAP = 0x00000001; - - [NativeTypeName("#define LVBKIF_SOURCE_URL 0x00000002")] - public const int LVBKIF_SOURCE_URL = 0x00000002; - - [NativeTypeName("#define LVBKIF_SOURCE_MASK 0x00000003")] - public const int LVBKIF_SOURCE_MASK = 0x00000003; - - [NativeTypeName("#define LVBKIF_STYLE_NORMAL 0x00000000")] - public const int LVBKIF_STYLE_NORMAL = 0x00000000; - - [NativeTypeName("#define LVBKIF_STYLE_TILE 0x00000010")] - public const int LVBKIF_STYLE_TILE = 0x00000010; - - [NativeTypeName("#define LVBKIF_STYLE_MASK 0x00000010")] - public const int LVBKIF_STYLE_MASK = 0x00000010; - - [NativeTypeName("#define LVBKIF_FLAG_TILEOFFSET 0x00000100")] - public const int LVBKIF_FLAG_TILEOFFSET = 0x00000100; - - [NativeTypeName("#define LVBKIF_TYPE_WATERMARK 0x10000000")] - public const int LVBKIF_TYPE_WATERMARK = 0x10000000; - - [NativeTypeName("#define LVBKIF_FLAG_ALPHABLEND 0x20000000")] - public const int LVBKIF_FLAG_ALPHABLEND = 0x20000000; - [NativeTypeName("#define LV_VIEW_ICON 0x0000")] public const int LV_VIEW_ICON = 0x0000; @@ -3034,51 +1165,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LV_VIEW_MAX 0x0004")] public const int LV_VIEW_MAX = 0x0004; - [NativeTypeName("#define LVGF_NONE 0x00000000")] - public const int LVGF_NONE = 0x00000000; - - [NativeTypeName("#define LVGF_HEADER 0x00000001")] - public const int LVGF_HEADER = 0x00000001; - - [NativeTypeName("#define LVGF_FOOTER 0x00000002")] - public const int LVGF_FOOTER = 0x00000002; - - [NativeTypeName("#define LVGF_STATE 0x00000004")] - public const int LVGF_STATE = 0x00000004; - - [NativeTypeName("#define LVGF_ALIGN 0x00000008")] - public const int LVGF_ALIGN = 0x00000008; - - [NativeTypeName("#define LVGF_GROUPID 0x00000010")] - public const int LVGF_GROUPID = 0x00000010; - - [NativeTypeName("#define LVGF_SUBTITLE 0x00000100")] - public const int LVGF_SUBTITLE = 0x00000100; - - [NativeTypeName("#define LVGF_TASK 0x00000200")] - public const int LVGF_TASK = 0x00000200; - - [NativeTypeName("#define LVGF_DESCRIPTIONTOP 0x00000400")] - public const int LVGF_DESCRIPTIONTOP = 0x00000400; - - [NativeTypeName("#define LVGF_DESCRIPTIONBOTTOM 0x00000800")] - public const int LVGF_DESCRIPTIONBOTTOM = 0x00000800; - - [NativeTypeName("#define LVGF_TITLEIMAGE 0x00001000")] - public const int LVGF_TITLEIMAGE = 0x00001000; - - [NativeTypeName("#define LVGF_EXTENDEDIMAGE 0x00002000")] - public const int LVGF_EXTENDEDIMAGE = 0x00002000; - - [NativeTypeName("#define LVGF_ITEMS 0x00004000")] - public const int LVGF_ITEMS = 0x00004000; - - [NativeTypeName("#define LVGF_SUBSET 0x00008000")] - public const int LVGF_SUBSET = 0x00008000; - - [NativeTypeName("#define LVGF_SUBSETITEMS 0x00010000")] - public const int LVGF_SUBSETITEMS = 0x00010000; - [NativeTypeName("#define LVGS_NORMAL 0x00000000")] public const int LVGS_NORMAL = 0x00000000; @@ -3211,108 +1297,9 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LVCDRF_NOGROUPFRAME 0x00020000")] public const int LVCDRF_NOGROUPFRAME = 0x00020000; - [NativeTypeName("#define LVN_ITEMCHANGING (LVN_FIRST-0)")] - public const uint LVN_ITEMCHANGING = unchecked((0U - 100U) - 0); - - [NativeTypeName("#define LVN_ITEMCHANGED (LVN_FIRST-1)")] - public const uint LVN_ITEMCHANGED = unchecked((0U - 100U) - 1); - - [NativeTypeName("#define LVN_INSERTITEM (LVN_FIRST-2)")] - public const uint LVN_INSERTITEM = unchecked((0U - 100U) - 2); - - [NativeTypeName("#define LVN_DELETEITEM (LVN_FIRST-3)")] - public const uint LVN_DELETEITEM = unchecked((0U - 100U) - 3); - - [NativeTypeName("#define LVN_DELETEALLITEMS (LVN_FIRST-4)")] - public const uint LVN_DELETEALLITEMS = unchecked((0U - 100U) - 4); - - [NativeTypeName("#define LVN_BEGINLABELEDITA (LVN_FIRST-5)")] - public const uint LVN_BEGINLABELEDITA = unchecked((0U - 100U) - 5); - - [NativeTypeName("#define LVN_BEGINLABELEDITW (LVN_FIRST-75)")] - public const uint LVN_BEGINLABELEDITW = unchecked((0U - 100U) - 75); - - [NativeTypeName("#define LVN_ENDLABELEDITA (LVN_FIRST-6)")] - public const uint LVN_ENDLABELEDITA = unchecked((0U - 100U) - 6); - - [NativeTypeName("#define LVN_ENDLABELEDITW (LVN_FIRST-76)")] - public const uint LVN_ENDLABELEDITW = unchecked((0U - 100U) - 76); - - [NativeTypeName("#define LVN_COLUMNCLICK (LVN_FIRST-8)")] - public const uint LVN_COLUMNCLICK = unchecked((0U - 100U) - 8); - - [NativeTypeName("#define LVN_BEGINDRAG (LVN_FIRST-9)")] - public const uint LVN_BEGINDRAG = unchecked((0U - 100U) - 9); - - [NativeTypeName("#define LVN_BEGINRDRAG (LVN_FIRST-11)")] - public const uint LVN_BEGINRDRAG = unchecked((0U - 100U) - 11); - - [NativeTypeName("#define LVN_ODCACHEHINT (LVN_FIRST-13)")] - public const uint LVN_ODCACHEHINT = unchecked((0U - 100U) - 13); - - [NativeTypeName("#define LVN_ODFINDITEMA (LVN_FIRST-52)")] - public const uint LVN_ODFINDITEMA = unchecked((0U - 100U) - 52); - - [NativeTypeName("#define LVN_ODFINDITEMW (LVN_FIRST-79)")] - public const uint LVN_ODFINDITEMW = unchecked((0U - 100U) - 79); - - [NativeTypeName("#define LVN_ITEMACTIVATE (LVN_FIRST-14)")] - public const uint LVN_ITEMACTIVATE = unchecked((0U - 100U) - 14); - - [NativeTypeName("#define LVN_ODSTATECHANGED (LVN_FIRST-15)")] - public const uint LVN_ODSTATECHANGED = unchecked((0U - 100U) - 15); - - [NativeTypeName("#define LVN_ODFINDITEM LVN_ODFINDITEMW")] - public const uint LVN_ODFINDITEM = unchecked((0U - 100U) - 79); - - [NativeTypeName("#define LVN_HOTTRACK (LVN_FIRST-21)")] - public const uint LVN_HOTTRACK = unchecked((0U - 100U) - 21); - - [NativeTypeName("#define LVN_GETDISPINFOA (LVN_FIRST-50)")] - public const uint LVN_GETDISPINFOA = unchecked((0U - 100U) - 50); - - [NativeTypeName("#define LVN_GETDISPINFOW (LVN_FIRST-77)")] - public const uint LVN_GETDISPINFOW = unchecked((0U - 100U) - 77); - - [NativeTypeName("#define LVN_SETDISPINFOA (LVN_FIRST-51)")] - public const uint LVN_SETDISPINFOA = unchecked((0U - 100U) - 51); - - [NativeTypeName("#define LVN_SETDISPINFOW (LVN_FIRST-78)")] - public const uint LVN_SETDISPINFOW = unchecked((0U - 100U) - 78); - - [NativeTypeName("#define LVN_BEGINLABELEDIT LVN_BEGINLABELEDITW")] - public const uint LVN_BEGINLABELEDIT = unchecked((0U - 100U) - 75); - - [NativeTypeName("#define LVN_ENDLABELEDIT LVN_ENDLABELEDITW")] - public const uint LVN_ENDLABELEDIT = unchecked((0U - 100U) - 76); - - [NativeTypeName("#define LVN_GETDISPINFO LVN_GETDISPINFOW")] - public const uint LVN_GETDISPINFO = unchecked((0U - 100U) - 77); - - [NativeTypeName("#define LVN_SETDISPINFO LVN_SETDISPINFOW")] - public const uint LVN_SETDISPINFO = unchecked((0U - 100U) - 78); - - [NativeTypeName("#define LVIF_DI_SETITEM 0x1000")] - public const int LVIF_DI_SETITEM = 0x1000; - - [NativeTypeName("#define LVN_KEYDOWN (LVN_FIRST-55)")] - public const uint LVN_KEYDOWN = unchecked((0U - 100U) - 55); - - [NativeTypeName("#define LVN_MARQUEEBEGIN (LVN_FIRST-56)")] - public const uint LVN_MARQUEEBEGIN = unchecked((0U - 100U) - 56); - [NativeTypeName("#define LVGIT_UNFOLDED 0x0001")] public const int LVGIT_UNFOLDED = 0x0001; - [NativeTypeName("#define LVN_GETINFOTIPA (LVN_FIRST-57)")] - public const uint LVN_GETINFOTIPA = unchecked((0U - 100U) - 57); - - [NativeTypeName("#define LVN_GETINFOTIPW (LVN_FIRST-58)")] - public const uint LVN_GETINFOTIPW = unchecked((0U - 100U) - 58); - - [NativeTypeName("#define LVN_GETINFOTIP LVN_GETINFOTIPW")] - public const uint LVN_GETINFOTIP = unchecked((0U - 100U) - 58); - [NativeTypeName("#define LVNSCH_DEFAULT -1")] public const int LVNSCH_DEFAULT = -1; @@ -3322,195 +1309,9 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define LVNSCH_IGNORE -3")] public const int LVNSCH_IGNORE = -3; - [NativeTypeName("#define LVN_INCREMENTALSEARCHA (LVN_FIRST-62)")] - public const uint LVN_INCREMENTALSEARCHA = unchecked((0U - 100U) - 62); - - [NativeTypeName("#define LVN_INCREMENTALSEARCHW (LVN_FIRST-63)")] - public const uint LVN_INCREMENTALSEARCHW = unchecked((0U - 100U) - 63); - - [NativeTypeName("#define LVN_INCREMENTALSEARCH LVN_INCREMENTALSEARCHW")] - public const uint LVN_INCREMENTALSEARCH = unchecked((0U - 100U) - 63); - - [NativeTypeName("#define LVN_COLUMNDROPDOWN (LVN_FIRST-64)")] - public const uint LVN_COLUMNDROPDOWN = unchecked((0U - 100U) - 64); - - [NativeTypeName("#define LVN_COLUMNOVERFLOWCLICK (LVN_FIRST-66)")] - public const uint LVN_COLUMNOVERFLOWCLICK = unchecked((0U - 100U) - 66); - - [NativeTypeName("#define LVN_BEGINSCROLL (LVN_FIRST-80)")] - public const uint LVN_BEGINSCROLL = unchecked((0U - 100U) - 80); - - [NativeTypeName("#define LVN_ENDSCROLL (LVN_FIRST-81)")] - public const uint LVN_ENDSCROLL = unchecked((0U - 100U) - 81); - - [NativeTypeName("#define LVN_LINKCLICK (LVN_FIRST-84)")] - public const uint LVN_LINKCLICK = unchecked((0U - 100U) - 84); - [NativeTypeName("#define EMF_CENTERED 0x00000001")] public const int EMF_CENTERED = 0x00000001; - [NativeTypeName("#define LVN_GETEMPTYMARKUP (LVN_FIRST-87)")] - public const uint LVN_GETEMPTYMARKUP = unchecked((0U - 100U) - 87); - - [NativeTypeName("#define WC_TREEVIEWA \"SysTreeView32\"")] - public static ReadOnlySpan WC_TREEVIEWA => new byte[] { 0x53, 0x79, 0x73, 0x54, 0x72, 0x65, 0x65, 0x56, 0x69, 0x65, 0x77, 0x33, 0x32, 0x00 }; - - [NativeTypeName("#define WC_TREEVIEWW L\"SysTreeView32\"")] - public const string WC_TREEVIEWW = "SysTreeView32"; - - [NativeTypeName("#define WC_TREEVIEW WC_TREEVIEWW")] - public const string WC_TREEVIEW = "SysTreeView32"; - - [NativeTypeName("#define TVS_HASBUTTONS 0x0001")] - public const int TVS_HASBUTTONS = 0x0001; - - [NativeTypeName("#define TVS_HASLINES 0x0002")] - public const int TVS_HASLINES = 0x0002; - - [NativeTypeName("#define TVS_LINESATROOT 0x0004")] - public const int TVS_LINESATROOT = 0x0004; - - [NativeTypeName("#define TVS_EDITLABELS 0x0008")] - public const int TVS_EDITLABELS = 0x0008; - - [NativeTypeName("#define TVS_DISABLEDRAGDROP 0x0010")] - public const int TVS_DISABLEDRAGDROP = 0x0010; - - [NativeTypeName("#define TVS_SHOWSELALWAYS 0x0020")] - public const int TVS_SHOWSELALWAYS = 0x0020; - - [NativeTypeName("#define TVS_RTLREADING 0x0040")] - public const int TVS_RTLREADING = 0x0040; - - [NativeTypeName("#define TVS_NOTOOLTIPS 0x0080")] - public const int TVS_NOTOOLTIPS = 0x0080; - - [NativeTypeName("#define TVS_CHECKBOXES 0x0100")] - public const int TVS_CHECKBOXES = 0x0100; - - [NativeTypeName("#define TVS_TRACKSELECT 0x0200")] - public const int TVS_TRACKSELECT = 0x0200; - - [NativeTypeName("#define TVS_SINGLEEXPAND 0x0400")] - public const int TVS_SINGLEEXPAND = 0x0400; - - [NativeTypeName("#define TVS_INFOTIP 0x0800")] - public const int TVS_INFOTIP = 0x0800; - - [NativeTypeName("#define TVS_FULLROWSELECT 0x1000")] - public const int TVS_FULLROWSELECT = 0x1000; - - [NativeTypeName("#define TVS_NOSCROLL 0x2000")] - public const int TVS_NOSCROLL = 0x2000; - - [NativeTypeName("#define TVS_NONEVENHEIGHT 0x4000")] - public const int TVS_NONEVENHEIGHT = 0x4000; - - [NativeTypeName("#define TVS_NOHSCROLL 0x8000")] - public const int TVS_NOHSCROLL = 0x8000; - - [NativeTypeName("#define TVS_EX_NOSINGLECOLLAPSE 0x0001")] - public const int TVS_EX_NOSINGLECOLLAPSE = 0x0001; - - [NativeTypeName("#define TVS_EX_MULTISELECT 0x0002")] - public const int TVS_EX_MULTISELECT = 0x0002; - - [NativeTypeName("#define TVS_EX_DOUBLEBUFFER 0x0004")] - public const int TVS_EX_DOUBLEBUFFER = 0x0004; - - [NativeTypeName("#define TVS_EX_NOINDENTSTATE 0x0008")] - public const int TVS_EX_NOINDENTSTATE = 0x0008; - - [NativeTypeName("#define TVS_EX_RICHTOOLTIP 0x0010")] - public const int TVS_EX_RICHTOOLTIP = 0x0010; - - [NativeTypeName("#define TVS_EX_AUTOHSCROLL 0x0020")] - public const int TVS_EX_AUTOHSCROLL = 0x0020; - - [NativeTypeName("#define TVS_EX_FADEINOUTEXPANDOS 0x0040")] - public const int TVS_EX_FADEINOUTEXPANDOS = 0x0040; - - [NativeTypeName("#define TVS_EX_PARTIALCHECKBOXES 0x0080")] - public const int TVS_EX_PARTIALCHECKBOXES = 0x0080; - - [NativeTypeName("#define TVS_EX_EXCLUSIONCHECKBOXES 0x0100")] - public const int TVS_EX_EXCLUSIONCHECKBOXES = 0x0100; - - [NativeTypeName("#define TVS_EX_DIMMEDCHECKBOXES 0x0200")] - public const int TVS_EX_DIMMEDCHECKBOXES = 0x0200; - - [NativeTypeName("#define TVS_EX_DRAWIMAGEASYNC 0x0400")] - public const int TVS_EX_DRAWIMAGEASYNC = 0x0400; - - [NativeTypeName("#define TVIF_TEXT 0x0001")] - public const int TVIF_TEXT = 0x0001; - - [NativeTypeName("#define TVIF_IMAGE 0x0002")] - public const int TVIF_IMAGE = 0x0002; - - [NativeTypeName("#define TVIF_PARAM 0x0004")] - public const int TVIF_PARAM = 0x0004; - - [NativeTypeName("#define TVIF_STATE 0x0008")] - public const int TVIF_STATE = 0x0008; - - [NativeTypeName("#define TVIF_HANDLE 0x0010")] - public const int TVIF_HANDLE = 0x0010; - - [NativeTypeName("#define TVIF_SELECTEDIMAGE 0x0020")] - public const int TVIF_SELECTEDIMAGE = 0x0020; - - [NativeTypeName("#define TVIF_CHILDREN 0x0040")] - public const int TVIF_CHILDREN = 0x0040; - - [NativeTypeName("#define TVIF_INTEGRAL 0x0080")] - public const int TVIF_INTEGRAL = 0x0080; - - [NativeTypeName("#define TVIF_STATEEX 0x0100")] - public const int TVIF_STATEEX = 0x0100; - - [NativeTypeName("#define TVIF_EXPANDEDIMAGE 0x0200")] - public const int TVIF_EXPANDEDIMAGE = 0x0200; - - [NativeTypeName("#define TVIS_SELECTED 0x0002")] - public const int TVIS_SELECTED = 0x0002; - - [NativeTypeName("#define TVIS_CUT 0x0004")] - public const int TVIS_CUT = 0x0004; - - [NativeTypeName("#define TVIS_DROPHILITED 0x0008")] - public const int TVIS_DROPHILITED = 0x0008; - - [NativeTypeName("#define TVIS_BOLD 0x0010")] - public const int TVIS_BOLD = 0x0010; - - [NativeTypeName("#define TVIS_EXPANDED 0x0020")] - public const int TVIS_EXPANDED = 0x0020; - - [NativeTypeName("#define TVIS_EXPANDEDONCE 0x0040")] - public const int TVIS_EXPANDEDONCE = 0x0040; - - [NativeTypeName("#define TVIS_EXPANDPARTIAL 0x0080")] - public const int TVIS_EXPANDPARTIAL = 0x0080; - - [NativeTypeName("#define TVIS_OVERLAYMASK 0x0F00")] - public const int TVIS_OVERLAYMASK = 0x0F00; - - [NativeTypeName("#define TVIS_STATEIMAGEMASK 0xF000")] - public const int TVIS_STATEIMAGEMASK = 0xF000; - - [NativeTypeName("#define TVIS_USERMASK 0xF000")] - public const int TVIS_USERMASK = 0xF000; - - [NativeTypeName("#define TVIS_EX_FLAT 0x0001")] - public const int TVIS_EX_FLAT = 0x0001; - - [NativeTypeName("#define TVIS_EX_DISABLED 0x0002")] - public const int TVIS_EX_DISABLED = 0x0002; - - [NativeTypeName("#define TVIS_EX_ALL 0x0002")] - public const int TVIS_EX_ALL = 0x0002; - [NativeTypeName("#define I_CHILDRENCALLBACK (-1)")] public const int I_CHILDRENCALLBACK = (-1); @@ -3538,99 +1339,15 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TVSIL_STATE 2")] public const int TVSIL_STATE = 2; - [NativeTypeName("#define TVGN_ROOT 0x0000")] - public const int TVGN_ROOT = 0x0000; - - [NativeTypeName("#define TVGN_NEXT 0x0001")] - public const int TVGN_NEXT = 0x0001; - - [NativeTypeName("#define TVGN_PREVIOUS 0x0002")] - public const int TVGN_PREVIOUS = 0x0002; - - [NativeTypeName("#define TVGN_PARENT 0x0003")] - public const int TVGN_PARENT = 0x0003; - - [NativeTypeName("#define TVGN_CHILD 0x0004")] - public const int TVGN_CHILD = 0x0004; - - [NativeTypeName("#define TVGN_FIRSTVISIBLE 0x0005")] - public const int TVGN_FIRSTVISIBLE = 0x0005; - - [NativeTypeName("#define TVGN_NEXTVISIBLE 0x0006")] - public const int TVGN_NEXTVISIBLE = 0x0006; - - [NativeTypeName("#define TVGN_PREVIOUSVISIBLE 0x0007")] - public const int TVGN_PREVIOUSVISIBLE = 0x0007; - - [NativeTypeName("#define TVGN_DROPHILITE 0x0008")] - public const int TVGN_DROPHILITE = 0x0008; - - [NativeTypeName("#define TVGN_CARET 0x0009")] - public const int TVGN_CARET = 0x0009; - - [NativeTypeName("#define TVGN_LASTVISIBLE 0x000A")] - public const int TVGN_LASTVISIBLE = 0x000A; - - [NativeTypeName("#define TVGN_NEXTSELECTED 0x000B")] - public const int TVGN_NEXTSELECTED = 0x000B; - [NativeTypeName("#define TVSI_NOSINGLEEXPAND 0x8000")] public const int TVSI_NOSINGLEEXPAND = 0x8000; - [NativeTypeName("#define TVHT_NOWHERE 0x0001")] - public const int TVHT_NOWHERE = 0x0001; - - [NativeTypeName("#define TVHT_ONITEMICON 0x0002")] - public const int TVHT_ONITEMICON = 0x0002; - - [NativeTypeName("#define TVHT_ONITEMLABEL 0x0004")] - public const int TVHT_ONITEMLABEL = 0x0004; - - [NativeTypeName("#define TVHT_ONITEM (TVHT_ONITEMICON | TVHT_ONITEMLABEL | TVHT_ONITEMSTATEICON)")] - public const int TVHT_ONITEM = (0x0002 | 0x0004 | 0x0040); - - [NativeTypeName("#define TVHT_ONITEMINDENT 0x0008")] - public const int TVHT_ONITEMINDENT = 0x0008; - - [NativeTypeName("#define TVHT_ONITEMBUTTON 0x0010")] - public const int TVHT_ONITEMBUTTON = 0x0010; - - [NativeTypeName("#define TVHT_ONITEMRIGHT 0x0020")] - public const int TVHT_ONITEMRIGHT = 0x0020; - - [NativeTypeName("#define TVHT_ONITEMSTATEICON 0x0040")] - public const int TVHT_ONITEMSTATEICON = 0x0040; - - [NativeTypeName("#define TVHT_ABOVE 0x0100")] - public const int TVHT_ABOVE = 0x0100; - - [NativeTypeName("#define TVHT_BELOW 0x0200")] - public const int TVHT_BELOW = 0x0200; - - [NativeTypeName("#define TVHT_TORIGHT 0x0400")] - public const int TVHT_TORIGHT = 0x0400; - - [NativeTypeName("#define TVHT_TOLEFT 0x0800")] - public const int TVHT_TOLEFT = 0x0800; - [NativeTypeName("#define TVSBF_XBORDER 0x00000001")] public const int TVSBF_XBORDER = 0x00000001; [NativeTypeName("#define TVSBF_YBORDER 0x00000002")] public const int TVSBF_YBORDER = 0x00000002; - [NativeTypeName("#define TVN_SELCHANGINGA (TVN_FIRST-1)")] - public const uint TVN_SELCHANGINGA = unchecked((0U - 400U) - 1); - - [NativeTypeName("#define TVN_SELCHANGINGW (TVN_FIRST-50)")] - public const uint TVN_SELCHANGINGW = unchecked((0U - 400U) - 50); - - [NativeTypeName("#define TVN_SELCHANGEDA (TVN_FIRST-2)")] - public const uint TVN_SELCHANGEDA = unchecked((0U - 400U) - 2); - - [NativeTypeName("#define TVN_SELCHANGEDW (TVN_FIRST-51)")] - public const uint TVN_SELCHANGEDW = unchecked((0U - 400U) - 51); - [NativeTypeName("#define TVC_UNKNOWN 0x0000")] public const int TVC_UNKNOWN = 0x0000; @@ -3640,75 +1357,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TVC_BYKEYBOARD 0x0002")] public const int TVC_BYKEYBOARD = 0x0002; - [NativeTypeName("#define TVN_GETDISPINFOA (TVN_FIRST-3)")] - public const uint TVN_GETDISPINFOA = unchecked((0U - 400U) - 3); - - [NativeTypeName("#define TVN_GETDISPINFOW (TVN_FIRST-52)")] - public const uint TVN_GETDISPINFOW = unchecked((0U - 400U) - 52); - - [NativeTypeName("#define TVN_SETDISPINFOA (TVN_FIRST-4)")] - public const uint TVN_SETDISPINFOA = unchecked((0U - 400U) - 4); - - [NativeTypeName("#define TVN_SETDISPINFOW (TVN_FIRST-53)")] - public const uint TVN_SETDISPINFOW = unchecked((0U - 400U) - 53); - - [NativeTypeName("#define TVIF_DI_SETITEM 0x1000")] - public const int TVIF_DI_SETITEM = 0x1000; - - [NativeTypeName("#define TVN_ITEMEXPANDINGA (TVN_FIRST-5)")] - public const uint TVN_ITEMEXPANDINGA = unchecked((0U - 400U) - 5); - - [NativeTypeName("#define TVN_ITEMEXPANDINGW (TVN_FIRST-54)")] - public const uint TVN_ITEMEXPANDINGW = unchecked((0U - 400U) - 54); - - [NativeTypeName("#define TVN_ITEMEXPANDEDA (TVN_FIRST-6)")] - public const uint TVN_ITEMEXPANDEDA = unchecked((0U - 400U) - 6); - - [NativeTypeName("#define TVN_ITEMEXPANDEDW (TVN_FIRST-55)")] - public const uint TVN_ITEMEXPANDEDW = unchecked((0U - 400U) - 55); - - [NativeTypeName("#define TVN_BEGINDRAGA (TVN_FIRST-7)")] - public const uint TVN_BEGINDRAGA = unchecked((0U - 400U) - 7); - - [NativeTypeName("#define TVN_BEGINDRAGW (TVN_FIRST-56)")] - public const uint TVN_BEGINDRAGW = unchecked((0U - 400U) - 56); - - [NativeTypeName("#define TVN_BEGINRDRAGA (TVN_FIRST-8)")] - public const uint TVN_BEGINRDRAGA = unchecked((0U - 400U) - 8); - - [NativeTypeName("#define TVN_BEGINRDRAGW (TVN_FIRST-57)")] - public const uint TVN_BEGINRDRAGW = unchecked((0U - 400U) - 57); - - [NativeTypeName("#define TVN_DELETEITEMA (TVN_FIRST-9)")] - public const uint TVN_DELETEITEMA = unchecked((0U - 400U) - 9); - - [NativeTypeName("#define TVN_DELETEITEMW (TVN_FIRST-58)")] - public const uint TVN_DELETEITEMW = unchecked((0U - 400U) - 58); - - [NativeTypeName("#define TVN_BEGINLABELEDITA (TVN_FIRST-10)")] - public const uint TVN_BEGINLABELEDITA = unchecked((0U - 400U) - 10); - - [NativeTypeName("#define TVN_BEGINLABELEDITW (TVN_FIRST-59)")] - public const uint TVN_BEGINLABELEDITW = unchecked((0U - 400U) - 59); - - [NativeTypeName("#define TVN_ENDLABELEDITA (TVN_FIRST-11)")] - public const uint TVN_ENDLABELEDITA = unchecked((0U - 400U) - 11); - - [NativeTypeName("#define TVN_ENDLABELEDITW (TVN_FIRST-60)")] - public const uint TVN_ENDLABELEDITW = unchecked((0U - 400U) - 60); - - [NativeTypeName("#define TVN_KEYDOWN (TVN_FIRST-12)")] - public const uint TVN_KEYDOWN = unchecked((0U - 400U) - 12); - - [NativeTypeName("#define TVN_GETINFOTIPA (TVN_FIRST-13)")] - public const uint TVN_GETINFOTIPA = unchecked((0U - 400U) - 13); - - [NativeTypeName("#define TVN_GETINFOTIPW (TVN_FIRST-14)")] - public const uint TVN_GETINFOTIPW = unchecked((0U - 400U) - 14); - - [NativeTypeName("#define TVN_SINGLEEXPAND (TVN_FIRST-15)")] - public const uint TVN_SINGLEEXPAND = unchecked((0U - 400U) - 15); - [NativeTypeName("#define TVNRET_DEFAULT 0")] public const int TVNRET_DEFAULT = 0; @@ -3718,75 +1366,9 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TVNRET_SKIPNEW 2")] public const int TVNRET_SKIPNEW = 2; - [NativeTypeName("#define TVN_ITEMCHANGINGA (TVN_FIRST-16)")] - public const uint TVN_ITEMCHANGINGA = unchecked((0U - 400U) - 16); - - [NativeTypeName("#define TVN_ITEMCHANGINGW (TVN_FIRST-17)")] - public const uint TVN_ITEMCHANGINGW = unchecked((0U - 400U) - 17); - - [NativeTypeName("#define TVN_ITEMCHANGEDA (TVN_FIRST-18)")] - public const uint TVN_ITEMCHANGEDA = unchecked((0U - 400U) - 18); - - [NativeTypeName("#define TVN_ITEMCHANGEDW (TVN_FIRST-19)")] - public const uint TVN_ITEMCHANGEDW = unchecked((0U - 400U) - 19); - - [NativeTypeName("#define TVN_ASYNCDRAW (TVN_FIRST-20)")] - public const uint TVN_ASYNCDRAW = unchecked((0U - 400U) - 20); - - [NativeTypeName("#define TVN_SELCHANGING TVN_SELCHANGINGW")] - public const uint TVN_SELCHANGING = unchecked((0U - 400U) - 50); - - [NativeTypeName("#define TVN_SELCHANGED TVN_SELCHANGEDW")] - public const uint TVN_SELCHANGED = unchecked((0U - 400U) - 51); - - [NativeTypeName("#define TVN_GETDISPINFO TVN_GETDISPINFOW")] - public const uint TVN_GETDISPINFO = unchecked((0U - 400U) - 52); - - [NativeTypeName("#define TVN_SETDISPINFO TVN_SETDISPINFOW")] - public const uint TVN_SETDISPINFO = unchecked((0U - 400U) - 53); - - [NativeTypeName("#define TVN_ITEMEXPANDING TVN_ITEMEXPANDINGW")] - public const uint TVN_ITEMEXPANDING = unchecked((0U - 400U) - 54); - - [NativeTypeName("#define TVN_ITEMEXPANDED TVN_ITEMEXPANDEDW")] - public const uint TVN_ITEMEXPANDED = unchecked((0U - 400U) - 55); - - [NativeTypeName("#define TVN_BEGINDRAG TVN_BEGINDRAGW")] - public const uint TVN_BEGINDRAG = unchecked((0U - 400U) - 56); - - [NativeTypeName("#define TVN_BEGINRDRAG TVN_BEGINRDRAGW")] - public const uint TVN_BEGINRDRAG = unchecked((0U - 400U) - 57); - - [NativeTypeName("#define TVN_DELETEITEM TVN_DELETEITEMW")] - public const uint TVN_DELETEITEM = unchecked((0U - 400U) - 58); - - [NativeTypeName("#define TVN_BEGINLABELEDIT TVN_BEGINLABELEDITW")] - public const uint TVN_BEGINLABELEDIT = unchecked((0U - 400U) - 59); - - [NativeTypeName("#define TVN_ENDLABELEDIT TVN_ENDLABELEDITW")] - public const uint TVN_ENDLABELEDIT = unchecked((0U - 400U) - 60); - - [NativeTypeName("#define TVN_GETINFOTIP TVN_GETINFOTIPW")] - public const uint TVN_GETINFOTIP = unchecked((0U - 400U) - 14); - [NativeTypeName("#define TVCDRF_NOIMAGES 0x00010000")] public const int TVCDRF_NOIMAGES = 0x00010000; - [NativeTypeName("#define TVN_ITEMCHANGING TVN_ITEMCHANGINGW")] - public const uint TVN_ITEMCHANGING = unchecked((0U - 400U) - 17); - - [NativeTypeName("#define TVN_ITEMCHANGED TVN_ITEMCHANGEDW")] - public const uint TVN_ITEMCHANGED = unchecked((0U - 400U) - 19); - - [NativeTypeName("#define WC_COMBOBOXEXW L\"ComboBoxEx32\"")] - public const string WC_COMBOBOXEXW = "ComboBoxEx32"; - - [NativeTypeName("#define WC_COMBOBOXEXA \"ComboBoxEx32\"")] - public static ReadOnlySpan WC_COMBOBOXEXA => new byte[] { 0x43, 0x6F, 0x6D, 0x62, 0x6F, 0x42, 0x6F, 0x78, 0x45, 0x78, 0x33, 0x32, 0x00 }; - - [NativeTypeName("#define WC_COMBOBOXEX WC_COMBOBOXEXW")] - public const string WC_COMBOBOXEX = "ComboBoxEx32"; - [NativeTypeName("#define CBEIF_TEXT 0x00000001")] public const int CBEIF_TEXT = 0x00000001; @@ -3806,73 +1388,7 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi public const int CBEIF_LPARAM = 0x00000020; [NativeTypeName("#define CBEIF_DI_SETITEM 0x10000000")] - public const int CBEIF_DI_SETITEM = 0x10000000; - - [NativeTypeName("#define CBEM_INSERTITEMA (WM_USER + 1)")] - public const int CBEM_INSERTITEMA = (0x0400 + 1); - - [NativeTypeName("#define CBEM_SETIMAGELIST (WM_USER + 2)")] - public const int CBEM_SETIMAGELIST = (0x0400 + 2); - - [NativeTypeName("#define CBEM_GETIMAGELIST (WM_USER + 3)")] - public const int CBEM_GETIMAGELIST = (0x0400 + 3); - - [NativeTypeName("#define CBEM_GETITEMA (WM_USER + 4)")] - public const int CBEM_GETITEMA = (0x0400 + 4); - - [NativeTypeName("#define CBEM_SETITEMA (WM_USER + 5)")] - public const int CBEM_SETITEMA = (0x0400 + 5); - - [NativeTypeName("#define CBEM_DELETEITEM CB_DELETESTRING")] - public const int CBEM_DELETEITEM = 0x0144; - - [NativeTypeName("#define CBEM_GETCOMBOCONTROL (WM_USER + 6)")] - public const int CBEM_GETCOMBOCONTROL = (0x0400 + 6); - - [NativeTypeName("#define CBEM_GETEDITCONTROL (WM_USER + 7)")] - public const int CBEM_GETEDITCONTROL = (0x0400 + 7); - - [NativeTypeName("#define CBEM_SETEXSTYLE (WM_USER + 8)")] - public const int CBEM_SETEXSTYLE = (0x0400 + 8); - - [NativeTypeName("#define CBEM_SETEXTENDEDSTYLE (WM_USER + 14)")] - public const int CBEM_SETEXTENDEDSTYLE = (0x0400 + 14); - - [NativeTypeName("#define CBEM_GETEXSTYLE (WM_USER + 9)")] - public const int CBEM_GETEXSTYLE = (0x0400 + 9); - - [NativeTypeName("#define CBEM_GETEXTENDEDSTYLE (WM_USER + 9)")] - public const int CBEM_GETEXTENDEDSTYLE = (0x0400 + 9); - - [NativeTypeName("#define CBEM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] - public const int CBEM_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define CBEM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] - public const int CBEM_GETUNICODEFORMAT = (0x2000 + 6); - - [NativeTypeName("#define CBEM_HASEDITCHANGED (WM_USER + 10)")] - public const int CBEM_HASEDITCHANGED = (0x0400 + 10); - - [NativeTypeName("#define CBEM_INSERTITEMW (WM_USER + 11)")] - public const int CBEM_INSERTITEMW = (0x0400 + 11); - - [NativeTypeName("#define CBEM_SETITEMW (WM_USER + 12)")] - public const int CBEM_SETITEMW = (0x0400 + 12); - - [NativeTypeName("#define CBEM_GETITEMW (WM_USER + 13)")] - public const int CBEM_GETITEMW = (0x0400 + 13); - - [NativeTypeName("#define CBEM_INSERTITEM CBEM_INSERTITEMW")] - public const int CBEM_INSERTITEM = (0x0400 + 11); - - [NativeTypeName("#define CBEM_SETITEM CBEM_SETITEMW")] - public const int CBEM_SETITEM = (0x0400 + 12); - - [NativeTypeName("#define CBEM_GETITEM CBEM_GETITEMW")] - public const int CBEM_GETITEM = (0x0400 + 13); - - [NativeTypeName("#define CBEM_SETWINDOWTHEME CCM_SETWINDOWTHEME")] - public const int CBEM_SETWINDOWTHEME = (0x2000 + 0xb); + public const int CBEIF_DI_SETITEM = 0x10000000; [NativeTypeName("#define CBES_EX_NOEDITIMAGE 0x00000001")] public const int CBES_EX_NOEDITIMAGE = 0x00000001; @@ -3892,42 +1408,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define CBES_EX_TEXTENDELLIPSIS 0x00000020")] public const int CBES_EX_TEXTENDELLIPSIS = 0x00000020; - [NativeTypeName("#define CBEN_GETDISPINFO CBEN_GETDISPINFOW")] - public const uint CBEN_GETDISPINFO = unchecked((0U - 800U) - 7); - - [NativeTypeName("#define CBEN_GETDISPINFOA (CBEN_FIRST - 0)")] - public const uint CBEN_GETDISPINFOA = unchecked((0U - 800U) - 0); - - [NativeTypeName("#define CBEN_INSERTITEM (CBEN_FIRST - 1)")] - public const uint CBEN_INSERTITEM = unchecked((0U - 800U) - 1); - - [NativeTypeName("#define CBEN_DELETEITEM (CBEN_FIRST - 2)")] - public const uint CBEN_DELETEITEM = unchecked((0U - 800U) - 2); - - [NativeTypeName("#define CBEN_BEGINEDIT (CBEN_FIRST - 4)")] - public const uint CBEN_BEGINEDIT = unchecked((0U - 800U) - 4); - - [NativeTypeName("#define CBEN_ENDEDITA (CBEN_FIRST - 5)")] - public const uint CBEN_ENDEDITA = unchecked((0U - 800U) - 5); - - [NativeTypeName("#define CBEN_ENDEDITW (CBEN_FIRST - 6)")] - public const uint CBEN_ENDEDITW = unchecked((0U - 800U) - 6); - - [NativeTypeName("#define CBEN_GETDISPINFOW (CBEN_FIRST - 7)")] - public const uint CBEN_GETDISPINFOW = unchecked((0U - 800U) - 7); - - [NativeTypeName("#define CBEN_DRAGBEGINA (CBEN_FIRST - 8)")] - public const uint CBEN_DRAGBEGINA = unchecked((0U - 800U) - 8); - - [NativeTypeName("#define CBEN_DRAGBEGINW (CBEN_FIRST - 9)")] - public const uint CBEN_DRAGBEGINW = unchecked((0U - 800U) - 9); - - [NativeTypeName("#define CBEN_DRAGBEGIN CBEN_DRAGBEGINW")] - public const uint CBEN_DRAGBEGIN = unchecked((0U - 800U) - 9); - - [NativeTypeName("#define CBEN_ENDEDIT CBEN_ENDEDITW")] - public const uint CBEN_ENDEDIT = unchecked((0U - 800U) - 6); - [NativeTypeName("#define CBENF_KILLFOCUS 1")] public const int CBENF_KILLFOCUS = 1; @@ -3943,90 +1423,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define CBEMAXSTRLEN 260")] public const int CBEMAXSTRLEN = 260; - [NativeTypeName("#define WC_TABCONTROLA \"SysTabControl32\"")] - public static ReadOnlySpan WC_TABCONTROLA => new byte[] { 0x53, 0x79, 0x73, 0x54, 0x61, 0x62, 0x43, 0x6F, 0x6E, 0x74, 0x72, 0x6F, 0x6C, 0x33, 0x32, 0x00 }; - - [NativeTypeName("#define WC_TABCONTROLW L\"SysTabControl32\"")] - public const string WC_TABCONTROLW = "SysTabControl32"; - - [NativeTypeName("#define WC_TABCONTROL WC_TABCONTROLW")] - public const string WC_TABCONTROL = "SysTabControl32"; - - [NativeTypeName("#define TCS_SCROLLOPPOSITE 0x0001")] - public const int TCS_SCROLLOPPOSITE = 0x0001; - - [NativeTypeName("#define TCS_BOTTOM 0x0002")] - public const int TCS_BOTTOM = 0x0002; - - [NativeTypeName("#define TCS_RIGHT 0x0002")] - public const int TCS_RIGHT = 0x0002; - - [NativeTypeName("#define TCS_MULTISELECT 0x0004")] - public const int TCS_MULTISELECT = 0x0004; - - [NativeTypeName("#define TCS_FLATBUTTONS 0x0008")] - public const int TCS_FLATBUTTONS = 0x0008; - - [NativeTypeName("#define TCS_FORCEICONLEFT 0x0010")] - public const int TCS_FORCEICONLEFT = 0x0010; - - [NativeTypeName("#define TCS_FORCELABELLEFT 0x0020")] - public const int TCS_FORCELABELLEFT = 0x0020; - - [NativeTypeName("#define TCS_HOTTRACK 0x0040")] - public const int TCS_HOTTRACK = 0x0040; - - [NativeTypeName("#define TCS_VERTICAL 0x0080")] - public const int TCS_VERTICAL = 0x0080; - - [NativeTypeName("#define TCS_TABS 0x0000")] - public const int TCS_TABS = 0x0000; - - [NativeTypeName("#define TCS_BUTTONS 0x0100")] - public const int TCS_BUTTONS = 0x0100; - - [NativeTypeName("#define TCS_SINGLELINE 0x0000")] - public const int TCS_SINGLELINE = 0x0000; - - [NativeTypeName("#define TCS_MULTILINE 0x0200")] - public const int TCS_MULTILINE = 0x0200; - - [NativeTypeName("#define TCS_RIGHTJUSTIFY 0x0000")] - public const int TCS_RIGHTJUSTIFY = 0x0000; - - [NativeTypeName("#define TCS_FIXEDWIDTH 0x0400")] - public const int TCS_FIXEDWIDTH = 0x0400; - - [NativeTypeName("#define TCS_RAGGEDRIGHT 0x0800")] - public const int TCS_RAGGEDRIGHT = 0x0800; - - [NativeTypeName("#define TCS_FOCUSONBUTTONDOWN 0x1000")] - public const int TCS_FOCUSONBUTTONDOWN = 0x1000; - - [NativeTypeName("#define TCS_OWNERDRAWFIXED 0x2000")] - public const int TCS_OWNERDRAWFIXED = 0x2000; - - [NativeTypeName("#define TCS_TOOLTIPS 0x4000")] - public const int TCS_TOOLTIPS = 0x4000; - - [NativeTypeName("#define TCS_FOCUSNEVER 0x8000")] - public const int TCS_FOCUSNEVER = 0x8000; - - [NativeTypeName("#define TCS_EX_FLATSEPARATORS 0x00000001")] - public const int TCS_EX_FLATSEPARATORS = 0x00000001; - - [NativeTypeName("#define TCS_EX_REGISTERDROP 0x00000002")] - public const int TCS_EX_REGISTERDROP = 0x00000002; - - [NativeTypeName("#define TCM_GETIMAGELIST (TCM_FIRST + 2)")] - public const int TCM_GETIMAGELIST = (0x1300 + 2); - - [NativeTypeName("#define TCM_SETIMAGELIST (TCM_FIRST + 3)")] - public const int TCM_SETIMAGELIST = (0x1300 + 3); - - [NativeTypeName("#define TCM_GETITEMCOUNT (TCM_FIRST + 4)")] - public const int TCM_GETITEMCOUNT = (0x1300 + 4); - [NativeTypeName("#define TCIF_TEXT 0x0001")] public const int TCIF_TEXT = 0x0001; @@ -4048,48 +1444,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TCIS_HIGHLIGHTED 0x0002")] public const int TCIS_HIGHLIGHTED = 0x0002; - [NativeTypeName("#define TCM_GETITEMA (TCM_FIRST + 5)")] - public const int TCM_GETITEMA = (0x1300 + 5); - - [NativeTypeName("#define TCM_GETITEMW (TCM_FIRST + 60)")] - public const int TCM_GETITEMW = (0x1300 + 60); - - [NativeTypeName("#define TCM_GETITEM TCM_GETITEMW")] - public const int TCM_GETITEM = (0x1300 + 60); - - [NativeTypeName("#define TCM_SETITEMA (TCM_FIRST + 6)")] - public const int TCM_SETITEMA = (0x1300 + 6); - - [NativeTypeName("#define TCM_SETITEMW (TCM_FIRST + 61)")] - public const int TCM_SETITEMW = (0x1300 + 61); - - [NativeTypeName("#define TCM_SETITEM TCM_SETITEMW")] - public const int TCM_SETITEM = (0x1300 + 61); - - [NativeTypeName("#define TCM_INSERTITEMA (TCM_FIRST + 7)")] - public const int TCM_INSERTITEMA = (0x1300 + 7); - - [NativeTypeName("#define TCM_INSERTITEMW (TCM_FIRST + 62)")] - public const int TCM_INSERTITEMW = (0x1300 + 62); - - [NativeTypeName("#define TCM_INSERTITEM TCM_INSERTITEMW")] - public const int TCM_INSERTITEM = (0x1300 + 62); - - [NativeTypeName("#define TCM_DELETEITEM (TCM_FIRST + 8)")] - public const int TCM_DELETEITEM = (0x1300 + 8); - - [NativeTypeName("#define TCM_DELETEALLITEMS (TCM_FIRST + 9)")] - public const int TCM_DELETEALLITEMS = (0x1300 + 9); - - [NativeTypeName("#define TCM_GETITEMRECT (TCM_FIRST + 10)")] - public const int TCM_GETITEMRECT = (0x1300 + 10); - - [NativeTypeName("#define TCM_GETCURSEL (TCM_FIRST + 11)")] - public const int TCM_GETCURSEL = (0x1300 + 11); - - [NativeTypeName("#define TCM_SETCURSEL (TCM_FIRST + 12)")] - public const int TCM_SETCURSEL = (0x1300 + 12); - [NativeTypeName("#define TCHT_NOWHERE 0x0001")] public const int TCHT_NOWHERE = 0x0001; @@ -4102,60 +1456,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TCHT_ONITEM (TCHT_ONITEMICON | TCHT_ONITEMLABEL)")] public const int TCHT_ONITEM = (0x0002 | 0x0004); - [NativeTypeName("#define TCM_HITTEST (TCM_FIRST + 13)")] - public const int TCM_HITTEST = (0x1300 + 13); - - [NativeTypeName("#define TCM_SETITEMEXTRA (TCM_FIRST + 14)")] - public const int TCM_SETITEMEXTRA = (0x1300 + 14); - - [NativeTypeName("#define TCM_ADJUSTRECT (TCM_FIRST + 40)")] - public const int TCM_ADJUSTRECT = (0x1300 + 40); - - [NativeTypeName("#define TCM_SETITEMSIZE (TCM_FIRST + 41)")] - public const int TCM_SETITEMSIZE = (0x1300 + 41); - - [NativeTypeName("#define TCM_REMOVEIMAGE (TCM_FIRST + 42)")] - public const int TCM_REMOVEIMAGE = (0x1300 + 42); - - [NativeTypeName("#define TCM_SETPADDING (TCM_FIRST + 43)")] - public const int TCM_SETPADDING = (0x1300 + 43); - - [NativeTypeName("#define TCM_GETROWCOUNT (TCM_FIRST + 44)")] - public const int TCM_GETROWCOUNT = (0x1300 + 44); - - [NativeTypeName("#define TCM_GETTOOLTIPS (TCM_FIRST + 45)")] - public const int TCM_GETTOOLTIPS = (0x1300 + 45); - - [NativeTypeName("#define TCM_SETTOOLTIPS (TCM_FIRST + 46)")] - public const int TCM_SETTOOLTIPS = (0x1300 + 46); - - [NativeTypeName("#define TCM_GETCURFOCUS (TCM_FIRST + 47)")] - public const int TCM_GETCURFOCUS = (0x1300 + 47); - - [NativeTypeName("#define TCM_SETCURFOCUS (TCM_FIRST + 48)")] - public const int TCM_SETCURFOCUS = (0x1300 + 48); - - [NativeTypeName("#define TCM_SETMINTABWIDTH (TCM_FIRST + 49)")] - public const int TCM_SETMINTABWIDTH = (0x1300 + 49); - - [NativeTypeName("#define TCM_DESELECTALL (TCM_FIRST + 50)")] - public const int TCM_DESELECTALL = (0x1300 + 50); - - [NativeTypeName("#define TCM_HIGHLIGHTITEM (TCM_FIRST + 51)")] - public const int TCM_HIGHLIGHTITEM = (0x1300 + 51); - - [NativeTypeName("#define TCM_SETEXTENDEDSTYLE (TCM_FIRST + 52)")] - public const int TCM_SETEXTENDEDSTYLE = (0x1300 + 52); - - [NativeTypeName("#define TCM_GETEXTENDEDSTYLE (TCM_FIRST + 53)")] - public const int TCM_GETEXTENDEDSTYLE = (0x1300 + 53); - - [NativeTypeName("#define TCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] - public const int TCM_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define TCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] - public const int TCM_GETUNICODEFORMAT = (0x2000 + 6); - [NativeTypeName("#define TCN_KEYDOWN (TCN_FIRST - 0)")] public const uint TCN_KEYDOWN = unchecked((0U - 550U) - 0); @@ -4192,24 +1492,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define ACS_TIMER 0x0008")] public const int ACS_TIMER = 0x0008; - [NativeTypeName("#define ACM_OPENA (WM_USER+100)")] - public const int ACM_OPENA = (0x0400 + 100); - - [NativeTypeName("#define ACM_OPENW (WM_USER+103)")] - public const int ACM_OPENW = (0x0400 + 103); - - [NativeTypeName("#define ACM_OPEN ACM_OPENW")] - public const int ACM_OPEN = (0x0400 + 103); - - [NativeTypeName("#define ACM_PLAY (WM_USER+101)")] - public const int ACM_PLAY = (0x0400 + 101); - - [NativeTypeName("#define ACM_STOP (WM_USER+102)")] - public const int ACM_STOP = (0x0400 + 102); - - [NativeTypeName("#define ACM_ISPLAYING (WM_USER+104)")] - public const int ACM_ISPLAYING = (0x0400 + 104); - [NativeTypeName("#define ACN_START 1")] public const int ACN_START = 1; @@ -4225,42 +1507,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define MONTHCAL_CLASS MONTHCAL_CLASSW")] public const string MONTHCAL_CLASS = "SysMonthCal32"; - [NativeTypeName("#define MCM_FIRST 0x1000")] - public const int MCM_FIRST = 0x1000; - - [NativeTypeName("#define MCM_GETCURSEL (MCM_FIRST + 1)")] - public const int MCM_GETCURSEL = (0x1000 + 1); - - [NativeTypeName("#define MCM_SETCURSEL (MCM_FIRST + 2)")] - public const int MCM_SETCURSEL = (0x1000 + 2); - - [NativeTypeName("#define MCM_GETMAXSELCOUNT (MCM_FIRST + 3)")] - public const int MCM_GETMAXSELCOUNT = (0x1000 + 3); - - [NativeTypeName("#define MCM_SETMAXSELCOUNT (MCM_FIRST + 4)")] - public const int MCM_SETMAXSELCOUNT = (0x1000 + 4); - - [NativeTypeName("#define MCM_GETSELRANGE (MCM_FIRST + 5)")] - public const int MCM_GETSELRANGE = (0x1000 + 5); - - [NativeTypeName("#define MCM_SETSELRANGE (MCM_FIRST + 6)")] - public const int MCM_SETSELRANGE = (0x1000 + 6); - - [NativeTypeName("#define MCM_GETMONTHRANGE (MCM_FIRST + 7)")] - public const int MCM_GETMONTHRANGE = (0x1000 + 7); - - [NativeTypeName("#define MCM_SETDAYSTATE (MCM_FIRST + 8)")] - public const int MCM_SETDAYSTATE = (0x1000 + 8); - - [NativeTypeName("#define MCM_GETMINREQRECT (MCM_FIRST + 9)")] - public const int MCM_GETMINREQRECT = (0x1000 + 9); - - [NativeTypeName("#define MCM_SETCOLOR (MCM_FIRST + 10)")] - public const int MCM_SETCOLOR = (0x1000 + 10); - - [NativeTypeName("#define MCM_GETCOLOR (MCM_FIRST + 11)")] - public const int MCM_GETCOLOR = (0x1000 + 11); - [NativeTypeName("#define MCSC_BACKGROUND 0")] public const int MCSC_BACKGROUND = 0; @@ -4279,102 +1525,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define MCSC_TRAILINGTEXT 5")] public const int MCSC_TRAILINGTEXT = 5; - [NativeTypeName("#define MCM_SETTODAY (MCM_FIRST + 12)")] - public const int MCM_SETTODAY = (0x1000 + 12); - - [NativeTypeName("#define MCM_GETTODAY (MCM_FIRST + 13)")] - public const int MCM_GETTODAY = (0x1000 + 13); - - [NativeTypeName("#define MCM_HITTEST (MCM_FIRST + 14)")] - public const int MCM_HITTEST = (0x1000 + 14); - - [NativeTypeName("#define MCHT_TITLE 0x00010000")] - public const int MCHT_TITLE = 0x00010000; - - [NativeTypeName("#define MCHT_CALENDAR 0x00020000")] - public const int MCHT_CALENDAR = 0x00020000; - - [NativeTypeName("#define MCHT_TODAYLINK 0x00030000")] - public const int MCHT_TODAYLINK = 0x00030000; - - [NativeTypeName("#define MCHT_CALENDARCONTROL 0x00100000")] - public const int MCHT_CALENDARCONTROL = 0x00100000; - - [NativeTypeName("#define MCHT_NEXT 0x01000000")] - public const int MCHT_NEXT = 0x01000000; - - [NativeTypeName("#define MCHT_PREV 0x02000000")] - public const int MCHT_PREV = 0x02000000; - - [NativeTypeName("#define MCHT_NOWHERE 0x00000000")] - public const int MCHT_NOWHERE = 0x00000000; - - [NativeTypeName("#define MCHT_TITLEBK (MCHT_TITLE)")] - public const int MCHT_TITLEBK = (0x00010000); - - [NativeTypeName("#define MCHT_TITLEMONTH (MCHT_TITLE | 0x0001)")] - public const int MCHT_TITLEMONTH = (0x00010000 | 0x0001); - - [NativeTypeName("#define MCHT_TITLEYEAR (MCHT_TITLE | 0x0002)")] - public const int MCHT_TITLEYEAR = (0x00010000 | 0x0002); - - [NativeTypeName("#define MCHT_TITLEBTNNEXT (MCHT_TITLE | MCHT_NEXT | 0x0003)")] - public const int MCHT_TITLEBTNNEXT = (0x00010000 | 0x01000000 | 0x0003); - - [NativeTypeName("#define MCHT_TITLEBTNPREV (MCHT_TITLE | MCHT_PREV | 0x0003)")] - public const int MCHT_TITLEBTNPREV = (0x00010000 | 0x02000000 | 0x0003); - - [NativeTypeName("#define MCHT_CALENDARBK (MCHT_CALENDAR)")] - public const int MCHT_CALENDARBK = (0x00020000); - - [NativeTypeName("#define MCHT_CALENDARDATE (MCHT_CALENDAR | 0x0001)")] - public const int MCHT_CALENDARDATE = (0x00020000 | 0x0001); - - [NativeTypeName("#define MCHT_CALENDARDATENEXT (MCHT_CALENDARDATE | MCHT_NEXT)")] - public const int MCHT_CALENDARDATENEXT = ((0x00020000 | 0x0001) | 0x01000000); - - [NativeTypeName("#define MCHT_CALENDARDATEPREV (MCHT_CALENDARDATE | MCHT_PREV)")] - public const int MCHT_CALENDARDATEPREV = ((0x00020000 | 0x0001) | 0x02000000); - - [NativeTypeName("#define MCHT_CALENDARDAY (MCHT_CALENDAR | 0x0002)")] - public const int MCHT_CALENDARDAY = (0x00020000 | 0x0002); - - [NativeTypeName("#define MCHT_CALENDARWEEKNUM (MCHT_CALENDAR | 0x0003)")] - public const int MCHT_CALENDARWEEKNUM = (0x00020000 | 0x0003); - - [NativeTypeName("#define MCHT_CALENDARDATEMIN (MCHT_CALENDAR | 0x0004)")] - public const int MCHT_CALENDARDATEMIN = (0x00020000 | 0x0004); - - [NativeTypeName("#define MCHT_CALENDARDATEMAX (MCHT_CALENDAR | 0x0005)")] - public const int MCHT_CALENDARDATEMAX = (0x00020000 | 0x0005); - - [NativeTypeName("#define MCM_SETFIRSTDAYOFWEEK (MCM_FIRST + 15)")] - public const int MCM_SETFIRSTDAYOFWEEK = (0x1000 + 15); - - [NativeTypeName("#define MCM_GETFIRSTDAYOFWEEK (MCM_FIRST + 16)")] - public const int MCM_GETFIRSTDAYOFWEEK = (0x1000 + 16); - - [NativeTypeName("#define MCM_GETRANGE (MCM_FIRST + 17)")] - public const int MCM_GETRANGE = (0x1000 + 17); - - [NativeTypeName("#define MCM_SETRANGE (MCM_FIRST + 18)")] - public const int MCM_SETRANGE = (0x1000 + 18); - - [NativeTypeName("#define MCM_GETMONTHDELTA (MCM_FIRST + 19)")] - public const int MCM_GETMONTHDELTA = (0x1000 + 19); - - [NativeTypeName("#define MCM_SETMONTHDELTA (MCM_FIRST + 20)")] - public const int MCM_SETMONTHDELTA = (0x1000 + 20); - - [NativeTypeName("#define MCM_GETMAXTODAYWIDTH (MCM_FIRST + 21)")] - public const int MCM_GETMAXTODAYWIDTH = (0x1000 + 21); - - [NativeTypeName("#define MCM_SETUNICODEFORMAT CCM_SETUNICODEFORMAT")] - public const int MCM_SETUNICODEFORMAT = (0x2000 + 5); - - [NativeTypeName("#define MCM_GETUNICODEFORMAT CCM_GETUNICODEFORMAT")] - public const int MCM_GETUNICODEFORMAT = (0x2000 + 6); - [NativeTypeName("#define MCMV_MONTH 0")] public const int MCMV_MONTH = 0; @@ -4390,12 +1540,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define MCMV_MAX MCMV_CENTURY")] public const int MCMV_MAX = 3; - [NativeTypeName("#define MCM_GETCURRENTVIEW (MCM_FIRST + 22)")] - public const int MCM_GETCURRENTVIEW = (0x1000 + 22); - - [NativeTypeName("#define MCM_GETCALENDARCOUNT (MCM_FIRST + 23)")] - public const int MCM_GETCALENDARCOUNT = (0x1000 + 23); - [NativeTypeName("#define MCGIP_CALENDARCONTROL 0")] public const int MCGIP_CALENDARCONTROL = 0; @@ -4432,27 +1576,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define MCGIF_NAME 0x00000004")] public const int MCGIF_NAME = 0x00000004; - [NativeTypeName("#define MCM_GETCALENDARGRIDINFO (MCM_FIRST + 24)")] - public const int MCM_GETCALENDARGRIDINFO = (0x1000 + 24); - - [NativeTypeName("#define MCM_GETCALID (MCM_FIRST + 27)")] - public const int MCM_GETCALID = (0x1000 + 27); - - [NativeTypeName("#define MCM_SETCALID (MCM_FIRST + 28)")] - public const int MCM_SETCALID = (0x1000 + 28); - - [NativeTypeName("#define MCM_SIZERECTTOMIN (MCM_FIRST + 29)")] - public const int MCM_SIZERECTTOMIN = (0x1000 + 29); - - [NativeTypeName("#define MCM_SETCALENDARBORDER (MCM_FIRST + 30)")] - public const int MCM_SETCALENDARBORDER = (0x1000 + 30); - - [NativeTypeName("#define MCM_GETCALENDARBORDER (MCM_FIRST + 31)")] - public const int MCM_GETCALENDARBORDER = (0x1000 + 31); - - [NativeTypeName("#define MCM_SETCURRENTVIEW (MCM_FIRST + 32)")] - public const int MCM_SETCURRENTVIEW = (0x1000 + 32); - [NativeTypeName("#define MCN_SELCHANGE (MCN_FIRST - 3)")] public const uint MCN_SELCHANGE = unchecked((0U - 746U) - 3); @@ -4504,60 +1627,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define DATETIMEPICK_CLASS DATETIMEPICK_CLASSW")] public const string DATETIMEPICK_CLASS = "SysDateTimePick32"; - [NativeTypeName("#define DTM_FIRST 0x1000")] - public const int DTM_FIRST = 0x1000; - - [NativeTypeName("#define DTM_GETSYSTEMTIME (DTM_FIRST + 1)")] - public const int DTM_GETSYSTEMTIME = (0x1000 + 1); - - [NativeTypeName("#define DTM_SETSYSTEMTIME (DTM_FIRST + 2)")] - public const int DTM_SETSYSTEMTIME = (0x1000 + 2); - - [NativeTypeName("#define DTM_GETRANGE (DTM_FIRST + 3)")] - public const int DTM_GETRANGE = (0x1000 + 3); - - [NativeTypeName("#define DTM_SETRANGE (DTM_FIRST + 4)")] - public const int DTM_SETRANGE = (0x1000 + 4); - - [NativeTypeName("#define DTM_SETFORMATA (DTM_FIRST + 5)")] - public const int DTM_SETFORMATA = (0x1000 + 5); - - [NativeTypeName("#define DTM_SETFORMATW (DTM_FIRST + 50)")] - public const int DTM_SETFORMATW = (0x1000 + 50); - - [NativeTypeName("#define DTM_SETFORMAT DTM_SETFORMATW")] - public const int DTM_SETFORMAT = (0x1000 + 50); - - [NativeTypeName("#define DTM_SETMCCOLOR (DTM_FIRST + 6)")] - public const int DTM_SETMCCOLOR = (0x1000 + 6); - - [NativeTypeName("#define DTM_GETMCCOLOR (DTM_FIRST + 7)")] - public const int DTM_GETMCCOLOR = (0x1000 + 7); - - [NativeTypeName("#define DTM_GETMONTHCAL (DTM_FIRST + 8)")] - public const int DTM_GETMONTHCAL = (0x1000 + 8); - - [NativeTypeName("#define DTM_SETMCFONT (DTM_FIRST + 9)")] - public const int DTM_SETMCFONT = (0x1000 + 9); - - [NativeTypeName("#define DTM_GETMCFONT (DTM_FIRST + 10)")] - public const int DTM_GETMCFONT = (0x1000 + 10); - - [NativeTypeName("#define DTM_SETMCSTYLE (DTM_FIRST + 11)")] - public const int DTM_SETMCSTYLE = (0x1000 + 11); - - [NativeTypeName("#define DTM_GETMCSTYLE (DTM_FIRST + 12)")] - public const int DTM_GETMCSTYLE = (0x1000 + 12); - - [NativeTypeName("#define DTM_CLOSEMONTHCAL (DTM_FIRST + 13)")] - public const int DTM_CLOSEMONTHCAL = (0x1000 + 13); - - [NativeTypeName("#define DTM_GETDATETIMEPICKERINFO (DTM_FIRST + 14)")] - public const int DTM_GETDATETIMEPICKERINFO = (0x1000 + 14); - - [NativeTypeName("#define DTM_GETIDEALSIZE (DTM_FIRST + 15)")] - public const int DTM_GETIDEALSIZE = (0x1000 + 15); - [NativeTypeName("#define DTS_UPDOWN 0x0001")] public const int DTS_UPDOWN = 0x0001; @@ -4582,51 +1651,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define DTS_RIGHTALIGN 0x0020")] public const int DTS_RIGHTALIGN = 0x0020; - [NativeTypeName("#define DTN_DATETIMECHANGE (DTN_FIRST2 - 6)")] - public const uint DTN_DATETIMECHANGE = unchecked((0U - 753U) - 6); - - [NativeTypeName("#define DTN_USERSTRINGA (DTN_FIRST2 - 5)")] - public const uint DTN_USERSTRINGA = unchecked((0U - 753U) - 5); - - [NativeTypeName("#define DTN_USERSTRINGW (DTN_FIRST - 5)")] - public const uint DTN_USERSTRINGW = unchecked((0U - 740U) - 5); - - [NativeTypeName("#define DTN_USERSTRING DTN_USERSTRINGW")] - public const uint DTN_USERSTRING = unchecked((0U - 740U) - 5); - - [NativeTypeName("#define DTN_WMKEYDOWNA (DTN_FIRST2 - 4)")] - public const uint DTN_WMKEYDOWNA = unchecked((0U - 753U) - 4); - - [NativeTypeName("#define DTN_WMKEYDOWNW (DTN_FIRST - 4)")] - public const uint DTN_WMKEYDOWNW = unchecked((0U - 740U) - 4); - - [NativeTypeName("#define DTN_WMKEYDOWN DTN_WMKEYDOWNW")] - public const uint DTN_WMKEYDOWN = unchecked((0U - 740U) - 4); - - [NativeTypeName("#define DTN_FORMATA (DTN_FIRST2 - 3)")] - public const uint DTN_FORMATA = unchecked((0U - 753U) - 3); - - [NativeTypeName("#define DTN_FORMATW (DTN_FIRST - 3)")] - public const uint DTN_FORMATW = unchecked((0U - 740U) - 3); - - [NativeTypeName("#define DTN_FORMAT DTN_FORMATW")] - public const uint DTN_FORMAT = unchecked((0U - 740U) - 3); - - [NativeTypeName("#define DTN_FORMATQUERYA (DTN_FIRST2 - 2)")] - public const uint DTN_FORMATQUERYA = unchecked((0U - 753U) - 2); - - [NativeTypeName("#define DTN_FORMATQUERYW (DTN_FIRST - 2)")] - public const uint DTN_FORMATQUERYW = unchecked((0U - 740U) - 2); - - [NativeTypeName("#define DTN_FORMATQUERY DTN_FORMATQUERYW")] - public const uint DTN_FORMATQUERY = unchecked((0U - 740U) - 2); - - [NativeTypeName("#define DTN_DROPDOWN (DTN_FIRST2 - 1)")] - public const uint DTN_DROPDOWN = unchecked((0U - 753U) - 1); - - [NativeTypeName("#define DTN_CLOSEUP (DTN_FIRST2)")] - public const uint DTN_CLOSEUP = unchecked((0U - 753U)); - [NativeTypeName("#define GDTR_MIN 0x0001")] public const int GDTR_MIN = 0x0001; @@ -4660,27 +1684,9 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define IPM_ISBLANK (WM_USER+105)")] public const int IPM_ISBLANK = (0x0400 + 105); - [NativeTypeName("#define WC_IPADDRESSW L\"SysIPAddress32\"")] - public const string WC_IPADDRESSW = "SysIPAddress32"; - - [NativeTypeName("#define WC_IPADDRESSA \"SysIPAddress32\"")] - public static ReadOnlySpan WC_IPADDRESSA => new byte[] { 0x53, 0x79, 0x73, 0x49, 0x50, 0x41, 0x64, 0x64, 0x72, 0x65, 0x73, 0x73, 0x33, 0x32, 0x00 }; - - [NativeTypeName("#define WC_IPADDRESS WC_IPADDRESSW")] - public const string WC_IPADDRESS = "SysIPAddress32"; - [NativeTypeName("#define IPN_FIELDCHANGED (IPN_FIRST - 0)")] public const uint IPN_FIELDCHANGED = unchecked((0U - 860U) - 0); - [NativeTypeName("#define WC_PAGESCROLLERW L\"SysPager\"")] - public const string WC_PAGESCROLLERW = "SysPager"; - - [NativeTypeName("#define WC_PAGESCROLLERA \"SysPager\"")] - public static ReadOnlySpan WC_PAGESCROLLERA => new byte[] { 0x53, 0x79, 0x73, 0x50, 0x61, 0x67, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define WC_PAGESCROLLER WC_PAGESCROLLERW")] - public const string WC_PAGESCROLLER = "SysPager"; - [NativeTypeName("#define PGS_VERT 0x00000000")] public const int PGS_VERT = 0x00000000; @@ -4693,84 +1699,15 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define PGS_DRAGNDROP 0x00000004")] public const int PGS_DRAGNDROP = 0x00000004; - [NativeTypeName("#define PGF_INVISIBLE 0")] - public const int PGF_INVISIBLE = 0; - - [NativeTypeName("#define PGF_NORMAL 1")] - public const int PGF_NORMAL = 1; - - [NativeTypeName("#define PGF_GRAYED 2")] - public const int PGF_GRAYED = 2; - - [NativeTypeName("#define PGF_DEPRESSED 4")] - public const int PGF_DEPRESSED = 4; - - [NativeTypeName("#define PGF_HOT 8")] - public const int PGF_HOT = 8; - [NativeTypeName("#define PGB_TOPORLEFT 0")] public const int PGB_TOPORLEFT = 0; [NativeTypeName("#define PGB_BOTTOMORRIGHT 1")] public const int PGB_BOTTOMORRIGHT = 1; - [NativeTypeName("#define PGM_SETCHILD (PGM_FIRST + 1)")] - public const int PGM_SETCHILD = (0x1400 + 1); - - [NativeTypeName("#define PGM_RECALCSIZE (PGM_FIRST + 2)")] - public const int PGM_RECALCSIZE = (0x1400 + 2); - - [NativeTypeName("#define PGM_FORWARDMOUSE (PGM_FIRST + 3)")] - public const int PGM_FORWARDMOUSE = (0x1400 + 3); - - [NativeTypeName("#define PGM_SETBKCOLOR (PGM_FIRST + 4)")] - public const int PGM_SETBKCOLOR = (0x1400 + 4); - - [NativeTypeName("#define PGM_GETBKCOLOR (PGM_FIRST + 5)")] - public const int PGM_GETBKCOLOR = (0x1400 + 5); - - [NativeTypeName("#define PGM_SETBORDER (PGM_FIRST + 6)")] - public const int PGM_SETBORDER = (0x1400 + 6); - - [NativeTypeName("#define PGM_GETBORDER (PGM_FIRST + 7)")] - public const int PGM_GETBORDER = (0x1400 + 7); - - [NativeTypeName("#define PGM_SETPOS (PGM_FIRST + 8)")] - public const int PGM_SETPOS = (0x1400 + 8); - - [NativeTypeName("#define PGM_GETPOS (PGM_FIRST + 9)")] - public const int PGM_GETPOS = (0x1400 + 9); - - [NativeTypeName("#define PGM_SETBUTTONSIZE (PGM_FIRST + 10)")] - public const int PGM_SETBUTTONSIZE = (0x1400 + 10); - - [NativeTypeName("#define PGM_GETBUTTONSIZE (PGM_FIRST + 11)")] - public const int PGM_GETBUTTONSIZE = (0x1400 + 11); - - [NativeTypeName("#define PGM_GETBUTTONSTATE (PGM_FIRST + 12)")] - public const int PGM_GETBUTTONSTATE = (0x1400 + 12); - - [NativeTypeName("#define PGM_GETDROPTARGET CCM_GETDROPTARGET")] - public const int PGM_GETDROPTARGET = (0x2000 + 4); - - [NativeTypeName("#define PGM_SETSCROLLINFO (PGM_FIRST + 13)")] - public const int PGM_SETSCROLLINFO = (0x1400 + 13); - [NativeTypeName("#define PGN_SCROLL (PGN_FIRST-1)")] public const uint PGN_SCROLL = unchecked((0U - 900U) - 1); - [NativeTypeName("#define PGF_SCROLLUP 1")] - public const int PGF_SCROLLUP = 1; - - [NativeTypeName("#define PGF_SCROLLDOWN 2")] - public const int PGF_SCROLLDOWN = 2; - - [NativeTypeName("#define PGF_SCROLLLEFT 4")] - public const int PGF_SCROLLLEFT = 4; - - [NativeTypeName("#define PGF_SCROLLRIGHT 8")] - public const int PGF_SCROLLRIGHT = 8; - [NativeTypeName("#define PGK_SHIFT 1")] public const int PGK_SHIFT = 1; @@ -4783,24 +1720,9 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define PGN_CALCSIZE (PGN_FIRST-2)")] public const uint PGN_CALCSIZE = unchecked((0U - 900U) - 2); - [NativeTypeName("#define PGF_CALCWIDTH 1")] - public const int PGF_CALCWIDTH = 1; - - [NativeTypeName("#define PGF_CALCHEIGHT 2")] - public const int PGF_CALCHEIGHT = 2; - [NativeTypeName("#define PGN_HOTITEMCHANGE (PGN_FIRST-3)")] public const uint PGN_HOTITEMCHANGE = unchecked((0U - 900U) - 3); - [NativeTypeName("#define WC_NATIVEFONTCTLW L\"NativeFontCtl\"")] - public const string WC_NATIVEFONTCTLW = "NativeFontCtl"; - - [NativeTypeName("#define WC_NATIVEFONTCTLA \"NativeFontCtl\"")] - public static ReadOnlySpan WC_NATIVEFONTCTLA => new byte[] { 0x4E, 0x61, 0x74, 0x69, 0x76, 0x65, 0x46, 0x6F, 0x6E, 0x74, 0x43, 0x74, 0x6C, 0x00 }; - - [NativeTypeName("#define WC_NATIVEFONTCTL WC_NATIVEFONTCTLW")] - public const string WC_NATIVEFONTCTL = "NativeFontCtl"; - [NativeTypeName("#define NFS_EDIT 0x0001")] public const int NFS_EDIT = 0x0001; @@ -4819,15 +1741,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define NFS_USEFONTASSOC 0x0020")] public const int NFS_USEFONTASSOC = 0x0020; - [NativeTypeName("#define WC_BUTTONA \"Button\"")] - public static ReadOnlySpan WC_BUTTONA => new byte[] { 0x42, 0x75, 0x74, 0x74, 0x6F, 0x6E, 0x00 }; - - [NativeTypeName("#define WC_BUTTONW L\"Button\"")] - public const string WC_BUTTONW = "Button"; - - [NativeTypeName("#define WC_BUTTON WC_BUTTONW")] - public const string WC_BUTTON = "Button"; - [NativeTypeName("#define BUTTON_IMAGELIST_ALIGN_LEFT 0")] public const int BUTTON_IMAGELIST_ALIGN_LEFT = 0; @@ -4843,21 +1756,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define BUTTON_IMAGELIST_ALIGN_CENTER 4")] public const int BUTTON_IMAGELIST_ALIGN_CENTER = 4; - [NativeTypeName("#define BCM_GETIDEALSIZE (BCM_FIRST + 0x0001)")] - public const int BCM_GETIDEALSIZE = (0x1600 + 0x0001); - - [NativeTypeName("#define BCM_SETIMAGELIST (BCM_FIRST + 0x0002)")] - public const int BCM_SETIMAGELIST = (0x1600 + 0x0002); - - [NativeTypeName("#define BCM_GETIMAGELIST (BCM_FIRST + 0x0003)")] - public const int BCM_GETIMAGELIST = (0x1600 + 0x0003); - - [NativeTypeName("#define BCM_SETTEXTMARGIN (BCM_FIRST + 0x0004)")] - public const int BCM_SETTEXTMARGIN = (0x1600 + 0x0004); - - [NativeTypeName("#define BCM_GETTEXTMARGIN (BCM_FIRST + 0x0005)")] - public const int BCM_GETTEXTMARGIN = (0x1600 + 0x0005); - [NativeTypeName("#define BCN_HOTITEMCHANGE (BCN_FIRST + 0x0001)")] public const uint BCN_HOTITEMCHANGE = unchecked((0U - 1250U) + 0x0001); @@ -4867,18 +1765,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define BST_DROPDOWNPUSHED 0x0400")] public const int BST_DROPDOWNPUSHED = 0x0400; - [NativeTypeName("#define BS_SPLITBUTTON 0x0000000CL")] - public const int BS_SPLITBUTTON = 0x0000000C; - - [NativeTypeName("#define BS_DEFSPLITBUTTON 0x0000000DL")] - public const int BS_DEFSPLITBUTTON = 0x0000000D; - - [NativeTypeName("#define BS_COMMANDLINK 0x0000000EL")] - public const int BS_COMMANDLINK = 0x0000000E; - - [NativeTypeName("#define BS_DEFCOMMANDLINK 0x0000000FL")] - public const int BS_DEFCOMMANDLINK = 0x0000000F; - [NativeTypeName("#define BCSIF_GLYPH 0x0001")] public const int BCSIF_GLYPH = 0x0001; @@ -4903,105 +1789,9 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define BCSS_IMAGE 0x0008")] public const int BCSS_IMAGE = 0x0008; - [NativeTypeName("#define BCM_SETDROPDOWNSTATE (BCM_FIRST + 0x0006)")] - public const int BCM_SETDROPDOWNSTATE = (0x1600 + 0x0006); - - [NativeTypeName("#define BCM_SETSPLITINFO (BCM_FIRST + 0x0007)")] - public const int BCM_SETSPLITINFO = (0x1600 + 0x0007); - - [NativeTypeName("#define BCM_GETSPLITINFO (BCM_FIRST + 0x0008)")] - public const int BCM_GETSPLITINFO = (0x1600 + 0x0008); - - [NativeTypeName("#define BCM_SETNOTE (BCM_FIRST + 0x0009)")] - public const int BCM_SETNOTE = (0x1600 + 0x0009); - - [NativeTypeName("#define BCM_GETNOTE (BCM_FIRST + 0x000A)")] - public const int BCM_GETNOTE = (0x1600 + 0x000A); - - [NativeTypeName("#define BCM_GETNOTELENGTH (BCM_FIRST + 0x000B)")] - public const int BCM_GETNOTELENGTH = (0x1600 + 0x000B); - - [NativeTypeName("#define BCM_SETSHIELD (BCM_FIRST + 0x000C)")] - public const int BCM_SETSHIELD = (0x1600 + 0x000C); - [NativeTypeName("#define BCN_DROPDOWN (BCN_FIRST + 0x0002)")] public const uint BCN_DROPDOWN = unchecked((0U - 1250U) + 0x0002); - [NativeTypeName("#define WC_STATICA \"Static\"")] - public static ReadOnlySpan WC_STATICA => new byte[] { 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x00 }; - - [NativeTypeName("#define WC_STATICW L\"Static\"")] - public const string WC_STATICW = "Static"; - - [NativeTypeName("#define WC_STATIC WC_STATICW")] - public const string WC_STATIC = "Static"; - - [NativeTypeName("#define WC_EDITA \"Edit\"")] - public static ReadOnlySpan WC_EDITA => new byte[] { 0x45, 0x64, 0x69, 0x74, 0x00 }; - - [NativeTypeName("#define WC_EDITW L\"Edit\"")] - public const string WC_EDITW = "Edit"; - - [NativeTypeName("#define WC_EDIT WC_EDITW")] - public const string WC_EDIT = "Edit"; - - [NativeTypeName("#define ES_EX_ALLOWEOL_CR 0x0001L")] - public const int ES_EX_ALLOWEOL_CR = 0x0001; - - [NativeTypeName("#define ES_EX_ALLOWEOL_LF 0x0002L")] - public const int ES_EX_ALLOWEOL_LF = 0x0002; - - [NativeTypeName("#define ES_EX_ALLOWEOL_ALL (ES_EX_ALLOWEOL_CR | ES_EX_ALLOWEOL_LF)")] - public const int ES_EX_ALLOWEOL_ALL = (0x0001 | 0x0002); - - [NativeTypeName("#define ES_EX_CONVERT_EOL_ON_PASTE 0x0004L")] - public const int ES_EX_CONVERT_EOL_ON_PASTE = 0x0004; - - [NativeTypeName("#define ES_EX_ZOOMABLE 0x0010L")] - public const int ES_EX_ZOOMABLE = 0x0010; - - [NativeTypeName("#define EN_SEARCHWEB (EN_FIRST - 0)")] - public const uint EN_SEARCHWEB = unchecked((0U - 1520U) - 0); - - [NativeTypeName("#define WC_LISTBOXA \"ListBox\"")] - public static ReadOnlySpan WC_LISTBOXA => new byte[] { 0x4C, 0x69, 0x73, 0x74, 0x42, 0x6F, 0x78, 0x00 }; - - [NativeTypeName("#define WC_LISTBOXW L\"ListBox\"")] - public const string WC_LISTBOXW = "ListBox"; - - [NativeTypeName("#define WC_LISTBOX WC_LISTBOXW")] - public const string WC_LISTBOX = "ListBox"; - - [NativeTypeName("#define WC_COMBOBOXA \"ComboBox\"")] - public static ReadOnlySpan WC_COMBOBOXA => new byte[] { 0x43, 0x6F, 0x6D, 0x62, 0x6F, 0x42, 0x6F, 0x78, 0x00 }; - - [NativeTypeName("#define WC_COMBOBOXW L\"ComboBox\"")] - public const string WC_COMBOBOXW = "ComboBox"; - - [NativeTypeName("#define WC_COMBOBOX WC_COMBOBOXW")] - public const string WC_COMBOBOX = "ComboBox"; - - [NativeTypeName("#define CB_SETMINVISIBLE (CBM_FIRST + 1)")] - public const int CB_SETMINVISIBLE = (0x1700 + 1); - - [NativeTypeName("#define CB_GETMINVISIBLE (CBM_FIRST + 2)")] - public const int CB_GETMINVISIBLE = (0x1700 + 2); - - [NativeTypeName("#define CB_SETCUEBANNER (CBM_FIRST + 3)")] - public const int CB_SETCUEBANNER = (0x1700 + 3); - - [NativeTypeName("#define CB_GETCUEBANNER (CBM_FIRST + 4)")] - public const int CB_GETCUEBANNER = (0x1700 + 4); - - [NativeTypeName("#define WC_SCROLLBARA \"ScrollBar\"")] - public static ReadOnlySpan WC_SCROLLBARA => new byte[] { 0x53, 0x63, 0x72, 0x6F, 0x6C, 0x6C, 0x42, 0x61, 0x72, 0x00 }; - - [NativeTypeName("#define WC_SCROLLBARW L\"ScrollBar\"")] - public const string WC_SCROLLBARW = "ScrollBar"; - - [NativeTypeName("#define WC_SCROLLBAR WC_SCROLLBARW")] - public const string WC_SCROLLBAR = "ScrollBar"; - [NativeTypeName("#define TD_WARNING_ICON MAKEINTRESOURCEW(-1)")] public static ushort* TD_WARNING_ICON => unchecked((ushort*)((nuint)((ushort)(-1)))); @@ -5014,45 +1804,6 @@ public static HIMAGELIST IImageListToHIMAGELIST([NativeTypeName("struct IImageLi [NativeTypeName("#define TD_SHIELD_ICON MAKEINTRESOURCEW(-4)")] public static ushort* TD_SHIELD_ICON => unchecked((ushort*)((nuint)((ushort)(-4)))); - [NativeTypeName("#define WSB_PROP_CYVSCROLL 0x00000001L")] - public const int WSB_PROP_CYVSCROLL = 0x00000001; - - [NativeTypeName("#define WSB_PROP_CXHSCROLL 0x00000002L")] - public const int WSB_PROP_CXHSCROLL = 0x00000002; - - [NativeTypeName("#define WSB_PROP_CYHSCROLL 0x00000004L")] - public const int WSB_PROP_CYHSCROLL = 0x00000004; - - [NativeTypeName("#define WSB_PROP_CXVSCROLL 0x00000008L")] - public const int WSB_PROP_CXVSCROLL = 0x00000008; - - [NativeTypeName("#define WSB_PROP_CXHTHUMB 0x00000010L")] - public const int WSB_PROP_CXHTHUMB = 0x00000010; - - [NativeTypeName("#define WSB_PROP_CYVTHUMB 0x00000020L")] - public const int WSB_PROP_CYVTHUMB = 0x00000020; - - [NativeTypeName("#define WSB_PROP_VBKGCOLOR 0x00000040L")] - public const int WSB_PROP_VBKGCOLOR = 0x00000040; - - [NativeTypeName("#define WSB_PROP_HBKGCOLOR 0x00000080L")] - public const int WSB_PROP_HBKGCOLOR = 0x00000080; - - [NativeTypeName("#define WSB_PROP_VSTYLE 0x00000100L")] - public const int WSB_PROP_VSTYLE = 0x00000100; - - [NativeTypeName("#define WSB_PROP_HSTYLE 0x00000200L")] - public const int WSB_PROP_HSTYLE = 0x00000200; - - [NativeTypeName("#define WSB_PROP_WINSTYLE 0x00000400L")] - public const int WSB_PROP_WINSTYLE = 0x00000400; - - [NativeTypeName("#define WSB_PROP_PALETTE 0x00000800L")] - public const int WSB_PROP_PALETTE = 0x00000800; - - [NativeTypeName("#define WSB_PROP_MASK 0x00000FFFL")] - public const int WSB_PROP_MASK = 0x00000FFF; - [NativeTypeName("#define FSB_FLAT_MODE 2")] public const int FSB_FLAT_MODE = 2; diff --git a/sources/Interop/Windows/Windows/um/Cpl/Windows.cs b/sources/Interop/Windows/Windows/um/Cpl/CPL.cs similarity index 97% rename from sources/Interop/Windows/Windows/um/Cpl/Windows.cs rename to sources/Interop/Windows/Windows/um/Cpl/CPL.cs index dab81f7425..6b004df250 100644 --- a/sources/Interop/Windows/Windows/um/Cpl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/Cpl/CPL.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class CPL { [NativeTypeName("#define CPL_DYNAMIC_RES 0")] public const int CPL_DYNAMIC_RES = 0; diff --git a/sources/Interop/Windows/Windows/um/DocObj/MSOCMDID.cs b/sources/Interop/Windows/Windows/um/DocObj/MSOCMDID.cs new file mode 100644 index 0000000000..f4fd30f5b1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/DocObj/MSOCMDID.cs @@ -0,0 +1,72 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/DocObj.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using static TerraFX.Interop.Windows.OLECMDID; + +namespace TerraFX.Interop.Windows +{ + public static partial class MSOCMDID + { + [NativeTypeName("#define MSOCMDID_OPEN OLECMDID_OPEN")] + public const OLECMDID MSOCMDID_OPEN = OLECMDID_OPEN; + + [NativeTypeName("#define MSOCMDID_NEW OLECMDID_NEW")] + public const OLECMDID MSOCMDID_NEW = OLECMDID_NEW; + + [NativeTypeName("#define MSOCMDID_SAVE OLECMDID_SAVE")] + public const OLECMDID MSOCMDID_SAVE = OLECMDID_SAVE; + + [NativeTypeName("#define MSOCMDID_SAVEAS OLECMDID_SAVEAS")] + public const OLECMDID MSOCMDID_SAVEAS = OLECMDID_SAVEAS; + + [NativeTypeName("#define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS")] + public const OLECMDID MSOCMDID_SAVECOPYAS = OLECMDID_SAVECOPYAS; + + [NativeTypeName("#define MSOCMDID_PRINT OLECMDID_PRINT")] + public const OLECMDID MSOCMDID_PRINT = OLECMDID_PRINT; + + [NativeTypeName("#define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW")] + public const OLECMDID MSOCMDID_PRINTPREVIEW = OLECMDID_PRINTPREVIEW; + + [NativeTypeName("#define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP")] + public const OLECMDID MSOCMDID_PAGESETUP = OLECMDID_PAGESETUP; + + [NativeTypeName("#define MSOCMDID_SPELL OLECMDID_SPELL")] + public const OLECMDID MSOCMDID_SPELL = OLECMDID_SPELL; + + [NativeTypeName("#define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES")] + public const OLECMDID MSOCMDID_PROPERTIES = OLECMDID_PROPERTIES; + + [NativeTypeName("#define MSOCMDID_CUT OLECMDID_CUT")] + public const OLECMDID MSOCMDID_CUT = OLECMDID_CUT; + + [NativeTypeName("#define MSOCMDID_COPY OLECMDID_COPY")] + public const OLECMDID MSOCMDID_COPY = OLECMDID_COPY; + + [NativeTypeName("#define MSOCMDID_PASTE OLECMDID_PASTE")] + public const OLECMDID MSOCMDID_PASTE = OLECMDID_PASTE; + + [NativeTypeName("#define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL")] + public const OLECMDID MSOCMDID_PASTESPECIAL = OLECMDID_PASTESPECIAL; + + [NativeTypeName("#define MSOCMDID_UNDO OLECMDID_UNDO")] + public const OLECMDID MSOCMDID_UNDO = OLECMDID_UNDO; + + [NativeTypeName("#define MSOCMDID_REDO OLECMDID_REDO")] + public const OLECMDID MSOCMDID_REDO = OLECMDID_REDO; + + [NativeTypeName("#define MSOCMDID_SELECTALL OLECMDID_SELECTALL")] + public const OLECMDID MSOCMDID_SELECTALL = OLECMDID_SELECTALL; + + [NativeTypeName("#define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION")] + public const OLECMDID MSOCMDID_CLEARSELECTION = OLECMDID_CLEARSELECTION; + + [NativeTypeName("#define MSOCMDID_ZOOM OLECMDID_ZOOM")] + public const OLECMDID MSOCMDID_ZOOM = OLECMDID_ZOOM; + + [NativeTypeName("#define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE")] + public const OLECMDID MSOCMDID_GETZOOMRANGE = OLECMDID_GETZOOMRANGE; + } +} diff --git a/sources/Interop/Windows/Windows/um/DocObj/Windows.cs b/sources/Interop/Windows/Windows/um/DocObj/Windows.cs index 45cba72fa4..c2b9736e19 100644 --- a/sources/Interop/Windows/Windows/um/DocObj/Windows.cs +++ b/sources/Interop/Windows/Windows/um/DocObj/Windows.cs @@ -7,7 +7,6 @@ using static TerraFX.Interop.Windows.IID; using static TerraFX.Interop.Windows.OLECMDEXECOPT; using static TerraFX.Interop.Windows.OLECMDF; -using static TerraFX.Interop.Windows.OLECMDID; using static TerraFX.Interop.Windows.OLECMDTEXTF; namespace TerraFX.Interop.Windows @@ -122,66 +121,6 @@ public static partial class Windows [NativeTypeName("#define MSOCMDEXECOPT_SHOWHELP OLECMDEXECOPT_SHOWHELP")] public const OLECMDEXECOPT MSOCMDEXECOPT_SHOWHELP = OLECMDEXECOPT_SHOWHELP; - [NativeTypeName("#define MSOCMDID_OPEN OLECMDID_OPEN")] - public const OLECMDID MSOCMDID_OPEN = OLECMDID_OPEN; - - [NativeTypeName("#define MSOCMDID_NEW OLECMDID_NEW")] - public const OLECMDID MSOCMDID_NEW = OLECMDID_NEW; - - [NativeTypeName("#define MSOCMDID_SAVE OLECMDID_SAVE")] - public const OLECMDID MSOCMDID_SAVE = OLECMDID_SAVE; - - [NativeTypeName("#define MSOCMDID_SAVEAS OLECMDID_SAVEAS")] - public const OLECMDID MSOCMDID_SAVEAS = OLECMDID_SAVEAS; - - [NativeTypeName("#define MSOCMDID_SAVECOPYAS OLECMDID_SAVECOPYAS")] - public const OLECMDID MSOCMDID_SAVECOPYAS = OLECMDID_SAVECOPYAS; - - [NativeTypeName("#define MSOCMDID_PRINT OLECMDID_PRINT")] - public const OLECMDID MSOCMDID_PRINT = OLECMDID_PRINT; - - [NativeTypeName("#define MSOCMDID_PRINTPREVIEW OLECMDID_PRINTPREVIEW")] - public const OLECMDID MSOCMDID_PRINTPREVIEW = OLECMDID_PRINTPREVIEW; - - [NativeTypeName("#define MSOCMDID_PAGESETUP OLECMDID_PAGESETUP")] - public const OLECMDID MSOCMDID_PAGESETUP = OLECMDID_PAGESETUP; - - [NativeTypeName("#define MSOCMDID_SPELL OLECMDID_SPELL")] - public const OLECMDID MSOCMDID_SPELL = OLECMDID_SPELL; - - [NativeTypeName("#define MSOCMDID_PROPERTIES OLECMDID_PROPERTIES")] - public const OLECMDID MSOCMDID_PROPERTIES = OLECMDID_PROPERTIES; - - [NativeTypeName("#define MSOCMDID_CUT OLECMDID_CUT")] - public const OLECMDID MSOCMDID_CUT = OLECMDID_CUT; - - [NativeTypeName("#define MSOCMDID_COPY OLECMDID_COPY")] - public const OLECMDID MSOCMDID_COPY = OLECMDID_COPY; - - [NativeTypeName("#define MSOCMDID_PASTE OLECMDID_PASTE")] - public const OLECMDID MSOCMDID_PASTE = OLECMDID_PASTE; - - [NativeTypeName("#define MSOCMDID_PASTESPECIAL OLECMDID_PASTESPECIAL")] - public const OLECMDID MSOCMDID_PASTESPECIAL = OLECMDID_PASTESPECIAL; - - [NativeTypeName("#define MSOCMDID_UNDO OLECMDID_UNDO")] - public const OLECMDID MSOCMDID_UNDO = OLECMDID_UNDO; - - [NativeTypeName("#define MSOCMDID_REDO OLECMDID_REDO")] - public const OLECMDID MSOCMDID_REDO = OLECMDID_REDO; - - [NativeTypeName("#define MSOCMDID_SELECTALL OLECMDID_SELECTALL")] - public const OLECMDID MSOCMDID_SELECTALL = OLECMDID_SELECTALL; - - [NativeTypeName("#define MSOCMDID_CLEARSELECTION OLECMDID_CLEARSELECTION")] - public const OLECMDID MSOCMDID_CLEARSELECTION = OLECMDID_CLEARSELECTION; - - [NativeTypeName("#define MSOCMDID_ZOOM OLECMDID_ZOOM")] - public const OLECMDID MSOCMDID_ZOOM = OLECMDID_ZOOM; - - [NativeTypeName("#define MSOCMDID_GETZOOMRANGE OLECMDID_GETZOOMRANGE")] - public const OLECMDID MSOCMDID_GETZOOMRANGE = OLECMDID_GETZOOMRANGE; - [NativeTypeName("#define SID_SProtectFocus IID_IProtectFocus")] public static ref readonly Guid SID_SProtectFocus => ref IID_IProtectFocus; } diff --git a/sources/Interop/Windows/Windows/um/DocumentTarget/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/DocumentTarget/LIBID.Manual.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/DocumentTarget/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/DocumentTarget/LIBID.Manual.cs index 7ab6a1a7c7..d22ebfe081 100644 --- a/sources/Interop/Windows/Windows/um/DocumentTarget/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/DocumentTarget/LIBID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class LIBID { public static ref readonly Guid LIBID_PrintDocumentTargetLib { diff --git a/sources/Interop/Windows/Windows/um/EvColl/EC.cs b/sources/Interop/Windows/Windows/um/EvColl/EC.cs new file mode 100644 index 0000000000..0fbe8e7bfb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/EvColl/EC.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/EvColl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EC + { + [NativeTypeName("#define EC_VARIANT_TYPE_MASK 0x7f")] + public const int EC_VARIANT_TYPE_MASK = 0x7f; + + [NativeTypeName("#define EC_VARIANT_TYPE_ARRAY 128")] + public const int EC_VARIANT_TYPE_ARRAY = 128; + + [NativeTypeName("#define EC_READ_ACCESS 1")] + public const int EC_READ_ACCESS = 1; + + [NativeTypeName("#define EC_WRITE_ACCESS 2")] + public const int EC_WRITE_ACCESS = 2; + + [NativeTypeName("#define EC_OPEN_ALWAYS 0")] + public const int EC_OPEN_ALWAYS = 0; + + [NativeTypeName("#define EC_CREATE_NEW 1")] + public const int EC_CREATE_NEW = 1; + + [NativeTypeName("#define EC_OPEN_EXISTING 2")] + public const int EC_OPEN_EXISTING = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/EvColl/Windows.cs b/sources/Interop/Windows/Windows/um/EvColl/Windows.cs index 980e84af39..328a6fc905 100644 --- a/sources/Interop/Windows/Windows/um/EvColl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/EvColl/Windows.cs @@ -53,26 +53,5 @@ public static unsafe partial class Windows [DllImport("wecapi", ExactSpelling = true)] public static extern BOOL EcClose(EC_HANDLE Object); - - [NativeTypeName("#define EC_VARIANT_TYPE_MASK 0x7f")] - public const int EC_VARIANT_TYPE_MASK = 0x7f; - - [NativeTypeName("#define EC_VARIANT_TYPE_ARRAY 128")] - public const int EC_VARIANT_TYPE_ARRAY = 128; - - [NativeTypeName("#define EC_READ_ACCESS 1")] - public const int EC_READ_ACCESS = 1; - - [NativeTypeName("#define EC_WRITE_ACCESS 2")] - public const int EC_WRITE_ACCESS = 2; - - [NativeTypeName("#define EC_OPEN_ALWAYS 0")] - public const int EC_OPEN_ALWAYS = 0; - - [NativeTypeName("#define EC_CREATE_NEW 1")] - public const int EC_CREATE_NEW = 1; - - [NativeTypeName("#define EC_OPEN_EXISTING 2")] - public const int EC_OPEN_EXISTING = 2; } } diff --git a/sources/Interop/Windows/Windows/um/IPExport/Windows.cs b/sources/Interop/Windows/Windows/um/IPExport/Windows.cs deleted file mode 100644 index 74951bed9e..0000000000 --- a/sources/Interop/Windows/Windows/um/IPExport/Windows.cs +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from um/IPExport.h in the Windows SDK for Windows 10.0.20348.0 -// Original source is Copyright © Microsoft. All rights reserved. - -namespace TerraFX.Interop.Windows -{ - public static partial class Windows - { - [NativeTypeName("#define MAX_ADAPTER_NAME 128")] - public const int MAX_ADAPTER_NAME = 128; - - [NativeTypeName("#define MAX_IP_STATUS IP_GENERAL_FAILURE")] - public const int MAX_IP_STATUS = (11000 + 50); - - [NativeTypeName("#define MAX_OPT_SIZE 40")] - public const int MAX_OPT_SIZE = 40; - } -} diff --git a/sources/Interop/Windows/Windows/um/IPTypes/DEFAULT.cs b/sources/Interop/Windows/Windows/um/IPTypes/DEFAULT.cs new file mode 100644 index 0000000000..6a77935443 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/IPTypes/DEFAULT.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEFAULT + { + [NativeTypeName("#define DEFAULT_MINIMUM_ENTITIES 32")] + public const int DEFAULT_MINIMUM_ENTITIES = 32; + } +} diff --git a/sources/Interop/Windows/Windows/um/IPTypes/GAA.cs b/sources/Interop/Windows/Windows/um/IPTypes/GAA.cs new file mode 100644 index 0000000000..29436dc8ee --- /dev/null +++ b/sources/Interop/Windows/Windows/um/IPTypes/GAA.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/IPTypes.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GAA + { + [NativeTypeName("#define GAA_FLAG_SKIP_UNICAST 0x0001")] + public const int GAA_FLAG_SKIP_UNICAST = 0x0001; + + [NativeTypeName("#define GAA_FLAG_SKIP_ANYCAST 0x0002")] + public const int GAA_FLAG_SKIP_ANYCAST = 0x0002; + + [NativeTypeName("#define GAA_FLAG_SKIP_MULTICAST 0x0004")] + public const int GAA_FLAG_SKIP_MULTICAST = 0x0004; + + [NativeTypeName("#define GAA_FLAG_SKIP_DNS_SERVER 0x0008")] + public const int GAA_FLAG_SKIP_DNS_SERVER = 0x0008; + + [NativeTypeName("#define GAA_FLAG_INCLUDE_PREFIX 0x0010")] + public const int GAA_FLAG_INCLUDE_PREFIX = 0x0010; + + [NativeTypeName("#define GAA_FLAG_SKIP_FRIENDLY_NAME 0x0020")] + public const int GAA_FLAG_SKIP_FRIENDLY_NAME = 0x0020; + + [NativeTypeName("#define GAA_FLAG_INCLUDE_WINS_INFO 0x0040")] + public const int GAA_FLAG_INCLUDE_WINS_INFO = 0x0040; + + [NativeTypeName("#define GAA_FLAG_INCLUDE_GATEWAYS 0x0080")] + public const int GAA_FLAG_INCLUDE_GATEWAYS = 0x0080; + + [NativeTypeName("#define GAA_FLAG_INCLUDE_ALL_INTERFACES 0x0100")] + public const int GAA_FLAG_INCLUDE_ALL_INTERFACES = 0x0100; + + [NativeTypeName("#define GAA_FLAG_INCLUDE_ALL_COMPARTMENTS 0x0200")] + public const int GAA_FLAG_INCLUDE_ALL_COMPARTMENTS = 0x0200; + + [NativeTypeName("#define GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER 0x0400")] + public const int GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER = 0x0400; + + [NativeTypeName("#define GAA_FLAG_SKIP_DNS_INFO 0x0800")] + public const int GAA_FLAG_SKIP_DNS_INFO = 0x0800; + } +} diff --git a/sources/Interop/Windows/Windows/um/IPTypes/Windows.cs b/sources/Interop/Windows/Windows/um/IPTypes/Windows.cs index b168690619..eda33b64a5 100644 --- a/sources/Interop/Windows/Windows/um/IPTypes/Windows.cs +++ b/sources/Interop/Windows/Windows/um/IPTypes/Windows.cs @@ -7,9 +7,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define DEFAULT_MINIMUM_ENTITIES 32")] - public const int DEFAULT_MINIMUM_ENTITIES = 32; - [NativeTypeName("#define BROADCAST_NODETYPE 1")] public const int BROADCAST_NODETYPE = 1; @@ -18,41 +15,5 @@ public static partial class Windows [NativeTypeName("#define HYBRID_NODETYPE 8")] public const int HYBRID_NODETYPE = 8; - - [NativeTypeName("#define GAA_FLAG_SKIP_UNICAST 0x0001")] - public const int GAA_FLAG_SKIP_UNICAST = 0x0001; - - [NativeTypeName("#define GAA_FLAG_SKIP_ANYCAST 0x0002")] - public const int GAA_FLAG_SKIP_ANYCAST = 0x0002; - - [NativeTypeName("#define GAA_FLAG_SKIP_MULTICAST 0x0004")] - public const int GAA_FLAG_SKIP_MULTICAST = 0x0004; - - [NativeTypeName("#define GAA_FLAG_SKIP_DNS_SERVER 0x0008")] - public const int GAA_FLAG_SKIP_DNS_SERVER = 0x0008; - - [NativeTypeName("#define GAA_FLAG_INCLUDE_PREFIX 0x0010")] - public const int GAA_FLAG_INCLUDE_PREFIX = 0x0010; - - [NativeTypeName("#define GAA_FLAG_SKIP_FRIENDLY_NAME 0x0020")] - public const int GAA_FLAG_SKIP_FRIENDLY_NAME = 0x0020; - - [NativeTypeName("#define GAA_FLAG_INCLUDE_WINS_INFO 0x0040")] - public const int GAA_FLAG_INCLUDE_WINS_INFO = 0x0040; - - [NativeTypeName("#define GAA_FLAG_INCLUDE_GATEWAYS 0x0080")] - public const int GAA_FLAG_INCLUDE_GATEWAYS = 0x0080; - - [NativeTypeName("#define GAA_FLAG_INCLUDE_ALL_INTERFACES 0x0100")] - public const int GAA_FLAG_INCLUDE_ALL_INTERFACES = 0x0100; - - [NativeTypeName("#define GAA_FLAG_INCLUDE_ALL_COMPARTMENTS 0x0200")] - public const int GAA_FLAG_INCLUDE_ALL_COMPARTMENTS = 0x0200; - - [NativeTypeName("#define GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER 0x0400")] - public const int GAA_FLAG_INCLUDE_TUNNEL_BINDINGORDER = 0x0400; - - [NativeTypeName("#define GAA_FLAG_SKIP_DNS_INFO 0x0800")] - public const int GAA_FLAG_SKIP_DNS_INFO = 0x0800; } } diff --git a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/Windows.cs b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/LIBID.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/InkPresenterDesktop/Windows.cs rename to sources/Interop/Windows/Windows/um/InkPresenterDesktop/LIBID.cs index b42ffbc0eb..fe9edf6739 100644 --- a/sources/Interop/Windows/Windows/um/InkPresenterDesktop/Windows.cs +++ b/sources/Interop/Windows/Windows/um/InkPresenterDesktop/LIBID.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class LIBID { [NativeTypeName("const IID")] public static ref readonly Guid LIBID_InkDesktopHostLib diff --git a/sources/Interop/Windows/Windows/um/InputScope/GUID.cs b/sources/Interop/Windows/Windows/um/InputScope/GUID.cs new file mode 100644 index 0000000000..3401a1a0bb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/InputScope/GUID.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/InputScope.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROP_INPUTSCOPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5A, 0xDD, 0x13, 0x17, + 0xE7, 0x68, + 0x5B, 0x4A, + 0x9A, + 0xF6, + 0x59, + 0x2A, + 0x59, + 0x5C, + 0x77, + 0x8D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/InputScope/Windows.cs b/sources/Interop/Windows/Windows/um/InputScope/Windows.cs index 4d51c1f8e2..4b0024cd11 100644 --- a/sources/Interop/Windows/Windows/um/InputScope/Windows.cs +++ b/sources/Interop/Windows/Windows/um/InputScope/Windows.cs @@ -3,9 +3,6 @@ // Ported from um/InputScope.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows @@ -23,30 +20,5 @@ public static unsafe partial class Windows [DllImport("msctf", ExactSpelling = true)] public static extern HRESULT SetInputScopes2(HWND hwnd, [NativeTypeName("const InputScope *")] InputScope* pInputScopes, uint cInputScopes, IEnumString* pEnumString, [NativeTypeName("PWSTR")] ushort* pszRegExp, [NativeTypeName("PWSTR")] ushort* pszSRGS); - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROP_INPUTSCOPE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5A, 0xDD, 0x13, 0x17, - 0xE7, 0x68, - 0x5B, 0x4A, - 0x9A, - 0xF6, - 0x59, - 0x2A, - 0x59, - 0x5C, - 0x77, - 0x8D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } } } diff --git a/sources/Interop/Windows/Windows/um/IntShCut/IS.cs b/sources/Interop/Windows/Windows/um/IntShCut/IS.cs new file mode 100644 index 0000000000..558f4256f4 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/IntShCut/IS.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/IntShCut.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IS + { + [NativeTypeName("#define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x2002)")] + public const int IS_E_EXEC_FAILED = unchecked((int)(((uint)(1) << 31) | ((uint)(4) << 16) | ((uint)(0x2002)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/IntShCut/URL.cs b/sources/Interop/Windows/Windows/um/IntShCut/URL.cs new file mode 100644 index 0000000000..77cf731880 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/IntShCut/URL.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/IntShCut.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class URL + { + [NativeTypeName("#define URL_E_INVALID_SYNTAX MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1001)")] + public const int URL_E_INVALID_SYNTAX = unchecked((int)(((uint)(1) << 31) | ((uint)(4) << 16) | ((uint)(0x1001)))); + + [NativeTypeName("#define URL_E_UNREGISTERED_PROTOCOL MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1002)")] + public const int URL_E_UNREGISTERED_PROTOCOL = unchecked((int)(((uint)(1) << 31) | ((uint)(4) << 16) | ((uint)(0x1002)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/IntShCut/Windows.cs b/sources/Interop/Windows/Windows/um/IntShCut/Windows.cs index 36c12054ed..367dd8159d 100644 --- a/sources/Interop/Windows/Windows/um/IntShCut/Windows.cs +++ b/sources/Interop/Windows/Windows/um/IntShCut/Windows.cs @@ -30,15 +30,6 @@ public static unsafe partial class Windows [DllImport("url", ExactSpelling = true)] public static extern BOOL InetIsOffline([NativeTypeName("DWORD")] uint dwFlags); - [NativeTypeName("#define IS_E_EXEC_FAILED MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x2002)")] - public const int IS_E_EXEC_FAILED = unchecked((int)(((uint)(1) << 31) | ((uint)(4) << 16) | ((uint)(0x2002)))); - - [NativeTypeName("#define URL_E_INVALID_SYNTAX MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1001)")] - public const int URL_E_INVALID_SYNTAX = unchecked((int)(((uint)(1) << 31) | ((uint)(4) << 16) | ((uint)(0x1001)))); - - [NativeTypeName("#define URL_E_UNREGISTERED_PROTOCOL MAKE_SCODE(SEVERITY_ERROR, FACILITY_ITF, 0x1002)")] - public const int URL_E_UNREGISTERED_PROTOCOL = unchecked((int)(((uint)(1) << 31) | ((uint)(4) << 16) | ((uint)(0x1002)))); - [NativeTypeName("#define TranslateURL TranslateURLW")] public static delegate* TranslateURL => &TranslateURLW; diff --git a/sources/Interop/Windows/Windows/um/MDMRegistration/DEVICE.cs b/sources/Interop/Windows/Windows/um/MDMRegistration/DEVICE.cs new file mode 100644 index 0000000000..aeee568d88 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/MDMRegistration/DEVICE.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/MDMRegistration.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICE + { + [NativeTypeName("#define DEVICE_ENROLLER_FACILITY_CODE 24")] + public const int DEVICE_ENROLLER_FACILITY_CODE = 24; + } +} diff --git a/sources/Interop/Windows/Windows/um/MDMRegistration/MENROLL.cs b/sources/Interop/Windows/Windows/um/MDMRegistration/MENROLL.cs new file mode 100644 index 0000000000..ffea5c7446 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/MDMRegistration/MENROLL.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/MDMRegistration.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MENROLL + { + [NativeTypeName("#define MENROLL_E_DEVICE_CERTIFCATEREQUEST_ERROR MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 4)")] + public const int MENROLL_E_DEVICE_CERTIFCATEREQUEST_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(4)))); + + [NativeTypeName("#define MENROLL_E_DEVICE_NOT_ENROLLED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 11)")] + public const int MENROLL_E_DEVICE_NOT_ENROLLED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(11)))); + + [NativeTypeName("#define MENROLL_E_DEVICECAPREACHED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 19)")] + public const int MENROLL_E_DEVICECAPREACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(19)))); + + [NativeTypeName("#define MENROLL_E_NOTSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 21)")] + public const int MENROLL_E_NOTSUPPORTED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(21)))); + + [NativeTypeName("#define MENROLL_E_USERLICENSE MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 24)")] + public const int MENROLL_E_USERLICENSE = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(24)))); + + [NativeTypeName("#define MENROLL_E_USER_CANCELED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 42)")] + public const int MENROLL_E_USER_CANCELED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(42)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/MDMRegistration/MREGISTER.cs b/sources/Interop/Windows/Windows/um/MDMRegistration/MREGISTER.cs new file mode 100644 index 0000000000..108a3e0285 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/MDMRegistration/MREGISTER.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/MDMRegistration.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MREGISTER + { + [NativeTypeName("#define MREGISTER_E_DEVICE_MESSAGE_FORMAT_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 1)")] + public const int MREGISTER_E_DEVICE_MESSAGE_FORMAT_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(1)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_AUTHENTICATION_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 2)")] + public const int MREGISTER_E_DEVICE_AUTHENTICATION_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(2)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_AUTHORIZATION_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 3)")] + public const int MREGISTER_E_DEVICE_AUTHORIZATION_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(3)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_CERTIFCATEREQUEST_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 4)")] + public const int MREGISTER_E_DEVICE_CERTIFCATEREQUEST_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(4)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_CONFIGMGRSERVER_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 5)")] + public const int MREGISTER_E_DEVICE_CONFIGMGRSERVER_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(5)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_INTERNALSERVICE_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 6)")] + public const int MREGISTER_E_DEVICE_INTERNALSERVICE_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(6)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_INVALIDSECURITY_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 7)")] + public const int MREGISTER_E_DEVICE_INVALIDSECURITY_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(7)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_UNKNOWN_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 8)")] + public const int MREGISTER_E_DEVICE_UNKNOWN_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(8)))); + + [NativeTypeName("#define MREGISTER_E_REGISTRATION_IN_PROGRESS MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 9)")] + public const int MREGISTER_E_REGISTRATION_IN_PROGRESS = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(9)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_ALREADY_REGISTERED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 10)")] + public const int MREGISTER_E_DEVICE_ALREADY_REGISTERED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(10)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_NOT_REGISTERED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 11)")] + public const int MREGISTER_E_DEVICE_NOT_REGISTERED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(11)))); + + [NativeTypeName("#define MREGISTER_E_DISCOVERY_REDIRECTED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 12)")] + public const int MREGISTER_E_DISCOVERY_REDIRECTED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(12)))); + + [NativeTypeName("#define MREGISTER_E_DEVICE_NOT_AD_REGISTERED_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 13)")] + public const int MREGISTER_E_DEVICE_NOT_AD_REGISTERED_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(13)))); + + [NativeTypeName("#define MREGISTER_E_DISCOVERY_FAILED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 14)")] + public const int MREGISTER_E_DISCOVERY_FAILED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(14)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/MDMRegistration/Windows.cs b/sources/Interop/Windows/Windows/um/MDMRegistration/Windows.cs index 95e3a5a966..df62736629 100644 --- a/sources/Interop/Windows/Windows/um/MDMRegistration/Windows.cs +++ b/sources/Interop/Windows/Windows/um/MDMRegistration/Windows.cs @@ -69,69 +69,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MDM_REGISTRATION_FACILITY_CODE 25")] public const int MDM_REGISTRATION_FACILITY_CODE = 25; - [NativeTypeName("#define DEVICE_ENROLLER_FACILITY_CODE 24")] - public const int DEVICE_ENROLLER_FACILITY_CODE = 24; - - [NativeTypeName("#define MREGISTER_E_DEVICE_MESSAGE_FORMAT_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 1)")] - public const int MREGISTER_E_DEVICE_MESSAGE_FORMAT_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(1)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_AUTHENTICATION_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 2)")] - public const int MREGISTER_E_DEVICE_AUTHENTICATION_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(2)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_AUTHORIZATION_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 3)")] - public const int MREGISTER_E_DEVICE_AUTHORIZATION_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(3)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_CERTIFCATEREQUEST_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 4)")] - public const int MREGISTER_E_DEVICE_CERTIFCATEREQUEST_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(4)))); - - [NativeTypeName("#define MENROLL_E_DEVICE_CERTIFCATEREQUEST_ERROR MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 4)")] - public const int MENROLL_E_DEVICE_CERTIFCATEREQUEST_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(4)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_CONFIGMGRSERVER_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 5)")] - public const int MREGISTER_E_DEVICE_CONFIGMGRSERVER_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(5)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_INTERNALSERVICE_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 6)")] - public const int MREGISTER_E_DEVICE_INTERNALSERVICE_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(6)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_INVALIDSECURITY_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 7)")] - public const int MREGISTER_E_DEVICE_INVALIDSECURITY_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(7)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_UNKNOWN_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 8)")] - public const int MREGISTER_E_DEVICE_UNKNOWN_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(8)))); - - [NativeTypeName("#define MREGISTER_E_REGISTRATION_IN_PROGRESS MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 9)")] - public const int MREGISTER_E_REGISTRATION_IN_PROGRESS = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(9)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_ALREADY_REGISTERED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 10)")] - public const int MREGISTER_E_DEVICE_ALREADY_REGISTERED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(10)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_NOT_REGISTERED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 11)")] - public const int MREGISTER_E_DEVICE_NOT_REGISTERED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(11)))); - - [NativeTypeName("#define MENROLL_E_DEVICE_NOT_ENROLLED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 11)")] - public const int MENROLL_E_DEVICE_NOT_ENROLLED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(11)))); - - [NativeTypeName("#define MREGISTER_E_DISCOVERY_REDIRECTED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 12)")] - public const int MREGISTER_E_DISCOVERY_REDIRECTED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(12)))); - - [NativeTypeName("#define MREGISTER_E_DEVICE_NOT_AD_REGISTERED_ERROR MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 13)")] - public const int MREGISTER_E_DEVICE_NOT_AD_REGISTERED_ERROR = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(13)))); - - [NativeTypeName("#define MREGISTER_E_DISCOVERY_FAILED MAKE_HRESULT(SEVERITY_ERROR, MDM_REGISTRATION_FACILITY_CODE, 14)")] - public const int MREGISTER_E_DISCOVERY_FAILED = unchecked((int)(((uint)(1) << 31) | ((uint)(25) << 16) | ((uint)(14)))); - - [NativeTypeName("#define MENROLL_E_DEVICECAPREACHED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 19)")] - public const int MENROLL_E_DEVICECAPREACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(19)))); - - [NativeTypeName("#define MENROLL_E_NOTSUPPORTED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 21)")] - public const int MENROLL_E_NOTSUPPORTED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(21)))); - - [NativeTypeName("#define MENROLL_E_USERLICENSE MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 24)")] - public const int MENROLL_E_USERLICENSE = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(24)))); - - [NativeTypeName("#define MENROLL_E_USER_CANCELED MAKE_HRESULT(SEVERITY_ERROR, DEVICE_ENROLLER_FACILITY_CODE, 42)")] - public const int MENROLL_E_USER_CANCELED = unchecked((int)(((uint)(1) << 31) | ((uint)(24) << 16) | ((uint)(42)))); - [NativeTypeName("#define DEVICEREGISTRATIONTYPE_MDM_ONLY 0")] public const int DEVICEREGISTRATIONTYPE_MDM_ONLY = 0; diff --git a/sources/Interop/Windows/Windows/um/MSAAText/Windows.cs b/sources/Interop/Windows/Windows/um/MSAAText/LIBID.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/MSAAText/Windows.cs rename to sources/Interop/Windows/Windows/um/MSAAText/LIBID.cs index 5f6a707f25..5878142abc 100644 --- a/sources/Interop/Windows/Windows/um/MSAAText/Windows.cs +++ b/sources/Interop/Windows/Windows/um/MSAAText/LIBID.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class LIBID { [NativeTypeName("const GUID")] public static ref readonly Guid LIBID_MSAATEXTLib diff --git a/sources/Interop/Windows/Windows/um/Mobsync/S.cs b/sources/Interop/Windows/Windows/um/Mobsync/S.cs new file mode 100644 index 0000000000..a86dcfd5d1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Mobsync/S.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Mobsync.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class S + { + [NativeTypeName("#define S_SYNCMGR_MISSINGITEMS MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0201)")] + public const int S_SYNCMGR_MISSINGITEMS = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0201)))); + + [NativeTypeName("#define S_SYNCMGR_RETRYSYNC MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0202)")] + public const int S_SYNCMGR_RETRYSYNC = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0202)))); + + [NativeTypeName("#define S_SYNCMGR_CANCELITEM MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0203)")] + public const int S_SYNCMGR_CANCELITEM = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0203)))); + + [NativeTypeName("#define S_SYNCMGR_CANCELALL MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0204)")] + public const int S_SYNCMGR_CANCELALL = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0204)))); + + [NativeTypeName("#define S_SYNCMGR_ITEMDELETED MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0210)")] + public const int S_SYNCMGR_ITEMDELETED = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0210)))); + + [NativeTypeName("#define S_SYNCMGR_ENUMITEMS MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0211)")] + public const int S_SYNCMGR_ENUMITEMS = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0211)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/Mobsync/Windows.cs b/sources/Interop/Windows/Windows/um/Mobsync/Windows.cs index 50be5fad61..3b5996b157 100644 --- a/sources/Interop/Windows/Windows/um/Mobsync/Windows.cs +++ b/sources/Interop/Windows/Windows/um/Mobsync/Windows.cs @@ -7,24 +7,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define S_SYNCMGR_MISSINGITEMS MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0201)")] - public const int S_SYNCMGR_MISSINGITEMS = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0201)))); - - [NativeTypeName("#define S_SYNCMGR_RETRYSYNC MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0202)")] - public const int S_SYNCMGR_RETRYSYNC = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0202)))); - - [NativeTypeName("#define S_SYNCMGR_CANCELITEM MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0203)")] - public const int S_SYNCMGR_CANCELITEM = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0203)))); - - [NativeTypeName("#define S_SYNCMGR_CANCELALL MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0204)")] - public const int S_SYNCMGR_CANCELALL = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0204)))); - - [NativeTypeName("#define S_SYNCMGR_ITEMDELETED MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0210)")] - public const int S_SYNCMGR_ITEMDELETED = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0210)))); - - [NativeTypeName("#define S_SYNCMGR_ENUMITEMS MAKE_SCODE(SEVERITY_SUCCESS,FACILITY_ITF,0x0211)")] - public const int S_SYNCMGR_ENUMITEMS = unchecked((int)(((uint)(0) << 31) | ((uint)(4) << 16) | ((uint)(0x0211)))); - [NativeTypeName("#define SYNCMGRPROGRESSITEM_STATUSTEXT 0x0001")] public const int SYNCMGRPROGRESSITEM_STATUSTEXT = 0x0001; diff --git a/sources/Interop/Windows/Windows/um/Msi/INSTALLPROPERTY.cs b/sources/Interop/Windows/Windows/um/Msi/INSTALLPROPERTY.cs new file mode 100644 index 0000000000..9907dff125 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Msi/INSTALLPROPERTY.cs @@ -0,0 +1,124 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Msi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class INSTALLPROPERTY + { + [NativeTypeName("#define INSTALLPROPERTY_PACKAGENAME __TEXT(\"PackageName\")")] + public const string INSTALLPROPERTY_PACKAGENAME = "PackageName"; + + [NativeTypeName("#define INSTALLPROPERTY_TRANSFORMS __TEXT(\"Transforms\")")] + public const string INSTALLPROPERTY_TRANSFORMS = "Transforms"; + + [NativeTypeName("#define INSTALLPROPERTY_LANGUAGE __TEXT(\"Language\")")] + public const string INSTALLPROPERTY_LANGUAGE = "Language"; + + [NativeTypeName("#define INSTALLPROPERTY_PRODUCTNAME __TEXT(\"ProductName\")")] + public const string INSTALLPROPERTY_PRODUCTNAME = "ProductName"; + + [NativeTypeName("#define INSTALLPROPERTY_ASSIGNMENTTYPE __TEXT(\"AssignmentType\")")] + public const string INSTALLPROPERTY_ASSIGNMENTTYPE = "AssignmentType"; + + [NativeTypeName("#define INSTALLPROPERTY_INSTANCETYPE __TEXT(\"InstanceType\")")] + public const string INSTALLPROPERTY_INSTANCETYPE = "InstanceType"; + + [NativeTypeName("#define INSTALLPROPERTY_AUTHORIZED_LUA_APP __TEXT(\"AuthorizedLUAApp\")")] + public const string INSTALLPROPERTY_AUTHORIZED_LUA_APP = "AuthorizedLUAApp"; + + [NativeTypeName("#define INSTALLPROPERTY_PACKAGECODE __TEXT(\"PackageCode\")")] + public const string INSTALLPROPERTY_PACKAGECODE = "PackageCode"; + + [NativeTypeName("#define INSTALLPROPERTY_VERSION __TEXT(\"Version\")")] + public const string INSTALLPROPERTY_VERSION = "Version"; + + [NativeTypeName("#define INSTALLPROPERTY_PRODUCTICON __TEXT(\"ProductIcon\")")] + public const string INSTALLPROPERTY_PRODUCTICON = "ProductIcon"; + + [NativeTypeName("#define INSTALLPROPERTY_INSTALLEDPRODUCTNAME __TEXT(\"InstalledProductName\")")] + public const string INSTALLPROPERTY_INSTALLEDPRODUCTNAME = "InstalledProductName"; + + [NativeTypeName("#define INSTALLPROPERTY_VERSIONSTRING __TEXT(\"VersionString\")")] + public const string INSTALLPROPERTY_VERSIONSTRING = "VersionString"; + + [NativeTypeName("#define INSTALLPROPERTY_HELPLINK __TEXT(\"HelpLink\")")] + public const string INSTALLPROPERTY_HELPLINK = "HelpLink"; + + [NativeTypeName("#define INSTALLPROPERTY_HELPTELEPHONE __TEXT(\"HelpTelephone\")")] + public const string INSTALLPROPERTY_HELPTELEPHONE = "HelpTelephone"; + + [NativeTypeName("#define INSTALLPROPERTY_INSTALLLOCATION __TEXT(\"InstallLocation\")")] + public const string INSTALLPROPERTY_INSTALLLOCATION = "InstallLocation"; + + [NativeTypeName("#define INSTALLPROPERTY_INSTALLSOURCE __TEXT(\"InstallSource\")")] + public const string INSTALLPROPERTY_INSTALLSOURCE = "InstallSource"; + + [NativeTypeName("#define INSTALLPROPERTY_INSTALLDATE __TEXT(\"InstallDate\")")] + public const string INSTALLPROPERTY_INSTALLDATE = "InstallDate"; + + [NativeTypeName("#define INSTALLPROPERTY_PUBLISHER __TEXT(\"Publisher\")")] + public const string INSTALLPROPERTY_PUBLISHER = "Publisher"; + + [NativeTypeName("#define INSTALLPROPERTY_LOCALPACKAGE __TEXT(\"LocalPackage\")")] + public const string INSTALLPROPERTY_LOCALPACKAGE = "LocalPackage"; + + [NativeTypeName("#define INSTALLPROPERTY_URLINFOABOUT __TEXT(\"URLInfoAbout\")")] + public const string INSTALLPROPERTY_URLINFOABOUT = "URLInfoAbout"; + + [NativeTypeName("#define INSTALLPROPERTY_URLUPDATEINFO __TEXT(\"URLUpdateInfo\")")] + public const string INSTALLPROPERTY_URLUPDATEINFO = "URLUpdateInfo"; + + [NativeTypeName("#define INSTALLPROPERTY_VERSIONMINOR __TEXT(\"VersionMinor\")")] + public const string INSTALLPROPERTY_VERSIONMINOR = "VersionMinor"; + + [NativeTypeName("#define INSTALLPROPERTY_VERSIONMAJOR __TEXT(\"VersionMajor\")")] + public const string INSTALLPROPERTY_VERSIONMAJOR = "VersionMajor"; + + [NativeTypeName("#define INSTALLPROPERTY_PRODUCTID __TEXT(\"ProductID\")")] + public const string INSTALLPROPERTY_PRODUCTID = "ProductID"; + + [NativeTypeName("#define INSTALLPROPERTY_REGCOMPANY __TEXT(\"RegCompany\")")] + public const string INSTALLPROPERTY_REGCOMPANY = "RegCompany"; + + [NativeTypeName("#define INSTALLPROPERTY_REGOWNER __TEXT(\"RegOwner\")")] + public const string INSTALLPROPERTY_REGOWNER = "RegOwner"; + + [NativeTypeName("#define INSTALLPROPERTY_INSTALLEDLANGUAGE __TEXT(\"InstalledLanguage\")")] + public const string INSTALLPROPERTY_INSTALLEDLANGUAGE = "InstalledLanguage"; + + [NativeTypeName("#define INSTALLPROPERTY_UNINSTALLABLE __TEXT(\"Uninstallable\")")] + public const string INSTALLPROPERTY_UNINSTALLABLE = "Uninstallable"; + + [NativeTypeName("#define INSTALLPROPERTY_PRODUCTSTATE __TEXT(\"State\")")] + public const string INSTALLPROPERTY_PRODUCTSTATE = "State"; + + [NativeTypeName("#define INSTALLPROPERTY_PATCHSTATE __TEXT(\"State\")")] + public const string INSTALLPROPERTY_PATCHSTATE = "State"; + + [NativeTypeName("#define INSTALLPROPERTY_PATCHTYPE __TEXT(\"PatchType\")")] + public const string INSTALLPROPERTY_PATCHTYPE = "PatchType"; + + [NativeTypeName("#define INSTALLPROPERTY_LUAENABLED __TEXT(\"LUAEnabled\")")] + public const string INSTALLPROPERTY_LUAENABLED = "LUAEnabled"; + + [NativeTypeName("#define INSTALLPROPERTY_DISPLAYNAME __TEXT(\"DisplayName\")")] + public const string INSTALLPROPERTY_DISPLAYNAME = "DisplayName"; + + [NativeTypeName("#define INSTALLPROPERTY_MOREINFOURL __TEXT(\"MoreInfoURL\")")] + public const string INSTALLPROPERTY_MOREINFOURL = "MoreInfoURL"; + + [NativeTypeName("#define INSTALLPROPERTY_LASTUSEDSOURCE __TEXT(\"LastUsedSource\")")] + public const string INSTALLPROPERTY_LASTUSEDSOURCE = "LastUsedSource"; + + [NativeTypeName("#define INSTALLPROPERTY_LASTUSEDTYPE __TEXT(\"LastUsedType\")")] + public const string INSTALLPROPERTY_LASTUSEDTYPE = "LastUsedType"; + + [NativeTypeName("#define INSTALLPROPERTY_MEDIAPACKAGEPATH __TEXT(\"MediaPackagePath\")")] + public const string INSTALLPROPERTY_MEDIAPACKAGEPATH = "MediaPackagePath"; + + [NativeTypeName("#define INSTALLPROPERTY_DISKPROMPT __TEXT(\"DiskPrompt\")")] + public const string INSTALLPROPERTY_DISKPROMPT = "DiskPrompt"; + } +} diff --git a/sources/Interop/Windows/Windows/um/Msi/Windows.cs b/sources/Interop/Windows/Windows/um/Msi/Windows.cs index a1641eac5c..bd3f828cc4 100644 --- a/sources/Interop/Windows/Windows/um/Msi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/Msi/Windows.cs @@ -509,120 +509,6 @@ public static unsafe partial class Windows [DllImport("msi", ExactSpelling = true)] public static extern uint MsiJoinTransaction(MSIHANDLE hTransactionHandle, [NativeTypeName("DWORD")] uint dwTransactionAttributes, HANDLE* phChangeOfOwnerEvent); - [NativeTypeName("#define INSTALLPROPERTY_PACKAGENAME __TEXT(\"PackageName\")")] - public const string INSTALLPROPERTY_PACKAGENAME = "PackageName"; - - [NativeTypeName("#define INSTALLPROPERTY_TRANSFORMS __TEXT(\"Transforms\")")] - public const string INSTALLPROPERTY_TRANSFORMS = "Transforms"; - - [NativeTypeName("#define INSTALLPROPERTY_LANGUAGE __TEXT(\"Language\")")] - public const string INSTALLPROPERTY_LANGUAGE = "Language"; - - [NativeTypeName("#define INSTALLPROPERTY_PRODUCTNAME __TEXT(\"ProductName\")")] - public const string INSTALLPROPERTY_PRODUCTNAME = "ProductName"; - - [NativeTypeName("#define INSTALLPROPERTY_ASSIGNMENTTYPE __TEXT(\"AssignmentType\")")] - public const string INSTALLPROPERTY_ASSIGNMENTTYPE = "AssignmentType"; - - [NativeTypeName("#define INSTALLPROPERTY_INSTANCETYPE __TEXT(\"InstanceType\")")] - public const string INSTALLPROPERTY_INSTANCETYPE = "InstanceType"; - - [NativeTypeName("#define INSTALLPROPERTY_AUTHORIZED_LUA_APP __TEXT(\"AuthorizedLUAApp\")")] - public const string INSTALLPROPERTY_AUTHORIZED_LUA_APP = "AuthorizedLUAApp"; - - [NativeTypeName("#define INSTALLPROPERTY_PACKAGECODE __TEXT(\"PackageCode\")")] - public const string INSTALLPROPERTY_PACKAGECODE = "PackageCode"; - - [NativeTypeName("#define INSTALLPROPERTY_VERSION __TEXT(\"Version\")")] - public const string INSTALLPROPERTY_VERSION = "Version"; - - [NativeTypeName("#define INSTALLPROPERTY_PRODUCTICON __TEXT(\"ProductIcon\")")] - public const string INSTALLPROPERTY_PRODUCTICON = "ProductIcon"; - - [NativeTypeName("#define INSTALLPROPERTY_INSTALLEDPRODUCTNAME __TEXT(\"InstalledProductName\")")] - public const string INSTALLPROPERTY_INSTALLEDPRODUCTNAME = "InstalledProductName"; - - [NativeTypeName("#define INSTALLPROPERTY_VERSIONSTRING __TEXT(\"VersionString\")")] - public const string INSTALLPROPERTY_VERSIONSTRING = "VersionString"; - - [NativeTypeName("#define INSTALLPROPERTY_HELPLINK __TEXT(\"HelpLink\")")] - public const string INSTALLPROPERTY_HELPLINK = "HelpLink"; - - [NativeTypeName("#define INSTALLPROPERTY_HELPTELEPHONE __TEXT(\"HelpTelephone\")")] - public const string INSTALLPROPERTY_HELPTELEPHONE = "HelpTelephone"; - - [NativeTypeName("#define INSTALLPROPERTY_INSTALLLOCATION __TEXT(\"InstallLocation\")")] - public const string INSTALLPROPERTY_INSTALLLOCATION = "InstallLocation"; - - [NativeTypeName("#define INSTALLPROPERTY_INSTALLSOURCE __TEXT(\"InstallSource\")")] - public const string INSTALLPROPERTY_INSTALLSOURCE = "InstallSource"; - - [NativeTypeName("#define INSTALLPROPERTY_INSTALLDATE __TEXT(\"InstallDate\")")] - public const string INSTALLPROPERTY_INSTALLDATE = "InstallDate"; - - [NativeTypeName("#define INSTALLPROPERTY_PUBLISHER __TEXT(\"Publisher\")")] - public const string INSTALLPROPERTY_PUBLISHER = "Publisher"; - - [NativeTypeName("#define INSTALLPROPERTY_LOCALPACKAGE __TEXT(\"LocalPackage\")")] - public const string INSTALLPROPERTY_LOCALPACKAGE = "LocalPackage"; - - [NativeTypeName("#define INSTALLPROPERTY_URLINFOABOUT __TEXT(\"URLInfoAbout\")")] - public const string INSTALLPROPERTY_URLINFOABOUT = "URLInfoAbout"; - - [NativeTypeName("#define INSTALLPROPERTY_URLUPDATEINFO __TEXT(\"URLUpdateInfo\")")] - public const string INSTALLPROPERTY_URLUPDATEINFO = "URLUpdateInfo"; - - [NativeTypeName("#define INSTALLPROPERTY_VERSIONMINOR __TEXT(\"VersionMinor\")")] - public const string INSTALLPROPERTY_VERSIONMINOR = "VersionMinor"; - - [NativeTypeName("#define INSTALLPROPERTY_VERSIONMAJOR __TEXT(\"VersionMajor\")")] - public const string INSTALLPROPERTY_VERSIONMAJOR = "VersionMajor"; - - [NativeTypeName("#define INSTALLPROPERTY_PRODUCTID __TEXT(\"ProductID\")")] - public const string INSTALLPROPERTY_PRODUCTID = "ProductID"; - - [NativeTypeName("#define INSTALLPROPERTY_REGCOMPANY __TEXT(\"RegCompany\")")] - public const string INSTALLPROPERTY_REGCOMPANY = "RegCompany"; - - [NativeTypeName("#define INSTALLPROPERTY_REGOWNER __TEXT(\"RegOwner\")")] - public const string INSTALLPROPERTY_REGOWNER = "RegOwner"; - - [NativeTypeName("#define INSTALLPROPERTY_INSTALLEDLANGUAGE __TEXT(\"InstalledLanguage\")")] - public const string INSTALLPROPERTY_INSTALLEDLANGUAGE = "InstalledLanguage"; - - [NativeTypeName("#define INSTALLPROPERTY_UNINSTALLABLE __TEXT(\"Uninstallable\")")] - public const string INSTALLPROPERTY_UNINSTALLABLE = "Uninstallable"; - - [NativeTypeName("#define INSTALLPROPERTY_PRODUCTSTATE __TEXT(\"State\")")] - public const string INSTALLPROPERTY_PRODUCTSTATE = "State"; - - [NativeTypeName("#define INSTALLPROPERTY_PATCHSTATE __TEXT(\"State\")")] - public const string INSTALLPROPERTY_PATCHSTATE = "State"; - - [NativeTypeName("#define INSTALLPROPERTY_PATCHTYPE __TEXT(\"PatchType\")")] - public const string INSTALLPROPERTY_PATCHTYPE = "PatchType"; - - [NativeTypeName("#define INSTALLPROPERTY_LUAENABLED __TEXT(\"LUAEnabled\")")] - public const string INSTALLPROPERTY_LUAENABLED = "LUAEnabled"; - - [NativeTypeName("#define INSTALLPROPERTY_DISPLAYNAME __TEXT(\"DisplayName\")")] - public const string INSTALLPROPERTY_DISPLAYNAME = "DisplayName"; - - [NativeTypeName("#define INSTALLPROPERTY_MOREINFOURL __TEXT(\"MoreInfoURL\")")] - public const string INSTALLPROPERTY_MOREINFOURL = "MoreInfoURL"; - - [NativeTypeName("#define INSTALLPROPERTY_LASTUSEDSOURCE __TEXT(\"LastUsedSource\")")] - public const string INSTALLPROPERTY_LASTUSEDSOURCE = "LastUsedSource"; - - [NativeTypeName("#define INSTALLPROPERTY_LASTUSEDTYPE __TEXT(\"LastUsedType\")")] - public const string INSTALLPROPERTY_LASTUSEDTYPE = "LastUsedType"; - - [NativeTypeName("#define INSTALLPROPERTY_MEDIAPACKAGEPATH __TEXT(\"MediaPackagePath\")")] - public const string INSTALLPROPERTY_MEDIAPACKAGEPATH = "MediaPackagePath"; - - [NativeTypeName("#define INSTALLPROPERTY_DISKPROMPT __TEXT(\"DiskPrompt\")")] - public const string INSTALLPROPERTY_DISKPROMPT = "DiskPrompt"; - [NativeTypeName("#define MsiSetExternalUI MsiSetExternalUIW")] public static delegate*, uint, void*, delegate* unmanaged> MsiSetExternalUI => &MsiSetExternalUIW; diff --git a/sources/Interop/Windows/Windows/um/MsiDefs/IPROPVALUE.cs b/sources/Interop/Windows/Windows/um/MsiDefs/IPROPVALUE.cs new file mode 100644 index 0000000000..3b1eb2b4fe --- /dev/null +++ b/sources/Interop/Windows/Windows/um/MsiDefs/IPROPVALUE.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/MsiDefs.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IPROPVALUE + { + [NativeTypeName("#define IPROPVALUE_EXECUTEMODE_NONE TEXT(\"NONE\")")] + public const string IPROPVALUE_EXECUTEMODE_NONE = "NONE"; + + [NativeTypeName("#define IPROPVALUE_EXECUTEMODE_SCRIPT TEXT(\"SCRIPT\")")] + public const string IPROPVALUE_EXECUTEMODE_SCRIPT = "SCRIPT"; + + [NativeTypeName("#define IPROPVALUE__CARRYINGNDP_URTREINSTALL TEXT(\"URTREINSTALL\")")] + public const string IPROPVALUE__CARRYINGNDP_URTREINSTALL = "URTREINSTALL"; + + [NativeTypeName("#define IPROPVALUE__CARRYINGNDP_URTUPGRADE TEXT(\"URTUPGRADE\")")] + public const string IPROPVALUE__CARRYINGNDP_URTUPGRADE = "URTUPGRADE"; + + [NativeTypeName("#define IPROPVALUE_MSI_RM_CONTROL_DISABLE TEXT(\"Disable\")")] + public const string IPROPVALUE_MSI_RM_CONTROL_DISABLE = "Disable"; + + [NativeTypeName("#define IPROPVALUE_MSI_RM_CONTROL_DISABLESHUTDOWN TEXT(\"DisableShutdown\")")] + public const string IPROPVALUE_MSI_RM_CONTROL_DISABLESHUTDOWN = "DisableShutdown"; + + [NativeTypeName("#define IPROPVALUE_FEATURE_ALL TEXT(\"ALL\")")] + public const string IPROPVALUE_FEATURE_ALL = "ALL"; + + [NativeTypeName("#define IPROPVALUE_RBCOST_PROMPT TEXT(\"P\")")] + public const string IPROPVALUE_RBCOST_PROMPT = "P"; + + [NativeTypeName("#define IPROPVALUE_RBCOST_SILENT TEXT(\"D\")")] + public const string IPROPVALUE_RBCOST_SILENT = "D"; + + [NativeTypeName("#define IPROPVALUE_RBCOST_FAIL TEXT(\"F\")")] + public const string IPROPVALUE_RBCOST_FAIL = "F"; + } +} diff --git a/sources/Interop/Windows/Windows/um/MsiDefs/Windows.cs b/sources/Interop/Windows/Windows/um/MsiDefs/Windows.cs index fd5c76386c..7a8978257e 100644 --- a/sources/Interop/Windows/Windows/um/MsiDefs/Windows.cs +++ b/sources/Interop/Windows/Windows/um/MsiDefs/Windows.cs @@ -10,36 +10,6 @@ public static partial class Windows [NativeTypeName("#define _WIN32_MSI 500")] public const int _WIN32_MSI = 500; - [NativeTypeName("#define IPROPVALUE_EXECUTEMODE_NONE TEXT(\"NONE\")")] - public const string IPROPVALUE_EXECUTEMODE_NONE = "NONE"; - - [NativeTypeName("#define IPROPVALUE_EXECUTEMODE_SCRIPT TEXT(\"SCRIPT\")")] - public const string IPROPVALUE_EXECUTEMODE_SCRIPT = "SCRIPT"; - - [NativeTypeName("#define IPROPVALUE__CARRYINGNDP_URTREINSTALL TEXT(\"URTREINSTALL\")")] - public const string IPROPVALUE__CARRYINGNDP_URTREINSTALL = "URTREINSTALL"; - - [NativeTypeName("#define IPROPVALUE__CARRYINGNDP_URTUPGRADE TEXT(\"URTUPGRADE\")")] - public const string IPROPVALUE__CARRYINGNDP_URTUPGRADE = "URTUPGRADE"; - - [NativeTypeName("#define IPROPVALUE_MSI_RM_CONTROL_DISABLE TEXT(\"Disable\")")] - public const string IPROPVALUE_MSI_RM_CONTROL_DISABLE = "Disable"; - - [NativeTypeName("#define IPROPVALUE_MSI_RM_CONTROL_DISABLESHUTDOWN TEXT(\"DisableShutdown\")")] - public const string IPROPVALUE_MSI_RM_CONTROL_DISABLESHUTDOWN = "DisableShutdown"; - - [NativeTypeName("#define IPROPVALUE_FEATURE_ALL TEXT(\"ALL\")")] - public const string IPROPVALUE_FEATURE_ALL = "ALL"; - - [NativeTypeName("#define IPROPVALUE_RBCOST_PROMPT TEXT(\"P\")")] - public const string IPROPVALUE_RBCOST_PROMPT = "P"; - - [NativeTypeName("#define IPROPVALUE_RBCOST_SILENT TEXT(\"D\")")] - public const string IPROPVALUE_RBCOST_SILENT = "D"; - - [NativeTypeName("#define IPROPVALUE_RBCOST_FAIL TEXT(\"F\")")] - public const string IPROPVALUE_RBCOST_FAIL = "F"; - [NativeTypeName("#define IACTIONNAME_INSTALL TEXT(\"INSTALL\")")] public const string IACTIONNAME_INSTALL = "INSTALL"; diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/COPYFLG.cs b/sources/Interop/Windows/Windows/um/SetupAPI/COPYFLG.cs new file mode 100644 index 0000000000..b84bfc6d31 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/COPYFLG.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class COPYFLG + { + [NativeTypeName("#define COPYFLG_WARN_IF_SKIP 0x00000001")] + public const int COPYFLG_WARN_IF_SKIP = 0x00000001; + + [NativeTypeName("#define COPYFLG_NOSKIP 0x00000002")] + public const int COPYFLG_NOSKIP = 0x00000002; + + [NativeTypeName("#define COPYFLG_NOVERSIONCHECK 0x00000004")] + public const int COPYFLG_NOVERSIONCHECK = 0x00000004; + + [NativeTypeName("#define COPYFLG_FORCE_FILE_IN_USE 0x00000008")] + public const int COPYFLG_FORCE_FILE_IN_USE = 0x00000008; + + [NativeTypeName("#define COPYFLG_NO_OVERWRITE 0x00000010")] + public const int COPYFLG_NO_OVERWRITE = 0x00000010; + + [NativeTypeName("#define COPYFLG_NO_VERSION_DIALOG 0x00000020")] + public const int COPYFLG_NO_VERSION_DIALOG = 0x00000020; + + [NativeTypeName("#define COPYFLG_OVERWRITE_OLDER_ONLY 0x00000040")] + public const int COPYFLG_OVERWRITE_OLDER_ONLY = 0x00000040; + + [NativeTypeName("#define COPYFLG_PROTECTED_WINDOWS_DRIVER_FILE 0x00000100")] + public const int COPYFLG_PROTECTED_WINDOWS_DRIVER_FILE = 0x00000100; + + [NativeTypeName("#define COPYFLG_REPLACEONLY 0x00000400")] + public const int COPYFLG_REPLACEONLY = 0x00000400; + + [NativeTypeName("#define COPYFLG_NODECOMP 0x00000800")] + public const int COPYFLG_NODECOMP = 0x00000800; + + [NativeTypeName("#define COPYFLG_REPLACE_BOOT_FILE 0x00001000")] + public const int COPYFLG_REPLACE_BOOT_FILE = 0x00001000; + + [NativeTypeName("#define COPYFLG_NOPRUNE 0x00002000")] + public const int COPYFLG_NOPRUNE = 0x00002000; + + [NativeTypeName("#define COPYFLG_IN_USE_TRY_RENAME 0x00004000")] + public const int COPYFLG_IN_USE_TRY_RENAME = 0x00004000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/DIF.cs b/sources/Interop/Windows/Windows/um/SetupAPI/DIF.cs new file mode 100644 index 0000000000..d464d81ae8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/DIF.cs @@ -0,0 +1,139 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DIF + { + [NativeTypeName("#define DIF_SELECTDEVICE 0x00000001")] + public const int DIF_SELECTDEVICE = 0x00000001; + + [NativeTypeName("#define DIF_INSTALLDEVICE 0x00000002")] + public const int DIF_INSTALLDEVICE = 0x00000002; + + [NativeTypeName("#define DIF_ASSIGNRESOURCES 0x00000003")] + public const int DIF_ASSIGNRESOURCES = 0x00000003; + + [NativeTypeName("#define DIF_PROPERTIES 0x00000004")] + public const int DIF_PROPERTIES = 0x00000004; + + [NativeTypeName("#define DIF_REMOVE 0x00000005")] + public const int DIF_REMOVE = 0x00000005; + + [NativeTypeName("#define DIF_FIRSTTIMESETUP 0x00000006")] + public const int DIF_FIRSTTIMESETUP = 0x00000006; + + [NativeTypeName("#define DIF_FOUNDDEVICE 0x00000007")] + public const int DIF_FOUNDDEVICE = 0x00000007; + + [NativeTypeName("#define DIF_SELECTCLASSDRIVERS 0x00000008")] + public const int DIF_SELECTCLASSDRIVERS = 0x00000008; + + [NativeTypeName("#define DIF_VALIDATECLASSDRIVERS 0x00000009")] + public const int DIF_VALIDATECLASSDRIVERS = 0x00000009; + + [NativeTypeName("#define DIF_INSTALLCLASSDRIVERS 0x0000000A")] + public const int DIF_INSTALLCLASSDRIVERS = 0x0000000A; + + [NativeTypeName("#define DIF_CALCDISKSPACE 0x0000000B")] + public const int DIF_CALCDISKSPACE = 0x0000000B; + + [NativeTypeName("#define DIF_DESTROYPRIVATEDATA 0x0000000C")] + public const int DIF_DESTROYPRIVATEDATA = 0x0000000C; + + [NativeTypeName("#define DIF_VALIDATEDRIVER 0x0000000D")] + public const int DIF_VALIDATEDRIVER = 0x0000000D; + + [NativeTypeName("#define DIF_DETECT 0x0000000F")] + public const int DIF_DETECT = 0x0000000F; + + [NativeTypeName("#define DIF_INSTALLWIZARD 0x00000010")] + public const int DIF_INSTALLWIZARD = 0x00000010; + + [NativeTypeName("#define DIF_DESTROYWIZARDDATA 0x00000011")] + public const int DIF_DESTROYWIZARDDATA = 0x00000011; + + [NativeTypeName("#define DIF_PROPERTYCHANGE 0x00000012")] + public const int DIF_PROPERTYCHANGE = 0x00000012; + + [NativeTypeName("#define DIF_ENABLECLASS 0x00000013")] + public const int DIF_ENABLECLASS = 0x00000013; + + [NativeTypeName("#define DIF_DETECTVERIFY 0x00000014")] + public const int DIF_DETECTVERIFY = 0x00000014; + + [NativeTypeName("#define DIF_INSTALLDEVICEFILES 0x00000015")] + public const int DIF_INSTALLDEVICEFILES = 0x00000015; + + [NativeTypeName("#define DIF_UNREMOVE 0x00000016")] + public const int DIF_UNREMOVE = 0x00000016; + + [NativeTypeName("#define DIF_SELECTBESTCOMPATDRV 0x00000017")] + public const int DIF_SELECTBESTCOMPATDRV = 0x00000017; + + [NativeTypeName("#define DIF_ALLOW_INSTALL 0x00000018")] + public const int DIF_ALLOW_INSTALL = 0x00000018; + + [NativeTypeName("#define DIF_REGISTERDEVICE 0x00000019")] + public const int DIF_REGISTERDEVICE = 0x00000019; + + [NativeTypeName("#define DIF_NEWDEVICEWIZARD_PRESELECT 0x0000001A")] + public const int DIF_NEWDEVICEWIZARD_PRESELECT = 0x0000001A; + + [NativeTypeName("#define DIF_NEWDEVICEWIZARD_SELECT 0x0000001B")] + public const int DIF_NEWDEVICEWIZARD_SELECT = 0x0000001B; + + [NativeTypeName("#define DIF_NEWDEVICEWIZARD_PREANALYZE 0x0000001C")] + public const int DIF_NEWDEVICEWIZARD_PREANALYZE = 0x0000001C; + + [NativeTypeName("#define DIF_NEWDEVICEWIZARD_POSTANALYZE 0x0000001D")] + public const int DIF_NEWDEVICEWIZARD_POSTANALYZE = 0x0000001D; + + [NativeTypeName("#define DIF_NEWDEVICEWIZARD_FINISHINSTALL 0x0000001E")] + public const int DIF_NEWDEVICEWIZARD_FINISHINSTALL = 0x0000001E; + + [NativeTypeName("#define DIF_UNUSED1 0x0000001F")] + public const int DIF_UNUSED1 = 0x0000001F; + + [NativeTypeName("#define DIF_INSTALLINTERFACES 0x00000020")] + public const int DIF_INSTALLINTERFACES = 0x00000020; + + [NativeTypeName("#define DIF_DETECTCANCEL 0x00000021")] + public const int DIF_DETECTCANCEL = 0x00000021; + + [NativeTypeName("#define DIF_REGISTER_COINSTALLERS 0x00000022")] + public const int DIF_REGISTER_COINSTALLERS = 0x00000022; + + [NativeTypeName("#define DIF_ADDPROPERTYPAGE_ADVANCED 0x00000023")] + public const int DIF_ADDPROPERTYPAGE_ADVANCED = 0x00000023; + + [NativeTypeName("#define DIF_ADDPROPERTYPAGE_BASIC 0x00000024")] + public const int DIF_ADDPROPERTYPAGE_BASIC = 0x00000024; + + [NativeTypeName("#define DIF_RESERVED1 0x00000025")] + public const int DIF_RESERVED1 = 0x00000025; + + [NativeTypeName("#define DIF_TROUBLESHOOTER 0x00000026")] + public const int DIF_TROUBLESHOOTER = 0x00000026; + + [NativeTypeName("#define DIF_POWERMESSAGEWAKE 0x00000027")] + public const int DIF_POWERMESSAGEWAKE = 0x00000027; + + [NativeTypeName("#define DIF_ADDREMOTEPROPERTYPAGE_ADVANCED 0x00000028")] + public const int DIF_ADDREMOTEPROPERTYPAGE_ADVANCED = 0x00000028; + + [NativeTypeName("#define DIF_UPDATEDRIVER_UI 0x00000029")] + public const int DIF_UPDATEDRIVER_UI = 0x00000029; + + [NativeTypeName("#define DIF_FINISHINSTALL_ACTION 0x0000002A")] + public const int DIF_FINISHINSTALL_ACTION = 0x0000002A; + + [NativeTypeName("#define DIF_RESERVED2 0x00000030")] + public const int DIF_RESERVED2 = 0x00000030; + + [NativeTypeName("#define DIF_MOVEDEVICE 0x0000000E")] + public const int DIF_MOVEDEVICE = 0x0000000E; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/DIRID.cs b/sources/Interop/Windows/Windows/um/SetupAPI/DIRID.cs new file mode 100644 index 0000000000..c16efd5f08 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/DIRID.cs @@ -0,0 +1,124 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DIRID + { + [NativeTypeName("#define DIRID_ABSOLUTE -1")] + public const int DIRID_ABSOLUTE = -1; + + [NativeTypeName("#define DIRID_ABSOLUTE_16BIT 0xffff")] + public const int DIRID_ABSOLUTE_16BIT = 0xffff; + + [NativeTypeName("#define DIRID_NULL 0")] + public const int DIRID_NULL = 0; + + [NativeTypeName("#define DIRID_SRCPATH 1")] + public const int DIRID_SRCPATH = 1; + + [NativeTypeName("#define DIRID_WINDOWS 10")] + public const int DIRID_WINDOWS = 10; + + [NativeTypeName("#define DIRID_SYSTEM 11")] + public const int DIRID_SYSTEM = 11; + + [NativeTypeName("#define DIRID_DRIVERS 12")] + public const int DIRID_DRIVERS = 12; + + [NativeTypeName("#define DIRID_IOSUBSYS DIRID_DRIVERS")] + public const int DIRID_IOSUBSYS = 12; + + [NativeTypeName("#define DIRID_DRIVER_STORE 13")] + public const int DIRID_DRIVER_STORE = 13; + + [NativeTypeName("#define DIRID_INF 17")] + public const int DIRID_INF = 17; + + [NativeTypeName("#define DIRID_HELP 18")] + public const int DIRID_HELP = 18; + + [NativeTypeName("#define DIRID_FONTS 20")] + public const int DIRID_FONTS = 20; + + [NativeTypeName("#define DIRID_VIEWERS 21")] + public const int DIRID_VIEWERS = 21; + + [NativeTypeName("#define DIRID_COLOR 23")] + public const int DIRID_COLOR = 23; + + [NativeTypeName("#define DIRID_APPS 24")] + public const int DIRID_APPS = 24; + + [NativeTypeName("#define DIRID_SHARED 25")] + public const int DIRID_SHARED = 25; + + [NativeTypeName("#define DIRID_BOOT 30")] + public const int DIRID_BOOT = 30; + + [NativeTypeName("#define DIRID_SYSTEM16 50")] + public const int DIRID_SYSTEM16 = 50; + + [NativeTypeName("#define DIRID_SPOOL 51")] + public const int DIRID_SPOOL = 51; + + [NativeTypeName("#define DIRID_SPOOLDRIVERS 52")] + public const int DIRID_SPOOLDRIVERS = 52; + + [NativeTypeName("#define DIRID_USERPROFILE 53")] + public const int DIRID_USERPROFILE = 53; + + [NativeTypeName("#define DIRID_LOADER 54")] + public const int DIRID_LOADER = 54; + + [NativeTypeName("#define DIRID_PRINTPROCESSOR 55")] + public const int DIRID_PRINTPROCESSOR = 55; + + [NativeTypeName("#define DIRID_DEFAULT DIRID_SYSTEM")] + public const int DIRID_DEFAULT = 11; + + [NativeTypeName("#define DIRID_COMMON_STARTMENU 16406")] + public const int DIRID_COMMON_STARTMENU = 16406; + + [NativeTypeName("#define DIRID_COMMON_PROGRAMS 16407")] + public const int DIRID_COMMON_PROGRAMS = 16407; + + [NativeTypeName("#define DIRID_COMMON_STARTUP 16408")] + public const int DIRID_COMMON_STARTUP = 16408; + + [NativeTypeName("#define DIRID_COMMON_DESKTOPDIRECTORY 16409")] + public const int DIRID_COMMON_DESKTOPDIRECTORY = 16409; + + [NativeTypeName("#define DIRID_COMMON_FAVORITES 16415")] + public const int DIRID_COMMON_FAVORITES = 16415; + + [NativeTypeName("#define DIRID_COMMON_APPDATA 16419")] + public const int DIRID_COMMON_APPDATA = 16419; + + [NativeTypeName("#define DIRID_PROGRAM_FILES 16422")] + public const int DIRID_PROGRAM_FILES = 16422; + + [NativeTypeName("#define DIRID_SYSTEM_X86 16425")] + public const int DIRID_SYSTEM_X86 = 16425; + + [NativeTypeName("#define DIRID_PROGRAM_FILES_X86 16426")] + public const int DIRID_PROGRAM_FILES_X86 = 16426; + + [NativeTypeName("#define DIRID_PROGRAM_FILES_COMMON 16427")] + public const int DIRID_PROGRAM_FILES_COMMON = 16427; + + [NativeTypeName("#define DIRID_PROGRAM_FILES_COMMONX86 16428")] + public const int DIRID_PROGRAM_FILES_COMMONX86 = 16428; + + [NativeTypeName("#define DIRID_COMMON_TEMPLATES 16429")] + public const int DIRID_COMMON_TEMPLATES = 16429; + + [NativeTypeName("#define DIRID_COMMON_DOCUMENTS 16430")] + public const int DIRID_COMMON_DOCUMENTS = 16430; + + [NativeTypeName("#define DIRID_USER 0x8000")] + public const int DIRID_USER = 0x8000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/DNF.cs b/sources/Interop/Windows/Windows/um/SetupAPI/DNF.cs new file mode 100644 index 0000000000..f82e6236e9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/DNF.cs @@ -0,0 +1,106 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DNF + { + [NativeTypeName("#define DNF_DUPDESC 0x00000001")] + public const int DNF_DUPDESC = 0x00000001; + + [NativeTypeName("#define DNF_OLDDRIVER 0x00000002")] + public const int DNF_OLDDRIVER = 0x00000002; + + [NativeTypeName("#define DNF_EXCLUDEFROMLIST 0x00000004")] + public const int DNF_EXCLUDEFROMLIST = 0x00000004; + + [NativeTypeName("#define DNF_NODRIVER 0x00000008")] + public const int DNF_NODRIVER = 0x00000008; + + [NativeTypeName("#define DNF_LEGACYINF 0x00000010")] + public const int DNF_LEGACYINF = 0x00000010; + + [NativeTypeName("#define DNF_CLASS_DRIVER 0x00000020")] + public const int DNF_CLASS_DRIVER = 0x00000020; + + [NativeTypeName("#define DNF_COMPATIBLE_DRIVER 0x00000040")] + public const int DNF_COMPATIBLE_DRIVER = 0x00000040; + + [NativeTypeName("#define DNF_INET_DRIVER 0x00000080")] + public const int DNF_INET_DRIVER = 0x00000080; + + [NativeTypeName("#define DNF_UNUSED1 0x00000100")] + public const int DNF_UNUSED1 = 0x00000100; + + [NativeTypeName("#define DNF_UNUSED2 0x00000200")] + public const int DNF_UNUSED2 = 0x00000200; + + [NativeTypeName("#define DNF_OLD_INET_DRIVER 0x00000400")] + public const int DNF_OLD_INET_DRIVER = 0x00000400; + + [NativeTypeName("#define DNF_BAD_DRIVER 0x00000800")] + public const int DNF_BAD_DRIVER = 0x00000800; + + [NativeTypeName("#define DNF_DUPPROVIDER 0x00001000")] + public const int DNF_DUPPROVIDER = 0x00001000; + + [NativeTypeName("#define DNF_INF_IS_SIGNED 0x00002000")] + public const int DNF_INF_IS_SIGNED = 0x00002000; + + [NativeTypeName("#define DNF_OEM_F6_INF 0x00004000")] + public const int DNF_OEM_F6_INF = 0x00004000; + + [NativeTypeName("#define DNF_DUPDRIVERVER 0x00008000")] + public const int DNF_DUPDRIVERVER = 0x00008000; + + [NativeTypeName("#define DNF_BASIC_DRIVER 0x00010000")] + public const int DNF_BASIC_DRIVER = 0x00010000; + + [NativeTypeName("#define DNF_AUTHENTICODE_SIGNED 0x00020000")] + public const int DNF_AUTHENTICODE_SIGNED = 0x00020000; + + [NativeTypeName("#define DNF_INSTALLEDDRIVER 0x00040000")] + public const int DNF_INSTALLEDDRIVER = 0x00040000; + + [NativeTypeName("#define DNF_ALWAYSEXCLUDEFROMLIST 0x00080000")] + public const int DNF_ALWAYSEXCLUDEFROMLIST = 0x00080000; + + [NativeTypeName("#define DNF_INBOX_DRIVER 0x00100000")] + public const int DNF_INBOX_DRIVER = 0x00100000; + + [NativeTypeName("#define DNF_REQUESTADDITIONALSOFTWARE 0x00200000")] + public const int DNF_REQUESTADDITIONALSOFTWARE = 0x00200000; + + [NativeTypeName("#define DNF_UNUSED_22 0x00400000")] + public const int DNF_UNUSED_22 = 0x00400000; + + [NativeTypeName("#define DNF_UNUSED_23 0x00800000")] + public const int DNF_UNUSED_23 = 0x00800000; + + [NativeTypeName("#define DNF_UNUSED_24 0x01000000")] + public const int DNF_UNUSED_24 = 0x01000000; + + [NativeTypeName("#define DNF_UNUSED_25 0x02000000")] + public const int DNF_UNUSED_25 = 0x02000000; + + [NativeTypeName("#define DNF_UNUSED_26 0x04000000")] + public const int DNF_UNUSED_26 = 0x04000000; + + [NativeTypeName("#define DNF_UNUSED_27 0x08000000")] + public const int DNF_UNUSED_27 = 0x08000000; + + [NativeTypeName("#define DNF_UNUSED_28 0x10000000")] + public const int DNF_UNUSED_28 = 0x10000000; + + [NativeTypeName("#define DNF_UNUSED_29 0x20000000")] + public const int DNF_UNUSED_29 = 0x20000000; + + [NativeTypeName("#define DNF_UNUSED_30 0x40000000")] + public const int DNF_UNUSED_30 = 0x40000000; + + [NativeTypeName("#define DNF_UNUSED_31 0x80000000")] + public const uint DNF_UNUSED_31 = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/EXCEPTION.cs b/sources/Interop/Windows/Windows/um/SetupAPI/EXCEPTION.cs new file mode 100644 index 0000000000..37117206cb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/EXCEPTION.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EXCEPTION + { + [NativeTypeName("#define EXCEPTION_SPAPI_UNRECOVERABLE_STACK_OVERFLOW ERROR_UNRECOVERABLE_STACK_OVERFLOW")] + public const uint EXCEPTION_SPAPI_UNRECOVERABLE_STACK_OVERFLOW = (0x20000000 | 0xC0000000 | 0x300); + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/IDD.cs b/sources/Interop/Windows/Windows/um/SetupAPI/IDD.cs new file mode 100644 index 0000000000..0dc2f74df3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/IDD.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IDD + { + [NativeTypeName("#define IDD_DYNAWIZ_FIRSTPAGE 10000")] + public const int IDD_DYNAWIZ_FIRSTPAGE = 10000; + + [NativeTypeName("#define IDD_DYNAWIZ_SELECT_PREVPAGE 10001")] + public const int IDD_DYNAWIZ_SELECT_PREVPAGE = 10001; + + [NativeTypeName("#define IDD_DYNAWIZ_SELECT_NEXTPAGE 10002")] + public const int IDD_DYNAWIZ_SELECT_NEXTPAGE = 10002; + + [NativeTypeName("#define IDD_DYNAWIZ_ANALYZE_PREVPAGE 10003")] + public const int IDD_DYNAWIZ_ANALYZE_PREVPAGE = 10003; + + [NativeTypeName("#define IDD_DYNAWIZ_ANALYZE_NEXTPAGE 10004")] + public const int IDD_DYNAWIZ_ANALYZE_NEXTPAGE = 10004; + + [NativeTypeName("#define IDD_DYNAWIZ_SELECTDEV_PAGE 10009")] + public const int IDD_DYNAWIZ_SELECTDEV_PAGE = 10009; + + [NativeTypeName("#define IDD_DYNAWIZ_ANALYZEDEV_PAGE 10010")] + public const int IDD_DYNAWIZ_ANALYZEDEV_PAGE = 10010; + + [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTEDDEVS_PAGE 10011")] + public const int IDD_DYNAWIZ_INSTALLDETECTEDDEVS_PAGE = 10011; + + [NativeTypeName("#define IDD_DYNAWIZ_SELECTCLASS_PAGE 10012")] + public const int IDD_DYNAWIZ_SELECTCLASS_PAGE = 10012; + + [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTED_PREVPAGE 10006")] + public const int IDD_DYNAWIZ_INSTALLDETECTED_PREVPAGE = 10006; + + [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTED_NEXTPAGE 10007")] + public const int IDD_DYNAWIZ_INSTALLDETECTED_NEXTPAGE = 10007; + + [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTED_NODEVS 10008")] + public const int IDD_DYNAWIZ_INSTALLDETECTED_NODEVS = 10008; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/IDF.cs b/sources/Interop/Windows/Windows/um/SetupAPI/IDF.cs new file mode 100644 index 0000000000..3d8042837d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/IDF.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IDF + { + [NativeTypeName("#define IDF_NOBROWSE 0x00000001")] + public const int IDF_NOBROWSE = 0x00000001; + + [NativeTypeName("#define IDF_NOSKIP 0x00000002")] + public const int IDF_NOSKIP = 0x00000002; + + [NativeTypeName("#define IDF_NODETAILS 0x00000004")] + public const int IDF_NODETAILS = 0x00000004; + + [NativeTypeName("#define IDF_NOCOMPRESSED 0x00000008")] + public const int IDF_NOCOMPRESSED = 0x00000008; + + [NativeTypeName("#define IDF_CHECKFIRST 0x00000100")] + public const int IDF_CHECKFIRST = 0x00000100; + + [NativeTypeName("#define IDF_NOBEEP 0x00000200")] + public const int IDF_NOBEEP = 0x00000200; + + [NativeTypeName("#define IDF_NOFOREGROUND 0x00000400")] + public const int IDF_NOFOREGROUND = 0x00000400; + + [NativeTypeName("#define IDF_WARNIFSKIP 0x00000800")] + public const int IDF_WARNIFSKIP = 0x00000800; + + [NativeTypeName("#define IDF_NOREMOVABLEMEDIAPROMPT 0x00001000")] + public const int IDF_NOREMOVABLEMEDIAPROMPT = 0x00001000; + + [NativeTypeName("#define IDF_USEDISKNAMEASPROMPT 0x00002000")] + public const int IDF_USEDISKNAMEASPROMPT = 0x00002000; + + [NativeTypeName("#define IDF_OEMDISK 0x80000000")] + public const uint IDF_OEMDISK = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/IDI.cs b/sources/Interop/Windows/Windows/um/SetupAPI/IDI.cs new file mode 100644 index 0000000000..105531093a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/IDI.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IDI + { + [NativeTypeName("#define IDI_RESOURCEFIRST 159")] + public const int IDI_RESOURCEFIRST = 159; + + [NativeTypeName("#define IDI_RESOURCE 159")] + public const int IDI_RESOURCE = 159; + + [NativeTypeName("#define IDI_RESOURCELAST 161")] + public const int IDI_RESOURCELAST = 161; + + [NativeTypeName("#define IDI_RESOURCEOVERLAYFIRST 161")] + public const int IDI_RESOURCEOVERLAYFIRST = 161; + + [NativeTypeName("#define IDI_RESOURCEOVERLAYLAST 161")] + public const int IDI_RESOURCEOVERLAYLAST = 161; + + [NativeTypeName("#define IDI_CONFLICT 161")] + public const int IDI_CONFLICT = 161; + + [NativeTypeName("#define IDI_CLASSICON_OVERLAYFIRST 500")] + public const int IDI_CLASSICON_OVERLAYFIRST = 500; + + [NativeTypeName("#define IDI_CLASSICON_OVERLAYLAST 502")] + public const int IDI_CLASSICON_OVERLAYLAST = 502; + + [NativeTypeName("#define IDI_PROBLEM_OVL 500")] + public const int IDI_PROBLEM_OVL = 500; + + [NativeTypeName("#define IDI_DISABLED_OVL 501")] + public const int IDI_DISABLED_OVL = 501; + + [NativeTypeName("#define IDI_FORCED_OVL 502")] + public const int IDI_FORCED_OVL = 502; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/NDW.cs b/sources/Interop/Windows/Windows/um/SetupAPI/NDW.cs new file mode 100644 index 0000000000..708928e416 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/NDW.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NDW + { + [NativeTypeName("#define NDW_INSTALLFLAG_DIDFACTDEFS 0x00000001")] + public const int NDW_INSTALLFLAG_DIDFACTDEFS = 0x00000001; + + [NativeTypeName("#define NDW_INSTALLFLAG_HARDWAREALLREADYIN 0x00000002")] + public const int NDW_INSTALLFLAG_HARDWAREALLREADYIN = 0x00000002; + + [NativeTypeName("#define NDW_INSTALLFLAG_NEEDRESTART DI_NEEDRESTART")] + public const int NDW_INSTALLFLAG_NEEDRESTART = 0x00000080; + + [NativeTypeName("#define NDW_INSTALLFLAG_NEEDREBOOT DI_NEEDREBOOT")] + public const int NDW_INSTALLFLAG_NEEDREBOOT = 0x00000100; + + [NativeTypeName("#define NDW_INSTALLFLAG_NEEDSHUTDOWN 0x00000200")] + public const int NDW_INSTALLFLAG_NEEDSHUTDOWN = 0x00000200; + + [NativeTypeName("#define NDW_INSTALLFLAG_EXPRESSINTRO 0x00000400")] + public const int NDW_INSTALLFLAG_EXPRESSINTRO = 0x00000400; + + [NativeTypeName("#define NDW_INSTALLFLAG_SKIPISDEVINSTALLED 0x00000800")] + public const int NDW_INSTALLFLAG_SKIPISDEVINSTALLED = 0x00000800; + + [NativeTypeName("#define NDW_INSTALLFLAG_NODETECTEDDEVS 0x00001000")] + public const int NDW_INSTALLFLAG_NODETECTEDDEVS = 0x00001000; + + [NativeTypeName("#define NDW_INSTALLFLAG_INSTALLSPECIFIC 0x00002000")] + public const int NDW_INSTALLFLAG_INSTALLSPECIFIC = 0x00002000; + + [NativeTypeName("#define NDW_INSTALLFLAG_SKIPCLASSLIST 0x00004000")] + public const int NDW_INSTALLFLAG_SKIPCLASSLIST = 0x00004000; + + [NativeTypeName("#define NDW_INSTALLFLAG_CI_PICKED_OEM 0x00008000")] + public const int NDW_INSTALLFLAG_CI_PICKED_OEM = 0x00008000; + + [NativeTypeName("#define NDW_INSTALLFLAG_PCMCIAMODE 0x00010000")] + public const int NDW_INSTALLFLAG_PCMCIAMODE = 0x00010000; + + [NativeTypeName("#define NDW_INSTALLFLAG_PCMCIADEVICE 0x00020000")] + public const int NDW_INSTALLFLAG_PCMCIADEVICE = 0x00020000; + + [NativeTypeName("#define NDW_INSTALLFLAG_USERCANCEL 0x00040000")] + public const int NDW_INSTALLFLAG_USERCANCEL = 0x00040000; + + [NativeTypeName("#define NDW_INSTALLFLAG_KNOWNCLASS 0x00080000")] + public const int NDW_INSTALLFLAG_KNOWNCLASS = 0x00080000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SIGNERSCORE.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SIGNERSCORE.cs new file mode 100644 index 0000000000..594c4054d2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SIGNERSCORE.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SIGNERSCORE + { + [NativeTypeName("#define SIGNERSCORE_UNKNOWN 0xFF000000")] + public const uint SIGNERSCORE_UNKNOWN = 0xFF000000; + + [NativeTypeName("#define SIGNERSCORE_W9X_SUSPECT 0xC0000000")] + public const uint SIGNERSCORE_W9X_SUSPECT = 0xC0000000; + + [NativeTypeName("#define SIGNERSCORE_UNSIGNED 0x80000000")] + public const uint SIGNERSCORE_UNSIGNED = 0x80000000; + + [NativeTypeName("#define SIGNERSCORE_AUTHENTICODE 0x0F000000")] + public const int SIGNERSCORE_AUTHENTICODE = 0x0F000000; + + [NativeTypeName("#define SIGNERSCORE_WHQL 0x0D000005")] + public const int SIGNERSCORE_WHQL = 0x0D000005; + + [NativeTypeName("#define SIGNERSCORE_UNCLASSIFIED 0x0D000004")] + public const int SIGNERSCORE_UNCLASSIFIED = 0x0D000004; + + [NativeTypeName("#define SIGNERSCORE_INBOX 0x0D000003")] + public const int SIGNERSCORE_INBOX = 0x0D000003; + + [NativeTypeName("#define SIGNERSCORE_LOGO_STANDARD 0x0D000002")] + public const int SIGNERSCORE_LOGO_STANDARD = 0x0D000002; + + [NativeTypeName("#define SIGNERSCORE_LOGO_PREMIUM 0x0D000001")] + public const int SIGNERSCORE_LOGO_PREMIUM = 0x0D000001; + + [NativeTypeName("#define SIGNERSCORE_MASK 0xFF000000")] + public const uint SIGNERSCORE_MASK = 0xFF000000; + + [NativeTypeName("#define SIGNERSCORE_SIGNED_MASK 0xF0000000")] + public const uint SIGNERSCORE_SIGNED_MASK = 0xF0000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SPDRP.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SPDRP.cs new file mode 100644 index 0000000000..16ea3191b7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SPDRP.cs @@ -0,0 +1,124 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPDRP + { + [NativeTypeName("#define SPDRP_DEVICEDESC (0x00000000)")] + public const int SPDRP_DEVICEDESC = (0x00000000); + + [NativeTypeName("#define SPDRP_HARDWAREID (0x00000001)")] + public const int SPDRP_HARDWAREID = (0x00000001); + + [NativeTypeName("#define SPDRP_COMPATIBLEIDS (0x00000002)")] + public const int SPDRP_COMPATIBLEIDS = (0x00000002); + + [NativeTypeName("#define SPDRP_UNUSED0 (0x00000003)")] + public const int SPDRP_UNUSED0 = (0x00000003); + + [NativeTypeName("#define SPDRP_SERVICE (0x00000004)")] + public const int SPDRP_SERVICE = (0x00000004); + + [NativeTypeName("#define SPDRP_UNUSED1 (0x00000005)")] + public const int SPDRP_UNUSED1 = (0x00000005); + + [NativeTypeName("#define SPDRP_UNUSED2 (0x00000006)")] + public const int SPDRP_UNUSED2 = (0x00000006); + + [NativeTypeName("#define SPDRP_CLASS (0x00000007)")] + public const int SPDRP_CLASS = (0x00000007); + + [NativeTypeName("#define SPDRP_CLASSGUID (0x00000008)")] + public const int SPDRP_CLASSGUID = (0x00000008); + + [NativeTypeName("#define SPDRP_DRIVER (0x00000009)")] + public const int SPDRP_DRIVER = (0x00000009); + + [NativeTypeName("#define SPDRP_CONFIGFLAGS (0x0000000A)")] + public const int SPDRP_CONFIGFLAGS = (0x0000000A); + + [NativeTypeName("#define SPDRP_MFG (0x0000000B)")] + public const int SPDRP_MFG = (0x0000000B); + + [NativeTypeName("#define SPDRP_FRIENDLYNAME (0x0000000C)")] + public const int SPDRP_FRIENDLYNAME = (0x0000000C); + + [NativeTypeName("#define SPDRP_LOCATION_INFORMATION (0x0000000D)")] + public const int SPDRP_LOCATION_INFORMATION = (0x0000000D); + + [NativeTypeName("#define SPDRP_PHYSICAL_DEVICE_OBJECT_NAME (0x0000000E)")] + public const int SPDRP_PHYSICAL_DEVICE_OBJECT_NAME = (0x0000000E); + + [NativeTypeName("#define SPDRP_CAPABILITIES (0x0000000F)")] + public const int SPDRP_CAPABILITIES = (0x0000000F); + + [NativeTypeName("#define SPDRP_UI_NUMBER (0x00000010)")] + public const int SPDRP_UI_NUMBER = (0x00000010); + + [NativeTypeName("#define SPDRP_UPPERFILTERS (0x00000011)")] + public const int SPDRP_UPPERFILTERS = (0x00000011); + + [NativeTypeName("#define SPDRP_LOWERFILTERS (0x00000012)")] + public const int SPDRP_LOWERFILTERS = (0x00000012); + + [NativeTypeName("#define SPDRP_BUSTYPEGUID (0x00000013)")] + public const int SPDRP_BUSTYPEGUID = (0x00000013); + + [NativeTypeName("#define SPDRP_LEGACYBUSTYPE (0x00000014)")] + public const int SPDRP_LEGACYBUSTYPE = (0x00000014); + + [NativeTypeName("#define SPDRP_BUSNUMBER (0x00000015)")] + public const int SPDRP_BUSNUMBER = (0x00000015); + + [NativeTypeName("#define SPDRP_ENUMERATOR_NAME (0x00000016)")] + public const int SPDRP_ENUMERATOR_NAME = (0x00000016); + + [NativeTypeName("#define SPDRP_SECURITY (0x00000017)")] + public const int SPDRP_SECURITY = (0x00000017); + + [NativeTypeName("#define SPDRP_SECURITY_SDS (0x00000018)")] + public const int SPDRP_SECURITY_SDS = (0x00000018); + + [NativeTypeName("#define SPDRP_DEVTYPE (0x00000019)")] + public const int SPDRP_DEVTYPE = (0x00000019); + + [NativeTypeName("#define SPDRP_EXCLUSIVE (0x0000001A)")] + public const int SPDRP_EXCLUSIVE = (0x0000001A); + + [NativeTypeName("#define SPDRP_CHARACTERISTICS (0x0000001B)")] + public const int SPDRP_CHARACTERISTICS = (0x0000001B); + + [NativeTypeName("#define SPDRP_ADDRESS (0x0000001C)")] + public const int SPDRP_ADDRESS = (0x0000001C); + + [NativeTypeName("#define SPDRP_UI_NUMBER_DESC_FORMAT (0X0000001D)")] + public const int SPDRP_UI_NUMBER_DESC_FORMAT = (0X0000001D); + + [NativeTypeName("#define SPDRP_DEVICE_POWER_DATA (0x0000001E)")] + public const int SPDRP_DEVICE_POWER_DATA = (0x0000001E); + + [NativeTypeName("#define SPDRP_REMOVAL_POLICY (0x0000001F)")] + public const int SPDRP_REMOVAL_POLICY = (0x0000001F); + + [NativeTypeName("#define SPDRP_REMOVAL_POLICY_HW_DEFAULT (0x00000020)")] + public const int SPDRP_REMOVAL_POLICY_HW_DEFAULT = (0x00000020); + + [NativeTypeName("#define SPDRP_REMOVAL_POLICY_OVERRIDE (0x00000021)")] + public const int SPDRP_REMOVAL_POLICY_OVERRIDE = (0x00000021); + + [NativeTypeName("#define SPDRP_INSTALL_STATE (0x00000022)")] + public const int SPDRP_INSTALL_STATE = (0x00000022); + + [NativeTypeName("#define SPDRP_LOCATION_PATHS (0x00000023)")] + public const int SPDRP_LOCATION_PATHS = (0x00000023); + + [NativeTypeName("#define SPDRP_BASE_CONTAINERID (0x00000024)")] + public const int SPDRP_BASE_CONTAINERID = (0x00000024); + + [NativeTypeName("#define SPDRP_MAXIMUM_PROPERTY (0x00000025)")] + public const int SPDRP_MAXIMUM_PROPERTY = (0x00000025); + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SPFILENOTIFY.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SPFILENOTIFY.cs new file mode 100644 index 0000000000..0a7c2b0f2c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SPFILENOTIFY.cs @@ -0,0 +1,100 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPFILENOTIFY + { + [NativeTypeName("#define SPFILENOTIFY_STARTQUEUE 0x00000001")] + public const int SPFILENOTIFY_STARTQUEUE = 0x00000001; + + [NativeTypeName("#define SPFILENOTIFY_ENDQUEUE 0x00000002")] + public const int SPFILENOTIFY_ENDQUEUE = 0x00000002; + + [NativeTypeName("#define SPFILENOTIFY_STARTSUBQUEUE 0x00000003")] + public const int SPFILENOTIFY_STARTSUBQUEUE = 0x00000003; + + [NativeTypeName("#define SPFILENOTIFY_ENDSUBQUEUE 0x00000004")] + public const int SPFILENOTIFY_ENDSUBQUEUE = 0x00000004; + + [NativeTypeName("#define SPFILENOTIFY_STARTDELETE 0x00000005")] + public const int SPFILENOTIFY_STARTDELETE = 0x00000005; + + [NativeTypeName("#define SPFILENOTIFY_ENDDELETE 0x00000006")] + public const int SPFILENOTIFY_ENDDELETE = 0x00000006; + + [NativeTypeName("#define SPFILENOTIFY_DELETEERROR 0x00000007")] + public const int SPFILENOTIFY_DELETEERROR = 0x00000007; + + [NativeTypeName("#define SPFILENOTIFY_STARTRENAME 0x00000008")] + public const int SPFILENOTIFY_STARTRENAME = 0x00000008; + + [NativeTypeName("#define SPFILENOTIFY_ENDRENAME 0x00000009")] + public const int SPFILENOTIFY_ENDRENAME = 0x00000009; + + [NativeTypeName("#define SPFILENOTIFY_RENAMEERROR 0x0000000a")] + public const int SPFILENOTIFY_RENAMEERROR = 0x0000000a; + + [NativeTypeName("#define SPFILENOTIFY_STARTCOPY 0x0000000b")] + public const int SPFILENOTIFY_STARTCOPY = 0x0000000b; + + [NativeTypeName("#define SPFILENOTIFY_ENDCOPY 0x0000000c")] + public const int SPFILENOTIFY_ENDCOPY = 0x0000000c; + + [NativeTypeName("#define SPFILENOTIFY_COPYERROR 0x0000000d")] + public const int SPFILENOTIFY_COPYERROR = 0x0000000d; + + [NativeTypeName("#define SPFILENOTIFY_NEEDMEDIA 0x0000000e")] + public const int SPFILENOTIFY_NEEDMEDIA = 0x0000000e; + + [NativeTypeName("#define SPFILENOTIFY_QUEUESCAN 0x0000000f")] + public const int SPFILENOTIFY_QUEUESCAN = 0x0000000f; + + [NativeTypeName("#define SPFILENOTIFY_CABINETINFO 0x00000010")] + public const int SPFILENOTIFY_CABINETINFO = 0x00000010; + + [NativeTypeName("#define SPFILENOTIFY_FILEINCABINET 0x00000011")] + public const int SPFILENOTIFY_FILEINCABINET = 0x00000011; + + [NativeTypeName("#define SPFILENOTIFY_NEEDNEWCABINET 0x00000012")] + public const int SPFILENOTIFY_NEEDNEWCABINET = 0x00000012; + + [NativeTypeName("#define SPFILENOTIFY_FILEEXTRACTED 0x00000013")] + public const int SPFILENOTIFY_FILEEXTRACTED = 0x00000013; + + [NativeTypeName("#define SPFILENOTIFY_FILEOPDELAYED 0x00000014")] + public const int SPFILENOTIFY_FILEOPDELAYED = 0x00000014; + + [NativeTypeName("#define SPFILENOTIFY_STARTBACKUP 0x00000015")] + public const int SPFILENOTIFY_STARTBACKUP = 0x00000015; + + [NativeTypeName("#define SPFILENOTIFY_BACKUPERROR 0x00000016")] + public const int SPFILENOTIFY_BACKUPERROR = 0x00000016; + + [NativeTypeName("#define SPFILENOTIFY_ENDBACKUP 0x00000017")] + public const int SPFILENOTIFY_ENDBACKUP = 0x00000017; + + [NativeTypeName("#define SPFILENOTIFY_QUEUESCAN_EX 0x00000018")] + public const int SPFILENOTIFY_QUEUESCAN_EX = 0x00000018; + + [NativeTypeName("#define SPFILENOTIFY_STARTREGISTRATION 0x00000019")] + public const int SPFILENOTIFY_STARTREGISTRATION = 0x00000019; + + [NativeTypeName("#define SPFILENOTIFY_ENDREGISTRATION 0x00000020")] + public const int SPFILENOTIFY_ENDREGISTRATION = 0x00000020; + + [NativeTypeName("#define SPFILENOTIFY_QUEUESCAN_SIGNERINFO 0x00000040")] + public const int SPFILENOTIFY_QUEUESCAN_SIGNERINFO = 0x00000040; + + [NativeTypeName("#define SPFILENOTIFY_LANGMISMATCH 0x00010000")] + public const int SPFILENOTIFY_LANGMISMATCH = 0x00010000; + + [NativeTypeName("#define SPFILENOTIFY_TARGETEXISTS 0x00020000")] + public const int SPFILENOTIFY_TARGETEXISTS = 0x00020000; + + [NativeTypeName("#define SPFILENOTIFY_TARGETNEWER 0x00040000")] + public const int SPFILENOTIFY_TARGETNEWER = 0x00040000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SPINST.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SPINST.cs new file mode 100644 index 0000000000..b06486dfcd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SPINST.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPINST + { + [NativeTypeName("#define SPINST_LOGCONFIG 0x00000001")] + public const int SPINST_LOGCONFIG = 0x00000001; + + [NativeTypeName("#define SPINST_INIFILES 0x00000002")] + public const int SPINST_INIFILES = 0x00000002; + + [NativeTypeName("#define SPINST_REGISTRY 0x00000004")] + public const int SPINST_REGISTRY = 0x00000004; + + [NativeTypeName("#define SPINST_INI2REG 0x00000008")] + public const int SPINST_INI2REG = 0x00000008; + + [NativeTypeName("#define SPINST_FILES 0x00000010")] + public const int SPINST_FILES = 0x00000010; + + [NativeTypeName("#define SPINST_BITREG 0x00000020")] + public const int SPINST_BITREG = 0x00000020; + + [NativeTypeName("#define SPINST_REGSVR 0x00000040")] + public const int SPINST_REGSVR = 0x00000040; + + [NativeTypeName("#define SPINST_UNREGSVR 0x00000080")] + public const int SPINST_UNREGSVR = 0x00000080; + + [NativeTypeName("#define SPINST_PROFILEITEMS 0x00000100")] + public const int SPINST_PROFILEITEMS = 0x00000100; + + [NativeTypeName("#define SPINST_COPYINF 0x00000200")] + public const int SPINST_COPYINF = 0x00000200; + + [NativeTypeName("#define SPINST_PROPERTIES 0x00000400")] + public const int SPINST_PROPERTIES = 0x00000400; + + [NativeTypeName("#define SPINST_ALL 0x000007ff")] + public const int SPINST_ALL = 0x000007ff; + + [NativeTypeName("#define SPINST_SINGLESECTION 0x00010000")] + public const int SPINST_SINGLESECTION = 0x00010000; + + [NativeTypeName("#define SPINST_LOGCONFIG_IS_FORCED 0x00020000")] + public const int SPINST_LOGCONFIG_IS_FORCED = 0x00020000; + + [NativeTypeName("#define SPINST_LOGCONFIGS_ARE_OVERRIDES 0x00040000")] + public const int SPINST_LOGCONFIGS_ARE_OVERRIDES = 0x00040000; + + [NativeTypeName("#define SPINST_REGISTERCALLBACKAWARE 0x00080000")] + public const int SPINST_REGISTERCALLBACKAWARE = 0x00080000; + + [NativeTypeName("#define SPINST_DEVICEINSTALL 0x00100000")] + public const int SPINST_DEVICEINSTALL = 0x00100000; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SPQ.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SPQ.cs new file mode 100644 index 0000000000..9392687ed7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SPQ.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPQ + { + [NativeTypeName("#define SPQ_SCAN_FILE_PRESENCE 0x00000001")] + public const int SPQ_SCAN_FILE_PRESENCE = 0x00000001; + + [NativeTypeName("#define SPQ_SCAN_FILE_VALIDITY 0x00000002")] + public const int SPQ_SCAN_FILE_VALIDITY = 0x00000002; + + [NativeTypeName("#define SPQ_SCAN_USE_CALLBACK 0x00000004")] + public const int SPQ_SCAN_USE_CALLBACK = 0x00000004; + + [NativeTypeName("#define SPQ_SCAN_USE_CALLBACKEX 0x00000008")] + public const int SPQ_SCAN_USE_CALLBACKEX = 0x00000008; + + [NativeTypeName("#define SPQ_SCAN_INFORM_USER 0x00000010")] + public const int SPQ_SCAN_INFORM_USER = 0x00000010; + + [NativeTypeName("#define SPQ_SCAN_PRUNE_COPY_QUEUE 0x00000020")] + public const int SPQ_SCAN_PRUNE_COPY_QUEUE = 0x00000020; + + [NativeTypeName("#define SPQ_SCAN_USE_CALLBACK_SIGNERINFO 0x00000040")] + public const int SPQ_SCAN_USE_CALLBACK_SIGNERINFO = 0x00000040; + + [NativeTypeName("#define SPQ_SCAN_PRUNE_DELREN 0x00000080")] + public const int SPQ_SCAN_PRUNE_DELREN = 0x00000080; + + [NativeTypeName("#define SPQ_SCAN_FILE_PRESENCE_WITHOUT_SOURCE 0x00000100")] + public const int SPQ_SCAN_FILE_PRESENCE_WITHOUT_SOURCE = 0x00000100; + + [NativeTypeName("#define SPQ_SCAN_FILE_COMPARISON 0x00000200")] + public const int SPQ_SCAN_FILE_COMPARISON = 0x00000200; + + [NativeTypeName("#define SPQ_SCAN_ACTIVATE_DRP 0x00000400")] + public const int SPQ_SCAN_ACTIVATE_DRP = 0x00000400; + + [NativeTypeName("#define SPQ_DELAYED_COPY 0x00000001")] + public const int SPQ_DELAYED_COPY = 0x00000001; + + [NativeTypeName("#define SPQ_FLAG_BACKUP_AWARE 0x00000001")] + public const int SPQ_FLAG_BACKUP_AWARE = 0x00000001; + + [NativeTypeName("#define SPQ_FLAG_ABORT_IF_UNSIGNED 0x00000002")] + public const int SPQ_FLAG_ABORT_IF_UNSIGNED = 0x00000002; + + [NativeTypeName("#define SPQ_FLAG_FILES_MODIFIED 0x00000004")] + public const int SPQ_FLAG_FILES_MODIFIED = 0x00000004; + + [NativeTypeName("#define SPQ_FLAG_DO_SHUFFLEMOVE 0x00000008")] + public const int SPQ_FLAG_DO_SHUFFLEMOVE = 0x00000008; + + [NativeTypeName("#define SPQ_FLAG_VALID 0x0000000F")] + public const int SPQ_FLAG_VALID = 0x0000000F; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SPREG.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SPREG.cs new file mode 100644 index 0000000000..38c925d82f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SPREG.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPREG + { + [NativeTypeName("#define SPREG_SUCCESS 0x00000000")] + public const int SPREG_SUCCESS = 0x00000000; + + [NativeTypeName("#define SPREG_LOADLIBRARY 0x00000001")] + public const int SPREG_LOADLIBRARY = 0x00000001; + + [NativeTypeName("#define SPREG_GETPROCADDR 0x00000002")] + public const int SPREG_GETPROCADDR = 0x00000002; + + [NativeTypeName("#define SPREG_REGSVR 0x00000003")] + public const int SPREG_REGSVR = 0x00000003; + + [NativeTypeName("#define SPREG_DLLINSTALL 0x00000004")] + public const int SPREG_DLLINSTALL = 0x00000004; + + [NativeTypeName("#define SPREG_TIMEOUT 0x00000005")] + public const int SPREG_TIMEOUT = 0x00000005; + + [NativeTypeName("#define SPREG_UNKNOWN 0xFFFFFFFF")] + public const uint SPREG_UNKNOWN = 0xFFFFFFFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/SPSVCINST.cs b/sources/Interop/Windows/Windows/um/SetupAPI/SPSVCINST.cs new file mode 100644 index 0000000000..f8e32a9ee1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SetupAPI/SPSVCINST.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SetupAPI.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPSVCINST + { + [NativeTypeName("#define SPSVCINST_TAGTOFRONT (0x00000001)")] + public const int SPSVCINST_TAGTOFRONT = (0x00000001); + + [NativeTypeName("#define SPSVCINST_ASSOCSERVICE (0x00000002)")] + public const int SPSVCINST_ASSOCSERVICE = (0x00000002); + + [NativeTypeName("#define SPSVCINST_DELETEEVENTLOGENTRY (0x00000004)")] + public const int SPSVCINST_DELETEEVENTLOGENTRY = (0x00000004); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_DISPLAYNAME (0x00000008)")] + public const int SPSVCINST_NOCLOBBER_DISPLAYNAME = (0x00000008); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_STARTTYPE (0x00000010)")] + public const int SPSVCINST_NOCLOBBER_STARTTYPE = (0x00000010); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_ERRORCONTROL (0x00000020)")] + public const int SPSVCINST_NOCLOBBER_ERRORCONTROL = (0x00000020); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_LOADORDERGROUP (0x00000040)")] + public const int SPSVCINST_NOCLOBBER_LOADORDERGROUP = (0x00000040); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_DEPENDENCIES (0x00000080)")] + public const int SPSVCINST_NOCLOBBER_DEPENDENCIES = (0x00000080); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_DESCRIPTION (0x00000100)")] + public const int SPSVCINST_NOCLOBBER_DESCRIPTION = (0x00000100); + + [NativeTypeName("#define SPSVCINST_STOPSERVICE (0x00000200)")] + public const int SPSVCINST_STOPSERVICE = (0x00000200); + + [NativeTypeName("#define SPSVCINST_CLOBBER_SECURITY (0x00000400)")] + public const int SPSVCINST_CLOBBER_SECURITY = (0x00000400); + + [NativeTypeName("#define SPSVCINST_STARTSERVICE (0x00000800)")] + public const int SPSVCINST_STARTSERVICE = (0x00000800); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_REQUIREDPRIVILEGES (0x00001000)")] + public const int SPSVCINST_NOCLOBBER_REQUIREDPRIVILEGES = (0x00001000); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_TRIGGERS (0x00002000)")] + public const int SPSVCINST_NOCLOBBER_TRIGGERS = (0x00002000); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_SERVICESIDTYPE (0x00004000)")] + public const int SPSVCINST_NOCLOBBER_SERVICESIDTYPE = (0x00004000); + + [NativeTypeName("#define SPSVCINST_NOCLOBBER_DELAYEDAUTOSTART (0x00008000)")] + public const int SPSVCINST_NOCLOBBER_DELAYEDAUTOSTART = (0x00008000); + + [NativeTypeName("#define SPSVCINST_UNIQUE_NAME (0x00010000)")] + public const int SPSVCINST_UNIQUE_NAME = (0x00010000); + } +} diff --git a/sources/Interop/Windows/Windows/um/SetupAPI/Windows.cs b/sources/Interop/Windows/Windows/um/SetupAPI/Windows.cs index 670aedf917..6172d23c13 100644 --- a/sources/Interop/Windows/Windows/um/SetupAPI/Windows.cs +++ b/sources/Interop/Windows/Windows/um/SetupAPI/Windows.cs @@ -1046,210 +1046,6 @@ public static unsafe partial class Windows [NativeTypeName("#define INF_STYLE_CACHE_IGNORE 0x00000040")] public const int INF_STYLE_CACHE_IGNORE = 0x00000040; - [NativeTypeName("#define DIRID_ABSOLUTE -1")] - public const int DIRID_ABSOLUTE = -1; - - [NativeTypeName("#define DIRID_ABSOLUTE_16BIT 0xffff")] - public const int DIRID_ABSOLUTE_16BIT = 0xffff; - - [NativeTypeName("#define DIRID_NULL 0")] - public const int DIRID_NULL = 0; - - [NativeTypeName("#define DIRID_SRCPATH 1")] - public const int DIRID_SRCPATH = 1; - - [NativeTypeName("#define DIRID_WINDOWS 10")] - public const int DIRID_WINDOWS = 10; - - [NativeTypeName("#define DIRID_SYSTEM 11")] - public const int DIRID_SYSTEM = 11; - - [NativeTypeName("#define DIRID_DRIVERS 12")] - public const int DIRID_DRIVERS = 12; - - [NativeTypeName("#define DIRID_IOSUBSYS DIRID_DRIVERS")] - public const int DIRID_IOSUBSYS = 12; - - [NativeTypeName("#define DIRID_DRIVER_STORE 13")] - public const int DIRID_DRIVER_STORE = 13; - - [NativeTypeName("#define DIRID_INF 17")] - public const int DIRID_INF = 17; - - [NativeTypeName("#define DIRID_HELP 18")] - public const int DIRID_HELP = 18; - - [NativeTypeName("#define DIRID_FONTS 20")] - public const int DIRID_FONTS = 20; - - [NativeTypeName("#define DIRID_VIEWERS 21")] - public const int DIRID_VIEWERS = 21; - - [NativeTypeName("#define DIRID_COLOR 23")] - public const int DIRID_COLOR = 23; - - [NativeTypeName("#define DIRID_APPS 24")] - public const int DIRID_APPS = 24; - - [NativeTypeName("#define DIRID_SHARED 25")] - public const int DIRID_SHARED = 25; - - [NativeTypeName("#define DIRID_BOOT 30")] - public const int DIRID_BOOT = 30; - - [NativeTypeName("#define DIRID_SYSTEM16 50")] - public const int DIRID_SYSTEM16 = 50; - - [NativeTypeName("#define DIRID_SPOOL 51")] - public const int DIRID_SPOOL = 51; - - [NativeTypeName("#define DIRID_SPOOLDRIVERS 52")] - public const int DIRID_SPOOLDRIVERS = 52; - - [NativeTypeName("#define DIRID_USERPROFILE 53")] - public const int DIRID_USERPROFILE = 53; - - [NativeTypeName("#define DIRID_LOADER 54")] - public const int DIRID_LOADER = 54; - - [NativeTypeName("#define DIRID_PRINTPROCESSOR 55")] - public const int DIRID_PRINTPROCESSOR = 55; - - [NativeTypeName("#define DIRID_DEFAULT DIRID_SYSTEM")] - public const int DIRID_DEFAULT = 11; - - [NativeTypeName("#define DIRID_COMMON_STARTMENU 16406")] - public const int DIRID_COMMON_STARTMENU = 16406; - - [NativeTypeName("#define DIRID_COMMON_PROGRAMS 16407")] - public const int DIRID_COMMON_PROGRAMS = 16407; - - [NativeTypeName("#define DIRID_COMMON_STARTUP 16408")] - public const int DIRID_COMMON_STARTUP = 16408; - - [NativeTypeName("#define DIRID_COMMON_DESKTOPDIRECTORY 16409")] - public const int DIRID_COMMON_DESKTOPDIRECTORY = 16409; - - [NativeTypeName("#define DIRID_COMMON_FAVORITES 16415")] - public const int DIRID_COMMON_FAVORITES = 16415; - - [NativeTypeName("#define DIRID_COMMON_APPDATA 16419")] - public const int DIRID_COMMON_APPDATA = 16419; - - [NativeTypeName("#define DIRID_PROGRAM_FILES 16422")] - public const int DIRID_PROGRAM_FILES = 16422; - - [NativeTypeName("#define DIRID_SYSTEM_X86 16425")] - public const int DIRID_SYSTEM_X86 = 16425; - - [NativeTypeName("#define DIRID_PROGRAM_FILES_X86 16426")] - public const int DIRID_PROGRAM_FILES_X86 = 16426; - - [NativeTypeName("#define DIRID_PROGRAM_FILES_COMMON 16427")] - public const int DIRID_PROGRAM_FILES_COMMON = 16427; - - [NativeTypeName("#define DIRID_PROGRAM_FILES_COMMONX86 16428")] - public const int DIRID_PROGRAM_FILES_COMMONX86 = 16428; - - [NativeTypeName("#define DIRID_COMMON_TEMPLATES 16429")] - public const int DIRID_COMMON_TEMPLATES = 16429; - - [NativeTypeName("#define DIRID_COMMON_DOCUMENTS 16430")] - public const int DIRID_COMMON_DOCUMENTS = 16430; - - [NativeTypeName("#define DIRID_USER 0x8000")] - public const int DIRID_USER = 0x8000; - - [NativeTypeName("#define SPFILENOTIFY_STARTQUEUE 0x00000001")] - public const int SPFILENOTIFY_STARTQUEUE = 0x00000001; - - [NativeTypeName("#define SPFILENOTIFY_ENDQUEUE 0x00000002")] - public const int SPFILENOTIFY_ENDQUEUE = 0x00000002; - - [NativeTypeName("#define SPFILENOTIFY_STARTSUBQUEUE 0x00000003")] - public const int SPFILENOTIFY_STARTSUBQUEUE = 0x00000003; - - [NativeTypeName("#define SPFILENOTIFY_ENDSUBQUEUE 0x00000004")] - public const int SPFILENOTIFY_ENDSUBQUEUE = 0x00000004; - - [NativeTypeName("#define SPFILENOTIFY_STARTDELETE 0x00000005")] - public const int SPFILENOTIFY_STARTDELETE = 0x00000005; - - [NativeTypeName("#define SPFILENOTIFY_ENDDELETE 0x00000006")] - public const int SPFILENOTIFY_ENDDELETE = 0x00000006; - - [NativeTypeName("#define SPFILENOTIFY_DELETEERROR 0x00000007")] - public const int SPFILENOTIFY_DELETEERROR = 0x00000007; - - [NativeTypeName("#define SPFILENOTIFY_STARTRENAME 0x00000008")] - public const int SPFILENOTIFY_STARTRENAME = 0x00000008; - - [NativeTypeName("#define SPFILENOTIFY_ENDRENAME 0x00000009")] - public const int SPFILENOTIFY_ENDRENAME = 0x00000009; - - [NativeTypeName("#define SPFILENOTIFY_RENAMEERROR 0x0000000a")] - public const int SPFILENOTIFY_RENAMEERROR = 0x0000000a; - - [NativeTypeName("#define SPFILENOTIFY_STARTCOPY 0x0000000b")] - public const int SPFILENOTIFY_STARTCOPY = 0x0000000b; - - [NativeTypeName("#define SPFILENOTIFY_ENDCOPY 0x0000000c")] - public const int SPFILENOTIFY_ENDCOPY = 0x0000000c; - - [NativeTypeName("#define SPFILENOTIFY_COPYERROR 0x0000000d")] - public const int SPFILENOTIFY_COPYERROR = 0x0000000d; - - [NativeTypeName("#define SPFILENOTIFY_NEEDMEDIA 0x0000000e")] - public const int SPFILENOTIFY_NEEDMEDIA = 0x0000000e; - - [NativeTypeName("#define SPFILENOTIFY_QUEUESCAN 0x0000000f")] - public const int SPFILENOTIFY_QUEUESCAN = 0x0000000f; - - [NativeTypeName("#define SPFILENOTIFY_CABINETINFO 0x00000010")] - public const int SPFILENOTIFY_CABINETINFO = 0x00000010; - - [NativeTypeName("#define SPFILENOTIFY_FILEINCABINET 0x00000011")] - public const int SPFILENOTIFY_FILEINCABINET = 0x00000011; - - [NativeTypeName("#define SPFILENOTIFY_NEEDNEWCABINET 0x00000012")] - public const int SPFILENOTIFY_NEEDNEWCABINET = 0x00000012; - - [NativeTypeName("#define SPFILENOTIFY_FILEEXTRACTED 0x00000013")] - public const int SPFILENOTIFY_FILEEXTRACTED = 0x00000013; - - [NativeTypeName("#define SPFILENOTIFY_FILEOPDELAYED 0x00000014")] - public const int SPFILENOTIFY_FILEOPDELAYED = 0x00000014; - - [NativeTypeName("#define SPFILENOTIFY_STARTBACKUP 0x00000015")] - public const int SPFILENOTIFY_STARTBACKUP = 0x00000015; - - [NativeTypeName("#define SPFILENOTIFY_BACKUPERROR 0x00000016")] - public const int SPFILENOTIFY_BACKUPERROR = 0x00000016; - - [NativeTypeName("#define SPFILENOTIFY_ENDBACKUP 0x00000017")] - public const int SPFILENOTIFY_ENDBACKUP = 0x00000017; - - [NativeTypeName("#define SPFILENOTIFY_QUEUESCAN_EX 0x00000018")] - public const int SPFILENOTIFY_QUEUESCAN_EX = 0x00000018; - - [NativeTypeName("#define SPFILENOTIFY_STARTREGISTRATION 0x00000019")] - public const int SPFILENOTIFY_STARTREGISTRATION = 0x00000019; - - [NativeTypeName("#define SPFILENOTIFY_ENDREGISTRATION 0x00000020")] - public const int SPFILENOTIFY_ENDREGISTRATION = 0x00000020; - - [NativeTypeName("#define SPFILENOTIFY_QUEUESCAN_SIGNERINFO 0x00000040")] - public const int SPFILENOTIFY_QUEUESCAN_SIGNERINFO = 0x00000040; - - [NativeTypeName("#define SPFILENOTIFY_LANGMISMATCH 0x00010000")] - public const int SPFILENOTIFY_LANGMISMATCH = 0x00010000; - - [NativeTypeName("#define SPFILENOTIFY_TARGETEXISTS 0x00020000")] - public const int SPFILENOTIFY_TARGETEXISTS = 0x00020000; - - [NativeTypeName("#define SPFILENOTIFY_TARGETNEWER 0x00040000")] - public const int SPFILENOTIFY_TARGETNEWER = 0x00040000; - [NativeTypeName("#define FILEOP_COPY 0")] public const int FILEOP_COPY = 0; @@ -1277,72 +1073,12 @@ public static unsafe partial class Windows [NativeTypeName("#define FILEOP_NEWPATH 4")] public const int FILEOP_NEWPATH = 4; - [NativeTypeName("#define COPYFLG_WARN_IF_SKIP 0x00000001")] - public const int COPYFLG_WARN_IF_SKIP = 0x00000001; - - [NativeTypeName("#define COPYFLG_NOSKIP 0x00000002")] - public const int COPYFLG_NOSKIP = 0x00000002; - - [NativeTypeName("#define COPYFLG_NOVERSIONCHECK 0x00000004")] - public const int COPYFLG_NOVERSIONCHECK = 0x00000004; - - [NativeTypeName("#define COPYFLG_FORCE_FILE_IN_USE 0x00000008")] - public const int COPYFLG_FORCE_FILE_IN_USE = 0x00000008; - - [NativeTypeName("#define COPYFLG_NO_OVERWRITE 0x00000010")] - public const int COPYFLG_NO_OVERWRITE = 0x00000010; - - [NativeTypeName("#define COPYFLG_NO_VERSION_DIALOG 0x00000020")] - public const int COPYFLG_NO_VERSION_DIALOG = 0x00000020; - - [NativeTypeName("#define COPYFLG_OVERWRITE_OLDER_ONLY 0x00000040")] - public const int COPYFLG_OVERWRITE_OLDER_ONLY = 0x00000040; - - [NativeTypeName("#define COPYFLG_PROTECTED_WINDOWS_DRIVER_FILE 0x00000100")] - public const int COPYFLG_PROTECTED_WINDOWS_DRIVER_FILE = 0x00000100; - - [NativeTypeName("#define COPYFLG_REPLACEONLY 0x00000400")] - public const int COPYFLG_REPLACEONLY = 0x00000400; - - [NativeTypeName("#define COPYFLG_NODECOMP 0x00000800")] - public const int COPYFLG_NODECOMP = 0x00000800; - - [NativeTypeName("#define COPYFLG_REPLACE_BOOT_FILE 0x00001000")] - public const int COPYFLG_REPLACE_BOOT_FILE = 0x00001000; - - [NativeTypeName("#define COPYFLG_NOPRUNE 0x00002000")] - public const int COPYFLG_NOPRUNE = 0x00002000; - - [NativeTypeName("#define COPYFLG_IN_USE_TRY_RENAME 0x00004000")] - public const int COPYFLG_IN_USE_TRY_RENAME = 0x00004000; - [NativeTypeName("#define DELFLG_IN_USE 0x00000001")] public const int DELFLG_IN_USE = 0x00000001; [NativeTypeName("#define DELFLG_IN_USE1 0x00010000")] public const int DELFLG_IN_USE1 = 0x00010000; - [NativeTypeName("#define SPREG_SUCCESS 0x00000000")] - public const int SPREG_SUCCESS = 0x00000000; - - [NativeTypeName("#define SPREG_LOADLIBRARY 0x00000001")] - public const int SPREG_LOADLIBRARY = 0x00000001; - - [NativeTypeName("#define SPREG_GETPROCADDR 0x00000002")] - public const int SPREG_GETPROCADDR = 0x00000002; - - [NativeTypeName("#define SPREG_REGSVR 0x00000003")] - public const int SPREG_REGSVR = 0x00000003; - - [NativeTypeName("#define SPREG_DLLINSTALL 0x00000004")] - public const int SPREG_DLLINSTALL = 0x00000004; - - [NativeTypeName("#define SPREG_TIMEOUT 0x00000005")] - public const int SPREG_TIMEOUT = 0x00000005; - - [NativeTypeName("#define SPREG_UNKNOWN 0xFFFFFFFF")] - public const uint SPREG_UNKNOWN = 0xFFFFFFFF; - [NativeTypeName("#define SPINT_ACTIVE 0x00000001")] public const int SPINT_ACTIVE = 0x00000001; @@ -1361,135 +1097,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SPID_REMOVED SPINT_REMOVED")] public const int SPID_REMOVED = 0x00000004; - [NativeTypeName("#define DIF_SELECTDEVICE 0x00000001")] - public const int DIF_SELECTDEVICE = 0x00000001; - - [NativeTypeName("#define DIF_INSTALLDEVICE 0x00000002")] - public const int DIF_INSTALLDEVICE = 0x00000002; - - [NativeTypeName("#define DIF_ASSIGNRESOURCES 0x00000003")] - public const int DIF_ASSIGNRESOURCES = 0x00000003; - - [NativeTypeName("#define DIF_PROPERTIES 0x00000004")] - public const int DIF_PROPERTIES = 0x00000004; - - [NativeTypeName("#define DIF_REMOVE 0x00000005")] - public const int DIF_REMOVE = 0x00000005; - - [NativeTypeName("#define DIF_FIRSTTIMESETUP 0x00000006")] - public const int DIF_FIRSTTIMESETUP = 0x00000006; - - [NativeTypeName("#define DIF_FOUNDDEVICE 0x00000007")] - public const int DIF_FOUNDDEVICE = 0x00000007; - - [NativeTypeName("#define DIF_SELECTCLASSDRIVERS 0x00000008")] - public const int DIF_SELECTCLASSDRIVERS = 0x00000008; - - [NativeTypeName("#define DIF_VALIDATECLASSDRIVERS 0x00000009")] - public const int DIF_VALIDATECLASSDRIVERS = 0x00000009; - - [NativeTypeName("#define DIF_INSTALLCLASSDRIVERS 0x0000000A")] - public const int DIF_INSTALLCLASSDRIVERS = 0x0000000A; - - [NativeTypeName("#define DIF_CALCDISKSPACE 0x0000000B")] - public const int DIF_CALCDISKSPACE = 0x0000000B; - - [NativeTypeName("#define DIF_DESTROYPRIVATEDATA 0x0000000C")] - public const int DIF_DESTROYPRIVATEDATA = 0x0000000C; - - [NativeTypeName("#define DIF_VALIDATEDRIVER 0x0000000D")] - public const int DIF_VALIDATEDRIVER = 0x0000000D; - - [NativeTypeName("#define DIF_DETECT 0x0000000F")] - public const int DIF_DETECT = 0x0000000F; - - [NativeTypeName("#define DIF_INSTALLWIZARD 0x00000010")] - public const int DIF_INSTALLWIZARD = 0x00000010; - - [NativeTypeName("#define DIF_DESTROYWIZARDDATA 0x00000011")] - public const int DIF_DESTROYWIZARDDATA = 0x00000011; - - [NativeTypeName("#define DIF_PROPERTYCHANGE 0x00000012")] - public const int DIF_PROPERTYCHANGE = 0x00000012; - - [NativeTypeName("#define DIF_ENABLECLASS 0x00000013")] - public const int DIF_ENABLECLASS = 0x00000013; - - [NativeTypeName("#define DIF_DETECTVERIFY 0x00000014")] - public const int DIF_DETECTVERIFY = 0x00000014; - - [NativeTypeName("#define DIF_INSTALLDEVICEFILES 0x00000015")] - public const int DIF_INSTALLDEVICEFILES = 0x00000015; - - [NativeTypeName("#define DIF_UNREMOVE 0x00000016")] - public const int DIF_UNREMOVE = 0x00000016; - - [NativeTypeName("#define DIF_SELECTBESTCOMPATDRV 0x00000017")] - public const int DIF_SELECTBESTCOMPATDRV = 0x00000017; - - [NativeTypeName("#define DIF_ALLOW_INSTALL 0x00000018")] - public const int DIF_ALLOW_INSTALL = 0x00000018; - - [NativeTypeName("#define DIF_REGISTERDEVICE 0x00000019")] - public const int DIF_REGISTERDEVICE = 0x00000019; - - [NativeTypeName("#define DIF_NEWDEVICEWIZARD_PRESELECT 0x0000001A")] - public const int DIF_NEWDEVICEWIZARD_PRESELECT = 0x0000001A; - - [NativeTypeName("#define DIF_NEWDEVICEWIZARD_SELECT 0x0000001B")] - public const int DIF_NEWDEVICEWIZARD_SELECT = 0x0000001B; - - [NativeTypeName("#define DIF_NEWDEVICEWIZARD_PREANALYZE 0x0000001C")] - public const int DIF_NEWDEVICEWIZARD_PREANALYZE = 0x0000001C; - - [NativeTypeName("#define DIF_NEWDEVICEWIZARD_POSTANALYZE 0x0000001D")] - public const int DIF_NEWDEVICEWIZARD_POSTANALYZE = 0x0000001D; - - [NativeTypeName("#define DIF_NEWDEVICEWIZARD_FINISHINSTALL 0x0000001E")] - public const int DIF_NEWDEVICEWIZARD_FINISHINSTALL = 0x0000001E; - - [NativeTypeName("#define DIF_UNUSED1 0x0000001F")] - public const int DIF_UNUSED1 = 0x0000001F; - - [NativeTypeName("#define DIF_INSTALLINTERFACES 0x00000020")] - public const int DIF_INSTALLINTERFACES = 0x00000020; - - [NativeTypeName("#define DIF_DETECTCANCEL 0x00000021")] - public const int DIF_DETECTCANCEL = 0x00000021; - - [NativeTypeName("#define DIF_REGISTER_COINSTALLERS 0x00000022")] - public const int DIF_REGISTER_COINSTALLERS = 0x00000022; - - [NativeTypeName("#define DIF_ADDPROPERTYPAGE_ADVANCED 0x00000023")] - public const int DIF_ADDPROPERTYPAGE_ADVANCED = 0x00000023; - - [NativeTypeName("#define DIF_ADDPROPERTYPAGE_BASIC 0x00000024")] - public const int DIF_ADDPROPERTYPAGE_BASIC = 0x00000024; - - [NativeTypeName("#define DIF_RESERVED1 0x00000025")] - public const int DIF_RESERVED1 = 0x00000025; - - [NativeTypeName("#define DIF_TROUBLESHOOTER 0x00000026")] - public const int DIF_TROUBLESHOOTER = 0x00000026; - - [NativeTypeName("#define DIF_POWERMESSAGEWAKE 0x00000027")] - public const int DIF_POWERMESSAGEWAKE = 0x00000027; - - [NativeTypeName("#define DIF_ADDREMOTEPROPERTYPAGE_ADVANCED 0x00000028")] - public const int DIF_ADDREMOTEPROPERTYPAGE_ADVANCED = 0x00000028; - - [NativeTypeName("#define DIF_UPDATEDRIVER_UI 0x00000029")] - public const int DIF_UPDATEDRIVER_UI = 0x00000029; - - [NativeTypeName("#define DIF_FINISHINSTALL_ACTION 0x0000002A")] - public const int DIF_FINISHINSTALL_ACTION = 0x0000002A; - - [NativeTypeName("#define DIF_RESERVED2 0x00000030")] - public const int DIF_RESERVED2 = 0x00000030; - - [NativeTypeName("#define DIF_MOVEDEVICE 0x0000000E")] - public const int DIF_MOVEDEVICE = 0x0000000E; - [NativeTypeName("#define ENABLECLASS_QUERY 0")] public const int ENABLECLASS_QUERY = 0; @@ -1523,51 +1130,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DICS_FLAG_CONFIGGENERAL 0x00000004")] public const int DICS_FLAG_CONFIGGENERAL = 0x00000004; - [NativeTypeName("#define NDW_INSTALLFLAG_DIDFACTDEFS 0x00000001")] - public const int NDW_INSTALLFLAG_DIDFACTDEFS = 0x00000001; - - [NativeTypeName("#define NDW_INSTALLFLAG_HARDWAREALLREADYIN 0x00000002")] - public const int NDW_INSTALLFLAG_HARDWAREALLREADYIN = 0x00000002; - - [NativeTypeName("#define NDW_INSTALLFLAG_NEEDRESTART DI_NEEDRESTART")] - public const int NDW_INSTALLFLAG_NEEDRESTART = 0x00000080; - - [NativeTypeName("#define NDW_INSTALLFLAG_NEEDREBOOT DI_NEEDREBOOT")] - public const int NDW_INSTALLFLAG_NEEDREBOOT = 0x00000100; - - [NativeTypeName("#define NDW_INSTALLFLAG_NEEDSHUTDOWN 0x00000200")] - public const int NDW_INSTALLFLAG_NEEDSHUTDOWN = 0x00000200; - - [NativeTypeName("#define NDW_INSTALLFLAG_EXPRESSINTRO 0x00000400")] - public const int NDW_INSTALLFLAG_EXPRESSINTRO = 0x00000400; - - [NativeTypeName("#define NDW_INSTALLFLAG_SKIPISDEVINSTALLED 0x00000800")] - public const int NDW_INSTALLFLAG_SKIPISDEVINSTALLED = 0x00000800; - - [NativeTypeName("#define NDW_INSTALLFLAG_NODETECTEDDEVS 0x00001000")] - public const int NDW_INSTALLFLAG_NODETECTEDDEVS = 0x00001000; - - [NativeTypeName("#define NDW_INSTALLFLAG_INSTALLSPECIFIC 0x00002000")] - public const int NDW_INSTALLFLAG_INSTALLSPECIFIC = 0x00002000; - - [NativeTypeName("#define NDW_INSTALLFLAG_SKIPCLASSLIST 0x00004000")] - public const int NDW_INSTALLFLAG_SKIPCLASSLIST = 0x00004000; - - [NativeTypeName("#define NDW_INSTALLFLAG_CI_PICKED_OEM 0x00008000")] - public const int NDW_INSTALLFLAG_CI_PICKED_OEM = 0x00008000; - - [NativeTypeName("#define NDW_INSTALLFLAG_PCMCIAMODE 0x00010000")] - public const int NDW_INSTALLFLAG_PCMCIAMODE = 0x00010000; - - [NativeTypeName("#define NDW_INSTALLFLAG_PCMCIADEVICE 0x00020000")] - public const int NDW_INSTALLFLAG_PCMCIADEVICE = 0x00020000; - - [NativeTypeName("#define NDW_INSTALLFLAG_USERCANCEL 0x00040000")] - public const int NDW_INSTALLFLAG_USERCANCEL = 0x00040000; - - [NativeTypeName("#define NDW_INSTALLFLAG_KNOWNCLASS 0x00080000")] - public const int NDW_INSTALLFLAG_KNOWNCLASS = 0x00080000; - [NativeTypeName("#define DYNAWIZ_FLAG_PAGESADDED 0x00000001")] public const int DYNAWIZ_FLAG_PAGESADDED = 0x00000001; @@ -1583,138 +1145,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MIN_IDD_DYNAWIZ_RESOURCE_ID 10000")] public const int MIN_IDD_DYNAWIZ_RESOURCE_ID = 10000; - [NativeTypeName("#define IDD_DYNAWIZ_FIRSTPAGE 10000")] - public const int IDD_DYNAWIZ_FIRSTPAGE = 10000; - - [NativeTypeName("#define IDD_DYNAWIZ_SELECT_PREVPAGE 10001")] - public const int IDD_DYNAWIZ_SELECT_PREVPAGE = 10001; - - [NativeTypeName("#define IDD_DYNAWIZ_SELECT_NEXTPAGE 10002")] - public const int IDD_DYNAWIZ_SELECT_NEXTPAGE = 10002; - - [NativeTypeName("#define IDD_DYNAWIZ_ANALYZE_PREVPAGE 10003")] - public const int IDD_DYNAWIZ_ANALYZE_PREVPAGE = 10003; - - [NativeTypeName("#define IDD_DYNAWIZ_ANALYZE_NEXTPAGE 10004")] - public const int IDD_DYNAWIZ_ANALYZE_NEXTPAGE = 10004; - - [NativeTypeName("#define IDD_DYNAWIZ_SELECTDEV_PAGE 10009")] - public const int IDD_DYNAWIZ_SELECTDEV_PAGE = 10009; - - [NativeTypeName("#define IDD_DYNAWIZ_ANALYZEDEV_PAGE 10010")] - public const int IDD_DYNAWIZ_ANALYZEDEV_PAGE = 10010; - - [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTEDDEVS_PAGE 10011")] - public const int IDD_DYNAWIZ_INSTALLDETECTEDDEVS_PAGE = 10011; - - [NativeTypeName("#define IDD_DYNAWIZ_SELECTCLASS_PAGE 10012")] - public const int IDD_DYNAWIZ_SELECTCLASS_PAGE = 10012; - - [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTED_PREVPAGE 10006")] - public const int IDD_DYNAWIZ_INSTALLDETECTED_PREVPAGE = 10006; - - [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTED_NEXTPAGE 10007")] - public const int IDD_DYNAWIZ_INSTALLDETECTED_NEXTPAGE = 10007; - - [NativeTypeName("#define IDD_DYNAWIZ_INSTALLDETECTED_NODEVS 10008")] - public const int IDD_DYNAWIZ_INSTALLDETECTED_NODEVS = 10008; - - [NativeTypeName("#define DNF_DUPDESC 0x00000001")] - public const int DNF_DUPDESC = 0x00000001; - - [NativeTypeName("#define DNF_OLDDRIVER 0x00000002")] - public const int DNF_OLDDRIVER = 0x00000002; - - [NativeTypeName("#define DNF_EXCLUDEFROMLIST 0x00000004")] - public const int DNF_EXCLUDEFROMLIST = 0x00000004; - - [NativeTypeName("#define DNF_NODRIVER 0x00000008")] - public const int DNF_NODRIVER = 0x00000008; - - [NativeTypeName("#define DNF_LEGACYINF 0x00000010")] - public const int DNF_LEGACYINF = 0x00000010; - - [NativeTypeName("#define DNF_CLASS_DRIVER 0x00000020")] - public const int DNF_CLASS_DRIVER = 0x00000020; - - [NativeTypeName("#define DNF_COMPATIBLE_DRIVER 0x00000040")] - public const int DNF_COMPATIBLE_DRIVER = 0x00000040; - - [NativeTypeName("#define DNF_INET_DRIVER 0x00000080")] - public const int DNF_INET_DRIVER = 0x00000080; - - [NativeTypeName("#define DNF_UNUSED1 0x00000100")] - public const int DNF_UNUSED1 = 0x00000100; - - [NativeTypeName("#define DNF_UNUSED2 0x00000200")] - public const int DNF_UNUSED2 = 0x00000200; - - [NativeTypeName("#define DNF_OLD_INET_DRIVER 0x00000400")] - public const int DNF_OLD_INET_DRIVER = 0x00000400; - - [NativeTypeName("#define DNF_BAD_DRIVER 0x00000800")] - public const int DNF_BAD_DRIVER = 0x00000800; - - [NativeTypeName("#define DNF_DUPPROVIDER 0x00001000")] - public const int DNF_DUPPROVIDER = 0x00001000; - - [NativeTypeName("#define DNF_INF_IS_SIGNED 0x00002000")] - public const int DNF_INF_IS_SIGNED = 0x00002000; - - [NativeTypeName("#define DNF_OEM_F6_INF 0x00004000")] - public const int DNF_OEM_F6_INF = 0x00004000; - - [NativeTypeName("#define DNF_DUPDRIVERVER 0x00008000")] - public const int DNF_DUPDRIVERVER = 0x00008000; - - [NativeTypeName("#define DNF_BASIC_DRIVER 0x00010000")] - public const int DNF_BASIC_DRIVER = 0x00010000; - - [NativeTypeName("#define DNF_AUTHENTICODE_SIGNED 0x00020000")] - public const int DNF_AUTHENTICODE_SIGNED = 0x00020000; - - [NativeTypeName("#define DNF_INSTALLEDDRIVER 0x00040000")] - public const int DNF_INSTALLEDDRIVER = 0x00040000; - - [NativeTypeName("#define DNF_ALWAYSEXCLUDEFROMLIST 0x00080000")] - public const int DNF_ALWAYSEXCLUDEFROMLIST = 0x00080000; - - [NativeTypeName("#define DNF_INBOX_DRIVER 0x00100000")] - public const int DNF_INBOX_DRIVER = 0x00100000; - - [NativeTypeName("#define DNF_REQUESTADDITIONALSOFTWARE 0x00200000")] - public const int DNF_REQUESTADDITIONALSOFTWARE = 0x00200000; - - [NativeTypeName("#define DNF_UNUSED_22 0x00400000")] - public const int DNF_UNUSED_22 = 0x00400000; - - [NativeTypeName("#define DNF_UNUSED_23 0x00800000")] - public const int DNF_UNUSED_23 = 0x00800000; - - [NativeTypeName("#define DNF_UNUSED_24 0x01000000")] - public const int DNF_UNUSED_24 = 0x01000000; - - [NativeTypeName("#define DNF_UNUSED_25 0x02000000")] - public const int DNF_UNUSED_25 = 0x02000000; - - [NativeTypeName("#define DNF_UNUSED_26 0x04000000")] - public const int DNF_UNUSED_26 = 0x04000000; - - [NativeTypeName("#define DNF_UNUSED_27 0x08000000")] - public const int DNF_UNUSED_27 = 0x08000000; - - [NativeTypeName("#define DNF_UNUSED_28 0x10000000")] - public const int DNF_UNUSED_28 = 0x10000000; - - [NativeTypeName("#define DNF_UNUSED_29 0x20000000")] - public const int DNF_UNUSED_29 = 0x20000000; - - [NativeTypeName("#define DNF_UNUSED_30 0x40000000")] - public const int DNF_UNUSED_30 = 0x40000000; - - [NativeTypeName("#define DNF_UNUSED_31 0x80000000")] - public const uint DNF_UNUSED_31 = 0x80000000; - [NativeTypeName("#define DRIVER_HARDWAREID_RANK 0x00000FFF")] public const int DRIVER_HARDWAREID_RANK = 0x00000FFF; @@ -1736,9 +1166,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SPPSR_ENUM_ADV_DEVICE_PROPERTIES 3")] public const int SPPSR_ENUM_ADV_DEVICE_PROPERTIES = 3; - [NativeTypeName("#define EXCEPTION_SPAPI_UNRECOVERABLE_STACK_OVERFLOW ERROR_UNRECOVERABLE_STACK_OVERFLOW")] - public const uint EXCEPTION_SPAPI_UNRECOVERABLE_STACK_OVERFLOW = (0x20000000 | 0xC0000000 | 0x300); - [NativeTypeName("#define INFINFO_INF_SPEC_IS_HINF 1")] public const int INFINFO_INF_SPEC_IS_HINF = 1; @@ -1874,39 +1301,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SetupBackupError SetupBackupErrorW")] public static delegate* SetupBackupError => &SetupBackupErrorW; - [NativeTypeName("#define IDF_NOBROWSE 0x00000001")] - public const int IDF_NOBROWSE = 0x00000001; - - [NativeTypeName("#define IDF_NOSKIP 0x00000002")] - public const int IDF_NOSKIP = 0x00000002; - - [NativeTypeName("#define IDF_NODETAILS 0x00000004")] - public const int IDF_NODETAILS = 0x00000004; - - [NativeTypeName("#define IDF_NOCOMPRESSED 0x00000008")] - public const int IDF_NOCOMPRESSED = 0x00000008; - - [NativeTypeName("#define IDF_CHECKFIRST 0x00000100")] - public const int IDF_CHECKFIRST = 0x00000100; - - [NativeTypeName("#define IDF_NOBEEP 0x00000200")] - public const int IDF_NOBEEP = 0x00000200; - - [NativeTypeName("#define IDF_NOFOREGROUND 0x00000400")] - public const int IDF_NOFOREGROUND = 0x00000400; - - [NativeTypeName("#define IDF_WARNIFSKIP 0x00000800")] - public const int IDF_WARNIFSKIP = 0x00000800; - - [NativeTypeName("#define IDF_NOREMOVABLEMEDIAPROMPT 0x00001000")] - public const int IDF_NOREMOVABLEMEDIAPROMPT = 0x00001000; - - [NativeTypeName("#define IDF_USEDISKNAMEASPROMPT 0x00002000")] - public const int IDF_USEDISKNAMEASPROMPT = 0x00002000; - - [NativeTypeName("#define IDF_OEMDISK 0x80000000")] - public const uint IDF_OEMDISK = 0x80000000; - [NativeTypeName("#define DPROMPT_SUCCESS 0")] public const int DPROMPT_SUCCESS = 0; @@ -1994,57 +1388,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SetupScanFileQueue SetupScanFileQueueW")] public static delegate*, void*, uint*, BOOL> SetupScanFileQueue => &SetupScanFileQueueW; - [NativeTypeName("#define SPQ_SCAN_FILE_PRESENCE 0x00000001")] - public const int SPQ_SCAN_FILE_PRESENCE = 0x00000001; - - [NativeTypeName("#define SPQ_SCAN_FILE_VALIDITY 0x00000002")] - public const int SPQ_SCAN_FILE_VALIDITY = 0x00000002; - - [NativeTypeName("#define SPQ_SCAN_USE_CALLBACK 0x00000004")] - public const int SPQ_SCAN_USE_CALLBACK = 0x00000004; - - [NativeTypeName("#define SPQ_SCAN_USE_CALLBACKEX 0x00000008")] - public const int SPQ_SCAN_USE_CALLBACKEX = 0x00000008; - - [NativeTypeName("#define SPQ_SCAN_INFORM_USER 0x00000010")] - public const int SPQ_SCAN_INFORM_USER = 0x00000010; - - [NativeTypeName("#define SPQ_SCAN_PRUNE_COPY_QUEUE 0x00000020")] - public const int SPQ_SCAN_PRUNE_COPY_QUEUE = 0x00000020; - - [NativeTypeName("#define SPQ_SCAN_USE_CALLBACK_SIGNERINFO 0x00000040")] - public const int SPQ_SCAN_USE_CALLBACK_SIGNERINFO = 0x00000040; - - [NativeTypeName("#define SPQ_SCAN_PRUNE_DELREN 0x00000080")] - public const int SPQ_SCAN_PRUNE_DELREN = 0x00000080; - - [NativeTypeName("#define SPQ_SCAN_FILE_PRESENCE_WITHOUT_SOURCE 0x00000100")] - public const int SPQ_SCAN_FILE_PRESENCE_WITHOUT_SOURCE = 0x00000100; - - [NativeTypeName("#define SPQ_SCAN_FILE_COMPARISON 0x00000200")] - public const int SPQ_SCAN_FILE_COMPARISON = 0x00000200; - - [NativeTypeName("#define SPQ_SCAN_ACTIVATE_DRP 0x00000400")] - public const int SPQ_SCAN_ACTIVATE_DRP = 0x00000400; - - [NativeTypeName("#define SPQ_DELAYED_COPY 0x00000001")] - public const int SPQ_DELAYED_COPY = 0x00000001; - - [NativeTypeName("#define SPQ_FLAG_BACKUP_AWARE 0x00000001")] - public const int SPQ_FLAG_BACKUP_AWARE = 0x00000001; - - [NativeTypeName("#define SPQ_FLAG_ABORT_IF_UNSIGNED 0x00000002")] - public const int SPQ_FLAG_ABORT_IF_UNSIGNED = 0x00000002; - - [NativeTypeName("#define SPQ_FLAG_FILES_MODIFIED 0x00000004")] - public const int SPQ_FLAG_FILES_MODIFIED = 0x00000004; - - [NativeTypeName("#define SPQ_FLAG_DO_SHUFFLEMOVE 0x00000008")] - public const int SPQ_FLAG_DO_SHUFFLEMOVE = 0x00000008; - - [NativeTypeName("#define SPQ_FLAG_VALID 0x0000000F")] - public const int SPQ_FLAG_VALID = 0x0000000F; - [NativeTypeName("#define SPOST_NONE 0")] public const int SPOST_NONE = 0; @@ -2126,111 +1469,9 @@ public static unsafe partial class Windows [NativeTypeName("#define SetupInstallFromInfSection SetupInstallFromInfSectionW")] public static delegate*, void*, HDEVINFO, void*, BOOL> SetupInstallFromInfSection => &SetupInstallFromInfSectionW; - [NativeTypeName("#define SPINST_LOGCONFIG 0x00000001")] - public const int SPINST_LOGCONFIG = 0x00000001; - - [NativeTypeName("#define SPINST_INIFILES 0x00000002")] - public const int SPINST_INIFILES = 0x00000002; - - [NativeTypeName("#define SPINST_REGISTRY 0x00000004")] - public const int SPINST_REGISTRY = 0x00000004; - - [NativeTypeName("#define SPINST_INI2REG 0x00000008")] - public const int SPINST_INI2REG = 0x00000008; - - [NativeTypeName("#define SPINST_FILES 0x00000010")] - public const int SPINST_FILES = 0x00000010; - - [NativeTypeName("#define SPINST_BITREG 0x00000020")] - public const int SPINST_BITREG = 0x00000020; - - [NativeTypeName("#define SPINST_REGSVR 0x00000040")] - public const int SPINST_REGSVR = 0x00000040; - - [NativeTypeName("#define SPINST_UNREGSVR 0x00000080")] - public const int SPINST_UNREGSVR = 0x00000080; - - [NativeTypeName("#define SPINST_PROFILEITEMS 0x00000100")] - public const int SPINST_PROFILEITEMS = 0x00000100; - - [NativeTypeName("#define SPINST_COPYINF 0x00000200")] - public const int SPINST_COPYINF = 0x00000200; - - [NativeTypeName("#define SPINST_PROPERTIES 0x00000400")] - public const int SPINST_PROPERTIES = 0x00000400; - - [NativeTypeName("#define SPINST_ALL 0x000007ff")] - public const int SPINST_ALL = 0x000007ff; - - [NativeTypeName("#define SPINST_SINGLESECTION 0x00010000")] - public const int SPINST_SINGLESECTION = 0x00010000; - - [NativeTypeName("#define SPINST_LOGCONFIG_IS_FORCED 0x00020000")] - public const int SPINST_LOGCONFIG_IS_FORCED = 0x00020000; - - [NativeTypeName("#define SPINST_LOGCONFIGS_ARE_OVERRIDES 0x00040000")] - public const int SPINST_LOGCONFIGS_ARE_OVERRIDES = 0x00040000; - - [NativeTypeName("#define SPINST_REGISTERCALLBACKAWARE 0x00080000")] - public const int SPINST_REGISTERCALLBACKAWARE = 0x00080000; - - [NativeTypeName("#define SPINST_DEVICEINSTALL 0x00100000")] - public const int SPINST_DEVICEINSTALL = 0x00100000; - [NativeTypeName("#define SetupInstallFilesFromInfSection SetupInstallFilesFromInfSectionW")] public static delegate* SetupInstallFilesFromInfSection => &SetupInstallFilesFromInfSectionW; - [NativeTypeName("#define SPSVCINST_TAGTOFRONT (0x00000001)")] - public const int SPSVCINST_TAGTOFRONT = (0x00000001); - - [NativeTypeName("#define SPSVCINST_ASSOCSERVICE (0x00000002)")] - public const int SPSVCINST_ASSOCSERVICE = (0x00000002); - - [NativeTypeName("#define SPSVCINST_DELETEEVENTLOGENTRY (0x00000004)")] - public const int SPSVCINST_DELETEEVENTLOGENTRY = (0x00000004); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_DISPLAYNAME (0x00000008)")] - public const int SPSVCINST_NOCLOBBER_DISPLAYNAME = (0x00000008); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_STARTTYPE (0x00000010)")] - public const int SPSVCINST_NOCLOBBER_STARTTYPE = (0x00000010); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_ERRORCONTROL (0x00000020)")] - public const int SPSVCINST_NOCLOBBER_ERRORCONTROL = (0x00000020); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_LOADORDERGROUP (0x00000040)")] - public const int SPSVCINST_NOCLOBBER_LOADORDERGROUP = (0x00000040); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_DEPENDENCIES (0x00000080)")] - public const int SPSVCINST_NOCLOBBER_DEPENDENCIES = (0x00000080); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_DESCRIPTION (0x00000100)")] - public const int SPSVCINST_NOCLOBBER_DESCRIPTION = (0x00000100); - - [NativeTypeName("#define SPSVCINST_STOPSERVICE (0x00000200)")] - public const int SPSVCINST_STOPSERVICE = (0x00000200); - - [NativeTypeName("#define SPSVCINST_CLOBBER_SECURITY (0x00000400)")] - public const int SPSVCINST_CLOBBER_SECURITY = (0x00000400); - - [NativeTypeName("#define SPSVCINST_STARTSERVICE (0x00000800)")] - public const int SPSVCINST_STARTSERVICE = (0x00000800); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_REQUIREDPRIVILEGES (0x00001000)")] - public const int SPSVCINST_NOCLOBBER_REQUIREDPRIVILEGES = (0x00001000); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_TRIGGERS (0x00002000)")] - public const int SPSVCINST_NOCLOBBER_TRIGGERS = (0x00002000); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_SERVICESIDTYPE (0x00004000)")] - public const int SPSVCINST_NOCLOBBER_SERVICESIDTYPE = (0x00004000); - - [NativeTypeName("#define SPSVCINST_NOCLOBBER_DELAYEDAUTOSTART (0x00008000)")] - public const int SPSVCINST_NOCLOBBER_DELAYEDAUTOSTART = (0x00008000); - - [NativeTypeName("#define SPSVCINST_UNIQUE_NAME (0x00010000)")] - public const int SPSVCINST_UNIQUE_NAME = (0x00010000); - [NativeTypeName("#define SetupInstallServicesFromInfSection SetupInstallServicesFromInfSectionW")] public static delegate* SetupInstallServicesFromInfSection => &SetupInstallServicesFromInfSectionW; @@ -2516,120 +1757,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SetupDiSetClassPropertyEx SetupDiSetClassPropertyExW")] public static delegate* SetupDiSetClassPropertyEx => &SetupDiSetClassPropertyExW; - [NativeTypeName("#define SPDRP_DEVICEDESC (0x00000000)")] - public const int SPDRP_DEVICEDESC = (0x00000000); - - [NativeTypeName("#define SPDRP_HARDWAREID (0x00000001)")] - public const int SPDRP_HARDWAREID = (0x00000001); - - [NativeTypeName("#define SPDRP_COMPATIBLEIDS (0x00000002)")] - public const int SPDRP_COMPATIBLEIDS = (0x00000002); - - [NativeTypeName("#define SPDRP_UNUSED0 (0x00000003)")] - public const int SPDRP_UNUSED0 = (0x00000003); - - [NativeTypeName("#define SPDRP_SERVICE (0x00000004)")] - public const int SPDRP_SERVICE = (0x00000004); - - [NativeTypeName("#define SPDRP_UNUSED1 (0x00000005)")] - public const int SPDRP_UNUSED1 = (0x00000005); - - [NativeTypeName("#define SPDRP_UNUSED2 (0x00000006)")] - public const int SPDRP_UNUSED2 = (0x00000006); - - [NativeTypeName("#define SPDRP_CLASS (0x00000007)")] - public const int SPDRP_CLASS = (0x00000007); - - [NativeTypeName("#define SPDRP_CLASSGUID (0x00000008)")] - public const int SPDRP_CLASSGUID = (0x00000008); - - [NativeTypeName("#define SPDRP_DRIVER (0x00000009)")] - public const int SPDRP_DRIVER = (0x00000009); - - [NativeTypeName("#define SPDRP_CONFIGFLAGS (0x0000000A)")] - public const int SPDRP_CONFIGFLAGS = (0x0000000A); - - [NativeTypeName("#define SPDRP_MFG (0x0000000B)")] - public const int SPDRP_MFG = (0x0000000B); - - [NativeTypeName("#define SPDRP_FRIENDLYNAME (0x0000000C)")] - public const int SPDRP_FRIENDLYNAME = (0x0000000C); - - [NativeTypeName("#define SPDRP_LOCATION_INFORMATION (0x0000000D)")] - public const int SPDRP_LOCATION_INFORMATION = (0x0000000D); - - [NativeTypeName("#define SPDRP_PHYSICAL_DEVICE_OBJECT_NAME (0x0000000E)")] - public const int SPDRP_PHYSICAL_DEVICE_OBJECT_NAME = (0x0000000E); - - [NativeTypeName("#define SPDRP_CAPABILITIES (0x0000000F)")] - public const int SPDRP_CAPABILITIES = (0x0000000F); - - [NativeTypeName("#define SPDRP_UI_NUMBER (0x00000010)")] - public const int SPDRP_UI_NUMBER = (0x00000010); - - [NativeTypeName("#define SPDRP_UPPERFILTERS (0x00000011)")] - public const int SPDRP_UPPERFILTERS = (0x00000011); - - [NativeTypeName("#define SPDRP_LOWERFILTERS (0x00000012)")] - public const int SPDRP_LOWERFILTERS = (0x00000012); - - [NativeTypeName("#define SPDRP_BUSTYPEGUID (0x00000013)")] - public const int SPDRP_BUSTYPEGUID = (0x00000013); - - [NativeTypeName("#define SPDRP_LEGACYBUSTYPE (0x00000014)")] - public const int SPDRP_LEGACYBUSTYPE = (0x00000014); - - [NativeTypeName("#define SPDRP_BUSNUMBER (0x00000015)")] - public const int SPDRP_BUSNUMBER = (0x00000015); - - [NativeTypeName("#define SPDRP_ENUMERATOR_NAME (0x00000016)")] - public const int SPDRP_ENUMERATOR_NAME = (0x00000016); - - [NativeTypeName("#define SPDRP_SECURITY (0x00000017)")] - public const int SPDRP_SECURITY = (0x00000017); - - [NativeTypeName("#define SPDRP_SECURITY_SDS (0x00000018)")] - public const int SPDRP_SECURITY_SDS = (0x00000018); - - [NativeTypeName("#define SPDRP_DEVTYPE (0x00000019)")] - public const int SPDRP_DEVTYPE = (0x00000019); - - [NativeTypeName("#define SPDRP_EXCLUSIVE (0x0000001A)")] - public const int SPDRP_EXCLUSIVE = (0x0000001A); - - [NativeTypeName("#define SPDRP_CHARACTERISTICS (0x0000001B)")] - public const int SPDRP_CHARACTERISTICS = (0x0000001B); - - [NativeTypeName("#define SPDRP_ADDRESS (0x0000001C)")] - public const int SPDRP_ADDRESS = (0x0000001C); - - [NativeTypeName("#define SPDRP_UI_NUMBER_DESC_FORMAT (0X0000001D)")] - public const int SPDRP_UI_NUMBER_DESC_FORMAT = (0X0000001D); - - [NativeTypeName("#define SPDRP_DEVICE_POWER_DATA (0x0000001E)")] - public const int SPDRP_DEVICE_POWER_DATA = (0x0000001E); - - [NativeTypeName("#define SPDRP_REMOVAL_POLICY (0x0000001F)")] - public const int SPDRP_REMOVAL_POLICY = (0x0000001F); - - [NativeTypeName("#define SPDRP_REMOVAL_POLICY_HW_DEFAULT (0x00000020)")] - public const int SPDRP_REMOVAL_POLICY_HW_DEFAULT = (0x00000020); - - [NativeTypeName("#define SPDRP_REMOVAL_POLICY_OVERRIDE (0x00000021)")] - public const int SPDRP_REMOVAL_POLICY_OVERRIDE = (0x00000021); - - [NativeTypeName("#define SPDRP_INSTALL_STATE (0x00000022)")] - public const int SPDRP_INSTALL_STATE = (0x00000022); - - [NativeTypeName("#define SPDRP_LOCATION_PATHS (0x00000023)")] - public const int SPDRP_LOCATION_PATHS = (0x00000023); - - [NativeTypeName("#define SPDRP_BASE_CONTAINERID (0x00000024)")] - public const int SPDRP_BASE_CONTAINERID = (0x00000024); - - [NativeTypeName("#define SPDRP_MAXIMUM_PROPERTY (0x00000025)")] - public const int SPDRP_MAXIMUM_PROPERTY = (0x00000025); - [NativeTypeName("#define SPCRP_UPPERFILTERS (0x00000011)")] public const int SPCRP_UPPERFILTERS = (0x00000011); @@ -2711,39 +1838,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SetupDiGetClassDevPropertySheets SetupDiGetClassDevPropertySheetsW")] public static delegate* SetupDiGetClassDevPropertySheets => &SetupDiGetClassDevPropertySheetsW; - [NativeTypeName("#define IDI_RESOURCEFIRST 159")] - public const int IDI_RESOURCEFIRST = 159; - - [NativeTypeName("#define IDI_RESOURCE 159")] - public const int IDI_RESOURCE = 159; - - [NativeTypeName("#define IDI_RESOURCELAST 161")] - public const int IDI_RESOURCELAST = 161; - - [NativeTypeName("#define IDI_RESOURCEOVERLAYFIRST 161")] - public const int IDI_RESOURCEOVERLAYFIRST = 161; - - [NativeTypeName("#define IDI_RESOURCEOVERLAYLAST 161")] - public const int IDI_RESOURCEOVERLAYLAST = 161; - - [NativeTypeName("#define IDI_CONFLICT 161")] - public const int IDI_CONFLICT = 161; - - [NativeTypeName("#define IDI_CLASSICON_OVERLAYFIRST 500")] - public const int IDI_CLASSICON_OVERLAYFIRST = 500; - - [NativeTypeName("#define IDI_CLASSICON_OVERLAYLAST 502")] - public const int IDI_CLASSICON_OVERLAYLAST = 502; - - [NativeTypeName("#define IDI_PROBLEM_OVL 500")] - public const int IDI_PROBLEM_OVL = 500; - - [NativeTypeName("#define IDI_DISABLED_OVL 501")] - public const int IDI_DISABLED_OVL = 501; - - [NativeTypeName("#define IDI_FORCED_OVL 502")] - public const int IDI_FORCED_OVL = 502; - [NativeTypeName("#define SetupDiClassNameFromGuid SetupDiClassNameFromGuidW")] public static delegate* SetupDiClassNameFromGuid => &SetupDiClassNameFromGuidW; @@ -2780,39 +1874,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SetupEnumInfSections SetupEnumInfSectionsW")] public static delegate* SetupEnumInfSections => &SetupEnumInfSectionsW; - [NativeTypeName("#define SIGNERSCORE_UNKNOWN 0xFF000000")] - public const uint SIGNERSCORE_UNKNOWN = 0xFF000000; - - [NativeTypeName("#define SIGNERSCORE_W9X_SUSPECT 0xC0000000")] - public const uint SIGNERSCORE_W9X_SUSPECT = 0xC0000000; - - [NativeTypeName("#define SIGNERSCORE_UNSIGNED 0x80000000")] - public const uint SIGNERSCORE_UNSIGNED = 0x80000000; - - [NativeTypeName("#define SIGNERSCORE_AUTHENTICODE 0x0F000000")] - public const int SIGNERSCORE_AUTHENTICODE = 0x0F000000; - - [NativeTypeName("#define SIGNERSCORE_WHQL 0x0D000005")] - public const int SIGNERSCORE_WHQL = 0x0D000005; - - [NativeTypeName("#define SIGNERSCORE_UNCLASSIFIED 0x0D000004")] - public const int SIGNERSCORE_UNCLASSIFIED = 0x0D000004; - - [NativeTypeName("#define SIGNERSCORE_INBOX 0x0D000003")] - public const int SIGNERSCORE_INBOX = 0x0D000003; - - [NativeTypeName("#define SIGNERSCORE_LOGO_STANDARD 0x0D000002")] - public const int SIGNERSCORE_LOGO_STANDARD = 0x0D000002; - - [NativeTypeName("#define SIGNERSCORE_LOGO_PREMIUM 0x0D000001")] - public const int SIGNERSCORE_LOGO_PREMIUM = 0x0D000001; - - [NativeTypeName("#define SIGNERSCORE_MASK 0xFF000000")] - public const uint SIGNERSCORE_MASK = 0xFF000000; - - [NativeTypeName("#define SIGNERSCORE_SIGNED_MASK 0xF0000000")] - public const uint SIGNERSCORE_SIGNED_MASK = 0xF0000000; - [NativeTypeName("#define SetupVerifyInfFile SetupVerifyInfFileW")] public static delegate* SetupVerifyInfFile => &SetupVerifyInfFileW; diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/CLSID.Manual.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/CLSID.Manual.cs new file mode 100644 index 0000000000..4608f79239 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/CLSID.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class CLSID + { + public static ref readonly Guid CLSID_PublishingWizard + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3C, 0x16, 0x33, 0x6B, + 0xA5, 0x76, + 0x6C, 0x4B, + 0xBF, + 0x21, + 0x45, + 0xDE, + 0x9C, + 0xD5, + 0x03, + 0xA1 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/IDD.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/IDD.cs new file mode 100644 index 0000000000..6973a6371c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/IDD.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IDD + { + [NativeTypeName("#define IDD_WIZEXTN_FIRST 0x5000")] + public const int IDD_WIZEXTN_FIRST = 0x5000; + + [NativeTypeName("#define IDD_WIZEXTN_LAST 0x5100")] + public const int IDD_WIZEXTN_LAST = 0x5100; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.Manual.cs index b88ede69c4..96c5f2374b 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.Manual.cs @@ -3,9 +3,6 @@ // Ported from um/ShObjIdl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using static TerraFX.Interop.Windows.SIGDN; namespace TerraFX.Interop.Windows @@ -42,28 +39,5 @@ public static HRESULT SHResolveFolderPathInLibrary(IShellLibrary* plib, [NativeT return hr; } - - public static ref readonly Guid CLSID_PublishingWizard - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3C, 0x16, 0x33, 0x6B, - 0xA5, 0x76, - 0x6C, 0x4B, - 0xBF, - 0x21, - 0x45, - 0xDE, - 0x9C, - 0xD5, - 0x03, - 0xA1 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } } } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.cs b/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.cs index 44957ee084..d42a1be712 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl/Windows.cs @@ -49,12 +49,6 @@ public static ref readonly Guid SID_SCommandBarState } } - [NativeTypeName("#define IDD_WIZEXTN_FIRST 0x5000")] - public const int IDD_WIZEXTN_FIRST = 0x5000; - - [NativeTypeName("#define IDD_WIZEXTN_LAST 0x5100")] - public const int IDD_WIZEXTN_LAST = 0x5100; - [NativeTypeName("#define SID_WizardSite IID_IWizardSite")] public static ref readonly Guid SID_WizardSite => ref IID_IWizardSite; diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/ARCONTENT.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ARCONTENT.cs new file mode 100644 index 0000000000..482e947e77 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/ARCONTENT.cs @@ -0,0 +1,79 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ARCONTENT + { + [NativeTypeName("#define ARCONTENT_AUTORUNINF 0x00000002")] + public const int ARCONTENT_AUTORUNINF = 0x00000002; + + [NativeTypeName("#define ARCONTENT_AUDIOCD 0x00000004")] + public const int ARCONTENT_AUDIOCD = 0x00000004; + + [NativeTypeName("#define ARCONTENT_DVDMOVIE 0x00000008")] + public const int ARCONTENT_DVDMOVIE = 0x00000008; + + [NativeTypeName("#define ARCONTENT_BLANKCD 0x00000010")] + public const int ARCONTENT_BLANKCD = 0x00000010; + + [NativeTypeName("#define ARCONTENT_BLANKDVD 0x00000020")] + public const int ARCONTENT_BLANKDVD = 0x00000020; + + [NativeTypeName("#define ARCONTENT_UNKNOWNCONTENT 0x00000040")] + public const int ARCONTENT_UNKNOWNCONTENT = 0x00000040; + + [NativeTypeName("#define ARCONTENT_AUTOPLAYPIX 0x00000080")] + public const int ARCONTENT_AUTOPLAYPIX = 0x00000080; + + [NativeTypeName("#define ARCONTENT_AUTOPLAYMUSIC 0x00000100")] + public const int ARCONTENT_AUTOPLAYMUSIC = 0x00000100; + + [NativeTypeName("#define ARCONTENT_AUTOPLAYVIDEO 0x00000200")] + public const int ARCONTENT_AUTOPLAYVIDEO = 0x00000200; + + [NativeTypeName("#define ARCONTENT_VCD 0x00000400")] + public const int ARCONTENT_VCD = 0x00000400; + + [NativeTypeName("#define ARCONTENT_SVCD 0x00000800")] + public const int ARCONTENT_SVCD = 0x00000800; + + [NativeTypeName("#define ARCONTENT_DVDAUDIO 0x00001000")] + public const int ARCONTENT_DVDAUDIO = 0x00001000; + + [NativeTypeName("#define ARCONTENT_BLANKBD 0x00002000")] + public const int ARCONTENT_BLANKBD = 0x00002000; + + [NativeTypeName("#define ARCONTENT_BLURAY 0x00004000")] + public const int ARCONTENT_BLURAY = 0x00004000; + + [NativeTypeName("#define ARCONTENT_CAMERASTORAGE 0x00008000")] + public const int ARCONTENT_CAMERASTORAGE = 0x00008000; + + [NativeTypeName("#define ARCONTENT_CUSTOMEVENT 0x00010000")] + public const int ARCONTENT_CUSTOMEVENT = 0x00010000; + + [NativeTypeName("#define ARCONTENT_NONE 0x00000000")] + public const int ARCONTENT_NONE = 0x00000000; + + [NativeTypeName("#define ARCONTENT_MASK 0x0001FFFE")] + public const int ARCONTENT_MASK = 0x0001FFFE; + + [NativeTypeName("#define ARCONTENT_PHASE_UNKNOWN 0x00000000")] + public const int ARCONTENT_PHASE_UNKNOWN = 0x00000000; + + [NativeTypeName("#define ARCONTENT_PHASE_PRESNIFF 0x10000000")] + public const int ARCONTENT_PHASE_PRESNIFF = 0x10000000; + + [NativeTypeName("#define ARCONTENT_PHASE_SNIFFING 0x20000000")] + public const int ARCONTENT_PHASE_SNIFFING = 0x20000000; + + [NativeTypeName("#define ARCONTENT_PHASE_FINAL 0x40000000")] + public const int ARCONTENT_PHASE_FINAL = 0x40000000; + + [NativeTypeName("#define ARCONTENT_PHASE_MASK 0x70000000")] + public const int ARCONTENT_PHASE_MASK = 0x70000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/BSIS.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/BSIS.cs new file mode 100644 index 0000000000..18bb227931 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/BSIS.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BSIS + { + [NativeTypeName("#define BSIS_AUTOGRIPPER 0x00000000")] + public const int BSIS_AUTOGRIPPER = 0x00000000; + + [NativeTypeName("#define BSIS_NOGRIPPER 0x00000001")] + public const int BSIS_NOGRIPPER = 0x00000001; + + [NativeTypeName("#define BSIS_ALWAYSGRIPPER 0x00000002")] + public const int BSIS_ALWAYSGRIPPER = 0x00000002; + + [NativeTypeName("#define BSIS_LEFTALIGN 0x00000004")] + public const int BSIS_LEFTALIGN = 0x00000004; + + [NativeTypeName("#define BSIS_SINGLECLICK 0x00000008")] + public const int BSIS_SINGLECLICK = 0x00000008; + + [NativeTypeName("#define BSIS_NOCONTEXTMENU 0x00000010")] + public const int BSIS_NOCONTEXTMENU = 0x00000010; + + [NativeTypeName("#define BSIS_NODROPTARGET 0x00000020")] + public const int BSIS_NODROPTARGET = 0x00000020; + + [NativeTypeName("#define BSIS_NOCAPTION 0x00000040")] + public const int BSIS_NOCAPTION = 0x00000040; + + [NativeTypeName("#define BSIS_PREFERNOLINEBREAK 0x00000080")] + public const int BSIS_PREFERNOLINEBREAK = 0x00000080; + + [NativeTypeName("#define BSIS_LOCKED 0x00000100")] + public const int BSIS_LOCKED = 0x00000100; + + [NativeTypeName("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")] + public const int BSIS_PRESERVEORDERDURINGLAYOUT = 0x00000200; + + [NativeTypeName("#define BSIS_FIXEDORDER 0x00000400")] + public const int BSIS_FIXEDORDER = 0x00000400; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/CLSID.Manual.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/CLSID.Manual.cs new file mode 100644 index 0000000000..eb6d1193a8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/CLSID.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class CLSID + { + public static ref readonly Guid CLSID_ShellLibrary + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1D, 0x21, 0xB3, 0xD9, + 0x7F, 0xE5, + 0x26, 0x44, + 0xAA, + 0xEF, + 0x30, + 0xA8, + 0x06, + 0xAD, + 0xD3, + 0x97 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/CMF.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/CMF.cs new file mode 100644 index 0000000000..650e07f550 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/CMF.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CMF + { + [NativeTypeName("#define CMF_NORMAL 0x00000000")] + public const int CMF_NORMAL = 0x00000000; + + [NativeTypeName("#define CMF_DEFAULTONLY 0x00000001")] + public const int CMF_DEFAULTONLY = 0x00000001; + + [NativeTypeName("#define CMF_VERBSONLY 0x00000002")] + public const int CMF_VERBSONLY = 0x00000002; + + [NativeTypeName("#define CMF_EXPLORE 0x00000004")] + public const int CMF_EXPLORE = 0x00000004; + + [NativeTypeName("#define CMF_NOVERBS 0x00000008")] + public const int CMF_NOVERBS = 0x00000008; + + [NativeTypeName("#define CMF_CANRENAME 0x00000010")] + public const int CMF_CANRENAME = 0x00000010; + + [NativeTypeName("#define CMF_NODEFAULT 0x00000020")] + public const int CMF_NODEFAULT = 0x00000020; + + [NativeTypeName("#define CMF_ITEMMENU 0x00000080")] + public const int CMF_ITEMMENU = 0x00000080; + + [NativeTypeName("#define CMF_EXTENDEDVERBS 0x00000100")] + public const int CMF_EXTENDEDVERBS = 0x00000100; + + [NativeTypeName("#define CMF_DISABLEDVERBS 0x00000200")] + public const int CMF_DISABLEDVERBS = 0x00000200; + + [NativeTypeName("#define CMF_ASYNCVERBSTATE 0x00000400")] + public const int CMF_ASYNCVERBSTATE = 0x00000400; + + [NativeTypeName("#define CMF_OPTIMIZEFORINVOKE 0x00000800")] + public const int CMF_OPTIMIZEFORINVOKE = 0x00000800; + + [NativeTypeName("#define CMF_SYNCCASCADEMENU 0x00001000")] + public const int CMF_SYNCCASCADEMENU = 0x00001000; + + [NativeTypeName("#define CMF_DONOTPICKDEFAULT 0x00002000")] + public const int CMF_DONOTPICKDEFAULT = 0x00002000; + + [NativeTypeName("#define CMF_RESERVED 0xffff0000")] + public const uint CMF_RESERVED = 0xffff0000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/CMIC.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/CMIC.cs new file mode 100644 index 0000000000..934d0b8e3a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/CMIC.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CMIC + { + [NativeTypeName("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")] + public const int CMIC_MASK_HOTKEY = 0x00000020; + + [NativeTypeName("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")] + public const int CMIC_MASK_FLAG_NO_UI = 0x00000400; + + [NativeTypeName("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")] + public const int CMIC_MASK_UNICODE = 0x00004000; + + [NativeTypeName("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")] + public const int CMIC_MASK_NO_CONSOLE = 0x00008000; + + [NativeTypeName("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")] + public const int CMIC_MASK_ASYNCOK = 0x00100000; + + [NativeTypeName("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")] + public const int CMIC_MASK_NOASYNC = 0x00000100; + + [NativeTypeName("#define CMIC_MASK_SHIFT_DOWN 0x10000000")] + public const int CMIC_MASK_SHIFT_DOWN = 0x10000000; + + [NativeTypeName("#define CMIC_MASK_CONTROL_DOWN 0x40000000")] + public const int CMIC_MASK_CONTROL_DOWN = 0x40000000; + + [NativeTypeName("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")] + public const int CMIC_MASK_FLAG_LOG_USAGE = 0x04000000; + + [NativeTypeName("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")] + public const int CMIC_MASK_NOZONECHECKS = 0x00800000; + + [NativeTypeName("#define CMIC_MASK_PTINVOKE 0x20000000")] + public const int CMIC_MASK_PTINVOKE = 0x20000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/DBIMF.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DBIMF.cs new file mode 100644 index 0000000000..3c03b2f9a4 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/DBIMF.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DBIMF + { + [NativeTypeName("#define DBIMF_NORMAL 0x0000")] + public const int DBIMF_NORMAL = 0x0000; + + [NativeTypeName("#define DBIMF_FIXED 0x0001")] + public const int DBIMF_FIXED = 0x0001; + + [NativeTypeName("#define DBIMF_FIXEDBMP 0x0004")] + public const int DBIMF_FIXEDBMP = 0x0004; + + [NativeTypeName("#define DBIMF_VARIABLEHEIGHT 0x0008")] + public const int DBIMF_VARIABLEHEIGHT = 0x0008; + + [NativeTypeName("#define DBIMF_UNDELETEABLE 0x0010")] + public const int DBIMF_UNDELETEABLE = 0x0010; + + [NativeTypeName("#define DBIMF_DEBOSSED 0x0020")] + public const int DBIMF_DEBOSSED = 0x0020; + + [NativeTypeName("#define DBIMF_BKCOLOR 0x0040")] + public const int DBIMF_BKCOLOR = 0x0040; + + [NativeTypeName("#define DBIMF_USECHEVRON 0x0080")] + public const int DBIMF_USECHEVRON = 0x0080; + + [NativeTypeName("#define DBIMF_BREAK 0x0100")] + public const int DBIMF_BREAK = 0x0100; + + [NativeTypeName("#define DBIMF_ADDTOFRONT 0x0200")] + public const int DBIMF_ADDTOFRONT = 0x0200; + + [NativeTypeName("#define DBIMF_TOPALIGN 0x0400")] + public const int DBIMF_TOPALIGN = 0x0400; + + [NativeTypeName("#define DBIMF_NOGRIPPER 0x0800")] + public const int DBIMF_NOGRIPPER = 0x0800; + + [NativeTypeName("#define DBIMF_ALWAYSGRIPPER 0x1000")] + public const int DBIMF_ALWAYSGRIPPER = 0x1000; + + [NativeTypeName("#define DBIMF_NOMARGINS 0x2000")] + public const int DBIMF_NOMARGINS = 0x2000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/FOFX.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FOFX.cs new file mode 100644 index 0000000000..799bcb1579 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/FOFX.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FOFX + { + [NativeTypeName("#define FOFX_NOSKIPJUNCTIONS 0x00010000")] + public const int FOFX_NOSKIPJUNCTIONS = 0x00010000; + + [NativeTypeName("#define FOFX_PREFERHARDLINK 0x00020000")] + public const int FOFX_PREFERHARDLINK = 0x00020000; + + [NativeTypeName("#define FOFX_SHOWELEVATIONPROMPT 0x00040000")] + public const int FOFX_SHOWELEVATIONPROMPT = 0x00040000; + + [NativeTypeName("#define FOFX_RECYCLEONDELETE 0x00080000")] + public const int FOFX_RECYCLEONDELETE = 0x00080000; + + [NativeTypeName("#define FOFX_EARLYFAILURE 0x00100000")] + public const int FOFX_EARLYFAILURE = 0x00100000; + + [NativeTypeName("#define FOFX_PRESERVEFILEEXTENSIONS 0x00200000")] + public const int FOFX_PRESERVEFILEEXTENSIONS = 0x00200000; + + [NativeTypeName("#define FOFX_KEEPNEWERFILE 0x00400000")] + public const int FOFX_KEEPNEWERFILE = 0x00400000; + + [NativeTypeName("#define FOFX_NOCOPYHOOKS 0x00800000")] + public const int FOFX_NOCOPYHOOKS = 0x00800000; + + [NativeTypeName("#define FOFX_NOMINIMIZEBOX 0x01000000")] + public const int FOFX_NOMINIMIZEBOX = 0x01000000; + + [NativeTypeName("#define FOFX_MOVEACLSACROSSVOLUMES 0x02000000")] + public const int FOFX_MOVEACLSACROSSVOLUMES = 0x02000000; + + [NativeTypeName("#define FOFX_DONTDISPLAYSOURCEPATH 0x04000000")] + public const int FOFX_DONTDISPLAYSOURCEPATH = 0x04000000; + + [NativeTypeName("#define FOFX_DONTDISPLAYDESTPATH 0x08000000")] + public const int FOFX_DONTDISPLAYDESTPATH = 0x08000000; + + [NativeTypeName("#define FOFX_REQUIREELEVATION 0x10000000")] + public const int FOFX_REQUIREELEVATION = 0x10000000; + + [NativeTypeName("#define FOFX_ADDUNDORECORD 0x20000000")] + public const int FOFX_ADDUNDORECORD = 0x20000000; + + [NativeTypeName("#define FOFX_COPYASDOWNLOAD 0x40000000")] + public const int FOFX_COPYASDOWNLOAD = 0x40000000; + + [NativeTypeName("#define FOFX_DONTDISPLAYLOCATIONS 0x80000000")] + public const uint FOFX_DONTDISPLAYLOCATIONS = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/GCS.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/GCS.cs new file mode 100644 index 0000000000..e58e610f02 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/GCS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GCS + { + [NativeTypeName("#define GCS_VERBA 0x00000000")] + public const int GCS_VERBA = 0x00000000; + + [NativeTypeName("#define GCS_HELPTEXTA 0x00000001")] + public const int GCS_HELPTEXTA = 0x00000001; + + [NativeTypeName("#define GCS_VALIDATEA 0x00000002")] + public const int GCS_VALIDATEA = 0x00000002; + + [NativeTypeName("#define GCS_VERBW 0x00000004")] + public const int GCS_VERBW = 0x00000004; + + [NativeTypeName("#define GCS_HELPTEXTW 0x00000005")] + public const int GCS_HELPTEXTW = 0x00000005; + + [NativeTypeName("#define GCS_VALIDATEW 0x00000006")] + public const int GCS_VALIDATEW = 0x00000006; + + [NativeTypeName("#define GCS_VERBICONW 0x00000014")] + public const int GCS_VERBICONW = 0x00000014; + + [NativeTypeName("#define GCS_UNICODE 0x00000004")] + public const int GCS_UNICODE = 0x00000004; + + [NativeTypeName("#define GCS_VERB GCS_VERBW")] + public const int GCS_VERB = 0x00000004; + + [NativeTypeName("#define GCS_HELPTEXT GCS_HELPTEXTW")] + public const int GCS_HELPTEXT = 0x00000005; + + [NativeTypeName("#define GCS_VALIDATE GCS_VALIDATEW")] + public const int GCS_VALIDATE = 0x00000006; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEIFLAG.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEIFLAG.cs new file mode 100644 index 0000000000..d0d0a63d90 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/IEIFLAG.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IEIFLAG + { + [NativeTypeName("#define IEIFLAG_ASYNC 0x0001")] + public const int IEIFLAG_ASYNC = 0x0001; + + [NativeTypeName("#define IEIFLAG_CACHE 0x0002")] + public const int IEIFLAG_CACHE = 0x0002; + + [NativeTypeName("#define IEIFLAG_ASPECT 0x0004")] + public const int IEIFLAG_ASPECT = 0x0004; + + [NativeTypeName("#define IEIFLAG_OFFLINE 0x0008")] + public const int IEIFLAG_OFFLINE = 0x0008; + + [NativeTypeName("#define IEIFLAG_GLEAM 0x0010")] + public const int IEIFLAG_GLEAM = 0x0010; + + [NativeTypeName("#define IEIFLAG_SCREEN 0x0020")] + public const int IEIFLAG_SCREEN = 0x0020; + + [NativeTypeName("#define IEIFLAG_ORIGSIZE 0x0040")] + public const int IEIFLAG_ORIGSIZE = 0x0040; + + [NativeTypeName("#define IEIFLAG_NOSTAMP 0x0080")] + public const int IEIFLAG_NOSTAMP = 0x0080; + + [NativeTypeName("#define IEIFLAG_NOBORDER 0x0100")] + public const int IEIFLAG_NOBORDER = 0x0100; + + [NativeTypeName("#define IEIFLAG_QUALITY 0x0200")] + public const int IEIFLAG_QUALITY = 0x0200; + + [NativeTypeName("#define IEIFLAG_REFRESH 0x0400")] + public const int IEIFLAG_REFRESH = 0x0400; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/OF.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/OF.cs new file mode 100644 index 0000000000..5d61c866f5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/OF.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OF + { + [NativeTypeName("#define OF_CAP_CANSWITCHTO 0x0001")] + public const int OF_CAP_CANSWITCHTO = 0x0001; + + [NativeTypeName("#define OF_CAP_CANCLOSE 0x0002")] + public const int OF_CAP_CANCLOSE = 0x0002; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SBSP.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SBSP.cs new file mode 100644 index 0000000000..4e672988cf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SBSP.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SBSP + { + [NativeTypeName("#define SBSP_DEFBROWSER 0x0000")] + public const int SBSP_DEFBROWSER = 0x0000; + + [NativeTypeName("#define SBSP_SAMEBROWSER 0x0001")] + public const int SBSP_SAMEBROWSER = 0x0001; + + [NativeTypeName("#define SBSP_NEWBROWSER 0x0002")] + public const int SBSP_NEWBROWSER = 0x0002; + + [NativeTypeName("#define SBSP_DEFMODE 0x0000")] + public const int SBSP_DEFMODE = 0x0000; + + [NativeTypeName("#define SBSP_OPENMODE 0x0010")] + public const int SBSP_OPENMODE = 0x0010; + + [NativeTypeName("#define SBSP_EXPLOREMODE 0x0020")] + public const int SBSP_EXPLOREMODE = 0x0020; + + [NativeTypeName("#define SBSP_HELPMODE 0x0040")] + public const int SBSP_HELPMODE = 0x0040; + + [NativeTypeName("#define SBSP_NOTRANSFERHIST 0x0080")] + public const int SBSP_NOTRANSFERHIST = 0x0080; + + [NativeTypeName("#define SBSP_ABSOLUTE 0x0000")] + public const int SBSP_ABSOLUTE = 0x0000; + + [NativeTypeName("#define SBSP_RELATIVE 0x1000")] + public const int SBSP_RELATIVE = 0x1000; + + [NativeTypeName("#define SBSP_PARENT 0x2000")] + public const int SBSP_PARENT = 0x2000; + + [NativeTypeName("#define SBSP_NAVIGATEBACK 0x4000")] + public const int SBSP_NAVIGATEBACK = 0x4000; + + [NativeTypeName("#define SBSP_NAVIGATEFORWARD 0x8000")] + public const int SBSP_NAVIGATEFORWARD = 0x8000; + + [NativeTypeName("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")] + public const int SBSP_ALLOW_AUTONAVIGATE = 0x00010000; + + [NativeTypeName("#define SBSP_KEEPSAMETEMPLATE 0x00020000")] + public const int SBSP_KEEPSAMETEMPLATE = 0x00020000; + + [NativeTypeName("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")] + public const int SBSP_KEEPWORDWHEELTEXT = 0x00040000; + + [NativeTypeName("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")] + public const int SBSP_ACTIVATE_NOFOCUS = 0x00080000; + + [NativeTypeName("#define SBSP_CREATENOHISTORY 0x00100000")] + public const int SBSP_CREATENOHISTORY = 0x00100000; + + [NativeTypeName("#define SBSP_PLAYNOSOUND 0x00200000")] + public const int SBSP_PLAYNOSOUND = 0x00200000; + + [NativeTypeName("#define SBSP_CALLERUNTRUSTED 0x00800000")] + public const int SBSP_CALLERUNTRUSTED = 0x00800000; + + [NativeTypeName("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")] + public const int SBSP_TRUSTFIRSTDOWNLOAD = 0x01000000; + + [NativeTypeName("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")] + public const int SBSP_UNTRUSTEDFORDOWNLOAD = 0x02000000; + + [NativeTypeName("#define SBSP_NOAUTOSELECT 0x04000000")] + public const int SBSP_NOAUTOSELECT = 0x04000000; + + [NativeTypeName("#define SBSP_WRITENOHISTORY 0x08000000")] + public const int SBSP_WRITENOHISTORY = 0x08000000; + + [NativeTypeName("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")] + public const int SBSP_TRUSTEDFORACTIVEX = 0x10000000; + + [NativeTypeName("#define SBSP_FEEDNAVIGATION 0x20000000")] + public const int SBSP_FEEDNAVIGATION = 0x20000000; + + [NativeTypeName("#define SBSP_REDIRECT 0x40000000")] + public const int SBSP_REDIRECT = 0x40000000; + + [NativeTypeName("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")] + public const uint SBSP_INITIATEDBYHLINKFRAME = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SFGAO.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SFGAO.cs new file mode 100644 index 0000000000..cef270e13e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SFGAO.cs @@ -0,0 +1,118 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SFGAO + { + [NativeTypeName("#define SFGAO_CANCOPY DROPEFFECT_COPY")] + public const int SFGAO_CANCOPY = (1); + + [NativeTypeName("#define SFGAO_CANMOVE DROPEFFECT_MOVE")] + public const int SFGAO_CANMOVE = (2); + + [NativeTypeName("#define SFGAO_CANLINK DROPEFFECT_LINK")] + public const int SFGAO_CANLINK = (4); + + [NativeTypeName("#define SFGAO_STORAGE 0x00000008L")] + public const int SFGAO_STORAGE = 0x00000008; + + [NativeTypeName("#define SFGAO_CANRENAME 0x00000010L")] + public const int SFGAO_CANRENAME = 0x00000010; + + [NativeTypeName("#define SFGAO_CANDELETE 0x00000020L")] + public const int SFGAO_CANDELETE = 0x00000020; + + [NativeTypeName("#define SFGAO_HASPROPSHEET 0x00000040L")] + public const int SFGAO_HASPROPSHEET = 0x00000040; + + [NativeTypeName("#define SFGAO_DROPTARGET 0x00000100L")] + public const int SFGAO_DROPTARGET = 0x00000100; + + [NativeTypeName("#define SFGAO_CAPABILITYMASK 0x00000177L")] + public const int SFGAO_CAPABILITYMASK = 0x00000177; + + [NativeTypeName("#define SFGAO_PLACEHOLDER 0x00000800L")] + public const int SFGAO_PLACEHOLDER = 0x00000800; + + [NativeTypeName("#define SFGAO_SYSTEM 0x00001000L")] + public const int SFGAO_SYSTEM = 0x00001000; + + [NativeTypeName("#define SFGAO_ENCRYPTED 0x00002000L")] + public const int SFGAO_ENCRYPTED = 0x00002000; + + [NativeTypeName("#define SFGAO_ISSLOW 0x00004000L")] + public const int SFGAO_ISSLOW = 0x00004000; + + [NativeTypeName("#define SFGAO_GHOSTED 0x00008000L")] + public const int SFGAO_GHOSTED = 0x00008000; + + [NativeTypeName("#define SFGAO_LINK 0x00010000L")] + public const int SFGAO_LINK = 0x00010000; + + [NativeTypeName("#define SFGAO_SHARE 0x00020000L")] + public const int SFGAO_SHARE = 0x00020000; + + [NativeTypeName("#define SFGAO_READONLY 0x00040000L")] + public const int SFGAO_READONLY = 0x00040000; + + [NativeTypeName("#define SFGAO_HIDDEN 0x00080000L")] + public const int SFGAO_HIDDEN = 0x00080000; + + [NativeTypeName("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")] + public const int SFGAO_DISPLAYATTRMASK = 0x000FC000; + + [NativeTypeName("#define SFGAO_FILESYSANCESTOR 0x10000000L")] + public const int SFGAO_FILESYSANCESTOR = 0x10000000; + + [NativeTypeName("#define SFGAO_FOLDER 0x20000000L")] + public const int SFGAO_FOLDER = 0x20000000; + + [NativeTypeName("#define SFGAO_FILESYSTEM 0x40000000L")] + public const int SFGAO_FILESYSTEM = 0x40000000; + + [NativeTypeName("#define SFGAO_HASSUBFOLDER 0x80000000L")] + public const uint SFGAO_HASSUBFOLDER = 0x80000000; + + [NativeTypeName("#define SFGAO_CONTENTSMASK 0x80000000L")] + public const uint SFGAO_CONTENTSMASK = 0x80000000; + + [NativeTypeName("#define SFGAO_VALIDATE 0x01000000L")] + public const int SFGAO_VALIDATE = 0x01000000; + + [NativeTypeName("#define SFGAO_REMOVABLE 0x02000000L")] + public const int SFGAO_REMOVABLE = 0x02000000; + + [NativeTypeName("#define SFGAO_COMPRESSED 0x04000000L")] + public const int SFGAO_COMPRESSED = 0x04000000; + + [NativeTypeName("#define SFGAO_BROWSABLE 0x08000000L")] + public const int SFGAO_BROWSABLE = 0x08000000; + + [NativeTypeName("#define SFGAO_NONENUMERATED 0x00100000L")] + public const int SFGAO_NONENUMERATED = 0x00100000; + + [NativeTypeName("#define SFGAO_NEWCONTENT 0x00200000L")] + public const int SFGAO_NEWCONTENT = 0x00200000; + + [NativeTypeName("#define SFGAO_CANMONIKER 0x00400000L")] + public const int SFGAO_CANMONIKER = 0x00400000; + + [NativeTypeName("#define SFGAO_HASSTORAGE 0x00400000L")] + public const int SFGAO_HASSTORAGE = 0x00400000; + + [NativeTypeName("#define SFGAO_STREAM 0x00400000L")] + public const int SFGAO_STREAM = 0x00400000; + + [NativeTypeName("#define SFGAO_STORAGEANCESTOR 0x00800000L")] + public const int SFGAO_STORAGEANCESTOR = 0x00800000; + + [NativeTypeName("#define SFGAO_STORAGECAPMASK 0x70C50008L")] + public const int SFGAO_STORAGECAPMASK = 0x70C50008; + + [NativeTypeName("#define SFGAO_PKEYSFGAOMASK 0x81044000L")] + public const uint SFGAO_PKEYSFGAOMASK = 0x81044000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/SMC.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SMC.cs new file mode 100644 index 0000000000..8c245ede5f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/SMC.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SMC + { + [NativeTypeName("#define SMC_INITMENU 0x00000001")] + public const int SMC_INITMENU = 0x00000001; + + [NativeTypeName("#define SMC_CREATE 0x00000002")] + public const int SMC_CREATE = 0x00000002; + + [NativeTypeName("#define SMC_EXITMENU 0x00000003")] + public const int SMC_EXITMENU = 0x00000003; + + [NativeTypeName("#define SMC_GETINFO 0x00000005")] + public const int SMC_GETINFO = 0x00000005; + + [NativeTypeName("#define SMC_GETSFINFO 0x00000006")] + public const int SMC_GETSFINFO = 0x00000006; + + [NativeTypeName("#define SMC_GETOBJECT 0x00000007")] + public const int SMC_GETOBJECT = 0x00000007; + + [NativeTypeName("#define SMC_GETSFOBJECT 0x00000008")] + public const int SMC_GETSFOBJECT = 0x00000008; + + [NativeTypeName("#define SMC_SFEXEC 0x00000009")] + public const int SMC_SFEXEC = 0x00000009; + + [NativeTypeName("#define SMC_SFSELECTITEM 0x0000000A")] + public const int SMC_SFSELECTITEM = 0x0000000A; + + [NativeTypeName("#define SMC_REFRESH 0x00000010")] + public const int SMC_REFRESH = 0x00000010; + + [NativeTypeName("#define SMC_DEMOTE 0x00000011")] + public const int SMC_DEMOTE = 0x00000011; + + [NativeTypeName("#define SMC_PROMOTE 0x00000012")] + public const int SMC_PROMOTE = 0x00000012; + + [NativeTypeName("#define SMC_DEFAULTICON 0x00000016")] + public const int SMC_DEFAULTICON = 0x00000016; + + [NativeTypeName("#define SMC_NEWITEM 0x00000017")] + public const int SMC_NEWITEM = 0x00000017; + + [NativeTypeName("#define SMC_CHEVRONEXPAND 0x00000019")] + public const int SMC_CHEVRONEXPAND = 0x00000019; + + [NativeTypeName("#define SMC_DISPLAYCHEVRONTIP 0x0000002A")] + public const int SMC_DISPLAYCHEVRONTIP = 0x0000002A; + + [NativeTypeName("#define SMC_SETSFOBJECT 0x0000002D")] + public const int SMC_SETSFOBJECT = 0x0000002D; + + [NativeTypeName("#define SMC_SHCHANGENOTIFY 0x0000002E")] + public const int SMC_SHCHANGENOTIFY = 0x0000002E; + + [NativeTypeName("#define SMC_CHEVRONGETTIP 0x0000002F")] + public const int SMC_CHEVRONGETTIP = 0x0000002F; + + [NativeTypeName("#define SMC_SFDDRESTRICTED 0x00000030")] + public const int SMC_SFDDRESTRICTED = 0x00000030; + + [NativeTypeName("#define SMC_SFEXEC_MIDDLE 0x00000031")] + public const int SMC_SFEXEC_MIDDLE = 0x00000031; + + [NativeTypeName("#define SMC_GETAUTOEXPANDSTATE 0x00000041")] + public const int SMC_GETAUTOEXPANDSTATE = 0x00000041; + + [NativeTypeName("#define SMC_AUTOEXPANDCHANGE 0x00000042")] + public const int SMC_AUTOEXPANDCHANGE = 0x00000042; + + [NativeTypeName("#define SMC_GETCONTEXTMENUMODIFIER 0x00000043")] + public const int SMC_GETCONTEXTMENUMODIFIER = 0x00000043; + + [NativeTypeName("#define SMC_GETBKCONTEXTMENU 0x00000044")] + public const int SMC_GETBKCONTEXTMENU = 0x00000044; + + [NativeTypeName("#define SMC_OPEN 0x00000045")] + public const int SMC_OPEN = 0x00000045; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/STR.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/STR.cs new file mode 100644 index 0000000000..f291b377cf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/STR.cs @@ -0,0 +1,130 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShObjIdl_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STR + { + [NativeTypeName("#define STR_BIND_FORCE_FOLDER_SHORTCUT_RESOLVE L\"Force Folder Shortcut Resolve\"")] + public const string STR_BIND_FORCE_FOLDER_SHORTCUT_RESOLVE = "Force Folder Shortcut Resolve"; + + [NativeTypeName("#define STR_AVOID_DRIVE_RESTRICTION_POLICY L\"Avoid Drive Restriction Policy\"")] + public const string STR_AVOID_DRIVE_RESTRICTION_POLICY = "Avoid Drive Restriction Policy"; + + [NativeTypeName("#define STR_SKIP_BINDING_CLSID L\"Skip Binding CLSID\"")] + public const string STR_SKIP_BINDING_CLSID = "Skip Binding CLSID"; + + [NativeTypeName("#define STR_PARSE_PREFER_FOLDER_BROWSING L\"Parse Prefer Folder Browsing\"")] + public const string STR_PARSE_PREFER_FOLDER_BROWSING = "Parse Prefer Folder Browsing"; + + [NativeTypeName("#define STR_DONT_PARSE_RELATIVE L\"Don't Parse Relative\"")] + public const string STR_DONT_PARSE_RELATIVE = "Don't Parse Relative"; + + [NativeTypeName("#define STR_PARSE_TRANSLATE_ALIASES L\"Parse Translate Aliases\"")] + public const string STR_PARSE_TRANSLATE_ALIASES = "Parse Translate Aliases"; + + [NativeTypeName("#define STR_PARSE_SKIP_NET_CACHE L\"Skip Net Resource Cache\"")] + public const string STR_PARSE_SKIP_NET_CACHE = "Skip Net Resource Cache"; + + [NativeTypeName("#define STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS L\"Parse Shell Protocol To File Objects\"")] + public const string STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS = "Parse Shell Protocol To File Objects"; + + [NativeTypeName("#define STR_TRACK_CLSID L\"Track the CLSID\"")] + public const string STR_TRACK_CLSID = "Track the CLSID"; + + [NativeTypeName("#define STR_INTERNAL_NAVIGATE L\"Internal Navigation\"")] + public const string STR_INTERNAL_NAVIGATE = "Internal Navigation"; + + [NativeTypeName("#define STR_PARSE_PROPERTYSTORE L\"DelegateNamedProperties\"")] + public const string STR_PARSE_PROPERTYSTORE = "DelegateNamedProperties"; + + [NativeTypeName("#define STR_NO_VALIDATE_FILENAME_CHARS L\"NoValidateFilenameChars\"")] + public const string STR_NO_VALIDATE_FILENAME_CHARS = "NoValidateFilenameChars"; + + [NativeTypeName("#define STR_BIND_DELEGATE_CREATE_OBJECT L\"Delegate Object Creation\"")] + public const string STR_BIND_DELEGATE_CREATE_OBJECT = "Delegate Object Creation"; + + [NativeTypeName("#define STR_PARSE_ALLOW_INTERNET_SHELL_FOLDERS L\"Allow binding to Internet shell folder handlers and negate STR_PARSE_PREFER_WEB_BROWSING\"")] + public const string STR_PARSE_ALLOW_INTERNET_SHELL_FOLDERS = "Allow binding to Internet shell folder handlers and negate STR_PARSE_PREFER_WEB_BROWSING"; + + [NativeTypeName("#define STR_PARSE_PREFER_WEB_BROWSING L\"Do not bind to Internet shell folder handlers\"")] + public const string STR_PARSE_PREFER_WEB_BROWSING = "Do not bind to Internet shell folder handlers"; + + [NativeTypeName("#define STR_PARSE_SHOW_NET_DIAGNOSTICS_UI L\"Show network diagnostics UI\"")] + public const string STR_PARSE_SHOW_NET_DIAGNOSTICS_UI = "Show network diagnostics UI"; + + [NativeTypeName("#define STR_PARSE_DONT_REQUIRE_VALIDATED_URLS L\"Do not require validated URLs\"")] + public const string STR_PARSE_DONT_REQUIRE_VALIDATED_URLS = "Do not require validated URLs"; + + [NativeTypeName("#define STR_INTERNETFOLDER_PARSE_ONLY_URLMON_BINDABLE L\"Validate URL\"")] + public const string STR_INTERNETFOLDER_PARSE_ONLY_URLMON_BINDABLE = "Validate URL"; + + [NativeTypeName("#define STR_BIND_FOLDERS_READ_ONLY L\"Folders As Read Only\"")] + public const string STR_BIND_FOLDERS_READ_ONLY = "Folders As Read Only"; + + [NativeTypeName("#define STR_BIND_FOLDER_ENUM_MODE L\"Folder Enum Mode\"")] + public const string STR_BIND_FOLDER_ENUM_MODE = "Folder Enum Mode"; + + [NativeTypeName("#define STR_PARSE_WITH_EXPLICIT_PROGID L\"ExplicitProgid\"")] + public const string STR_PARSE_WITH_EXPLICIT_PROGID = "ExplicitProgid"; + + [NativeTypeName("#define STR_PARSE_WITH_EXPLICIT_ASSOCAPP L\"ExplicitAssociationApp\"")] + public const string STR_PARSE_WITH_EXPLICIT_ASSOCAPP = "ExplicitAssociationApp"; + + [NativeTypeName("#define STR_PARSE_EXPLICIT_ASSOCIATION_SUCCESSFUL L\"ExplicitAssociationSuccessful\"")] + public const string STR_PARSE_EXPLICIT_ASSOCIATION_SUCCESSFUL = "ExplicitAssociationSuccessful"; + + [NativeTypeName("#define STR_PARSE_AND_CREATE_ITEM L\"ParseAndCreateItem\"")] + public const string STR_PARSE_AND_CREATE_ITEM = "ParseAndCreateItem"; + + [NativeTypeName("#define STR_PROPERTYBAG_PARAM L\"SHBindCtxPropertyBag\"")] + public const string STR_PROPERTYBAG_PARAM = "SHBindCtxPropertyBag"; + + [NativeTypeName("#define STR_ENUM_ITEMS_FLAGS L\"SHCONTF\"")] + public const string STR_ENUM_ITEMS_FLAGS = "SHCONTF"; + + [NativeTypeName("#define STR_STORAGEITEM_CREATION_FLAGS L\"SHGETSTORAGEITEM\"")] + public const string STR_STORAGEITEM_CREATION_FLAGS = "SHGETSTORAGEITEM"; + + [NativeTypeName("#define STR_ITEM_CACHE_CONTEXT L\"ItemCacheContext\"")] + public const string STR_ITEM_CACHE_CONTEXT = "ItemCacheContext"; + + [NativeTypeName("#define STR_DONT_RESOLVE_LINK L\"Don't Resolve Link\"")] + public const string STR_DONT_RESOLVE_LINK = "Don't Resolve Link"; + + [NativeTypeName("#define STR_GET_ASYNC_HANDLER L\"GetAsyncHandler\"")] + public const string STR_GET_ASYNC_HANDLER = "GetAsyncHandler"; + + [NativeTypeName("#define STR_GPS_HANDLERPROPERTIESONLY L\"GPS_HANDLERPROPERTIESONLY\"")] + public const string STR_GPS_HANDLERPROPERTIESONLY = "GPS_HANDLERPROPERTIESONLY"; + + [NativeTypeName("#define STR_GPS_FASTPROPERTIESONLY L\"GPS_FASTPROPERTIESONLY\"")] + public const string STR_GPS_FASTPROPERTIESONLY = "GPS_FASTPROPERTIESONLY"; + + [NativeTypeName("#define STR_GPS_OPENSLOWITEM L\"GPS_OPENSLOWITEM\"")] + public const string STR_GPS_OPENSLOWITEM = "GPS_OPENSLOWITEM"; + + [NativeTypeName("#define STR_GPS_DELAYCREATION L\"GPS_DELAYCREATION\"")] + public const string STR_GPS_DELAYCREATION = "GPS_DELAYCREATION"; + + [NativeTypeName("#define STR_GPS_BESTEFFORT L\"GPS_BESTEFFORT\"")] + public const string STR_GPS_BESTEFFORT = "GPS_BESTEFFORT"; + + [NativeTypeName("#define STR_GPS_NO_OPLOCK L\"GPS_NO_OPLOCK\"")] + public const string STR_GPS_NO_OPLOCK = "GPS_NO_OPLOCK"; + + [NativeTypeName("#define STR_FILE_SYS_BIND_DATA L\"File System Bind Data\"")] + public const string STR_FILE_SYS_BIND_DATA = "File System Bind Data"; + + [NativeTypeName("#define STR_FILE_SYS_BIND_DATA_WIN7_FORMAT L\"Win7FileSystemIdList\"")] + public const string STR_FILE_SYS_BIND_DATA_WIN7_FORMAT = "Win7FileSystemIdList"; + + [NativeTypeName("#define STR_TAB_REUSE_IDENTIFIER L\"Tab Reuse Identifier\"")] + public const string STR_TAB_REUSE_IDENTIFIER = "Tab Reuse Identifier"; + + [NativeTypeName("#define STR_REFERRER_IDENTIFIER L\"Referrer Identifier\"")] + public const string STR_REFERRER_IDENTIFIER = "Referrer Identifier"; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.Manual.cs index 48d9879500..fc2689cfe6 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.Manual.cs @@ -4,8 +4,6 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; using static TerraFX.Interop.Windows.CLSCTX; using static TerraFX.Interop.Windows.SIGDN; @@ -15,22 +13,15 @@ public static unsafe partial class Windows { public static HRESULT SHCreateLibrary([NativeTypeName("const IID &")] Guid* riid, void** ppv) { - fixed (Guid* rclsid = &CLSID_ShellLibrary) - { - return CoCreateInstance(rclsid, null, (uint)(CLSCTX_INPROC_SERVER), riid, ppv); - } + return CoCreateInstance(__uuidof(), null, (uint)(CLSCTX_INPROC_SERVER), riid, ppv); } public static HRESULT SHLoadLibraryFromItem(IShellItem* psiLibrary, [NativeTypeName("DWORD")] uint grfMode, [NativeTypeName("const IID &")] Guid* riid, void** ppv) { *ppv = null; - IShellLibrary* plib; - HRESULT hr; - fixed (Guid* rclsid = &CLSID_ShellLibrary) - { - hr = CoCreateInstance(rclsid, null, (uint)(CLSCTX_INPROC_SERVER), __uuidof(), (void**)(&plib)); - } + IShellLibrary* plib; + var hr = CoCreateInstance(__uuidof(), null, (uint)(CLSCTX_INPROC_SERVER), __uuidof(), (void**)(&plib)); if ((((int)(hr)) >= 0)) { @@ -49,13 +40,9 @@ public static HRESULT SHLoadLibraryFromItem(IShellItem* psiLibrary, [NativeTypeN public static HRESULT SHLoadLibraryFromKnownFolder([NativeTypeName("const KNOWNFOLDERID &")] Guid* kfidLibrary, [NativeTypeName("DWORD")] uint grfMode, [NativeTypeName("const IID &")] Guid* riid, void** ppv) { *ppv = null; - IShellLibrary* plib; - HRESULT hr; - fixed (Guid* rclsid = &CLSID_ShellLibrary) - { - hr = CoCreateInstance(rclsid, null, (uint)(CLSCTX_INPROC_SERVER), __uuidof(), (void**)(&plib)); - } + IShellLibrary* plib; + var hr = CoCreateInstance(__uuidof(), null, (uint)(CLSCTX_INPROC_SERVER), __uuidof(), (void**)(&plib)); if ((((int)(hr)) >= 0)) { @@ -167,28 +154,5 @@ public static void SetContractDelegateWindow(HWND hwndSource, HWND hwndDelegate) } } } - - public static ref readonly Guid CLSID_ShellLibrary - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1D, 0x21, 0xB3, 0xD9, - 0x7F, 0xE5, - 0x26, 0x44, - 0xAA, - 0xEF, - 0x30, - 0xA8, - 0x06, - 0xAD, - 0xD3, - 0x97 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } } } diff --git a/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs b/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs index fd84f39a0c..f7d2f5da8e 100644 --- a/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ShObjIdl_core/Windows.cs @@ -241,84 +241,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore } } - [NativeTypeName("#define CMF_NORMAL 0x00000000")] - public const int CMF_NORMAL = 0x00000000; - - [NativeTypeName("#define CMF_DEFAULTONLY 0x00000001")] - public const int CMF_DEFAULTONLY = 0x00000001; - - [NativeTypeName("#define CMF_VERBSONLY 0x00000002")] - public const int CMF_VERBSONLY = 0x00000002; - - [NativeTypeName("#define CMF_EXPLORE 0x00000004")] - public const int CMF_EXPLORE = 0x00000004; - - [NativeTypeName("#define CMF_NOVERBS 0x00000008")] - public const int CMF_NOVERBS = 0x00000008; - - [NativeTypeName("#define CMF_CANRENAME 0x00000010")] - public const int CMF_CANRENAME = 0x00000010; - - [NativeTypeName("#define CMF_NODEFAULT 0x00000020")] - public const int CMF_NODEFAULT = 0x00000020; - - [NativeTypeName("#define CMF_ITEMMENU 0x00000080")] - public const int CMF_ITEMMENU = 0x00000080; - - [NativeTypeName("#define CMF_EXTENDEDVERBS 0x00000100")] - public const int CMF_EXTENDEDVERBS = 0x00000100; - - [NativeTypeName("#define CMF_DISABLEDVERBS 0x00000200")] - public const int CMF_DISABLEDVERBS = 0x00000200; - - [NativeTypeName("#define CMF_ASYNCVERBSTATE 0x00000400")] - public const int CMF_ASYNCVERBSTATE = 0x00000400; - - [NativeTypeName("#define CMF_OPTIMIZEFORINVOKE 0x00000800")] - public const int CMF_OPTIMIZEFORINVOKE = 0x00000800; - - [NativeTypeName("#define CMF_SYNCCASCADEMENU 0x00001000")] - public const int CMF_SYNCCASCADEMENU = 0x00001000; - - [NativeTypeName("#define CMF_DONOTPICKDEFAULT 0x00002000")] - public const int CMF_DONOTPICKDEFAULT = 0x00002000; - - [NativeTypeName("#define CMF_RESERVED 0xffff0000")] - public const uint CMF_RESERVED = 0xffff0000; - - [NativeTypeName("#define GCS_VERBA 0x00000000")] - public const int GCS_VERBA = 0x00000000; - - [NativeTypeName("#define GCS_HELPTEXTA 0x00000001")] - public const int GCS_HELPTEXTA = 0x00000001; - - [NativeTypeName("#define GCS_VALIDATEA 0x00000002")] - public const int GCS_VALIDATEA = 0x00000002; - - [NativeTypeName("#define GCS_VERBW 0x00000004")] - public const int GCS_VERBW = 0x00000004; - - [NativeTypeName("#define GCS_HELPTEXTW 0x00000005")] - public const int GCS_HELPTEXTW = 0x00000005; - - [NativeTypeName("#define GCS_VALIDATEW 0x00000006")] - public const int GCS_VALIDATEW = 0x00000006; - - [NativeTypeName("#define GCS_VERBICONW 0x00000014")] - public const int GCS_VERBICONW = 0x00000014; - - [NativeTypeName("#define GCS_UNICODE 0x00000004")] - public const int GCS_UNICODE = 0x00000004; - - [NativeTypeName("#define GCS_VERB GCS_VERBW")] - public const int GCS_VERB = 0x00000004; - - [NativeTypeName("#define GCS_HELPTEXT GCS_HELPTEXTW")] - public const int GCS_HELPTEXT = 0x00000005; - - [NativeTypeName("#define GCS_VALIDATE GCS_VALIDATEW")] - public const int GCS_VALIDATE = 0x00000006; - [NativeTypeName("#define CMDSTR_NEWFOLDERA \"NewFolder\"")] public static ReadOnlySpan CMDSTR_NEWFOLDERA => new byte[] { 0x4E, 0x65, 0x77, 0x46, 0x6F, 0x6C, 0x64, 0x65, 0x72, 0x00 }; @@ -346,39 +268,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define CMDSTR_VIEWDETAILS CMDSTR_VIEWDETAILSW")] public const string CMDSTR_VIEWDETAILS = "ViewDetails"; - [NativeTypeName("#define CMIC_MASK_HOTKEY SEE_MASK_HOTKEY")] - public const int CMIC_MASK_HOTKEY = 0x00000020; - - [NativeTypeName("#define CMIC_MASK_FLAG_NO_UI SEE_MASK_FLAG_NO_UI")] - public const int CMIC_MASK_FLAG_NO_UI = 0x00000400; - - [NativeTypeName("#define CMIC_MASK_UNICODE SEE_MASK_UNICODE")] - public const int CMIC_MASK_UNICODE = 0x00004000; - - [NativeTypeName("#define CMIC_MASK_NO_CONSOLE SEE_MASK_NO_CONSOLE")] - public const int CMIC_MASK_NO_CONSOLE = 0x00008000; - - [NativeTypeName("#define CMIC_MASK_ASYNCOK SEE_MASK_ASYNCOK")] - public const int CMIC_MASK_ASYNCOK = 0x00100000; - - [NativeTypeName("#define CMIC_MASK_NOASYNC SEE_MASK_NOASYNC")] - public const int CMIC_MASK_NOASYNC = 0x00000100; - - [NativeTypeName("#define CMIC_MASK_SHIFT_DOWN 0x10000000")] - public const int CMIC_MASK_SHIFT_DOWN = 0x10000000; - - [NativeTypeName("#define CMIC_MASK_CONTROL_DOWN 0x40000000")] - public const int CMIC_MASK_CONTROL_DOWN = 0x40000000; - - [NativeTypeName("#define CMIC_MASK_FLAG_LOG_USAGE SEE_MASK_FLAG_LOG_USAGE")] - public const int CMIC_MASK_FLAG_LOG_USAGE = 0x04000000; - - [NativeTypeName("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")] - public const int CMIC_MASK_NOZONECHECKS = 0x00800000; - - [NativeTypeName("#define CMIC_MASK_PTINVOKE 0x20000000")] - public const int CMIC_MASK_PTINVOKE = 0x20000000; - [NativeTypeName("#define IRTIR_TASK_NOT_RUNNING 0")] public const int IRTIR_TASK_NOT_RUNNING = 0; @@ -439,204 +328,12 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define SHCIDS_COLUMNMASK 0x0000FFFFL")] public const int SHCIDS_COLUMNMASK = 0x0000FFFF; - [NativeTypeName("#define SFGAO_CANCOPY DROPEFFECT_COPY")] - public const int SFGAO_CANCOPY = (1); - - [NativeTypeName("#define SFGAO_CANMOVE DROPEFFECT_MOVE")] - public const int SFGAO_CANMOVE = (2); - - [NativeTypeName("#define SFGAO_CANLINK DROPEFFECT_LINK")] - public const int SFGAO_CANLINK = (4); - - [NativeTypeName("#define SFGAO_STORAGE 0x00000008L")] - public const int SFGAO_STORAGE = 0x00000008; - - [NativeTypeName("#define SFGAO_CANRENAME 0x00000010L")] - public const int SFGAO_CANRENAME = 0x00000010; - - [NativeTypeName("#define SFGAO_CANDELETE 0x00000020L")] - public const int SFGAO_CANDELETE = 0x00000020; - - [NativeTypeName("#define SFGAO_HASPROPSHEET 0x00000040L")] - public const int SFGAO_HASPROPSHEET = 0x00000040; - - [NativeTypeName("#define SFGAO_DROPTARGET 0x00000100L")] - public const int SFGAO_DROPTARGET = 0x00000100; - - [NativeTypeName("#define SFGAO_CAPABILITYMASK 0x00000177L")] - public const int SFGAO_CAPABILITYMASK = 0x00000177; - - [NativeTypeName("#define SFGAO_PLACEHOLDER 0x00000800L")] - public const int SFGAO_PLACEHOLDER = 0x00000800; - - [NativeTypeName("#define SFGAO_SYSTEM 0x00001000L")] - public const int SFGAO_SYSTEM = 0x00001000; - - [NativeTypeName("#define SFGAO_ENCRYPTED 0x00002000L")] - public const int SFGAO_ENCRYPTED = 0x00002000; - - [NativeTypeName("#define SFGAO_ISSLOW 0x00004000L")] - public const int SFGAO_ISSLOW = 0x00004000; - - [NativeTypeName("#define SFGAO_GHOSTED 0x00008000L")] - public const int SFGAO_GHOSTED = 0x00008000; - - [NativeTypeName("#define SFGAO_LINK 0x00010000L")] - public const int SFGAO_LINK = 0x00010000; - - [NativeTypeName("#define SFGAO_SHARE 0x00020000L")] - public const int SFGAO_SHARE = 0x00020000; - - [NativeTypeName("#define SFGAO_READONLY 0x00040000L")] - public const int SFGAO_READONLY = 0x00040000; - - [NativeTypeName("#define SFGAO_HIDDEN 0x00080000L")] - public const int SFGAO_HIDDEN = 0x00080000; - - [NativeTypeName("#define SFGAO_DISPLAYATTRMASK 0x000FC000L")] - public const int SFGAO_DISPLAYATTRMASK = 0x000FC000; - - [NativeTypeName("#define SFGAO_FILESYSANCESTOR 0x10000000L")] - public const int SFGAO_FILESYSANCESTOR = 0x10000000; - - [NativeTypeName("#define SFGAO_FOLDER 0x20000000L")] - public const int SFGAO_FOLDER = 0x20000000; - - [NativeTypeName("#define SFGAO_FILESYSTEM 0x40000000L")] - public const int SFGAO_FILESYSTEM = 0x40000000; - - [NativeTypeName("#define SFGAO_HASSUBFOLDER 0x80000000L")] - public const uint SFGAO_HASSUBFOLDER = 0x80000000; - - [NativeTypeName("#define SFGAO_CONTENTSMASK 0x80000000L")] - public const uint SFGAO_CONTENTSMASK = 0x80000000; - - [NativeTypeName("#define SFGAO_VALIDATE 0x01000000L")] - public const int SFGAO_VALIDATE = 0x01000000; - - [NativeTypeName("#define SFGAO_REMOVABLE 0x02000000L")] - public const int SFGAO_REMOVABLE = 0x02000000; - - [NativeTypeName("#define SFGAO_COMPRESSED 0x04000000L")] - public const int SFGAO_COMPRESSED = 0x04000000; - - [NativeTypeName("#define SFGAO_BROWSABLE 0x08000000L")] - public const int SFGAO_BROWSABLE = 0x08000000; - - [NativeTypeName("#define SFGAO_NONENUMERATED 0x00100000L")] - public const int SFGAO_NONENUMERATED = 0x00100000; - - [NativeTypeName("#define SFGAO_NEWCONTENT 0x00200000L")] - public const int SFGAO_NEWCONTENT = 0x00200000; - - [NativeTypeName("#define SFGAO_CANMONIKER 0x00400000L")] - public const int SFGAO_CANMONIKER = 0x00400000; - - [NativeTypeName("#define SFGAO_HASSTORAGE 0x00400000L")] - public const int SFGAO_HASSTORAGE = 0x00400000; - - [NativeTypeName("#define SFGAO_STREAM 0x00400000L")] - public const int SFGAO_STREAM = 0x00400000; - - [NativeTypeName("#define SFGAO_STORAGEANCESTOR 0x00800000L")] - public const int SFGAO_STORAGEANCESTOR = 0x00800000; - - [NativeTypeName("#define SFGAO_STORAGECAPMASK 0x70C50008L")] - public const int SFGAO_STORAGECAPMASK = 0x70C50008; - - [NativeTypeName("#define SFGAO_PKEYSFGAOMASK 0x81044000L")] - public const uint SFGAO_PKEYSFGAOMASK = 0x81044000; - [NativeTypeName("#define CONFLICT_RESOLUTION_CLSID_KEY L\"ConflictResolutionCLSID\"")] public const string CONFLICT_RESOLUTION_CLSID_KEY = "ConflictResolutionCLSID"; - [NativeTypeName("#define STR_BIND_FORCE_FOLDER_SHORTCUT_RESOLVE L\"Force Folder Shortcut Resolve\"")] - public const string STR_BIND_FORCE_FOLDER_SHORTCUT_RESOLVE = "Force Folder Shortcut Resolve"; - - [NativeTypeName("#define STR_AVOID_DRIVE_RESTRICTION_POLICY L\"Avoid Drive Restriction Policy\"")] - public const string STR_AVOID_DRIVE_RESTRICTION_POLICY = "Avoid Drive Restriction Policy"; - - [NativeTypeName("#define STR_SKIP_BINDING_CLSID L\"Skip Binding CLSID\"")] - public const string STR_SKIP_BINDING_CLSID = "Skip Binding CLSID"; - - [NativeTypeName("#define STR_PARSE_PREFER_FOLDER_BROWSING L\"Parse Prefer Folder Browsing\"")] - public const string STR_PARSE_PREFER_FOLDER_BROWSING = "Parse Prefer Folder Browsing"; - - [NativeTypeName("#define STR_DONT_PARSE_RELATIVE L\"Don't Parse Relative\"")] - public const string STR_DONT_PARSE_RELATIVE = "Don't Parse Relative"; - - [NativeTypeName("#define STR_PARSE_TRANSLATE_ALIASES L\"Parse Translate Aliases\"")] - public const string STR_PARSE_TRANSLATE_ALIASES = "Parse Translate Aliases"; - - [NativeTypeName("#define STR_PARSE_SKIP_NET_CACHE L\"Skip Net Resource Cache\"")] - public const string STR_PARSE_SKIP_NET_CACHE = "Skip Net Resource Cache"; - - [NativeTypeName("#define STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS L\"Parse Shell Protocol To File Objects\"")] - public const string STR_PARSE_SHELL_PROTOCOL_TO_FILE_OBJECTS = "Parse Shell Protocol To File Objects"; - - [NativeTypeName("#define STR_TRACK_CLSID L\"Track the CLSID\"")] - public const string STR_TRACK_CLSID = "Track the CLSID"; - - [NativeTypeName("#define STR_INTERNAL_NAVIGATE L\"Internal Navigation\"")] - public const string STR_INTERNAL_NAVIGATE = "Internal Navigation"; - - [NativeTypeName("#define STR_PARSE_PROPERTYSTORE L\"DelegateNamedProperties\"")] - public const string STR_PARSE_PROPERTYSTORE = "DelegateNamedProperties"; - - [NativeTypeName("#define STR_NO_VALIDATE_FILENAME_CHARS L\"NoValidateFilenameChars\"")] - public const string STR_NO_VALIDATE_FILENAME_CHARS = "NoValidateFilenameChars"; - - [NativeTypeName("#define STR_BIND_DELEGATE_CREATE_OBJECT L\"Delegate Object Creation\"")] - public const string STR_BIND_DELEGATE_CREATE_OBJECT = "Delegate Object Creation"; - - [NativeTypeName("#define STR_PARSE_ALLOW_INTERNET_SHELL_FOLDERS L\"Allow binding to Internet shell folder handlers and negate STR_PARSE_PREFER_WEB_BROWSING\"")] - public const string STR_PARSE_ALLOW_INTERNET_SHELL_FOLDERS = "Allow binding to Internet shell folder handlers and negate STR_PARSE_PREFER_WEB_BROWSING"; - - [NativeTypeName("#define STR_PARSE_PREFER_WEB_BROWSING L\"Do not bind to Internet shell folder handlers\"")] - public const string STR_PARSE_PREFER_WEB_BROWSING = "Do not bind to Internet shell folder handlers"; - - [NativeTypeName("#define STR_PARSE_SHOW_NET_DIAGNOSTICS_UI L\"Show network diagnostics UI\"")] - public const string STR_PARSE_SHOW_NET_DIAGNOSTICS_UI = "Show network diagnostics UI"; - - [NativeTypeName("#define STR_PARSE_DONT_REQUIRE_VALIDATED_URLS L\"Do not require validated URLs\"")] - public const string STR_PARSE_DONT_REQUIRE_VALIDATED_URLS = "Do not require validated URLs"; - - [NativeTypeName("#define STR_INTERNETFOLDER_PARSE_ONLY_URLMON_BINDABLE L\"Validate URL\"")] - public const string STR_INTERNETFOLDER_PARSE_ONLY_URLMON_BINDABLE = "Validate URL"; - [NativeTypeName("#define BIND_INTERRUPTABLE 0xFFFFFFFF")] public const uint BIND_INTERRUPTABLE = 0xFFFFFFFF; - [NativeTypeName("#define STR_BIND_FOLDERS_READ_ONLY L\"Folders As Read Only\"")] - public const string STR_BIND_FOLDERS_READ_ONLY = "Folders As Read Only"; - - [NativeTypeName("#define STR_BIND_FOLDER_ENUM_MODE L\"Folder Enum Mode\"")] - public const string STR_BIND_FOLDER_ENUM_MODE = "Folder Enum Mode"; - - [NativeTypeName("#define STR_PARSE_WITH_EXPLICIT_PROGID L\"ExplicitProgid\"")] - public const string STR_PARSE_WITH_EXPLICIT_PROGID = "ExplicitProgid"; - - [NativeTypeName("#define STR_PARSE_WITH_EXPLICIT_ASSOCAPP L\"ExplicitAssociationApp\"")] - public const string STR_PARSE_WITH_EXPLICIT_ASSOCAPP = "ExplicitAssociationApp"; - - [NativeTypeName("#define STR_PARSE_EXPLICIT_ASSOCIATION_SUCCESSFUL L\"ExplicitAssociationSuccessful\"")] - public const string STR_PARSE_EXPLICIT_ASSOCIATION_SUCCESSFUL = "ExplicitAssociationSuccessful"; - - [NativeTypeName("#define STR_PARSE_AND_CREATE_ITEM L\"ParseAndCreateItem\"")] - public const string STR_PARSE_AND_CREATE_ITEM = "ParseAndCreateItem"; - - [NativeTypeName("#define STR_PROPERTYBAG_PARAM L\"SHBindCtxPropertyBag\"")] - public const string STR_PROPERTYBAG_PARAM = "SHBindCtxPropertyBag"; - - [NativeTypeName("#define STR_ENUM_ITEMS_FLAGS L\"SHCONTF\"")] - public const string STR_ENUM_ITEMS_FLAGS = "SHCONTF"; - - [NativeTypeName("#define STR_STORAGEITEM_CREATION_FLAGS L\"SHGETSTORAGEITEM\"")] - public const string STR_STORAGEITEM_CREATION_FLAGS = "SHGETSTORAGEITEM"; - - [NativeTypeName("#define STR_ITEM_CACHE_CONTEXT L\"ItemCacheContext\"")] - public const string STR_ITEM_CACHE_CONTEXT = "ItemCacheContext"; - [NativeTypeName("#define SVSI_NOSTATECHANGE ((UINT)0x80000000)")] public const uint SVSI_NOSTATECHANGE = ((uint)(0x80000000)); @@ -694,90 +391,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define CDB2GVF_ADDSHIELD 0x00000040")] public const int CDB2GVF_ADDSHIELD = 0x00000040; - [NativeTypeName("#define SBSP_DEFBROWSER 0x0000")] - public const int SBSP_DEFBROWSER = 0x0000; - - [NativeTypeName("#define SBSP_SAMEBROWSER 0x0001")] - public const int SBSP_SAMEBROWSER = 0x0001; - - [NativeTypeName("#define SBSP_NEWBROWSER 0x0002")] - public const int SBSP_NEWBROWSER = 0x0002; - - [NativeTypeName("#define SBSP_DEFMODE 0x0000")] - public const int SBSP_DEFMODE = 0x0000; - - [NativeTypeName("#define SBSP_OPENMODE 0x0010")] - public const int SBSP_OPENMODE = 0x0010; - - [NativeTypeName("#define SBSP_EXPLOREMODE 0x0020")] - public const int SBSP_EXPLOREMODE = 0x0020; - - [NativeTypeName("#define SBSP_HELPMODE 0x0040")] - public const int SBSP_HELPMODE = 0x0040; - - [NativeTypeName("#define SBSP_NOTRANSFERHIST 0x0080")] - public const int SBSP_NOTRANSFERHIST = 0x0080; - - [NativeTypeName("#define SBSP_ABSOLUTE 0x0000")] - public const int SBSP_ABSOLUTE = 0x0000; - - [NativeTypeName("#define SBSP_RELATIVE 0x1000")] - public const int SBSP_RELATIVE = 0x1000; - - [NativeTypeName("#define SBSP_PARENT 0x2000")] - public const int SBSP_PARENT = 0x2000; - - [NativeTypeName("#define SBSP_NAVIGATEBACK 0x4000")] - public const int SBSP_NAVIGATEBACK = 0x4000; - - [NativeTypeName("#define SBSP_NAVIGATEFORWARD 0x8000")] - public const int SBSP_NAVIGATEFORWARD = 0x8000; - - [NativeTypeName("#define SBSP_ALLOW_AUTONAVIGATE 0x00010000")] - public const int SBSP_ALLOW_AUTONAVIGATE = 0x00010000; - - [NativeTypeName("#define SBSP_KEEPSAMETEMPLATE 0x00020000")] - public const int SBSP_KEEPSAMETEMPLATE = 0x00020000; - - [NativeTypeName("#define SBSP_KEEPWORDWHEELTEXT 0x00040000")] - public const int SBSP_KEEPWORDWHEELTEXT = 0x00040000; - - [NativeTypeName("#define SBSP_ACTIVATE_NOFOCUS 0x00080000")] - public const int SBSP_ACTIVATE_NOFOCUS = 0x00080000; - - [NativeTypeName("#define SBSP_CREATENOHISTORY 0x00100000")] - public const int SBSP_CREATENOHISTORY = 0x00100000; - - [NativeTypeName("#define SBSP_PLAYNOSOUND 0x00200000")] - public const int SBSP_PLAYNOSOUND = 0x00200000; - - [NativeTypeName("#define SBSP_CALLERUNTRUSTED 0x00800000")] - public const int SBSP_CALLERUNTRUSTED = 0x00800000; - - [NativeTypeName("#define SBSP_TRUSTFIRSTDOWNLOAD 0x01000000")] - public const int SBSP_TRUSTFIRSTDOWNLOAD = 0x01000000; - - [NativeTypeName("#define SBSP_UNTRUSTEDFORDOWNLOAD 0x02000000")] - public const int SBSP_UNTRUSTEDFORDOWNLOAD = 0x02000000; - - [NativeTypeName("#define SBSP_NOAUTOSELECT 0x04000000")] - public const int SBSP_NOAUTOSELECT = 0x04000000; - - [NativeTypeName("#define SBSP_WRITENOHISTORY 0x08000000")] - public const int SBSP_WRITENOHISTORY = 0x08000000; - - [NativeTypeName("#define SBSP_TRUSTEDFORACTIVEX 0x10000000")] - public const int SBSP_TRUSTEDFORACTIVEX = 0x10000000; - - [NativeTypeName("#define SBSP_FEEDNAVIGATION 0x20000000")] - public const int SBSP_FEEDNAVIGATION = 0x20000000; - - [NativeTypeName("#define SBSP_REDIRECT 0x40000000")] - public const int SBSP_REDIRECT = 0x40000000; - - [NativeTypeName("#define SBSP_INITIATEDBYHLINKFRAME 0x80000000")] - public const uint SBSP_INITIATEDBYHLINKFRAME = 0x80000000; - [NativeTypeName("#define FCW_STATUS 0x0001")] public const int FCW_STATUS = 0x0001; @@ -805,99 +418,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define SID_SProfferService IID_IProfferService")] public static ref readonly Guid SID_SProfferService => ref IID_IProfferService; - [NativeTypeName("#define STR_DONT_RESOLVE_LINK L\"Don't Resolve Link\"")] - public const string STR_DONT_RESOLVE_LINK = "Don't Resolve Link"; - - [NativeTypeName("#define STR_GET_ASYNC_HANDLER L\"GetAsyncHandler\"")] - public const string STR_GET_ASYNC_HANDLER = "GetAsyncHandler"; - - [NativeTypeName("#define STR_GPS_HANDLERPROPERTIESONLY L\"GPS_HANDLERPROPERTIESONLY\"")] - public const string STR_GPS_HANDLERPROPERTIESONLY = "GPS_HANDLERPROPERTIESONLY"; - - [NativeTypeName("#define STR_GPS_FASTPROPERTIESONLY L\"GPS_FASTPROPERTIESONLY\"")] - public const string STR_GPS_FASTPROPERTIESONLY = "GPS_FASTPROPERTIESONLY"; - - [NativeTypeName("#define STR_GPS_OPENSLOWITEM L\"GPS_OPENSLOWITEM\"")] - public const string STR_GPS_OPENSLOWITEM = "GPS_OPENSLOWITEM"; - - [NativeTypeName("#define STR_GPS_DELAYCREATION L\"GPS_DELAYCREATION\"")] - public const string STR_GPS_DELAYCREATION = "GPS_DELAYCREATION"; - - [NativeTypeName("#define STR_GPS_BESTEFFORT L\"GPS_BESTEFFORT\"")] - public const string STR_GPS_BESTEFFORT = "GPS_BESTEFFORT"; - - [NativeTypeName("#define STR_GPS_NO_OPLOCK L\"GPS_NO_OPLOCK\"")] - public const string STR_GPS_NO_OPLOCK = "GPS_NO_OPLOCK"; - - [NativeTypeName("#define ARCONTENT_AUTORUNINF 0x00000002")] - public const int ARCONTENT_AUTORUNINF = 0x00000002; - - [NativeTypeName("#define ARCONTENT_AUDIOCD 0x00000004")] - public const int ARCONTENT_AUDIOCD = 0x00000004; - - [NativeTypeName("#define ARCONTENT_DVDMOVIE 0x00000008")] - public const int ARCONTENT_DVDMOVIE = 0x00000008; - - [NativeTypeName("#define ARCONTENT_BLANKCD 0x00000010")] - public const int ARCONTENT_BLANKCD = 0x00000010; - - [NativeTypeName("#define ARCONTENT_BLANKDVD 0x00000020")] - public const int ARCONTENT_BLANKDVD = 0x00000020; - - [NativeTypeName("#define ARCONTENT_UNKNOWNCONTENT 0x00000040")] - public const int ARCONTENT_UNKNOWNCONTENT = 0x00000040; - - [NativeTypeName("#define ARCONTENT_AUTOPLAYPIX 0x00000080")] - public const int ARCONTENT_AUTOPLAYPIX = 0x00000080; - - [NativeTypeName("#define ARCONTENT_AUTOPLAYMUSIC 0x00000100")] - public const int ARCONTENT_AUTOPLAYMUSIC = 0x00000100; - - [NativeTypeName("#define ARCONTENT_AUTOPLAYVIDEO 0x00000200")] - public const int ARCONTENT_AUTOPLAYVIDEO = 0x00000200; - - [NativeTypeName("#define ARCONTENT_VCD 0x00000400")] - public const int ARCONTENT_VCD = 0x00000400; - - [NativeTypeName("#define ARCONTENT_SVCD 0x00000800")] - public const int ARCONTENT_SVCD = 0x00000800; - - [NativeTypeName("#define ARCONTENT_DVDAUDIO 0x00001000")] - public const int ARCONTENT_DVDAUDIO = 0x00001000; - - [NativeTypeName("#define ARCONTENT_BLANKBD 0x00002000")] - public const int ARCONTENT_BLANKBD = 0x00002000; - - [NativeTypeName("#define ARCONTENT_BLURAY 0x00004000")] - public const int ARCONTENT_BLURAY = 0x00004000; - - [NativeTypeName("#define ARCONTENT_CAMERASTORAGE 0x00008000")] - public const int ARCONTENT_CAMERASTORAGE = 0x00008000; - - [NativeTypeName("#define ARCONTENT_CUSTOMEVENT 0x00010000")] - public const int ARCONTENT_CUSTOMEVENT = 0x00010000; - - [NativeTypeName("#define ARCONTENT_NONE 0x00000000")] - public const int ARCONTENT_NONE = 0x00000000; - - [NativeTypeName("#define ARCONTENT_MASK 0x0001FFFE")] - public const int ARCONTENT_MASK = 0x0001FFFE; - - [NativeTypeName("#define ARCONTENT_PHASE_UNKNOWN 0x00000000")] - public const int ARCONTENT_PHASE_UNKNOWN = 0x00000000; - - [NativeTypeName("#define ARCONTENT_PHASE_PRESNIFF 0x10000000")] - public const int ARCONTENT_PHASE_PRESNIFF = 0x10000000; - - [NativeTypeName("#define ARCONTENT_PHASE_SNIFFING 0x20000000")] - public const int ARCONTENT_PHASE_SNIFFING = 0x20000000; - - [NativeTypeName("#define ARCONTENT_PHASE_FINAL 0x40000000")] - public const int ARCONTENT_PHASE_FINAL = 0x40000000; - - [NativeTypeName("#define ARCONTENT_PHASE_MASK 0x70000000")] - public const int ARCONTENT_PHASE_MASK = 0x70000000; - [NativeTypeName("#define IEI_PRIORITY_MAX ITSAT_MAX_PRIORITY")] public const int IEI_PRIORITY_MAX = 0x7fffffff; @@ -907,39 +427,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define IEIT_PRIORITY_NORMAL ITSAT_DEFAULT_PRIORITY")] public const int IEIT_PRIORITY_NORMAL = 0x10000000; - [NativeTypeName("#define IEIFLAG_ASYNC 0x0001")] - public const int IEIFLAG_ASYNC = 0x0001; - - [NativeTypeName("#define IEIFLAG_CACHE 0x0002")] - public const int IEIFLAG_CACHE = 0x0002; - - [NativeTypeName("#define IEIFLAG_ASPECT 0x0004")] - public const int IEIFLAG_ASPECT = 0x0004; - - [NativeTypeName("#define IEIFLAG_OFFLINE 0x0008")] - public const int IEIFLAG_OFFLINE = 0x0008; - - [NativeTypeName("#define IEIFLAG_GLEAM 0x0010")] - public const int IEIFLAG_GLEAM = 0x0010; - - [NativeTypeName("#define IEIFLAG_SCREEN 0x0020")] - public const int IEIFLAG_SCREEN = 0x0020; - - [NativeTypeName("#define IEIFLAG_ORIGSIZE 0x0040")] - public const int IEIFLAG_ORIGSIZE = 0x0040; - - [NativeTypeName("#define IEIFLAG_NOSTAMP 0x0080")] - public const int IEIFLAG_NOSTAMP = 0x0080; - - [NativeTypeName("#define IEIFLAG_NOBORDER 0x0100")] - public const int IEIFLAG_NOBORDER = 0x0100; - - [NativeTypeName("#define IEIFLAG_QUALITY 0x0200")] - public const int IEIFLAG_QUALITY = 0x0200; - - [NativeTypeName("#define IEIFLAG_REFRESH 0x0400")] - public const int IEIFLAG_REFRESH = 0x0400; - [NativeTypeName("#define DBIM_MINSIZE 0x0001")] public const int DBIM_MINSIZE = 0x0001; @@ -961,48 +448,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define DBIM_BKCOLOR 0x0040")] public const int DBIM_BKCOLOR = 0x0040; - [NativeTypeName("#define DBIMF_NORMAL 0x0000")] - public const int DBIMF_NORMAL = 0x0000; - - [NativeTypeName("#define DBIMF_FIXED 0x0001")] - public const int DBIMF_FIXED = 0x0001; - - [NativeTypeName("#define DBIMF_FIXEDBMP 0x0004")] - public const int DBIMF_FIXEDBMP = 0x0004; - - [NativeTypeName("#define DBIMF_VARIABLEHEIGHT 0x0008")] - public const int DBIMF_VARIABLEHEIGHT = 0x0008; - - [NativeTypeName("#define DBIMF_UNDELETEABLE 0x0010")] - public const int DBIMF_UNDELETEABLE = 0x0010; - - [NativeTypeName("#define DBIMF_DEBOSSED 0x0020")] - public const int DBIMF_DEBOSSED = 0x0020; - - [NativeTypeName("#define DBIMF_BKCOLOR 0x0040")] - public const int DBIMF_BKCOLOR = 0x0040; - - [NativeTypeName("#define DBIMF_USECHEVRON 0x0080")] - public const int DBIMF_USECHEVRON = 0x0080; - - [NativeTypeName("#define DBIMF_BREAK 0x0100")] - public const int DBIMF_BREAK = 0x0100; - - [NativeTypeName("#define DBIMF_ADDTOFRONT 0x0200")] - public const int DBIMF_ADDTOFRONT = 0x0200; - - [NativeTypeName("#define DBIMF_TOPALIGN 0x0400")] - public const int DBIMF_TOPALIGN = 0x0400; - - [NativeTypeName("#define DBIMF_NOGRIPPER 0x0800")] - public const int DBIMF_NOGRIPPER = 0x0800; - - [NativeTypeName("#define DBIMF_ALWAYSGRIPPER 0x1000")] - public const int DBIMF_ALWAYSGRIPPER = 0x1000; - - [NativeTypeName("#define DBIMF_NOMARGINS 0x2000")] - public const int DBIMF_NOMARGINS = 0x2000; - [NativeTypeName("#define DBIF_VIEWMODE_NORMAL 0x0000")] public const int DBIF_VIEWMODE_NORMAL = 0x0000; @@ -1027,54 +472,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define THBN_CLICKED 0x1800")] public const int THBN_CLICKED = 0x1800; - [NativeTypeName("#define FOFX_NOSKIPJUNCTIONS 0x00010000")] - public const int FOFX_NOSKIPJUNCTIONS = 0x00010000; - - [NativeTypeName("#define FOFX_PREFERHARDLINK 0x00020000")] - public const int FOFX_PREFERHARDLINK = 0x00020000; - - [NativeTypeName("#define FOFX_SHOWELEVATIONPROMPT 0x00040000")] - public const int FOFX_SHOWELEVATIONPROMPT = 0x00040000; - - [NativeTypeName("#define FOFX_RECYCLEONDELETE 0x00080000")] - public const int FOFX_RECYCLEONDELETE = 0x00080000; - - [NativeTypeName("#define FOFX_EARLYFAILURE 0x00100000")] - public const int FOFX_EARLYFAILURE = 0x00100000; - - [NativeTypeName("#define FOFX_PRESERVEFILEEXTENSIONS 0x00200000")] - public const int FOFX_PRESERVEFILEEXTENSIONS = 0x00200000; - - [NativeTypeName("#define FOFX_KEEPNEWERFILE 0x00400000")] - public const int FOFX_KEEPNEWERFILE = 0x00400000; - - [NativeTypeName("#define FOFX_NOCOPYHOOKS 0x00800000")] - public const int FOFX_NOCOPYHOOKS = 0x00800000; - - [NativeTypeName("#define FOFX_NOMINIMIZEBOX 0x01000000")] - public const int FOFX_NOMINIMIZEBOX = 0x01000000; - - [NativeTypeName("#define FOFX_MOVEACLSACROSSVOLUMES 0x02000000")] - public const int FOFX_MOVEACLSACROSSVOLUMES = 0x02000000; - - [NativeTypeName("#define FOFX_DONTDISPLAYSOURCEPATH 0x04000000")] - public const int FOFX_DONTDISPLAYSOURCEPATH = 0x04000000; - - [NativeTypeName("#define FOFX_DONTDISPLAYDESTPATH 0x08000000")] - public const int FOFX_DONTDISPLAYDESTPATH = 0x08000000; - - [NativeTypeName("#define FOFX_REQUIREELEVATION 0x10000000")] - public const int FOFX_REQUIREELEVATION = 0x10000000; - - [NativeTypeName("#define FOFX_ADDUNDORECORD 0x20000000")] - public const int FOFX_ADDUNDORECORD = 0x20000000; - - [NativeTypeName("#define FOFX_COPYASDOWNLOAD 0x40000000")] - public const int FOFX_COPYASDOWNLOAD = 0x40000000; - - [NativeTypeName("#define FOFX_DONTDISPLAYLOCATIONS 0x80000000")] - public const uint FOFX_DONTDISPLAYLOCATIONS = 0x80000000; - [NativeTypeName("#define FreeIDListArrayFull FreeIDListArray")] public static delegate* FreeIDListArrayFull => &FreeIDListArray; @@ -1096,54 +493,12 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define BSSF_UNDELETEABLE 0x00001000")] public const int BSSF_UNDELETEABLE = 0x00001000; - [NativeTypeName("#define BSIS_AUTOGRIPPER 0x00000000")] - public const int BSIS_AUTOGRIPPER = 0x00000000; - - [NativeTypeName("#define BSIS_NOGRIPPER 0x00000001")] - public const int BSIS_NOGRIPPER = 0x00000001; - - [NativeTypeName("#define BSIS_ALWAYSGRIPPER 0x00000002")] - public const int BSIS_ALWAYSGRIPPER = 0x00000002; - - [NativeTypeName("#define BSIS_LEFTALIGN 0x00000004")] - public const int BSIS_LEFTALIGN = 0x00000004; - - [NativeTypeName("#define BSIS_SINGLECLICK 0x00000008")] - public const int BSIS_SINGLECLICK = 0x00000008; - - [NativeTypeName("#define BSIS_NOCONTEXTMENU 0x00000010")] - public const int BSIS_NOCONTEXTMENU = 0x00000010; - - [NativeTypeName("#define BSIS_NODROPTARGET 0x00000020")] - public const int BSIS_NODROPTARGET = 0x00000020; - - [NativeTypeName("#define BSIS_NOCAPTION 0x00000040")] - public const int BSIS_NOCAPTION = 0x00000040; - - [NativeTypeName("#define BSIS_PREFERNOLINEBREAK 0x00000080")] - public const int BSIS_PREFERNOLINEBREAK = 0x00000080; - - [NativeTypeName("#define BSIS_LOCKED 0x00000100")] - public const int BSIS_LOCKED = 0x00000100; - - [NativeTypeName("#define BSIS_PRESERVEORDERDURINGLAYOUT 0x00000200")] - public const int BSIS_PRESERVEORDERDURINGLAYOUT = 0x00000200; - - [NativeTypeName("#define BSIS_FIXEDORDER 0x00000400")] - public const int BSIS_FIXEDORDER = 0x00000400; - [NativeTypeName("#define SID_SBandSite IID_IBandSite")] public static ref readonly Guid SID_SBandSite => ref IID_IBandSite; [NativeTypeName("#define CGID_BandSite IID_IBandSite")] public static ref readonly Guid CGID_BandSite => ref IID_IBandSite; - [NativeTypeName("#define OF_CAP_CANSWITCHTO 0x0001")] - public const int OF_CAP_CANSWITCHTO = 0x0001; - - [NativeTypeName("#define OF_CAP_CANCLOSE 0x0002")] - public const int OF_CAP_CANCLOSE = 0x0002; - [NativeTypeName("#define SID_SNewWindowManager IID_INewWindowManager")] public static ref readonly Guid SID_SNewWindowManager => ref IID_INewWindowManager; @@ -1156,84 +511,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define SMDM_TOOLBAR 0x00000004")] public const int SMDM_TOOLBAR = 0x00000004; - [NativeTypeName("#define SMC_INITMENU 0x00000001")] - public const int SMC_INITMENU = 0x00000001; - - [NativeTypeName("#define SMC_CREATE 0x00000002")] - public const int SMC_CREATE = 0x00000002; - - [NativeTypeName("#define SMC_EXITMENU 0x00000003")] - public const int SMC_EXITMENU = 0x00000003; - - [NativeTypeName("#define SMC_GETINFO 0x00000005")] - public const int SMC_GETINFO = 0x00000005; - - [NativeTypeName("#define SMC_GETSFINFO 0x00000006")] - public const int SMC_GETSFINFO = 0x00000006; - - [NativeTypeName("#define SMC_GETOBJECT 0x00000007")] - public const int SMC_GETOBJECT = 0x00000007; - - [NativeTypeName("#define SMC_GETSFOBJECT 0x00000008")] - public const int SMC_GETSFOBJECT = 0x00000008; - - [NativeTypeName("#define SMC_SFEXEC 0x00000009")] - public const int SMC_SFEXEC = 0x00000009; - - [NativeTypeName("#define SMC_SFSELECTITEM 0x0000000A")] - public const int SMC_SFSELECTITEM = 0x0000000A; - - [NativeTypeName("#define SMC_REFRESH 0x00000010")] - public const int SMC_REFRESH = 0x00000010; - - [NativeTypeName("#define SMC_DEMOTE 0x00000011")] - public const int SMC_DEMOTE = 0x00000011; - - [NativeTypeName("#define SMC_PROMOTE 0x00000012")] - public const int SMC_PROMOTE = 0x00000012; - - [NativeTypeName("#define SMC_DEFAULTICON 0x00000016")] - public const int SMC_DEFAULTICON = 0x00000016; - - [NativeTypeName("#define SMC_NEWITEM 0x00000017")] - public const int SMC_NEWITEM = 0x00000017; - - [NativeTypeName("#define SMC_CHEVRONEXPAND 0x00000019")] - public const int SMC_CHEVRONEXPAND = 0x00000019; - - [NativeTypeName("#define SMC_DISPLAYCHEVRONTIP 0x0000002A")] - public const int SMC_DISPLAYCHEVRONTIP = 0x0000002A; - - [NativeTypeName("#define SMC_SETSFOBJECT 0x0000002D")] - public const int SMC_SETSFOBJECT = 0x0000002D; - - [NativeTypeName("#define SMC_SHCHANGENOTIFY 0x0000002E")] - public const int SMC_SHCHANGENOTIFY = 0x0000002E; - - [NativeTypeName("#define SMC_CHEVRONGETTIP 0x0000002F")] - public const int SMC_CHEVRONGETTIP = 0x0000002F; - - [NativeTypeName("#define SMC_SFDDRESTRICTED 0x00000030")] - public const int SMC_SFDDRESTRICTED = 0x00000030; - - [NativeTypeName("#define SMC_SFEXEC_MIDDLE 0x00000031")] - public const int SMC_SFEXEC_MIDDLE = 0x00000031; - - [NativeTypeName("#define SMC_GETAUTOEXPANDSTATE 0x00000041")] - public const int SMC_GETAUTOEXPANDSTATE = 0x00000041; - - [NativeTypeName("#define SMC_AUTOEXPANDCHANGE 0x00000042")] - public const int SMC_AUTOEXPANDCHANGE = 0x00000042; - - [NativeTypeName("#define SMC_GETCONTEXTMENUMODIFIER 0x00000043")] - public const int SMC_GETCONTEXTMENUMODIFIER = 0x00000043; - - [NativeTypeName("#define SMC_GETBKCONTEXTMENU 0x00000044")] - public const int SMC_GETBKCONTEXTMENU = 0x00000044; - - [NativeTypeName("#define SMC_OPEN 0x00000045")] - public const int SMC_OPEN = 0x00000045; - [NativeTypeName("#define SMAE_EXPANDED 0x00000001")] public const int SMAE_EXPANDED = 0x00000001; @@ -1300,12 +577,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define SID_ExplorerPaneVisibility IID_IExplorerPaneVisibility")] public static ref readonly Guid SID_ExplorerPaneVisibility => ref IID_IExplorerPaneVisibility; - [NativeTypeName("#define STR_FILE_SYS_BIND_DATA L\"File System Bind Data\"")] - public const string STR_FILE_SYS_BIND_DATA = "File System Bind Data"; - - [NativeTypeName("#define STR_FILE_SYS_BIND_DATA_WIN7_FORMAT L\"Win7FileSystemIdList\"")] - public const string STR_FILE_SYS_BIND_DATA_WIN7_FORMAT = "Win7FileSystemIdList"; - [NativeTypeName("#define HOMEGROUP_SECURITY_GROUP_MULTI L\"HUG\"")] public const string HOMEGROUP_SECURITY_GROUP_MULTI = "HUG"; @@ -1318,12 +589,6 @@ public static ref readonly Guid SID_ShellExecuteNamedPropertyStore [NativeTypeName("#define SID_ExecuteCommandHost IID_IExecuteCommandHost")] public static ref readonly Guid SID_ExecuteCommandHost => ref IID_IExecuteCommandHost; - [NativeTypeName("#define STR_TAB_REUSE_IDENTIFIER L\"Tab Reuse Identifier\"")] - public const string STR_TAB_REUSE_IDENTIFIER = "Tab Reuse Identifier"; - - [NativeTypeName("#define STR_REFERRER_IDENTIFIER L\"Referrer Identifier\"")] - public const string STR_REFERRER_IDENTIFIER = "Referrer Identifier"; - [NativeTypeName("#define SID_HandlerInfo IID_IHandlerInfo")] public static ref readonly Guid SID_HandlerInfo => ref IID_IHandlerInfo; diff --git a/sources/Interop/Windows/Windows/um/ShlGuid/PIDVSI.cs b/sources/Interop/Windows/Windows/um/ShlGuid/PIDVSI.cs new file mode 100644 index 0000000000..9a96d26342 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlGuid/PIDVSI.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlGuid.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PIDVSI + { + [NativeTypeName("#define PIDVSI_STREAM_NAME 0x00000002")] + public const int PIDVSI_STREAM_NAME = 0x00000002; + + [NativeTypeName("#define PIDVSI_FRAME_WIDTH 0x00000003")] + public const int PIDVSI_FRAME_WIDTH = 0x00000003; + + [NativeTypeName("#define PIDVSI_FRAME_HEIGHT 0x00000004")] + public const int PIDVSI_FRAME_HEIGHT = 0x00000004; + + [NativeTypeName("#define PIDVSI_TIMELENGTH 0x00000007")] + public const int PIDVSI_TIMELENGTH = 0x00000007; + + [NativeTypeName("#define PIDVSI_FRAME_COUNT 0x00000005")] + public const int PIDVSI_FRAME_COUNT = 0x00000005; + + [NativeTypeName("#define PIDVSI_FRAME_RATE 0x00000006")] + public const int PIDVSI_FRAME_RATE = 0x00000006; + + [NativeTypeName("#define PIDVSI_DATA_RATE 0x00000008")] + public const int PIDVSI_DATA_RATE = 0x00000008; + + [NativeTypeName("#define PIDVSI_SAMPLE_SIZE 0x00000009")] + public const int PIDVSI_SAMPLE_SIZE = 0x00000009; + + [NativeTypeName("#define PIDVSI_COMPRESSION 0x0000000A")] + public const int PIDVSI_COMPRESSION = 0x0000000A; + + [NativeTypeName("#define PIDVSI_STREAM_NUMBER 0x0000000B")] + public const int PIDVSI_STREAM_NUMBER = 0x0000000B; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlGuid/STR.cs b/sources/Interop/Windows/Windows/um/ShlGuid/STR.cs new file mode 100644 index 0000000000..3b4b6e0822 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlGuid/STR.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlGuid.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class STR + { + [NativeTypeName("#define STR_MYDOCS_CLSID \"{450D8FBA-AD25-11D0-98A8-0800361B1103}\"")] + public static ReadOnlySpan STR_MYDOCS_CLSID => new byte[] { 0x7B, 0x34, 0x35, 0x30, 0x44, 0x38, 0x46, 0x42, 0x41, 0x2D, 0x41, 0x44, 0x32, 0x35, 0x2D, 0x31, 0x31, 0x44, 0x30, 0x2D, 0x39, 0x38, 0x41, 0x38, 0x2D, 0x30, 0x38, 0x30, 0x30, 0x33, 0x36, 0x31, 0x42, 0x31, 0x31, 0x30, 0x33, 0x7D, 0x00 }; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlGuid/Windows.cs b/sources/Interop/Windows/Windows/um/ShlGuid/Windows.cs index ebe52ca1d7..2cbe470ba2 100644 --- a/sources/Interop/Windows/Windows/um/ShlGuid/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ShlGuid/Windows.cs @@ -3589,9 +3589,6 @@ public static ref readonly Guid CATID_SearchableApplication } } - [NativeTypeName("#define STR_MYDOCS_CLSID \"{450D8FBA-AD25-11D0-98A8-0800361B1103}\"")] - public static ReadOnlySpan STR_MYDOCS_CLSID => new byte[] { 0x7B, 0x34, 0x35, 0x30, 0x44, 0x38, 0x46, 0x42, 0x41, 0x2D, 0x41, 0x44, 0x32, 0x35, 0x2D, 0x31, 0x31, 0x44, 0x30, 0x2D, 0x39, 0x38, 0x41, 0x38, 0x2D, 0x30, 0x38, 0x30, 0x30, 0x33, 0x36, 0x31, 0x42, 0x31, 0x31, 0x30, 0x33, 0x7D, 0x00 }; - [NativeTypeName("#define SID_LinkSite IID_IShellLinkW")] public static ref readonly Guid SID_LinkSite => ref IID_IShellLinkW; @@ -3652,36 +3649,6 @@ public static ref readonly Guid CATID_SearchableApplication [NativeTypeName("#define PIDDRSI_PLAYEXPIRES 6")] public const int PIDDRSI_PLAYEXPIRES = 6; - [NativeTypeName("#define PIDVSI_STREAM_NAME 0x00000002")] - public const int PIDVSI_STREAM_NAME = 0x00000002; - - [NativeTypeName("#define PIDVSI_FRAME_WIDTH 0x00000003")] - public const int PIDVSI_FRAME_WIDTH = 0x00000003; - - [NativeTypeName("#define PIDVSI_FRAME_HEIGHT 0x00000004")] - public const int PIDVSI_FRAME_HEIGHT = 0x00000004; - - [NativeTypeName("#define PIDVSI_TIMELENGTH 0x00000007")] - public const int PIDVSI_TIMELENGTH = 0x00000007; - - [NativeTypeName("#define PIDVSI_FRAME_COUNT 0x00000005")] - public const int PIDVSI_FRAME_COUNT = 0x00000005; - - [NativeTypeName("#define PIDVSI_FRAME_RATE 0x00000006")] - public const int PIDVSI_FRAME_RATE = 0x00000006; - - [NativeTypeName("#define PIDVSI_DATA_RATE 0x00000008")] - public const int PIDVSI_DATA_RATE = 0x00000008; - - [NativeTypeName("#define PIDVSI_SAMPLE_SIZE 0x00000009")] - public const int PIDVSI_SAMPLE_SIZE = 0x00000009; - - [NativeTypeName("#define PIDVSI_COMPRESSION 0x0000000A")] - public const int PIDVSI_COMPRESSION = 0x0000000A; - - [NativeTypeName("#define PIDVSI_STREAM_NUMBER 0x0000000B")] - public const int PIDVSI_STREAM_NUMBER = 0x0000000B; - [NativeTypeName("#define PIDASI_FORMAT 0x00000002")] public const int PIDASI_FORMAT = 0x00000002; diff --git a/sources/Interop/Windows/Windows/um/ShlObj/FCIDM.cs b/sources/Interop/Windows/Windows/um/ShlObj/FCIDM.cs new file mode 100644 index 0000000000..a9466311e9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj/FCIDM.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FCIDM + { + [NativeTypeName("#define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)")] + public const int FCIDM_TOOLBAR = (0xa000 + 0); + + [NativeTypeName("#define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)")] + public const int FCIDM_STATUS = (0xa000 + 1); + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj/ISFB.cs b/sources/Interop/Windows/Windows/um/ShlObj/ISFB.cs new file mode 100644 index 0000000000..d85995d832 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj/ISFB.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ISFB + { + [NativeTypeName("#define ISFB_MASK_STATE 0x00000001")] + public const int ISFB_MASK_STATE = 0x00000001; + + [NativeTypeName("#define ISFB_MASK_BKCOLOR 0x00000002")] + public const int ISFB_MASK_BKCOLOR = 0x00000002; + + [NativeTypeName("#define ISFB_MASK_VIEWMODE 0x00000004")] + public const int ISFB_MASK_VIEWMODE = 0x00000004; + + [NativeTypeName("#define ISFB_MASK_SHELLFOLDER 0x00000008")] + public const int ISFB_MASK_SHELLFOLDER = 0x00000008; + + [NativeTypeName("#define ISFB_MASK_IDLIST 0x00000010")] + public const int ISFB_MASK_IDLIST = 0x00000010; + + [NativeTypeName("#define ISFB_MASK_COLORS 0x00000020")] + public const int ISFB_MASK_COLORS = 0x00000020; + + [NativeTypeName("#define ISFB_STATE_DEFAULT 0x00000000")] + public const int ISFB_STATE_DEFAULT = 0x00000000; + + [NativeTypeName("#define ISFB_STATE_DEBOSSED 0x00000001")] + public const int ISFB_STATE_DEBOSSED = 0x00000001; + + [NativeTypeName("#define ISFB_STATE_ALLOWRENAME 0x00000002")] + public const int ISFB_STATE_ALLOWRENAME = 0x00000002; + + [NativeTypeName("#define ISFB_STATE_NOSHOWTEXT 0x00000004")] + public const int ISFB_STATE_NOSHOWTEXT = 0x00000004; + + [NativeTypeName("#define ISFB_STATE_CHANNELBAR 0x00000010")] + public const int ISFB_STATE_CHANNELBAR = 0x00000010; + + [NativeTypeName("#define ISFB_STATE_QLINKSMODE 0x00000020")] + public const int ISFB_STATE_QLINKSMODE = 0x00000020; + + [NativeTypeName("#define ISFB_STATE_FULLOPEN 0x00000040")] + public const int ISFB_STATE_FULLOPEN = 0x00000040; + + [NativeTypeName("#define ISFB_STATE_NONAMESORT 0x00000080")] + public const int ISFB_STATE_NONAMESORT = 0x00000080; + + [NativeTypeName("#define ISFB_STATE_BTNMINSIZE 0x00000100")] + public const int ISFB_STATE_BTNMINSIZE = 0x00000100; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj/SFVM.cs b/sources/Interop/Windows/Windows/um/ShlObj/SFVM.cs new file mode 100644 index 0000000000..12d1de963d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj/SFVM.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SFVM + { + [NativeTypeName("#define SFVM_REARRANGE 0x00000001")] + public const int SFVM_REARRANGE = 0x00000001; + + [NativeTypeName("#define SFVM_ADDOBJECT 0x00000003")] + public const int SFVM_ADDOBJECT = 0x00000003; + + [NativeTypeName("#define SFVM_REMOVEOBJECT 0x00000006")] + public const int SFVM_REMOVEOBJECT = 0x00000006; + + [NativeTypeName("#define SFVM_UPDATEOBJECT 0x00000007")] + public const int SFVM_UPDATEOBJECT = 0x00000007; + + [NativeTypeName("#define SFVM_GETSELECTEDOBJECTS 0x00000009")] + public const int SFVM_GETSELECTEDOBJECTS = 0x00000009; + + [NativeTypeName("#define SFVM_SETITEMPOS 0x0000000e")] + public const int SFVM_SETITEMPOS = 0x0000000e; + + [NativeTypeName("#define SFVM_SETCLIPBOARD 0x00000010")] + public const int SFVM_SETCLIPBOARD = 0x00000010; + + [NativeTypeName("#define SFVM_SETPOINTS 0x00000017")] + public const int SFVM_SETPOINTS = 0x00000017; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj/TBIF.cs b/sources/Interop/Windows/Windows/um/ShlObj/TBIF.cs new file mode 100644 index 0000000000..81af49e474 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj/TBIF.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TBIF + { + [NativeTypeName("#define TBIF_APPEND 0")] + public const int TBIF_APPEND = 0; + + [NativeTypeName("#define TBIF_PREPEND 1")] + public const int TBIF_PREPEND = 1; + + [NativeTypeName("#define TBIF_REPLACE 2")] + public const int TBIF_REPLACE = 2; + + [NativeTypeName("#define TBIF_DEFAULT 0x00000000")] + public const int TBIF_DEFAULT = 0x00000000; + + [NativeTypeName("#define TBIF_INTERNETBAR 0x00010000")] + public const int TBIF_INTERNETBAR = 0x00010000; + + [NativeTypeName("#define TBIF_STANDARDTOOLBAR 0x00020000")] + public const int TBIF_STANDARDTOOLBAR = 0x00020000; + + [NativeTypeName("#define TBIF_NOTOOLBAR 0x00030000")] + public const int TBIF_NOTOOLBAR = 0x00030000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj/Windows.cs b/sources/Interop/Windows/Windows/um/ShlObj/Windows.cs index e71150af34..4c5fdbb2e3 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj/Windows.cs @@ -53,12 +53,6 @@ public static unsafe partial class Windows [DllImport("mydocs", ExactSpelling = true)] public static extern void PerUserInit(); - [NativeTypeName("#define FCIDM_TOOLBAR (FCIDM_BROWSERFIRST + 0)")] - public const int FCIDM_TOOLBAR = (0xa000 + 0); - - [NativeTypeName("#define FCIDM_STATUS (FCIDM_BROWSERFIRST + 1)")] - public const int FCIDM_STATUS = (0xa000 + 1); - [NativeTypeName("#define IDC_OFFLINE_HAND 103")] public const int IDC_OFFLINE_HAND = 103; @@ -110,51 +104,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DWFAF_AUTOHIDE 0x0010")] public const int DWFAF_AUTOHIDE = 0x0010; - [NativeTypeName("#define ISFB_MASK_STATE 0x00000001")] - public const int ISFB_MASK_STATE = 0x00000001; - - [NativeTypeName("#define ISFB_MASK_BKCOLOR 0x00000002")] - public const int ISFB_MASK_BKCOLOR = 0x00000002; - - [NativeTypeName("#define ISFB_MASK_VIEWMODE 0x00000004")] - public const int ISFB_MASK_VIEWMODE = 0x00000004; - - [NativeTypeName("#define ISFB_MASK_SHELLFOLDER 0x00000008")] - public const int ISFB_MASK_SHELLFOLDER = 0x00000008; - - [NativeTypeName("#define ISFB_MASK_IDLIST 0x00000010")] - public const int ISFB_MASK_IDLIST = 0x00000010; - - [NativeTypeName("#define ISFB_MASK_COLORS 0x00000020")] - public const int ISFB_MASK_COLORS = 0x00000020; - - [NativeTypeName("#define ISFB_STATE_DEFAULT 0x00000000")] - public const int ISFB_STATE_DEFAULT = 0x00000000; - - [NativeTypeName("#define ISFB_STATE_DEBOSSED 0x00000001")] - public const int ISFB_STATE_DEBOSSED = 0x00000001; - - [NativeTypeName("#define ISFB_STATE_ALLOWRENAME 0x00000002")] - public const int ISFB_STATE_ALLOWRENAME = 0x00000002; - - [NativeTypeName("#define ISFB_STATE_NOSHOWTEXT 0x00000004")] - public const int ISFB_STATE_NOSHOWTEXT = 0x00000004; - - [NativeTypeName("#define ISFB_STATE_CHANNELBAR 0x00000010")] - public const int ISFB_STATE_CHANNELBAR = 0x00000010; - - [NativeTypeName("#define ISFB_STATE_QLINKSMODE 0x00000020")] - public const int ISFB_STATE_QLINKSMODE = 0x00000020; - - [NativeTypeName("#define ISFB_STATE_FULLOPEN 0x00000040")] - public const int ISFB_STATE_FULLOPEN = 0x00000040; - - [NativeTypeName("#define ISFB_STATE_NONAMESORT 0x00000080")] - public const int ISFB_STATE_NONAMESORT = 0x00000080; - - [NativeTypeName("#define ISFB_STATE_BTNMINSIZE 0x00000100")] - public const int ISFB_STATE_BTNMINSIZE = 0x00000100; - [NativeTypeName("#define ISFBVIEWMODE_SMALLICONS 0x0001")] public const int ISFBVIEWMODE_SMALLICONS = 0x0001; @@ -239,52 +188,7 @@ public static unsafe partial class Windows [NativeTypeName("#define CLOSEPROPS_DISCARD 0x0001")] public const int CLOSEPROPS_DISCARD = 0x0001; - [NativeTypeName("#define TBIF_APPEND 0")] - public const int TBIF_APPEND = 0; - - [NativeTypeName("#define TBIF_PREPEND 1")] - public const int TBIF_PREPEND = 1; - - [NativeTypeName("#define TBIF_REPLACE 2")] - public const int TBIF_REPLACE = 2; - - [NativeTypeName("#define TBIF_DEFAULT 0x00000000")] - public const int TBIF_DEFAULT = 0x00000000; - - [NativeTypeName("#define TBIF_INTERNETBAR 0x00010000")] - public const int TBIF_INTERNETBAR = 0x00010000; - - [NativeTypeName("#define TBIF_STANDARDTOOLBAR 0x00020000")] - public const int TBIF_STANDARDTOOLBAR = 0x00020000; - - [NativeTypeName("#define TBIF_NOTOOLBAR 0x00030000")] - public const int TBIF_NOTOOLBAR = 0x00030000; - [NativeTypeName("#define SHOpenPropSheet SHOpenPropSheetW")] public static delegate* SHOpenPropSheet => &SHOpenPropSheetW; - - [NativeTypeName("#define SFVM_REARRANGE 0x00000001")] - public const int SFVM_REARRANGE = 0x00000001; - - [NativeTypeName("#define SFVM_ADDOBJECT 0x00000003")] - public const int SFVM_ADDOBJECT = 0x00000003; - - [NativeTypeName("#define SFVM_REMOVEOBJECT 0x00000006")] - public const int SFVM_REMOVEOBJECT = 0x00000006; - - [NativeTypeName("#define SFVM_UPDATEOBJECT 0x00000007")] - public const int SFVM_UPDATEOBJECT = 0x00000007; - - [NativeTypeName("#define SFVM_GETSELECTEDOBJECTS 0x00000009")] - public const int SFVM_GETSELECTEDOBJECTS = 0x00000009; - - [NativeTypeName("#define SFVM_SETITEMPOS 0x0000000e")] - public const int SFVM_SETITEMPOS = 0x0000000e; - - [NativeTypeName("#define SFVM_SETCLIPBOARD 0x00000010")] - public const int SFVM_SETCLIPBOARD = 0x00000010; - - [NativeTypeName("#define SFVM_SETPOINTS 0x00000017")] - public const int SFVM_SETPOINTS = 0x00000017; } } diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/BFFM.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/BFFM.cs new file mode 100644 index 0000000000..5753439d78 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/BFFM.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BFFM + { + [NativeTypeName("#define BFFM_INITIALIZED 1")] + public const int BFFM_INITIALIZED = 1; + + [NativeTypeName("#define BFFM_SELCHANGED 2")] + public const int BFFM_SELCHANGED = 2; + + [NativeTypeName("#define BFFM_VALIDATEFAILEDA 3")] + public const int BFFM_VALIDATEFAILEDA = 3; + + [NativeTypeName("#define BFFM_VALIDATEFAILEDW 4")] + public const int BFFM_VALIDATEFAILEDW = 4; + + [NativeTypeName("#define BFFM_IUNKNOWN 5")] + public const int BFFM_IUNKNOWN = 5; + + [NativeTypeName("#define BFFM_SETSTATUSTEXTA (WM_USER + 100)")] + public const int BFFM_SETSTATUSTEXTA = (0x0400 + 100); + + [NativeTypeName("#define BFFM_ENABLEOK (WM_USER + 101)")] + public const int BFFM_ENABLEOK = (0x0400 + 101); + + [NativeTypeName("#define BFFM_SETSELECTIONA (WM_USER + 102)")] + public const int BFFM_SETSELECTIONA = (0x0400 + 102); + + [NativeTypeName("#define BFFM_SETSELECTIONW (WM_USER + 103)")] + public const int BFFM_SETSELECTIONW = (0x0400 + 103); + + [NativeTypeName("#define BFFM_SETSTATUSTEXTW (WM_USER + 104)")] + public const int BFFM_SETSTATUSTEXTW = (0x0400 + 104); + + [NativeTypeName("#define BFFM_SETOKTEXT (WM_USER + 105)")] + public const int BFFM_SETOKTEXT = (0x0400 + 105); + + [NativeTypeName("#define BFFM_SETEXPANDED (WM_USER + 106)")] + public const int BFFM_SETEXPANDED = (0x0400 + 106); + + [NativeTypeName("#define BFFM_SETSTATUSTEXT BFFM_SETSTATUSTEXTW")] + public const int BFFM_SETSTATUSTEXT = (0x0400 + 104); + + [NativeTypeName("#define BFFM_SETSELECTION BFFM_SETSELECTIONW")] + public const int BFFM_SETSELECTION = (0x0400 + 103); + + [NativeTypeName("#define BFFM_VALIDATEFAILED BFFM_VALIDATEFAILEDW")] + public const int BFFM_VALIDATEFAILED = 4; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/BIF.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/BIF.cs new file mode 100644 index 0000000000..4c99a380ad --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/BIF.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BIF + { + [NativeTypeName("#define BIF_RETURNONLYFSDIRS 0x00000001")] + public const int BIF_RETURNONLYFSDIRS = 0x00000001; + + [NativeTypeName("#define BIF_DONTGOBELOWDOMAIN 0x00000002")] + public const int BIF_DONTGOBELOWDOMAIN = 0x00000002; + + [NativeTypeName("#define BIF_STATUSTEXT 0x00000004")] + public const int BIF_STATUSTEXT = 0x00000004; + + [NativeTypeName("#define BIF_RETURNFSANCESTORS 0x00000008")] + public const int BIF_RETURNFSANCESTORS = 0x00000008; + + [NativeTypeName("#define BIF_EDITBOX 0x00000010")] + public const int BIF_EDITBOX = 0x00000010; + + [NativeTypeName("#define BIF_VALIDATE 0x00000020")] + public const int BIF_VALIDATE = 0x00000020; + + [NativeTypeName("#define BIF_NEWDIALOGSTYLE 0x00000040")] + public const int BIF_NEWDIALOGSTYLE = 0x00000040; + + [NativeTypeName("#define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)")] + public const int BIF_USENEWUI = (0x00000040 | 0x00000010); + + [NativeTypeName("#define BIF_BROWSEINCLUDEURLS 0x00000080")] + public const int BIF_BROWSEINCLUDEURLS = 0x00000080; + + [NativeTypeName("#define BIF_UAHINT 0x00000100")] + public const int BIF_UAHINT = 0x00000100; + + [NativeTypeName("#define BIF_NONEWFOLDERBUTTON 0x00000200")] + public const int BIF_NONEWFOLDERBUTTON = 0x00000200; + + [NativeTypeName("#define BIF_NOTRANSLATETARGETS 0x00000400")] + public const int BIF_NOTRANSLATETARGETS = 0x00000400; + + [NativeTypeName("#define BIF_BROWSEFORCOMPUTER 0x00001000")] + public const int BIF_BROWSEFORCOMPUTER = 0x00001000; + + [NativeTypeName("#define BIF_BROWSEFORPRINTER 0x00002000")] + public const int BIF_BROWSEFORPRINTER = 0x00002000; + + [NativeTypeName("#define BIF_BROWSEINCLUDEFILES 0x00004000")] + public const int BIF_BROWSEINCLUDEFILES = 0x00004000; + + [NativeTypeName("#define BIF_SHAREABLE 0x00008000")] + public const int BIF_SHAREABLE = 0x00008000; + + [NativeTypeName("#define BIF_BROWSEFILEJUNCTIONS 0x00010000")] + public const int BIF_BROWSEFILEJUNCTIONS = 0x00010000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/DFM.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/DFM.cs new file mode 100644 index 0000000000..d594b6167c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/DFM.cs @@ -0,0 +1,97 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DFM + { + [NativeTypeName("#define DFM_MERGECONTEXTMENU 1")] + public const int DFM_MERGECONTEXTMENU = 1; + + [NativeTypeName("#define DFM_INVOKECOMMAND 2")] + public const int DFM_INVOKECOMMAND = 2; + + [NativeTypeName("#define DFM_GETHELPTEXT 5")] + public const int DFM_GETHELPTEXT = 5; + + [NativeTypeName("#define DFM_WM_MEASUREITEM 6")] + public const int DFM_WM_MEASUREITEM = 6; + + [NativeTypeName("#define DFM_WM_DRAWITEM 7")] + public const int DFM_WM_DRAWITEM = 7; + + [NativeTypeName("#define DFM_WM_INITMENUPOPUP 8")] + public const int DFM_WM_INITMENUPOPUP = 8; + + [NativeTypeName("#define DFM_VALIDATECMD 9")] + public const int DFM_VALIDATECMD = 9; + + [NativeTypeName("#define DFM_MERGECONTEXTMENU_TOP 10")] + public const int DFM_MERGECONTEXTMENU_TOP = 10; + + [NativeTypeName("#define DFM_GETHELPTEXTW 11")] + public const int DFM_GETHELPTEXTW = 11; + + [NativeTypeName("#define DFM_INVOKECOMMANDEX 12")] + public const int DFM_INVOKECOMMANDEX = 12; + + [NativeTypeName("#define DFM_MAPCOMMANDNAME 13")] + public const int DFM_MAPCOMMANDNAME = 13; + + [NativeTypeName("#define DFM_GETDEFSTATICID 14")] + public const int DFM_GETDEFSTATICID = 14; + + [NativeTypeName("#define DFM_GETVERBW 15")] + public const int DFM_GETVERBW = 15; + + [NativeTypeName("#define DFM_GETVERBA 16")] + public const int DFM_GETVERBA = 16; + + [NativeTypeName("#define DFM_MERGECONTEXTMENU_BOTTOM 17")] + public const int DFM_MERGECONTEXTMENU_BOTTOM = 17; + + [NativeTypeName("#define DFM_MODIFYQCMFLAGS 18")] + public const int DFM_MODIFYQCMFLAGS = 18; + + [NativeTypeName("#define DFM_CMD_DELETE ((UINT)-1)")] + public const uint DFM_CMD_DELETE = unchecked((uint)(-1)); + + [NativeTypeName("#define DFM_CMD_MOVE ((UINT)-2)")] + public const uint DFM_CMD_MOVE = unchecked((uint)(-2)); + + [NativeTypeName("#define DFM_CMD_COPY ((UINT)-3)")] + public const uint DFM_CMD_COPY = unchecked((uint)(-3)); + + [NativeTypeName("#define DFM_CMD_LINK ((UINT)-4)")] + public const uint DFM_CMD_LINK = unchecked((uint)(-4)); + + [NativeTypeName("#define DFM_CMD_PROPERTIES ((UINT)-5)")] + public const uint DFM_CMD_PROPERTIES = unchecked((uint)(-5)); + + [NativeTypeName("#define DFM_CMD_NEWFOLDER ((UINT)-6)")] + public const uint DFM_CMD_NEWFOLDER = unchecked((uint)(-6)); + + [NativeTypeName("#define DFM_CMD_PASTE ((UINT)-7)")] + public const uint DFM_CMD_PASTE = unchecked((uint)(-7)); + + [NativeTypeName("#define DFM_CMD_VIEWLIST ((UINT)-8)")] + public const uint DFM_CMD_VIEWLIST = unchecked((uint)(-8)); + + [NativeTypeName("#define DFM_CMD_VIEWDETAILS ((UINT)-9)")] + public const uint DFM_CMD_VIEWDETAILS = unchecked((uint)(-9)); + + [NativeTypeName("#define DFM_CMD_PASTELINK ((UINT)-10)")] + public const uint DFM_CMD_PASTELINK = unchecked((uint)(-10)); + + [NativeTypeName("#define DFM_CMD_PASTESPECIAL ((UINT)-11)")] + public const uint DFM_CMD_PASTESPECIAL = unchecked((uint)(-11)); + + [NativeTypeName("#define DFM_CMD_MODALPROP ((UINT)-12)")] + public const uint DFM_CMD_MODALPROP = unchecked((uint)(-12)); + + [NativeTypeName("#define DFM_CMD_RENAME ((UINT)-13)")] + public const uint DFM_CMD_RENAME = unchecked((uint)(-13)); + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/FCIDM.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/FCIDM.cs new file mode 100644 index 0000000000..9402310870 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/FCIDM.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FCIDM + { + [NativeTypeName("#define FCIDM_SHVIEWFIRST 0x0000")] + public const int FCIDM_SHVIEWFIRST = 0x0000; + + [NativeTypeName("#define FCIDM_SHVIEWLAST 0x7fff")] + public const int FCIDM_SHVIEWLAST = 0x7fff; + + [NativeTypeName("#define FCIDM_BROWSERFIRST 0xa000")] + public const int FCIDM_BROWSERFIRST = 0xa000; + + [NativeTypeName("#define FCIDM_BROWSERLAST 0xbf00")] + public const int FCIDM_BROWSERLAST = 0xbf00; + + [NativeTypeName("#define FCIDM_GLOBALFIRST 0x8000")] + public const int FCIDM_GLOBALFIRST = 0x8000; + + [NativeTypeName("#define FCIDM_GLOBALLAST 0x9fff")] + public const int FCIDM_GLOBALLAST = 0x9fff; + + [NativeTypeName("#define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)")] + public const int FCIDM_MENU_FILE = (0x8000 + 0x0000); + + [NativeTypeName("#define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)")] + public const int FCIDM_MENU_EDIT = (0x8000 + 0x0040); + + [NativeTypeName("#define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)")] + public const int FCIDM_MENU_VIEW = (0x8000 + 0x0080); + + [NativeTypeName("#define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)")] + public const int FCIDM_MENU_VIEW_SEP_OPTIONS = (0x8000 + 0x0081); + + [NativeTypeName("#define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)")] + public const int FCIDM_MENU_TOOLS = (0x8000 + 0x00c0); + + [NativeTypeName("#define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)")] + public const int FCIDM_MENU_TOOLS_SEP_GOTO = (0x8000 + 0x00c1); + + [NativeTypeName("#define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)")] + public const int FCIDM_MENU_HELP = (0x8000 + 0x0100); + + [NativeTypeName("#define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)")] + public const int FCIDM_MENU_FIND = (0x8000 + 0x0140); + + [NativeTypeName("#define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)")] + public const int FCIDM_MENU_EXPLORE = (0x8000 + 0x0150); + + [NativeTypeName("#define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)")] + public const int FCIDM_MENU_FAVORITES = (0x8000 + 0x0170); + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/GIL.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/GIL.cs new file mode 100644 index 0000000000..b4260d4cba --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/GIL.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GIL + { + [NativeTypeName("#define GIL_OPENICON 0x0001")] + public const int GIL_OPENICON = 0x0001; + + [NativeTypeName("#define GIL_FORSHELL 0x0002")] + public const int GIL_FORSHELL = 0x0002; + + [NativeTypeName("#define GIL_ASYNC 0x0020")] + public const int GIL_ASYNC = 0x0020; + + [NativeTypeName("#define GIL_DEFAULTICON 0x0040")] + public const int GIL_DEFAULTICON = 0x0040; + + [NativeTypeName("#define GIL_FORSHORTCUT 0x0080")] + public const int GIL_FORSHORTCUT = 0x0080; + + [NativeTypeName("#define GIL_CHECKSHIELD 0x0200")] + public const int GIL_CHECKSHIELD = 0x0200; + + [NativeTypeName("#define GIL_SIMULATEDOC 0x0001")] + public const int GIL_SIMULATEDOC = 0x0001; + + [NativeTypeName("#define GIL_PERINSTANCE 0x0002")] + public const int GIL_PERINSTANCE = 0x0002; + + [NativeTypeName("#define GIL_PERCLASS 0x0004")] + public const int GIL_PERCLASS = 0x0004; + + [NativeTypeName("#define GIL_NOTFILENAME 0x0008")] + public const int GIL_NOTFILENAME = 0x0008; + + [NativeTypeName("#define GIL_DONTCACHE 0x0010")] + public const int GIL_DONTCACHE = 0x0010; + + [NativeTypeName("#define GIL_SHIELD 0x0200")] + public const int GIL_SHIELD = 0x0200; + + [NativeTypeName("#define GIL_FORCENOSHIELD 0x0400")] + public const int GIL_FORCENOSHIELD = 0x0400; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/PRF.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/PRF.cs new file mode 100644 index 0000000000..ba8fa7dfee --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/PRF.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PRF + { + [NativeTypeName("#define PRF_VERIFYEXISTS 0x0001")] + public const int PRF_VERIFYEXISTS = 0x0001; + + [NativeTypeName("#define PRF_TRYPROGRAMEXTENSIONS (0x0002 | PRF_VERIFYEXISTS)")] + public const int PRF_TRYPROGRAMEXTENSIONS = (0x0002 | 0x0001); + + [NativeTypeName("#define PRF_FIRSTDIRDEF 0x0004")] + public const int PRF_FIRSTDIRDEF = 0x0004; + + [NativeTypeName("#define PRF_DONTFINDLNK 0x0008")] + public const int PRF_DONTFINDLNK = 0x0008; + + [NativeTypeName("#define PRF_REQUIREABSOLUTE 0x0010")] + public const int PRF_REQUIREABSOLUTE = 0x0010; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/SFVM.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/SFVM.cs new file mode 100644 index 0000000000..9f687f8432 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/SFVM.cs @@ -0,0 +1,97 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SFVM + { + [NativeTypeName("#define SFVM_MERGEMENU 1")] + public const int SFVM_MERGEMENU = 1; + + [NativeTypeName("#define SFVM_INVOKECOMMAND 2")] + public const int SFVM_INVOKECOMMAND = 2; + + [NativeTypeName("#define SFVM_GETHELPTEXT 3")] + public const int SFVM_GETHELPTEXT = 3; + + [NativeTypeName("#define SFVM_GETTOOLTIPTEXT 4")] + public const int SFVM_GETTOOLTIPTEXT = 4; + + [NativeTypeName("#define SFVM_GETBUTTONINFO 5")] + public const int SFVM_GETBUTTONINFO = 5; + + [NativeTypeName("#define SFVM_GETBUTTONS 6")] + public const int SFVM_GETBUTTONS = 6; + + [NativeTypeName("#define SFVM_INITMENUPOPUP 7")] + public const int SFVM_INITMENUPOPUP = 7; + + [NativeTypeName("#define SFVM_FSNOTIFY 14")] + public const int SFVM_FSNOTIFY = 14; + + [NativeTypeName("#define SFVM_WINDOWCREATED 15")] + public const int SFVM_WINDOWCREATED = 15; + + [NativeTypeName("#define SFVM_GETDETAILSOF 23")] + public const int SFVM_GETDETAILSOF = 23; + + [NativeTypeName("#define SFVM_COLUMNCLICK 24")] + public const int SFVM_COLUMNCLICK = 24; + + [NativeTypeName("#define SFVM_QUERYFSNOTIFY 25")] + public const int SFVM_QUERYFSNOTIFY = 25; + + [NativeTypeName("#define SFVM_DEFITEMCOUNT 26")] + public const int SFVM_DEFITEMCOUNT = 26; + + [NativeTypeName("#define SFVM_DEFVIEWMODE 27")] + public const int SFVM_DEFVIEWMODE = 27; + + [NativeTypeName("#define SFVM_UNMERGEMENU 28")] + public const int SFVM_UNMERGEMENU = 28; + + [NativeTypeName("#define SFVM_UPDATESTATUSBAR 31")] + public const int SFVM_UPDATESTATUSBAR = 31; + + [NativeTypeName("#define SFVM_BACKGROUNDENUM 32")] + public const int SFVM_BACKGROUNDENUM = 32; + + [NativeTypeName("#define SFVM_DIDDRAGDROP 36")] + public const int SFVM_DIDDRAGDROP = 36; + + [NativeTypeName("#define SFVM_SETISFV 39")] + public const int SFVM_SETISFV = 39; + + [NativeTypeName("#define SFVM_THISIDLIST 41")] + public const int SFVM_THISIDLIST = 41; + + [NativeTypeName("#define SFVM_ADDPROPERTYPAGES 47")] + public const int SFVM_ADDPROPERTYPAGES = 47; + + [NativeTypeName("#define SFVM_BACKGROUNDENUMDONE 48")] + public const int SFVM_BACKGROUNDENUMDONE = 48; + + [NativeTypeName("#define SFVM_GETNOTIFY 49")] + public const int SFVM_GETNOTIFY = 49; + + [NativeTypeName("#define SFVM_GETSORTDEFAULTS 53")] + public const int SFVM_GETSORTDEFAULTS = 53; + + [NativeTypeName("#define SFVM_SIZE 57")] + public const int SFVM_SIZE = 57; + + [NativeTypeName("#define SFVM_GETZONE 58")] + public const int SFVM_GETZONE = 58; + + [NativeTypeName("#define SFVM_GETPANE 59")] + public const int SFVM_GETPANE = 59; + + [NativeTypeName("#define SFVM_GETHELPTOPIC 63")] + public const int SFVM_GETHELPTOPIC = 63; + + [NativeTypeName("#define SFVM_GETANIMATION 68")] + public const int SFVM_GETANIMATION = 68; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/SHCNE.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/SHCNE.cs new file mode 100644 index 0000000000..de945bc64f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/SHCNE.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHCNE + { + [NativeTypeName("#define SHCNE_RENAMEITEM 0x00000001L")] + public const int SHCNE_RENAMEITEM = 0x00000001; + + [NativeTypeName("#define SHCNE_CREATE 0x00000002L")] + public const int SHCNE_CREATE = 0x00000002; + + [NativeTypeName("#define SHCNE_DELETE 0x00000004L")] + public const int SHCNE_DELETE = 0x00000004; + + [NativeTypeName("#define SHCNE_MKDIR 0x00000008L")] + public const int SHCNE_MKDIR = 0x00000008; + + [NativeTypeName("#define SHCNE_RMDIR 0x00000010L")] + public const int SHCNE_RMDIR = 0x00000010; + + [NativeTypeName("#define SHCNE_MEDIAINSERTED 0x00000020L")] + public const int SHCNE_MEDIAINSERTED = 0x00000020; + + [NativeTypeName("#define SHCNE_MEDIAREMOVED 0x00000040L")] + public const int SHCNE_MEDIAREMOVED = 0x00000040; + + [NativeTypeName("#define SHCNE_DRIVEREMOVED 0x00000080L")] + public const int SHCNE_DRIVEREMOVED = 0x00000080; + + [NativeTypeName("#define SHCNE_DRIVEADD 0x00000100L")] + public const int SHCNE_DRIVEADD = 0x00000100; + + [NativeTypeName("#define SHCNE_NETSHARE 0x00000200L")] + public const int SHCNE_NETSHARE = 0x00000200; + + [NativeTypeName("#define SHCNE_NETUNSHARE 0x00000400L")] + public const int SHCNE_NETUNSHARE = 0x00000400; + + [NativeTypeName("#define SHCNE_ATTRIBUTES 0x00000800L")] + public const int SHCNE_ATTRIBUTES = 0x00000800; + + [NativeTypeName("#define SHCNE_UPDATEDIR 0x00001000L")] + public const int SHCNE_UPDATEDIR = 0x00001000; + + [NativeTypeName("#define SHCNE_UPDATEITEM 0x00002000L")] + public const int SHCNE_UPDATEITEM = 0x00002000; + + [NativeTypeName("#define SHCNE_SERVERDISCONNECT 0x00004000L")] + public const int SHCNE_SERVERDISCONNECT = 0x00004000; + + [NativeTypeName("#define SHCNE_UPDATEIMAGE 0x00008000L")] + public const int SHCNE_UPDATEIMAGE = 0x00008000; + + [NativeTypeName("#define SHCNE_DRIVEADDGUI 0x00010000L")] + public const int SHCNE_DRIVEADDGUI = 0x00010000; + + [NativeTypeName("#define SHCNE_RENAMEFOLDER 0x00020000L")] + public const int SHCNE_RENAMEFOLDER = 0x00020000; + + [NativeTypeName("#define SHCNE_FREESPACE 0x00040000L")] + public const int SHCNE_FREESPACE = 0x00040000; + + [NativeTypeName("#define SHCNE_EXTENDED_EVENT 0x04000000L")] + public const int SHCNE_EXTENDED_EVENT = 0x04000000; + + [NativeTypeName("#define SHCNE_ASSOCCHANGED 0x08000000L")] + public const int SHCNE_ASSOCCHANGED = 0x08000000; + + [NativeTypeName("#define SHCNE_DISKEVENTS 0x0002381FL")] + public const int SHCNE_DISKEVENTS = 0x0002381F; + + [NativeTypeName("#define SHCNE_GLOBALEVENTS 0x0C0581E0L")] + public const int SHCNE_GLOBALEVENTS = 0x0C0581E0; + + [NativeTypeName("#define SHCNE_ALLEVENTS 0x7FFFFFFFL")] + public const int SHCNE_ALLEVENTS = 0x7FFFFFFF; + + [NativeTypeName("#define SHCNE_INTERRUPT 0x80000000L")] + public const uint SHCNE_INTERRUPT = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/SHCNF.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/SHCNF.cs new file mode 100644 index 0000000000..595f2ac0bd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/SHCNF.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHCNF + { + [NativeTypeName("#define SHCNF_IDLIST 0x0000")] + public const int SHCNF_IDLIST = 0x0000; + + [NativeTypeName("#define SHCNF_PATHA 0x0001")] + public const int SHCNF_PATHA = 0x0001; + + [NativeTypeName("#define SHCNF_PRINTERA 0x0002")] + public const int SHCNF_PRINTERA = 0x0002; + + [NativeTypeName("#define SHCNF_DWORD 0x0003")] + public const int SHCNF_DWORD = 0x0003; + + [NativeTypeName("#define SHCNF_PATHW 0x0005")] + public const int SHCNF_PATHW = 0x0005; + + [NativeTypeName("#define SHCNF_PRINTERW 0x0006")] + public const int SHCNF_PRINTERW = 0x0006; + + [NativeTypeName("#define SHCNF_TYPE 0x00FF")] + public const int SHCNF_TYPE = 0x00FF; + + [NativeTypeName("#define SHCNF_FLUSH 0x1000")] + public const int SHCNF_FLUSH = 0x1000; + + [NativeTypeName("#define SHCNF_FLUSHNOWAIT 0x3000")] + public const int SHCNF_FLUSHNOWAIT = 0x3000; + + [NativeTypeName("#define SHCNF_NOTIFYRECURSIVE 0x10000")] + public const int SHCNF_NOTIFYRECURSIVE = 0x10000; + + [NativeTypeName("#define SHCNF_PATH SHCNF_PATHW")] + public const int SHCNF_PATH = 0x0005; + + [NativeTypeName("#define SHCNF_PRINTER SHCNF_PRINTERW")] + public const int SHCNF_PRINTER = 0x0006; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/SHDID.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/SHDID.cs new file mode 100644 index 0000000000..ab8a596910 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/SHDID.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHDID + { + [NativeTypeName("#define SHDID_ROOT_REGITEM 1")] + public const int SHDID_ROOT_REGITEM = 1; + + [NativeTypeName("#define SHDID_FS_FILE 2")] + public const int SHDID_FS_FILE = 2; + + [NativeTypeName("#define SHDID_FS_DIRECTORY 3")] + public const int SHDID_FS_DIRECTORY = 3; + + [NativeTypeName("#define SHDID_FS_OTHER 4")] + public const int SHDID_FS_OTHER = 4; + + [NativeTypeName("#define SHDID_COMPUTER_DRIVE35 5")] + public const int SHDID_COMPUTER_DRIVE35 = 5; + + [NativeTypeName("#define SHDID_COMPUTER_DRIVE525 6")] + public const int SHDID_COMPUTER_DRIVE525 = 6; + + [NativeTypeName("#define SHDID_COMPUTER_REMOVABLE 7")] + public const int SHDID_COMPUTER_REMOVABLE = 7; + + [NativeTypeName("#define SHDID_COMPUTER_FIXED 8")] + public const int SHDID_COMPUTER_FIXED = 8; + + [NativeTypeName("#define SHDID_COMPUTER_NETDRIVE 9")] + public const int SHDID_COMPUTER_NETDRIVE = 9; + + [NativeTypeName("#define SHDID_COMPUTER_CDROM 10")] + public const int SHDID_COMPUTER_CDROM = 10; + + [NativeTypeName("#define SHDID_COMPUTER_RAMDISK 11")] + public const int SHDID_COMPUTER_RAMDISK = 11; + + [NativeTypeName("#define SHDID_COMPUTER_OTHER 12")] + public const int SHDID_COMPUTER_OTHER = 12; + + [NativeTypeName("#define SHDID_NET_DOMAIN 13")] + public const int SHDID_NET_DOMAIN = 13; + + [NativeTypeName("#define SHDID_NET_SERVER 14")] + public const int SHDID_NET_SERVER = 14; + + [NativeTypeName("#define SHDID_NET_SHARE 15")] + public const int SHDID_NET_SHARE = 15; + + [NativeTypeName("#define SHDID_NET_RESTOFNET 16")] + public const int SHDID_NET_RESTOFNET = 16; + + [NativeTypeName("#define SHDID_NET_OTHER 17")] + public const int SHDID_NET_OTHER = 17; + + [NativeTypeName("#define SHDID_COMPUTER_IMAGING 18")] + public const int SHDID_COMPUTER_IMAGING = 18; + + [NativeTypeName("#define SHDID_COMPUTER_AUDIO 19")] + public const int SHDID_COMPUTER_AUDIO = 19; + + [NativeTypeName("#define SHDID_COMPUTER_SHAREDDOCS 20")] + public const int SHDID_COMPUTER_SHAREDDOCS = 20; + + [NativeTypeName("#define SHDID_MOBILE_DEVICE 21")] + public const int SHDID_MOBILE_DEVICE = 21; + + [NativeTypeName("#define SHDID_REMOTE_DESKTOP_DRIVE 22")] + public const int SHDID_REMOTE_DESKTOP_DRIVE = 22; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/SSF.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/SSF.cs new file mode 100644 index 0000000000..df5790965a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/SSF.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SSF + { + [NativeTypeName("#define SSF_SHOWALLOBJECTS 0x00000001")] + public const int SSF_SHOWALLOBJECTS = 0x00000001; + + [NativeTypeName("#define SSF_SHOWEXTENSIONS 0x00000002")] + public const int SSF_SHOWEXTENSIONS = 0x00000002; + + [NativeTypeName("#define SSF_HIDDENFILEEXTS 0x00000004")] + public const int SSF_HIDDENFILEEXTS = 0x00000004; + + [NativeTypeName("#define SSF_SERVERADMINUI 0x00000004")] + public const int SSF_SERVERADMINUI = 0x00000004; + + [NativeTypeName("#define SSF_SHOWCOMPCOLOR 0x00000008")] + public const int SSF_SHOWCOMPCOLOR = 0x00000008; + + [NativeTypeName("#define SSF_SORTCOLUMNS 0x00000010")] + public const int SSF_SORTCOLUMNS = 0x00000010; + + [NativeTypeName("#define SSF_SHOWSYSFILES 0x00000020")] + public const int SSF_SHOWSYSFILES = 0x00000020; + + [NativeTypeName("#define SSF_DOUBLECLICKINWEBVIEW 0x00000080")] + public const int SSF_DOUBLECLICKINWEBVIEW = 0x00000080; + + [NativeTypeName("#define SSF_SHOWATTRIBCOL 0x00000100")] + public const int SSF_SHOWATTRIBCOL = 0x00000100; + + [NativeTypeName("#define SSF_DESKTOPHTML 0x00000200")] + public const int SSF_DESKTOPHTML = 0x00000200; + + [NativeTypeName("#define SSF_WIN95CLASSIC 0x00000400")] + public const int SSF_WIN95CLASSIC = 0x00000400; + + [NativeTypeName("#define SSF_DONTPRETTYPATH 0x00000800")] + public const int SSF_DONTPRETTYPATH = 0x00000800; + + [NativeTypeName("#define SSF_SHOWINFOTIP 0x00002000")] + public const int SSF_SHOWINFOTIP = 0x00002000; + + [NativeTypeName("#define SSF_MAPNETDRVBUTTON 0x00001000")] + public const int SSF_MAPNETDRVBUTTON = 0x00001000; + + [NativeTypeName("#define SSF_NOCONFIRMRECYCLE 0x00008000")] + public const int SSF_NOCONFIRMRECYCLE = 0x00008000; + + [NativeTypeName("#define SSF_HIDEICONS 0x00004000")] + public const int SSF_HIDEICONS = 0x00004000; + + [NativeTypeName("#define SSF_FILTER 0x00010000")] + public const int SSF_FILTER = 0x00010000; + + [NativeTypeName("#define SSF_WEBVIEW 0x00020000")] + public const int SSF_WEBVIEW = 0x00020000; + + [NativeTypeName("#define SSF_SHOWSUPERHIDDEN 0x00040000")] + public const int SSF_SHOWSUPERHIDDEN = 0x00040000; + + [NativeTypeName("#define SSF_SEPPROCESS 0x00080000")] + public const int SSF_SEPPROCESS = 0x00080000; + + [NativeTypeName("#define SSF_NONETCRAWLING 0x00100000")] + public const int SSF_NONETCRAWLING = 0x00100000; + + [NativeTypeName("#define SSF_STARTPANELON 0x00200000")] + public const int SSF_STARTPANELON = 0x00200000; + + [NativeTypeName("#define SSF_SHOWSTARTPAGE 0x00400000")] + public const int SSF_SHOWSTARTPAGE = 0x00400000; + + [NativeTypeName("#define SSF_AUTOCHECKSELECT 0x00800000")] + public const int SSF_AUTOCHECKSELECT = 0x00800000; + + [NativeTypeName("#define SSF_ICONSONLY 0x01000000")] + public const int SSF_ICONSONLY = 0x01000000; + + [NativeTypeName("#define SSF_SHOWTYPEOVERLAY 0x02000000")] + public const int SSF_SHOWTYPEOVERLAY = 0x02000000; + + [NativeTypeName("#define SSF_SHOWSTATUSBAR 0x04000000")] + public const int SSF_SHOWSTATUSBAR = 0x04000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/STR.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/STR.cs new file mode 100644 index 0000000000..ee0910c66b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/STR.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ShlObj_core.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STR + { + [NativeTypeName("#define STR_PARSE_WITH_PROPERTIES L\"ParseWithProperties\"")] + public const string STR_PARSE_WITH_PROPERTIES = "ParseWithProperties"; + + [NativeTypeName("#define STR_PARSE_PARTIAL_IDLIST L\"ParseOriginalItem\"")] + public const string STR_PARSE_PARTIAL_IDLIST = "ParseOriginalItem"; + } +} diff --git a/sources/Interop/Windows/Windows/um/ShlObj_core/Windows.cs b/sources/Interop/Windows/Windows/um/ShlObj_core/Windows.cs index 282398f8f2..a2f426590f 100644 --- a/sources/Interop/Windows/Windows/um/ShlObj_core/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ShlObj_core/Windows.cs @@ -471,45 +471,6 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [DllImport("shell32", ExactSpelling = true)] public static extern HRESULT StgMakeUniqueName(IStorage* pstgParent, [NativeTypeName("PCWSTR")] ushort* pszFileSpec, [NativeTypeName("DWORD")] uint grfMode, [NativeTypeName("const IID &")] Guid* riid, void** ppv); - [NativeTypeName("#define GIL_OPENICON 0x0001")] - public const int GIL_OPENICON = 0x0001; - - [NativeTypeName("#define GIL_FORSHELL 0x0002")] - public const int GIL_FORSHELL = 0x0002; - - [NativeTypeName("#define GIL_ASYNC 0x0020")] - public const int GIL_ASYNC = 0x0020; - - [NativeTypeName("#define GIL_DEFAULTICON 0x0040")] - public const int GIL_DEFAULTICON = 0x0040; - - [NativeTypeName("#define GIL_FORSHORTCUT 0x0080")] - public const int GIL_FORSHORTCUT = 0x0080; - - [NativeTypeName("#define GIL_CHECKSHIELD 0x0200")] - public const int GIL_CHECKSHIELD = 0x0200; - - [NativeTypeName("#define GIL_SIMULATEDOC 0x0001")] - public const int GIL_SIMULATEDOC = 0x0001; - - [NativeTypeName("#define GIL_PERINSTANCE 0x0002")] - public const int GIL_PERINSTANCE = 0x0002; - - [NativeTypeName("#define GIL_PERCLASS 0x0004")] - public const int GIL_PERCLASS = 0x0004; - - [NativeTypeName("#define GIL_NOTFILENAME 0x0008")] - public const int GIL_NOTFILENAME = 0x0008; - - [NativeTypeName("#define GIL_DONTCACHE 0x0010")] - public const int GIL_DONTCACHE = 0x0010; - - [NativeTypeName("#define GIL_SHIELD 0x0200")] - public const int GIL_SHIELD = 0x0200; - - [NativeTypeName("#define GIL_FORCENOSHIELD 0x0400")] - public const int GIL_FORCENOSHIELD = 0x0400; - [NativeTypeName("#define SIOM_OVERLAYINDEX 0x1")] public const int SIOM_OVERLAYINDEX = 0x1; @@ -570,54 +531,6 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define EXP_PROPERTYSTORAGE_SIG 0xA0000009")] public const uint EXP_PROPERTYSTORAGE_SIG = 0xA0000009; - [NativeTypeName("#define FCIDM_SHVIEWFIRST 0x0000")] - public const int FCIDM_SHVIEWFIRST = 0x0000; - - [NativeTypeName("#define FCIDM_SHVIEWLAST 0x7fff")] - public const int FCIDM_SHVIEWLAST = 0x7fff; - - [NativeTypeName("#define FCIDM_BROWSERFIRST 0xa000")] - public const int FCIDM_BROWSERFIRST = 0xa000; - - [NativeTypeName("#define FCIDM_BROWSERLAST 0xbf00")] - public const int FCIDM_BROWSERLAST = 0xbf00; - - [NativeTypeName("#define FCIDM_GLOBALFIRST 0x8000")] - public const int FCIDM_GLOBALFIRST = 0x8000; - - [NativeTypeName("#define FCIDM_GLOBALLAST 0x9fff")] - public const int FCIDM_GLOBALLAST = 0x9fff; - - [NativeTypeName("#define FCIDM_MENU_FILE (FCIDM_GLOBALFIRST+0x0000)")] - public const int FCIDM_MENU_FILE = (0x8000 + 0x0000); - - [NativeTypeName("#define FCIDM_MENU_EDIT (FCIDM_GLOBALFIRST+0x0040)")] - public const int FCIDM_MENU_EDIT = (0x8000 + 0x0040); - - [NativeTypeName("#define FCIDM_MENU_VIEW (FCIDM_GLOBALFIRST+0x0080)")] - public const int FCIDM_MENU_VIEW = (0x8000 + 0x0080); - - [NativeTypeName("#define FCIDM_MENU_VIEW_SEP_OPTIONS (FCIDM_GLOBALFIRST+0x0081)")] - public const int FCIDM_MENU_VIEW_SEP_OPTIONS = (0x8000 + 0x0081); - - [NativeTypeName("#define FCIDM_MENU_TOOLS (FCIDM_GLOBALFIRST+0x00c0)")] - public const int FCIDM_MENU_TOOLS = (0x8000 + 0x00c0); - - [NativeTypeName("#define FCIDM_MENU_TOOLS_SEP_GOTO (FCIDM_GLOBALFIRST+0x00c1)")] - public const int FCIDM_MENU_TOOLS_SEP_GOTO = (0x8000 + 0x00c1); - - [NativeTypeName("#define FCIDM_MENU_HELP (FCIDM_GLOBALFIRST+0x0100)")] - public const int FCIDM_MENU_HELP = (0x8000 + 0x0100); - - [NativeTypeName("#define FCIDM_MENU_FIND (FCIDM_GLOBALFIRST+0x0140)")] - public const int FCIDM_MENU_FIND = (0x8000 + 0x0140); - - [NativeTypeName("#define FCIDM_MENU_EXPLORE (FCIDM_GLOBALFIRST+0x0150)")] - public const int FCIDM_MENU_EXPLORE = (0x8000 + 0x0150); - - [NativeTypeName("#define FCIDM_MENU_FAVORITES (FCIDM_GLOBALFIRST+0x0170)")] - public const int FCIDM_MENU_FAVORITES = (0x8000 + 0x0170); - [NativeTypeName("#define ILCreateFromPath ILCreateFromPathW")] public static delegate* ILCreateFromPath => &ILCreateFromPathW; @@ -684,114 +597,12 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define FCSM_FLAGS 0x00000040")] public const int FCSM_FLAGS = 0x00000040; - [NativeTypeName("#define BIF_RETURNONLYFSDIRS 0x00000001")] - public const int BIF_RETURNONLYFSDIRS = 0x00000001; - - [NativeTypeName("#define BIF_DONTGOBELOWDOMAIN 0x00000002")] - public const int BIF_DONTGOBELOWDOMAIN = 0x00000002; - - [NativeTypeName("#define BIF_STATUSTEXT 0x00000004")] - public const int BIF_STATUSTEXT = 0x00000004; - - [NativeTypeName("#define BIF_RETURNFSANCESTORS 0x00000008")] - public const int BIF_RETURNFSANCESTORS = 0x00000008; - - [NativeTypeName("#define BIF_EDITBOX 0x00000010")] - public const int BIF_EDITBOX = 0x00000010; - - [NativeTypeName("#define BIF_VALIDATE 0x00000020")] - public const int BIF_VALIDATE = 0x00000020; - - [NativeTypeName("#define BIF_NEWDIALOGSTYLE 0x00000040")] - public const int BIF_NEWDIALOGSTYLE = 0x00000040; - - [NativeTypeName("#define BIF_USENEWUI (BIF_NEWDIALOGSTYLE | BIF_EDITBOX)")] - public const int BIF_USENEWUI = (0x00000040 | 0x00000010); - - [NativeTypeName("#define BIF_BROWSEINCLUDEURLS 0x00000080")] - public const int BIF_BROWSEINCLUDEURLS = 0x00000080; - - [NativeTypeName("#define BIF_UAHINT 0x00000100")] - public const int BIF_UAHINT = 0x00000100; - - [NativeTypeName("#define BIF_NONEWFOLDERBUTTON 0x00000200")] - public const int BIF_NONEWFOLDERBUTTON = 0x00000200; - - [NativeTypeName("#define BIF_NOTRANSLATETARGETS 0x00000400")] - public const int BIF_NOTRANSLATETARGETS = 0x00000400; - - [NativeTypeName("#define BIF_BROWSEFORCOMPUTER 0x00001000")] - public const int BIF_BROWSEFORCOMPUTER = 0x00001000; - - [NativeTypeName("#define BIF_BROWSEFORPRINTER 0x00002000")] - public const int BIF_BROWSEFORPRINTER = 0x00002000; - - [NativeTypeName("#define BIF_BROWSEINCLUDEFILES 0x00004000")] - public const int BIF_BROWSEINCLUDEFILES = 0x00004000; - - [NativeTypeName("#define BIF_SHAREABLE 0x00008000")] - public const int BIF_SHAREABLE = 0x00008000; - - [NativeTypeName("#define BIF_BROWSEFILEJUNCTIONS 0x00010000")] - public const int BIF_BROWSEFILEJUNCTIONS = 0x00010000; - - [NativeTypeName("#define BFFM_INITIALIZED 1")] - public const int BFFM_INITIALIZED = 1; - - [NativeTypeName("#define BFFM_SELCHANGED 2")] - public const int BFFM_SELCHANGED = 2; - - [NativeTypeName("#define BFFM_VALIDATEFAILEDA 3")] - public const int BFFM_VALIDATEFAILEDA = 3; - - [NativeTypeName("#define BFFM_VALIDATEFAILEDW 4")] - public const int BFFM_VALIDATEFAILEDW = 4; - - [NativeTypeName("#define BFFM_IUNKNOWN 5")] - public const int BFFM_IUNKNOWN = 5; - - [NativeTypeName("#define BFFM_SETSTATUSTEXTA (WM_USER + 100)")] - public const int BFFM_SETSTATUSTEXTA = (0x0400 + 100); - - [NativeTypeName("#define BFFM_ENABLEOK (WM_USER + 101)")] - public const int BFFM_ENABLEOK = (0x0400 + 101); - - [NativeTypeName("#define BFFM_SETSELECTIONA (WM_USER + 102)")] - public const int BFFM_SETSELECTIONA = (0x0400 + 102); - - [NativeTypeName("#define BFFM_SETSELECTIONW (WM_USER + 103)")] - public const int BFFM_SETSELECTIONW = (0x0400 + 103); - - [NativeTypeName("#define BFFM_SETSTATUSTEXTW (WM_USER + 104)")] - public const int BFFM_SETSTATUSTEXTW = (0x0400 + 104); - - [NativeTypeName("#define BFFM_SETOKTEXT (WM_USER + 105)")] - public const int BFFM_SETOKTEXT = (0x0400 + 105); - - [NativeTypeName("#define BFFM_SETEXPANDED (WM_USER + 106)")] - public const int BFFM_SETEXPANDED = (0x0400 + 106); - [NativeTypeName("#define SHBrowseForFolder SHBrowseForFolderW")] public static delegate* SHBrowseForFolder => &SHBrowseForFolderW; - [NativeTypeName("#define BFFM_SETSTATUSTEXT BFFM_SETSTATUSTEXTW")] - public const int BFFM_SETSTATUSTEXT = (0x0400 + 104); - - [NativeTypeName("#define BFFM_SETSELECTION BFFM_SETSELECTIONW")] - public const int BFFM_SETSELECTION = (0x0400 + 103); - - [NativeTypeName("#define BFFM_VALIDATEFAILED BFFM_VALIDATEFAILEDW")] - public const int BFFM_VALIDATEFAILED = 4; - [NativeTypeName("#define CMDID_INTSHORTCUTCREATE ISHCUTCMDID_INTSHORTCUTCREATE")] public const int CMDID_INTSHORTCUTCREATE = ISHCUTCMDID_INTSHORTCUTCREATE; - [NativeTypeName("#define STR_PARSE_WITH_PROPERTIES L\"ParseWithProperties\"")] - public const string STR_PARSE_WITH_PROPERTIES = "ParseWithProperties"; - - [NativeTypeName("#define STR_PARSE_PARTIAL_IDLIST L\"ParseOriginalItem\"")] - public const string STR_PARSE_PARTIAL_IDLIST = "ParseOriginalItem"; - [NativeTypeName("#define PROGDLG_NORMAL 0x00000000")] public const int PROGDLG_NORMAL = 0x00000000; @@ -846,81 +657,6 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define SHCNRF_NewDelivery 0x8000")] public const int SHCNRF_NewDelivery = 0x8000; - [NativeTypeName("#define SHCNE_RENAMEITEM 0x00000001L")] - public const int SHCNE_RENAMEITEM = 0x00000001; - - [NativeTypeName("#define SHCNE_CREATE 0x00000002L")] - public const int SHCNE_CREATE = 0x00000002; - - [NativeTypeName("#define SHCNE_DELETE 0x00000004L")] - public const int SHCNE_DELETE = 0x00000004; - - [NativeTypeName("#define SHCNE_MKDIR 0x00000008L")] - public const int SHCNE_MKDIR = 0x00000008; - - [NativeTypeName("#define SHCNE_RMDIR 0x00000010L")] - public const int SHCNE_RMDIR = 0x00000010; - - [NativeTypeName("#define SHCNE_MEDIAINSERTED 0x00000020L")] - public const int SHCNE_MEDIAINSERTED = 0x00000020; - - [NativeTypeName("#define SHCNE_MEDIAREMOVED 0x00000040L")] - public const int SHCNE_MEDIAREMOVED = 0x00000040; - - [NativeTypeName("#define SHCNE_DRIVEREMOVED 0x00000080L")] - public const int SHCNE_DRIVEREMOVED = 0x00000080; - - [NativeTypeName("#define SHCNE_DRIVEADD 0x00000100L")] - public const int SHCNE_DRIVEADD = 0x00000100; - - [NativeTypeName("#define SHCNE_NETSHARE 0x00000200L")] - public const int SHCNE_NETSHARE = 0x00000200; - - [NativeTypeName("#define SHCNE_NETUNSHARE 0x00000400L")] - public const int SHCNE_NETUNSHARE = 0x00000400; - - [NativeTypeName("#define SHCNE_ATTRIBUTES 0x00000800L")] - public const int SHCNE_ATTRIBUTES = 0x00000800; - - [NativeTypeName("#define SHCNE_UPDATEDIR 0x00001000L")] - public const int SHCNE_UPDATEDIR = 0x00001000; - - [NativeTypeName("#define SHCNE_UPDATEITEM 0x00002000L")] - public const int SHCNE_UPDATEITEM = 0x00002000; - - [NativeTypeName("#define SHCNE_SERVERDISCONNECT 0x00004000L")] - public const int SHCNE_SERVERDISCONNECT = 0x00004000; - - [NativeTypeName("#define SHCNE_UPDATEIMAGE 0x00008000L")] - public const int SHCNE_UPDATEIMAGE = 0x00008000; - - [NativeTypeName("#define SHCNE_DRIVEADDGUI 0x00010000L")] - public const int SHCNE_DRIVEADDGUI = 0x00010000; - - [NativeTypeName("#define SHCNE_RENAMEFOLDER 0x00020000L")] - public const int SHCNE_RENAMEFOLDER = 0x00020000; - - [NativeTypeName("#define SHCNE_FREESPACE 0x00040000L")] - public const int SHCNE_FREESPACE = 0x00040000; - - [NativeTypeName("#define SHCNE_EXTENDED_EVENT 0x04000000L")] - public const int SHCNE_EXTENDED_EVENT = 0x04000000; - - [NativeTypeName("#define SHCNE_ASSOCCHANGED 0x08000000L")] - public const int SHCNE_ASSOCCHANGED = 0x08000000; - - [NativeTypeName("#define SHCNE_DISKEVENTS 0x0002381FL")] - public const int SHCNE_DISKEVENTS = 0x0002381F; - - [NativeTypeName("#define SHCNE_GLOBALEVENTS 0x0C0581E0L")] - public const int SHCNE_GLOBALEVENTS = 0x0C0581E0; - - [NativeTypeName("#define SHCNE_ALLEVENTS 0x7FFFFFFFL")] - public const int SHCNE_ALLEVENTS = 0x7FFFFFFF; - - [NativeTypeName("#define SHCNE_INTERRUPT 0x80000000L")] - public const uint SHCNE_INTERRUPT = 0x80000000; - [NativeTypeName("#define SHCNEE_ORDERCHANGED 2L")] public const int SHCNEE_ORDERCHANGED = 2; @@ -930,42 +666,6 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define SHCNEE_MSI_UNINSTALL 5L")] public const int SHCNEE_MSI_UNINSTALL = 5; - [NativeTypeName("#define SHCNF_IDLIST 0x0000")] - public const int SHCNF_IDLIST = 0x0000; - - [NativeTypeName("#define SHCNF_PATHA 0x0001")] - public const int SHCNF_PATHA = 0x0001; - - [NativeTypeName("#define SHCNF_PRINTERA 0x0002")] - public const int SHCNF_PRINTERA = 0x0002; - - [NativeTypeName("#define SHCNF_DWORD 0x0003")] - public const int SHCNF_DWORD = 0x0003; - - [NativeTypeName("#define SHCNF_PATHW 0x0005")] - public const int SHCNF_PATHW = 0x0005; - - [NativeTypeName("#define SHCNF_PRINTERW 0x0006")] - public const int SHCNF_PRINTERW = 0x0006; - - [NativeTypeName("#define SHCNF_TYPE 0x00FF")] - public const int SHCNF_TYPE = 0x00FF; - - [NativeTypeName("#define SHCNF_FLUSH 0x1000")] - public const int SHCNF_FLUSH = 0x1000; - - [NativeTypeName("#define SHCNF_FLUSHNOWAIT 0x3000")] - public const int SHCNF_FLUSHNOWAIT = 0x3000; - - [NativeTypeName("#define SHCNF_NOTIFYRECURSIVE 0x10000")] - public const int SHCNF_NOTIFYRECURSIVE = 0x10000; - - [NativeTypeName("#define SHCNF_PATH SHCNF_PATHW")] - public const int SHCNF_PATH = 0x0005; - - [NativeTypeName("#define SHCNF_PRINTER SHCNF_PRINTERW")] - public const int SHCNF_PRINTER = 0x0006; - [NativeTypeName("#define QITIPF_DEFAULT 0x00000000")] public const int QITIPF_DEFAULT = 0x00000000; @@ -1005,90 +705,9 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define SHGDFIL_DESCRIPTIONID 3")] public const int SHGDFIL_DESCRIPTIONID = 3; - [NativeTypeName("#define SHDID_ROOT_REGITEM 1")] - public const int SHDID_ROOT_REGITEM = 1; - - [NativeTypeName("#define SHDID_FS_FILE 2")] - public const int SHDID_FS_FILE = 2; - - [NativeTypeName("#define SHDID_FS_DIRECTORY 3")] - public const int SHDID_FS_DIRECTORY = 3; - - [NativeTypeName("#define SHDID_FS_OTHER 4")] - public const int SHDID_FS_OTHER = 4; - - [NativeTypeName("#define SHDID_COMPUTER_DRIVE35 5")] - public const int SHDID_COMPUTER_DRIVE35 = 5; - - [NativeTypeName("#define SHDID_COMPUTER_DRIVE525 6")] - public const int SHDID_COMPUTER_DRIVE525 = 6; - - [NativeTypeName("#define SHDID_COMPUTER_REMOVABLE 7")] - public const int SHDID_COMPUTER_REMOVABLE = 7; - - [NativeTypeName("#define SHDID_COMPUTER_FIXED 8")] - public const int SHDID_COMPUTER_FIXED = 8; - - [NativeTypeName("#define SHDID_COMPUTER_NETDRIVE 9")] - public const int SHDID_COMPUTER_NETDRIVE = 9; - - [NativeTypeName("#define SHDID_COMPUTER_CDROM 10")] - public const int SHDID_COMPUTER_CDROM = 10; - - [NativeTypeName("#define SHDID_COMPUTER_RAMDISK 11")] - public const int SHDID_COMPUTER_RAMDISK = 11; - - [NativeTypeName("#define SHDID_COMPUTER_OTHER 12")] - public const int SHDID_COMPUTER_OTHER = 12; - - [NativeTypeName("#define SHDID_NET_DOMAIN 13")] - public const int SHDID_NET_DOMAIN = 13; - - [NativeTypeName("#define SHDID_NET_SERVER 14")] - public const int SHDID_NET_SERVER = 14; - - [NativeTypeName("#define SHDID_NET_SHARE 15")] - public const int SHDID_NET_SHARE = 15; - - [NativeTypeName("#define SHDID_NET_RESTOFNET 16")] - public const int SHDID_NET_RESTOFNET = 16; - - [NativeTypeName("#define SHDID_NET_OTHER 17")] - public const int SHDID_NET_OTHER = 17; - - [NativeTypeName("#define SHDID_COMPUTER_IMAGING 18")] - public const int SHDID_COMPUTER_IMAGING = 18; - - [NativeTypeName("#define SHDID_COMPUTER_AUDIO 19")] - public const int SHDID_COMPUTER_AUDIO = 19; - - [NativeTypeName("#define SHDID_COMPUTER_SHAREDDOCS 20")] - public const int SHDID_COMPUTER_SHAREDDOCS = 20; - - [NativeTypeName("#define SHDID_MOBILE_DEVICE 21")] - public const int SHDID_MOBILE_DEVICE = 21; - - [NativeTypeName("#define SHDID_REMOTE_DESKTOP_DRIVE 22")] - public const int SHDID_REMOTE_DESKTOP_DRIVE = 22; - [NativeTypeName("#define SHGetDataFromIDList SHGetDataFromIDListW")] public static delegate* SHGetDataFromIDList => &SHGetDataFromIDListW; - [NativeTypeName("#define PRF_VERIFYEXISTS 0x0001")] - public const int PRF_VERIFYEXISTS = 0x0001; - - [NativeTypeName("#define PRF_TRYPROGRAMEXTENSIONS (0x0002 | PRF_VERIFYEXISTS)")] - public const int PRF_TRYPROGRAMEXTENSIONS = (0x0002 | 0x0001); - - [NativeTypeName("#define PRF_FIRSTDIRDEF 0x0004")] - public const int PRF_FIRSTDIRDEF = 0x0004; - - [NativeTypeName("#define PRF_DONTFINDLNK 0x0008")] - public const int PRF_DONTFINDLNK = 0x0008; - - [NativeTypeName("#define PRF_REQUIREABSOLUTE 0x0010")] - public const int PRF_REQUIREABSOLUTE = 0x0010; - [NativeTypeName("#define NUM_POINTS 3")] public const int NUM_POINTS = 3; @@ -1191,93 +810,6 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define QCMINFO_PLACE_AFTER 1")] public const int QCMINFO_PLACE_AFTER = 1; - [NativeTypeName("#define SFVM_MERGEMENU 1")] - public const int SFVM_MERGEMENU = 1; - - [NativeTypeName("#define SFVM_INVOKECOMMAND 2")] - public const int SFVM_INVOKECOMMAND = 2; - - [NativeTypeName("#define SFVM_GETHELPTEXT 3")] - public const int SFVM_GETHELPTEXT = 3; - - [NativeTypeName("#define SFVM_GETTOOLTIPTEXT 4")] - public const int SFVM_GETTOOLTIPTEXT = 4; - - [NativeTypeName("#define SFVM_GETBUTTONINFO 5")] - public const int SFVM_GETBUTTONINFO = 5; - - [NativeTypeName("#define SFVM_GETBUTTONS 6")] - public const int SFVM_GETBUTTONS = 6; - - [NativeTypeName("#define SFVM_INITMENUPOPUP 7")] - public const int SFVM_INITMENUPOPUP = 7; - - [NativeTypeName("#define SFVM_FSNOTIFY 14")] - public const int SFVM_FSNOTIFY = 14; - - [NativeTypeName("#define SFVM_WINDOWCREATED 15")] - public const int SFVM_WINDOWCREATED = 15; - - [NativeTypeName("#define SFVM_GETDETAILSOF 23")] - public const int SFVM_GETDETAILSOF = 23; - - [NativeTypeName("#define SFVM_COLUMNCLICK 24")] - public const int SFVM_COLUMNCLICK = 24; - - [NativeTypeName("#define SFVM_QUERYFSNOTIFY 25")] - public const int SFVM_QUERYFSNOTIFY = 25; - - [NativeTypeName("#define SFVM_DEFITEMCOUNT 26")] - public const int SFVM_DEFITEMCOUNT = 26; - - [NativeTypeName("#define SFVM_DEFVIEWMODE 27")] - public const int SFVM_DEFVIEWMODE = 27; - - [NativeTypeName("#define SFVM_UNMERGEMENU 28")] - public const int SFVM_UNMERGEMENU = 28; - - [NativeTypeName("#define SFVM_UPDATESTATUSBAR 31")] - public const int SFVM_UPDATESTATUSBAR = 31; - - [NativeTypeName("#define SFVM_BACKGROUNDENUM 32")] - public const int SFVM_BACKGROUNDENUM = 32; - - [NativeTypeName("#define SFVM_DIDDRAGDROP 36")] - public const int SFVM_DIDDRAGDROP = 36; - - [NativeTypeName("#define SFVM_SETISFV 39")] - public const int SFVM_SETISFV = 39; - - [NativeTypeName("#define SFVM_THISIDLIST 41")] - public const int SFVM_THISIDLIST = 41; - - [NativeTypeName("#define SFVM_ADDPROPERTYPAGES 47")] - public const int SFVM_ADDPROPERTYPAGES = 47; - - [NativeTypeName("#define SFVM_BACKGROUNDENUMDONE 48")] - public const int SFVM_BACKGROUNDENUMDONE = 48; - - [NativeTypeName("#define SFVM_GETNOTIFY 49")] - public const int SFVM_GETNOTIFY = 49; - - [NativeTypeName("#define SFVM_GETSORTDEFAULTS 53")] - public const int SFVM_GETSORTDEFAULTS = 53; - - [NativeTypeName("#define SFVM_SIZE 57")] - public const int SFVM_SIZE = 57; - - [NativeTypeName("#define SFVM_GETZONE 58")] - public const int SFVM_GETZONE = 58; - - [NativeTypeName("#define SFVM_GETPANE 59")] - public const int SFVM_GETPANE = 59; - - [NativeTypeName("#define SFVM_GETHELPTOPIC 63")] - public const int SFVM_GETHELPTOPIC = 63; - - [NativeTypeName("#define SFVM_GETANIMATION 68")] - public const int SFVM_GETANIMATION = 68; - [NativeTypeName("#define SFVSOC_INVALIDATE_ALL 0x00000001")] public const int SFVSOC_INVALIDATE_ALL = 0x00000001; @@ -1293,93 +825,6 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define SFVS_SELECT_INVERT 0x2")] public const int SFVS_SELECT_INVERT = 0x2; - [NativeTypeName("#define DFM_MERGECONTEXTMENU 1")] - public const int DFM_MERGECONTEXTMENU = 1; - - [NativeTypeName("#define DFM_INVOKECOMMAND 2")] - public const int DFM_INVOKECOMMAND = 2; - - [NativeTypeName("#define DFM_GETHELPTEXT 5")] - public const int DFM_GETHELPTEXT = 5; - - [NativeTypeName("#define DFM_WM_MEASUREITEM 6")] - public const int DFM_WM_MEASUREITEM = 6; - - [NativeTypeName("#define DFM_WM_DRAWITEM 7")] - public const int DFM_WM_DRAWITEM = 7; - - [NativeTypeName("#define DFM_WM_INITMENUPOPUP 8")] - public const int DFM_WM_INITMENUPOPUP = 8; - - [NativeTypeName("#define DFM_VALIDATECMD 9")] - public const int DFM_VALIDATECMD = 9; - - [NativeTypeName("#define DFM_MERGECONTEXTMENU_TOP 10")] - public const int DFM_MERGECONTEXTMENU_TOP = 10; - - [NativeTypeName("#define DFM_GETHELPTEXTW 11")] - public const int DFM_GETHELPTEXTW = 11; - - [NativeTypeName("#define DFM_INVOKECOMMANDEX 12")] - public const int DFM_INVOKECOMMANDEX = 12; - - [NativeTypeName("#define DFM_MAPCOMMANDNAME 13")] - public const int DFM_MAPCOMMANDNAME = 13; - - [NativeTypeName("#define DFM_GETDEFSTATICID 14")] - public const int DFM_GETDEFSTATICID = 14; - - [NativeTypeName("#define DFM_GETVERBW 15")] - public const int DFM_GETVERBW = 15; - - [NativeTypeName("#define DFM_GETVERBA 16")] - public const int DFM_GETVERBA = 16; - - [NativeTypeName("#define DFM_MERGECONTEXTMENU_BOTTOM 17")] - public const int DFM_MERGECONTEXTMENU_BOTTOM = 17; - - [NativeTypeName("#define DFM_MODIFYQCMFLAGS 18")] - public const int DFM_MODIFYQCMFLAGS = 18; - - [NativeTypeName("#define DFM_CMD_DELETE ((UINT)-1)")] - public const uint DFM_CMD_DELETE = unchecked((uint)(-1)); - - [NativeTypeName("#define DFM_CMD_MOVE ((UINT)-2)")] - public const uint DFM_CMD_MOVE = unchecked((uint)(-2)); - - [NativeTypeName("#define DFM_CMD_COPY ((UINT)-3)")] - public const uint DFM_CMD_COPY = unchecked((uint)(-3)); - - [NativeTypeName("#define DFM_CMD_LINK ((UINT)-4)")] - public const uint DFM_CMD_LINK = unchecked((uint)(-4)); - - [NativeTypeName("#define DFM_CMD_PROPERTIES ((UINT)-5)")] - public const uint DFM_CMD_PROPERTIES = unchecked((uint)(-5)); - - [NativeTypeName("#define DFM_CMD_NEWFOLDER ((UINT)-6)")] - public const uint DFM_CMD_NEWFOLDER = unchecked((uint)(-6)); - - [NativeTypeName("#define DFM_CMD_PASTE ((UINT)-7)")] - public const uint DFM_CMD_PASTE = unchecked((uint)(-7)); - - [NativeTypeName("#define DFM_CMD_VIEWLIST ((UINT)-8)")] - public const uint DFM_CMD_VIEWLIST = unchecked((uint)(-8)); - - [NativeTypeName("#define DFM_CMD_VIEWDETAILS ((UINT)-9)")] - public const uint DFM_CMD_VIEWDETAILS = unchecked((uint)(-9)); - - [NativeTypeName("#define DFM_CMD_PASTELINK ((UINT)-10)")] - public const uint DFM_CMD_PASTELINK = unchecked((uint)(-10)); - - [NativeTypeName("#define DFM_CMD_PASTESPECIAL ((UINT)-11)")] - public const uint DFM_CMD_PASTESPECIAL = unchecked((uint)(-11)); - - [NativeTypeName("#define DFM_CMD_MODALPROP ((UINT)-12)")] - public const uint DFM_CMD_MODALPROP = unchecked((uint)(-12)); - - [NativeTypeName("#define DFM_CMD_RENAME ((UINT)-13)")] - public const uint DFM_CMD_RENAME = unchecked((uint)(-13)); - [NativeTypeName("#define PIDISF_RECENTLYCHANGED 0x00000001")] public const int PIDISF_RECENTLYCHANGED = 0x00000001; @@ -1431,87 +876,6 @@ public static BOOL IDListContainerIsConsistent([NativeTypeName("LPCITEMIDLIST")] [NativeTypeName("#define SHELLSTATE_SIZE_WIN2K sizeof(SHELLSTATE)")] public const uint SHELLSTATE_SIZE_WIN2K = 32; - [NativeTypeName("#define SSF_SHOWALLOBJECTS 0x00000001")] - public const int SSF_SHOWALLOBJECTS = 0x00000001; - - [NativeTypeName("#define SSF_SHOWEXTENSIONS 0x00000002")] - public const int SSF_SHOWEXTENSIONS = 0x00000002; - - [NativeTypeName("#define SSF_HIDDENFILEEXTS 0x00000004")] - public const int SSF_HIDDENFILEEXTS = 0x00000004; - - [NativeTypeName("#define SSF_SERVERADMINUI 0x00000004")] - public const int SSF_SERVERADMINUI = 0x00000004; - - [NativeTypeName("#define SSF_SHOWCOMPCOLOR 0x00000008")] - public const int SSF_SHOWCOMPCOLOR = 0x00000008; - - [NativeTypeName("#define SSF_SORTCOLUMNS 0x00000010")] - public const int SSF_SORTCOLUMNS = 0x00000010; - - [NativeTypeName("#define SSF_SHOWSYSFILES 0x00000020")] - public const int SSF_SHOWSYSFILES = 0x00000020; - - [NativeTypeName("#define SSF_DOUBLECLICKINWEBVIEW 0x00000080")] - public const int SSF_DOUBLECLICKINWEBVIEW = 0x00000080; - - [NativeTypeName("#define SSF_SHOWATTRIBCOL 0x00000100")] - public const int SSF_SHOWATTRIBCOL = 0x00000100; - - [NativeTypeName("#define SSF_DESKTOPHTML 0x00000200")] - public const int SSF_DESKTOPHTML = 0x00000200; - - [NativeTypeName("#define SSF_WIN95CLASSIC 0x00000400")] - public const int SSF_WIN95CLASSIC = 0x00000400; - - [NativeTypeName("#define SSF_DONTPRETTYPATH 0x00000800")] - public const int SSF_DONTPRETTYPATH = 0x00000800; - - [NativeTypeName("#define SSF_SHOWINFOTIP 0x00002000")] - public const int SSF_SHOWINFOTIP = 0x00002000; - - [NativeTypeName("#define SSF_MAPNETDRVBUTTON 0x00001000")] - public const int SSF_MAPNETDRVBUTTON = 0x00001000; - - [NativeTypeName("#define SSF_NOCONFIRMRECYCLE 0x00008000")] - public const int SSF_NOCONFIRMRECYCLE = 0x00008000; - - [NativeTypeName("#define SSF_HIDEICONS 0x00004000")] - public const int SSF_HIDEICONS = 0x00004000; - - [NativeTypeName("#define SSF_FILTER 0x00010000")] - public const int SSF_FILTER = 0x00010000; - - [NativeTypeName("#define SSF_WEBVIEW 0x00020000")] - public const int SSF_WEBVIEW = 0x00020000; - - [NativeTypeName("#define SSF_SHOWSUPERHIDDEN 0x00040000")] - public const int SSF_SHOWSUPERHIDDEN = 0x00040000; - - [NativeTypeName("#define SSF_SEPPROCESS 0x00080000")] - public const int SSF_SEPPROCESS = 0x00080000; - - [NativeTypeName("#define SSF_NONETCRAWLING 0x00100000")] - public const int SSF_NONETCRAWLING = 0x00100000; - - [NativeTypeName("#define SSF_STARTPANELON 0x00200000")] - public const int SSF_STARTPANELON = 0x00200000; - - [NativeTypeName("#define SSF_SHOWSTARTPAGE 0x00400000")] - public const int SSF_SHOWSTARTPAGE = 0x00400000; - - [NativeTypeName("#define SSF_AUTOCHECKSELECT 0x00800000")] - public const int SSF_AUTOCHECKSELECT = 0x00800000; - - [NativeTypeName("#define SSF_ICONSONLY 0x01000000")] - public const int SSF_ICONSONLY = 0x01000000; - - [NativeTypeName("#define SSF_SHOWTYPEOVERLAY 0x02000000")] - public const int SSF_SHOWTYPEOVERLAY = 0x02000000; - - [NativeTypeName("#define SSF_SHOWSTATUSBAR 0x04000000")] - public const int SSF_SHOWSTATUSBAR = 0x04000000; - [NativeTypeName("#define SHPPFW_NONE 0x00000000")] public const int SHPPFW_NONE = 0x00000000; diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/OS.cs b/sources/Interop/Windows/Windows/um/Shlwapi/OS.cs new file mode 100644 index 0000000000..5867acd0b2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Shlwapi/OS.cs @@ -0,0 +1,118 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Shlwapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OS + { + [NativeTypeName("#define OS_WINDOWS 0")] + public const int OS_WINDOWS = 0; + + [NativeTypeName("#define OS_NT 1")] + public const int OS_NT = 1; + + [NativeTypeName("#define OS_WIN95ORGREATER 2")] + public const int OS_WIN95ORGREATER = 2; + + [NativeTypeName("#define OS_NT4ORGREATER 3")] + public const int OS_NT4ORGREATER = 3; + + [NativeTypeName("#define OS_WIN98ORGREATER 5")] + public const int OS_WIN98ORGREATER = 5; + + [NativeTypeName("#define OS_WIN98_GOLD 6")] + public const int OS_WIN98_GOLD = 6; + + [NativeTypeName("#define OS_WIN2000ORGREATER 7")] + public const int OS_WIN2000ORGREATER = 7; + + [NativeTypeName("#define OS_WIN2000PRO 8")] + public const int OS_WIN2000PRO = 8; + + [NativeTypeName("#define OS_WIN2000SERVER 9")] + public const int OS_WIN2000SERVER = 9; + + [NativeTypeName("#define OS_WIN2000ADVSERVER 10")] + public const int OS_WIN2000ADVSERVER = 10; + + [NativeTypeName("#define OS_WIN2000DATACENTER 11")] + public const int OS_WIN2000DATACENTER = 11; + + [NativeTypeName("#define OS_WIN2000TERMINAL 12")] + public const int OS_WIN2000TERMINAL = 12; + + [NativeTypeName("#define OS_EMBEDDED 13")] + public const int OS_EMBEDDED = 13; + + [NativeTypeName("#define OS_TERMINALCLIENT 14")] + public const int OS_TERMINALCLIENT = 14; + + [NativeTypeName("#define OS_TERMINALREMOTEADMIN 15")] + public const int OS_TERMINALREMOTEADMIN = 15; + + [NativeTypeName("#define OS_WIN95_GOLD 16")] + public const int OS_WIN95_GOLD = 16; + + [NativeTypeName("#define OS_MEORGREATER 17")] + public const int OS_MEORGREATER = 17; + + [NativeTypeName("#define OS_XPORGREATER 18")] + public const int OS_XPORGREATER = 18; + + [NativeTypeName("#define OS_HOME 19")] + public const int OS_HOME = 19; + + [NativeTypeName("#define OS_PROFESSIONAL 20")] + public const int OS_PROFESSIONAL = 20; + + [NativeTypeName("#define OS_DATACENTER 21")] + public const int OS_DATACENTER = 21; + + [NativeTypeName("#define OS_ADVSERVER 22")] + public const int OS_ADVSERVER = 22; + + [NativeTypeName("#define OS_SERVER 23")] + public const int OS_SERVER = 23; + + [NativeTypeName("#define OS_TERMINALSERVER 24")] + public const int OS_TERMINALSERVER = 24; + + [NativeTypeName("#define OS_PERSONALTERMINALSERVER 25")] + public const int OS_PERSONALTERMINALSERVER = 25; + + [NativeTypeName("#define OS_FASTUSERSWITCHING 26")] + public const int OS_FASTUSERSWITCHING = 26; + + [NativeTypeName("#define OS_WELCOMELOGONUI 27")] + public const int OS_WELCOMELOGONUI = 27; + + [NativeTypeName("#define OS_DOMAINMEMBER 28")] + public const int OS_DOMAINMEMBER = 28; + + [NativeTypeName("#define OS_ANYSERVER 29")] + public const int OS_ANYSERVER = 29; + + [NativeTypeName("#define OS_WOW6432 30")] + public const int OS_WOW6432 = 30; + + [NativeTypeName("#define OS_WEBSERVER 31")] + public const int OS_WEBSERVER = 31; + + [NativeTypeName("#define OS_SMALLBUSINESSSERVER 32")] + public const int OS_SMALLBUSINESSSERVER = 32; + + [NativeTypeName("#define OS_TABLETPC 33")] + public const int OS_TABLETPC = 33; + + [NativeTypeName("#define OS_SERVERADMINUI 34")] + public const int OS_SERVERADMINUI = 34; + + [NativeTypeName("#define OS_MEDIACENTER 35")] + public const int OS_MEDIACENTER = 35; + + [NativeTypeName("#define OS_APPLIANCE 36")] + public const int OS_APPLIANCE = 36; + } +} diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/SHACF.cs b/sources/Interop/Windows/Windows/um/Shlwapi/SHACF.cs new file mode 100644 index 0000000000..2685dbf54f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Shlwapi/SHACF.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Shlwapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHACF + { + [NativeTypeName("#define SHACF_DEFAULT 0x00000000")] + public const int SHACF_DEFAULT = 0x00000000; + + [NativeTypeName("#define SHACF_FILESYSTEM 0x00000001")] + public const int SHACF_FILESYSTEM = 0x00000001; + + [NativeTypeName("#define SHACF_URLALL (SHACF_URLHISTORY | SHACF_URLMRU)")] + public const int SHACF_URLALL = (0x00000002 | 0x00000004); + + [NativeTypeName("#define SHACF_URLHISTORY 0x00000002")] + public const int SHACF_URLHISTORY = 0x00000002; + + [NativeTypeName("#define SHACF_URLMRU 0x00000004")] + public const int SHACF_URLMRU = 0x00000004; + + [NativeTypeName("#define SHACF_USETAB 0x00000008")] + public const int SHACF_USETAB = 0x00000008; + + [NativeTypeName("#define SHACF_FILESYS_ONLY 0x00000010")] + public const int SHACF_FILESYS_ONLY = 0x00000010; + + [NativeTypeName("#define SHACF_FILESYS_DIRS 0x00000020")] + public const int SHACF_FILESYS_DIRS = 0x00000020; + + [NativeTypeName("#define SHACF_VIRTUAL_NAMESPACE 0x00000040")] + public const int SHACF_VIRTUAL_NAMESPACE = 0x00000040; + + [NativeTypeName("#define SHACF_AUTOSUGGEST_FORCE_ON 0x10000000")] + public const int SHACF_AUTOSUGGEST_FORCE_ON = 0x10000000; + + [NativeTypeName("#define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000")] + public const int SHACF_AUTOSUGGEST_FORCE_OFF = 0x20000000; + + [NativeTypeName("#define SHACF_AUTOAPPEND_FORCE_ON 0x40000000")] + public const int SHACF_AUTOAPPEND_FORCE_ON = 0x40000000; + + [NativeTypeName("#define SHACF_AUTOAPPEND_FORCE_OFF 0x80000000")] + public const uint SHACF_AUTOAPPEND_FORCE_OFF = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/SHGVSPB.cs b/sources/Interop/Windows/Windows/um/Shlwapi/SHGVSPB.cs new file mode 100644 index 0000000000..9e724e5251 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Shlwapi/SHGVSPB.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Shlwapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHGVSPB + { + [NativeTypeName("#define SHGVSPB_PERUSER 0x00000001")] + public const int SHGVSPB_PERUSER = 0x00000001; + + [NativeTypeName("#define SHGVSPB_ALLUSERS 0x00000002")] + public const int SHGVSPB_ALLUSERS = 0x00000002; + + [NativeTypeName("#define SHGVSPB_PERFOLDER 0x00000004")] + public const int SHGVSPB_PERFOLDER = 0x00000004; + + [NativeTypeName("#define SHGVSPB_ALLFOLDERS 0x00000008")] + public const int SHGVSPB_ALLFOLDERS = 0x00000008; + + [NativeTypeName("#define SHGVSPB_INHERIT 0x00000010")] + public const int SHGVSPB_INHERIT = 0x00000010; + + [NativeTypeName("#define SHGVSPB_ROAM 0x00000020")] + public const int SHGVSPB_ROAM = 0x00000020; + + [NativeTypeName("#define SHGVSPB_NOAUTODEFAULTS 0x80000000")] + public const uint SHGVSPB_NOAUTODEFAULTS = 0x80000000; + + [NativeTypeName("#define SHGVSPB_FOLDER (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER)")] + public const int SHGVSPB_FOLDER = (0x00000001 | 0x00000004); + + [NativeTypeName("#define SHGVSPB_FOLDERNODEFAULTS (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER | SHGVSPB_NOAUTODEFAULTS)")] + public const uint SHGVSPB_FOLDERNODEFAULTS = (0x00000001 | 0x00000004 | 0x80000000); + + [NativeTypeName("#define SHGVSPB_USERDEFAULTS (SHGVSPB_PERUSER | SHGVSPB_ALLFOLDERS)")] + public const int SHGVSPB_USERDEFAULTS = (0x00000001 | 0x00000008); + + [NativeTypeName("#define SHGVSPB_GLOBALDEFAULTS (SHGVSPB_ALLUSERS | SHGVSPB_ALLFOLDERS)")] + public const int SHGVSPB_GLOBALDEFAULTS = (0x00000002 | 0x00000008); + } +} diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/SRRF.cs b/sources/Interop/Windows/Windows/um/Shlwapi/SRRF.cs new file mode 100644 index 0000000000..550a642e24 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Shlwapi/SRRF.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Shlwapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SRRF + { + [NativeTypeName("#define SRRF_RT_REG_NONE 0x00000001")] + public const int SRRF_RT_REG_NONE = 0x00000001; + + [NativeTypeName("#define SRRF_RT_REG_SZ 0x00000002")] + public const int SRRF_RT_REG_SZ = 0x00000002; + + [NativeTypeName("#define SRRF_RT_REG_EXPAND_SZ 0x00000004")] + public const int SRRF_RT_REG_EXPAND_SZ = 0x00000004; + + [NativeTypeName("#define SRRF_RT_REG_BINARY 0x00000008")] + public const int SRRF_RT_REG_BINARY = 0x00000008; + + [NativeTypeName("#define SRRF_RT_REG_DWORD 0x00000010")] + public const int SRRF_RT_REG_DWORD = 0x00000010; + + [NativeTypeName("#define SRRF_RT_REG_MULTI_SZ 0x00000020")] + public const int SRRF_RT_REG_MULTI_SZ = 0x00000020; + + [NativeTypeName("#define SRRF_RT_REG_QWORD 0x00000040")] + public const int SRRF_RT_REG_QWORD = 0x00000040; + + [NativeTypeName("#define SRRF_RT_DWORD (SRRF_RT_REG_BINARY | SRRF_RT_REG_DWORD)")] + public const int SRRF_RT_DWORD = (0x00000008 | 0x00000010); + + [NativeTypeName("#define SRRF_RT_QWORD (SRRF_RT_REG_BINARY | SRRF_RT_REG_QWORD)")] + public const int SRRF_RT_QWORD = (0x00000008 | 0x00000040); + + [NativeTypeName("#define SRRF_RT_ANY 0x0000ffff")] + public const int SRRF_RT_ANY = 0x0000ffff; + + [NativeTypeName("#define SRRF_RM_ANY 0x00000000")] + public const int SRRF_RM_ANY = 0x00000000; + + [NativeTypeName("#define SRRF_RM_NORMAL 0x00010000")] + public const int SRRF_RM_NORMAL = 0x00010000; + + [NativeTypeName("#define SRRF_RM_SAFE 0x00020000")] + public const int SRRF_RM_SAFE = 0x00020000; + + [NativeTypeName("#define SRRF_RM_SAFENETWORK 0x00040000")] + public const int SRRF_RM_SAFENETWORK = 0x00040000; + + [NativeTypeName("#define SRRF_NOEXPAND 0x10000000")] + public const int SRRF_NOEXPAND = 0x10000000; + + [NativeTypeName("#define SRRF_ZEROONFAILURE 0x20000000")] + public const int SRRF_ZEROONFAILURE = 0x20000000; + + [NativeTypeName("#define SRRF_NOVIRT 0x40000000")] + public const int SRRF_NOVIRT = 0x40000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/SZ.cs b/sources/Interop/Windows/Windows/um/Shlwapi/SZ.cs new file mode 100644 index 0000000000..246779d0ca --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Shlwapi/SZ.cs @@ -0,0 +1,30 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Shlwapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class SZ + { + [NativeTypeName("#define SZ_CONTENTTYPE_HTMLA \"text/html\"")] + public static ReadOnlySpan SZ_CONTENTTYPE_HTMLA => new byte[] { 0x74, 0x65, 0x78, 0x74, 0x2F, 0x68, 0x74, 0x6D, 0x6C, 0x00 }; + + [NativeTypeName("#define SZ_CONTENTTYPE_HTMLW L\"text/html\"")] + public const string SZ_CONTENTTYPE_HTMLW = "text/html"; + + [NativeTypeName("#define SZ_CONTENTTYPE_CDFA \"application/x-cdf\"")] + public static ReadOnlySpan SZ_CONTENTTYPE_CDFA => new byte[] { 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x78, 0x2D, 0x63, 0x64, 0x66, 0x00 }; + + [NativeTypeName("#define SZ_CONTENTTYPE_CDFW L\"application/x-cdf\"")] + public const string SZ_CONTENTTYPE_CDFW = "application/x-cdf"; + + [NativeTypeName("#define SZ_CONTENTTYPE_HTML SZ_CONTENTTYPE_HTMLW")] + public const string SZ_CONTENTTYPE_HTML = "text/html"; + + [NativeTypeName("#define SZ_CONTENTTYPE_CDF SZ_CONTENTTYPE_CDFW")] + public const string SZ_CONTENTTYPE_CDF = "application/x-cdf"; + } +} diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/URL.cs b/sources/Interop/Windows/Windows/um/Shlwapi/URL.cs new file mode 100644 index 0000000000..744ca34845 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Shlwapi/URL.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Shlwapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class URL + { + [NativeTypeName("#define URL_UNESCAPE 0x10000000")] + public const int URL_UNESCAPE = 0x10000000; + + [NativeTypeName("#define URL_ESCAPE_UNSAFE 0x20000000")] + public const int URL_ESCAPE_UNSAFE = 0x20000000; + + [NativeTypeName("#define URL_PLUGGABLE_PROTOCOL 0x40000000")] + public const int URL_PLUGGABLE_PROTOCOL = 0x40000000; + + [NativeTypeName("#define URL_WININET_COMPATIBILITY 0x80000000")] + public const uint URL_WININET_COMPATIBILITY = 0x80000000; + + [NativeTypeName("#define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000")] + public const int URL_DONT_ESCAPE_EXTRA_INFO = 0x02000000; + + [NativeTypeName("#define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO")] + public const int URL_DONT_UNESCAPE_EXTRA_INFO = 0x02000000; + + [NativeTypeName("#define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO")] + public const int URL_BROWSER_MODE = 0x02000000; + + [NativeTypeName("#define URL_ESCAPE_SPACES_ONLY 0x04000000")] + public const int URL_ESCAPE_SPACES_ONLY = 0x04000000; + + [NativeTypeName("#define URL_DONT_SIMPLIFY 0x08000000")] + public const int URL_DONT_SIMPLIFY = 0x08000000; + + [NativeTypeName("#define URL_NO_META URL_DONT_SIMPLIFY")] + public const int URL_NO_META = 0x08000000; + + [NativeTypeName("#define URL_UNESCAPE_INPLACE 0x00100000")] + public const int URL_UNESCAPE_INPLACE = 0x00100000; + + [NativeTypeName("#define URL_CONVERT_IF_DOSPATH 0x00200000")] + public const int URL_CONVERT_IF_DOSPATH = 0x00200000; + + [NativeTypeName("#define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000")] + public const int URL_UNESCAPE_HIGH_ANSI_ONLY = 0x00400000; + + [NativeTypeName("#define URL_INTERNAL_PATH 0x00800000")] + public const int URL_INTERNAL_PATH = 0x00800000; + + [NativeTypeName("#define URL_FILE_USE_PATHURL 0x00010000")] + public const int URL_FILE_USE_PATHURL = 0x00010000; + + [NativeTypeName("#define URL_DONT_UNESCAPE 0x00020000")] + public const int URL_DONT_UNESCAPE = 0x00020000; + + [NativeTypeName("#define URL_ESCAPE_AS_UTF8 0x00040000")] + public const int URL_ESCAPE_AS_UTF8 = 0x00040000; + + [NativeTypeName("#define URL_UNESCAPE_AS_UTF8 URL_ESCAPE_AS_UTF8")] + public const int URL_UNESCAPE_AS_UTF8 = 0x00040000; + + [NativeTypeName("#define URL_ESCAPE_ASCII_URI_COMPONENT 0x00080000")] + public const int URL_ESCAPE_ASCII_URI_COMPONENT = 0x00080000; + + [NativeTypeName("#define URL_ESCAPE_URI_COMPONENT (URL_ESCAPE_ASCII_URI_COMPONENT | URL_ESCAPE_AS_UTF8)")] + public const int URL_ESCAPE_URI_COMPONENT = (0x00080000 | 0x00040000); + + [NativeTypeName("#define URL_UNESCAPE_URI_COMPONENT URL_UNESCAPE_AS_UTF8")] + public const int URL_UNESCAPE_URI_COMPONENT = 0x00040000; + + [NativeTypeName("#define URL_ESCAPE_PERCENT 0x00001000")] + public const int URL_ESCAPE_PERCENT = 0x00001000; + + [NativeTypeName("#define URL_ESCAPE_SEGMENT_ONLY 0x00002000")] + public const int URL_ESCAPE_SEGMENT_ONLY = 0x00002000; + + [NativeTypeName("#define URL_PARTFLAG_KEEPSCHEME 0x00000001")] + public const int URL_PARTFLAG_KEEPSCHEME = 0x00000001; + + [NativeTypeName("#define URL_APPLY_DEFAULT 0x00000001")] + public const int URL_APPLY_DEFAULT = 0x00000001; + + [NativeTypeName("#define URL_APPLY_GUESSSCHEME 0x00000002")] + public const int URL_APPLY_GUESSSCHEME = 0x00000002; + + [NativeTypeName("#define URL_APPLY_GUESSFILE 0x00000004")] + public const int URL_APPLY_GUESSFILE = 0x00000004; + + [NativeTypeName("#define URL_APPLY_FORCEAPPLY 0x00000008")] + public const int URL_APPLY_FORCEAPPLY = 0x00000008; + } +} diff --git a/sources/Interop/Windows/Windows/um/Shlwapi/Windows.cs b/sources/Interop/Windows/Windows/um/Shlwapi/Windows.cs index a6a24eb530..ec53b3b2dc 100644 --- a/sources/Interop/Windows/Windows/um/Shlwapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/Shlwapi/Windows.cs @@ -1361,24 +1361,6 @@ public static HRESULT SHLocalStrDupA([NativeTypeName("PCSTR")] sbyte* psz, [Nati [NativeTypeName("#define StrCmpNIC StrCmpNICW")] public static delegate* StrCmpNIC => &StrCmpNICW; - [NativeTypeName("#define SZ_CONTENTTYPE_HTMLA \"text/html\"")] - public static ReadOnlySpan SZ_CONTENTTYPE_HTMLA => new byte[] { 0x74, 0x65, 0x78, 0x74, 0x2F, 0x68, 0x74, 0x6D, 0x6C, 0x00 }; - - [NativeTypeName("#define SZ_CONTENTTYPE_HTMLW L\"text/html\"")] - public const string SZ_CONTENTTYPE_HTMLW = "text/html"; - - [NativeTypeName("#define SZ_CONTENTTYPE_CDFA \"application/x-cdf\"")] - public static ReadOnlySpan SZ_CONTENTTYPE_CDFA => new byte[] { 0x61, 0x70, 0x70, 0x6C, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x2F, 0x78, 0x2D, 0x63, 0x64, 0x66, 0x00 }; - - [NativeTypeName("#define SZ_CONTENTTYPE_CDFW L\"application/x-cdf\"")] - public const string SZ_CONTENTTYPE_CDFW = "application/x-cdf"; - - [NativeTypeName("#define SZ_CONTENTTYPE_HTML SZ_CONTENTTYPE_HTMLW")] - public const string SZ_CONTENTTYPE_HTML = "text/html"; - - [NativeTypeName("#define SZ_CONTENTTYPE_CDF SZ_CONTENTTYPE_CDFW")] - public const string SZ_CONTENTTYPE_CDF = "application/x-cdf"; - [NativeTypeName("#define StrCatA lstrcatA")] public static delegate* StrCatA => &lstrcatA; @@ -1613,90 +1595,6 @@ public static HRESULT SHLocalStrDupA([NativeTypeName("PCSTR")] sbyte* psz, [Nati [NativeTypeName("#define PathUnquoteSpaces PathUnquoteSpacesW")] public static delegate* PathUnquoteSpaces => &PathUnquoteSpacesW; - [NativeTypeName("#define URL_UNESCAPE 0x10000000")] - public const int URL_UNESCAPE = 0x10000000; - - [NativeTypeName("#define URL_ESCAPE_UNSAFE 0x20000000")] - public const int URL_ESCAPE_UNSAFE = 0x20000000; - - [NativeTypeName("#define URL_PLUGGABLE_PROTOCOL 0x40000000")] - public const int URL_PLUGGABLE_PROTOCOL = 0x40000000; - - [NativeTypeName("#define URL_WININET_COMPATIBILITY 0x80000000")] - public const uint URL_WININET_COMPATIBILITY = 0x80000000; - - [NativeTypeName("#define URL_DONT_ESCAPE_EXTRA_INFO 0x02000000")] - public const int URL_DONT_ESCAPE_EXTRA_INFO = 0x02000000; - - [NativeTypeName("#define URL_DONT_UNESCAPE_EXTRA_INFO URL_DONT_ESCAPE_EXTRA_INFO")] - public const int URL_DONT_UNESCAPE_EXTRA_INFO = 0x02000000; - - [NativeTypeName("#define URL_BROWSER_MODE URL_DONT_ESCAPE_EXTRA_INFO")] - public const int URL_BROWSER_MODE = 0x02000000; - - [NativeTypeName("#define URL_ESCAPE_SPACES_ONLY 0x04000000")] - public const int URL_ESCAPE_SPACES_ONLY = 0x04000000; - - [NativeTypeName("#define URL_DONT_SIMPLIFY 0x08000000")] - public const int URL_DONT_SIMPLIFY = 0x08000000; - - [NativeTypeName("#define URL_NO_META URL_DONT_SIMPLIFY")] - public const int URL_NO_META = 0x08000000; - - [NativeTypeName("#define URL_UNESCAPE_INPLACE 0x00100000")] - public const int URL_UNESCAPE_INPLACE = 0x00100000; - - [NativeTypeName("#define URL_CONVERT_IF_DOSPATH 0x00200000")] - public const int URL_CONVERT_IF_DOSPATH = 0x00200000; - - [NativeTypeName("#define URL_UNESCAPE_HIGH_ANSI_ONLY 0x00400000")] - public const int URL_UNESCAPE_HIGH_ANSI_ONLY = 0x00400000; - - [NativeTypeName("#define URL_INTERNAL_PATH 0x00800000")] - public const int URL_INTERNAL_PATH = 0x00800000; - - [NativeTypeName("#define URL_FILE_USE_PATHURL 0x00010000")] - public const int URL_FILE_USE_PATHURL = 0x00010000; - - [NativeTypeName("#define URL_DONT_UNESCAPE 0x00020000")] - public const int URL_DONT_UNESCAPE = 0x00020000; - - [NativeTypeName("#define URL_ESCAPE_AS_UTF8 0x00040000")] - public const int URL_ESCAPE_AS_UTF8 = 0x00040000; - - [NativeTypeName("#define URL_UNESCAPE_AS_UTF8 URL_ESCAPE_AS_UTF8")] - public const int URL_UNESCAPE_AS_UTF8 = 0x00040000; - - [NativeTypeName("#define URL_ESCAPE_ASCII_URI_COMPONENT 0x00080000")] - public const int URL_ESCAPE_ASCII_URI_COMPONENT = 0x00080000; - - [NativeTypeName("#define URL_ESCAPE_URI_COMPONENT (URL_ESCAPE_ASCII_URI_COMPONENT | URL_ESCAPE_AS_UTF8)")] - public const int URL_ESCAPE_URI_COMPONENT = (0x00080000 | 0x00040000); - - [NativeTypeName("#define URL_UNESCAPE_URI_COMPONENT URL_UNESCAPE_AS_UTF8")] - public const int URL_UNESCAPE_URI_COMPONENT = 0x00040000; - - [NativeTypeName("#define URL_ESCAPE_PERCENT 0x00001000")] - public const int URL_ESCAPE_PERCENT = 0x00001000; - - [NativeTypeName("#define URL_ESCAPE_SEGMENT_ONLY 0x00002000")] - public const int URL_ESCAPE_SEGMENT_ONLY = 0x00002000; - - [NativeTypeName("#define URL_PARTFLAG_KEEPSCHEME 0x00000001")] - public const int URL_PARTFLAG_KEEPSCHEME = 0x00000001; - - [NativeTypeName("#define URL_APPLY_DEFAULT 0x00000001")] - public const int URL_APPLY_DEFAULT = 0x00000001; - - [NativeTypeName("#define URL_APPLY_GUESSSCHEME 0x00000002")] - public const int URL_APPLY_GUESSSCHEME = 0x00000002; - - [NativeTypeName("#define URL_APPLY_GUESSFILE 0x00000004")] - public const int URL_APPLY_GUESSFILE = 0x00000004; - - [NativeTypeName("#define URL_APPLY_FORCEAPPLY 0x00000008")] - public const int URL_APPLY_FORCEAPPLY = 0x00000008; - [NativeTypeName("#define UrlCompare UrlCompareW")] public static delegate* UrlCompare => &UrlCompareW; @@ -1757,57 +1655,6 @@ public static HRESULT SHLocalStrDupA([NativeTypeName("PCSTR")] sbyte* psz, [Nati [NativeTypeName("#define SHSetValue SHSetValueW")] public static delegate* SHSetValue => &SHSetValueW; - [NativeTypeName("#define SRRF_RT_REG_NONE 0x00000001")] - public const int SRRF_RT_REG_NONE = 0x00000001; - - [NativeTypeName("#define SRRF_RT_REG_SZ 0x00000002")] - public const int SRRF_RT_REG_SZ = 0x00000002; - - [NativeTypeName("#define SRRF_RT_REG_EXPAND_SZ 0x00000004")] - public const int SRRF_RT_REG_EXPAND_SZ = 0x00000004; - - [NativeTypeName("#define SRRF_RT_REG_BINARY 0x00000008")] - public const int SRRF_RT_REG_BINARY = 0x00000008; - - [NativeTypeName("#define SRRF_RT_REG_DWORD 0x00000010")] - public const int SRRF_RT_REG_DWORD = 0x00000010; - - [NativeTypeName("#define SRRF_RT_REG_MULTI_SZ 0x00000020")] - public const int SRRF_RT_REG_MULTI_SZ = 0x00000020; - - [NativeTypeName("#define SRRF_RT_REG_QWORD 0x00000040")] - public const int SRRF_RT_REG_QWORD = 0x00000040; - - [NativeTypeName("#define SRRF_RT_DWORD (SRRF_RT_REG_BINARY | SRRF_RT_REG_DWORD)")] - public const int SRRF_RT_DWORD = (0x00000008 | 0x00000010); - - [NativeTypeName("#define SRRF_RT_QWORD (SRRF_RT_REG_BINARY | SRRF_RT_REG_QWORD)")] - public const int SRRF_RT_QWORD = (0x00000008 | 0x00000040); - - [NativeTypeName("#define SRRF_RT_ANY 0x0000ffff")] - public const int SRRF_RT_ANY = 0x0000ffff; - - [NativeTypeName("#define SRRF_RM_ANY 0x00000000")] - public const int SRRF_RM_ANY = 0x00000000; - - [NativeTypeName("#define SRRF_RM_NORMAL 0x00010000")] - public const int SRRF_RM_NORMAL = 0x00010000; - - [NativeTypeName("#define SRRF_RM_SAFE 0x00020000")] - public const int SRRF_RM_SAFE = 0x00020000; - - [NativeTypeName("#define SRRF_RM_SAFENETWORK 0x00040000")] - public const int SRRF_RM_SAFENETWORK = 0x00040000; - - [NativeTypeName("#define SRRF_NOEXPAND 0x10000000")] - public const int SRRF_NOEXPAND = 0x10000000; - - [NativeTypeName("#define SRRF_ZEROONFAILURE 0x20000000")] - public const int SRRF_ZEROONFAILURE = 0x20000000; - - [NativeTypeName("#define SRRF_NOVIRT 0x40000000")] - public const int SRRF_NOVIRT = 0x40000000; - [NativeTypeName("#define SHRegGetValue SHRegGetValueW")] public static delegate* SHRegGetValue => &SHRegGetValueW; @@ -1907,39 +1754,6 @@ public static HRESULT SHLocalStrDupA([NativeTypeName("PCSTR")] sbyte* psz, [Nati [NativeTypeName("#define GetAcceptLanguages GetAcceptLanguagesW")] public static delegate* GetAcceptLanguages => &GetAcceptLanguagesW; - [NativeTypeName("#define SHGVSPB_PERUSER 0x00000001")] - public const int SHGVSPB_PERUSER = 0x00000001; - - [NativeTypeName("#define SHGVSPB_ALLUSERS 0x00000002")] - public const int SHGVSPB_ALLUSERS = 0x00000002; - - [NativeTypeName("#define SHGVSPB_PERFOLDER 0x00000004")] - public const int SHGVSPB_PERFOLDER = 0x00000004; - - [NativeTypeName("#define SHGVSPB_ALLFOLDERS 0x00000008")] - public const int SHGVSPB_ALLFOLDERS = 0x00000008; - - [NativeTypeName("#define SHGVSPB_INHERIT 0x00000010")] - public const int SHGVSPB_INHERIT = 0x00000010; - - [NativeTypeName("#define SHGVSPB_ROAM 0x00000020")] - public const int SHGVSPB_ROAM = 0x00000020; - - [NativeTypeName("#define SHGVSPB_NOAUTODEFAULTS 0x80000000")] - public const uint SHGVSPB_NOAUTODEFAULTS = 0x80000000; - - [NativeTypeName("#define SHGVSPB_FOLDER (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER)")] - public const int SHGVSPB_FOLDER = (0x00000001 | 0x00000004); - - [NativeTypeName("#define SHGVSPB_FOLDERNODEFAULTS (SHGVSPB_PERUSER | SHGVSPB_PERFOLDER | SHGVSPB_NOAUTODEFAULTS)")] - public const uint SHGVSPB_FOLDERNODEFAULTS = (0x00000001 | 0x00000004 | 0x80000000); - - [NativeTypeName("#define SHGVSPB_USERDEFAULTS (SHGVSPB_PERUSER | SHGVSPB_ALLFOLDERS)")] - public const int SHGVSPB_USERDEFAULTS = (0x00000001 | 0x00000008); - - [NativeTypeName("#define SHGVSPB_GLOBALDEFAULTS (SHGVSPB_ALLUSERS | SHGVSPB_ALLFOLDERS)")] - public const int SHGVSPB_GLOBALDEFAULTS = (0x00000002 | 0x00000008); - [NativeTypeName("#define FDTF_SHORTTIME 0x00000001")] public const int FDTF_SHORTTIME = 0x00000001; @@ -1979,114 +1793,6 @@ public static HRESULT SHLocalStrDupA([NativeTypeName("PCSTR")] sbyte* psz, [Nati [NativeTypeName("#define SHStripMneumonic SHStripMneumonicW")] public static delegate* SHStripMneumonic => &SHStripMneumonicW; - [NativeTypeName("#define OS_WINDOWS 0")] - public const int OS_WINDOWS = 0; - - [NativeTypeName("#define OS_NT 1")] - public const int OS_NT = 1; - - [NativeTypeName("#define OS_WIN95ORGREATER 2")] - public const int OS_WIN95ORGREATER = 2; - - [NativeTypeName("#define OS_NT4ORGREATER 3")] - public const int OS_NT4ORGREATER = 3; - - [NativeTypeName("#define OS_WIN98ORGREATER 5")] - public const int OS_WIN98ORGREATER = 5; - - [NativeTypeName("#define OS_WIN98_GOLD 6")] - public const int OS_WIN98_GOLD = 6; - - [NativeTypeName("#define OS_WIN2000ORGREATER 7")] - public const int OS_WIN2000ORGREATER = 7; - - [NativeTypeName("#define OS_WIN2000PRO 8")] - public const int OS_WIN2000PRO = 8; - - [NativeTypeName("#define OS_WIN2000SERVER 9")] - public const int OS_WIN2000SERVER = 9; - - [NativeTypeName("#define OS_WIN2000ADVSERVER 10")] - public const int OS_WIN2000ADVSERVER = 10; - - [NativeTypeName("#define OS_WIN2000DATACENTER 11")] - public const int OS_WIN2000DATACENTER = 11; - - [NativeTypeName("#define OS_WIN2000TERMINAL 12")] - public const int OS_WIN2000TERMINAL = 12; - - [NativeTypeName("#define OS_EMBEDDED 13")] - public const int OS_EMBEDDED = 13; - - [NativeTypeName("#define OS_TERMINALCLIENT 14")] - public const int OS_TERMINALCLIENT = 14; - - [NativeTypeName("#define OS_TERMINALREMOTEADMIN 15")] - public const int OS_TERMINALREMOTEADMIN = 15; - - [NativeTypeName("#define OS_WIN95_GOLD 16")] - public const int OS_WIN95_GOLD = 16; - - [NativeTypeName("#define OS_MEORGREATER 17")] - public const int OS_MEORGREATER = 17; - - [NativeTypeName("#define OS_XPORGREATER 18")] - public const int OS_XPORGREATER = 18; - - [NativeTypeName("#define OS_HOME 19")] - public const int OS_HOME = 19; - - [NativeTypeName("#define OS_PROFESSIONAL 20")] - public const int OS_PROFESSIONAL = 20; - - [NativeTypeName("#define OS_DATACENTER 21")] - public const int OS_DATACENTER = 21; - - [NativeTypeName("#define OS_ADVSERVER 22")] - public const int OS_ADVSERVER = 22; - - [NativeTypeName("#define OS_SERVER 23")] - public const int OS_SERVER = 23; - - [NativeTypeName("#define OS_TERMINALSERVER 24")] - public const int OS_TERMINALSERVER = 24; - - [NativeTypeName("#define OS_PERSONALTERMINALSERVER 25")] - public const int OS_PERSONALTERMINALSERVER = 25; - - [NativeTypeName("#define OS_FASTUSERSWITCHING 26")] - public const int OS_FASTUSERSWITCHING = 26; - - [NativeTypeName("#define OS_WELCOMELOGONUI 27")] - public const int OS_WELCOMELOGONUI = 27; - - [NativeTypeName("#define OS_DOMAINMEMBER 28")] - public const int OS_DOMAINMEMBER = 28; - - [NativeTypeName("#define OS_ANYSERVER 29")] - public const int OS_ANYSERVER = 29; - - [NativeTypeName("#define OS_WOW6432 30")] - public const int OS_WOW6432 = 30; - - [NativeTypeName("#define OS_WEBSERVER 31")] - public const int OS_WEBSERVER = 31; - - [NativeTypeName("#define OS_SMALLBUSINESSSERVER 32")] - public const int OS_SMALLBUSINESSSERVER = 32; - - [NativeTypeName("#define OS_TABLETPC 33")] - public const int OS_TABLETPC = 33; - - [NativeTypeName("#define OS_SERVERADMINUI 34")] - public const int OS_SERVERADMINUI = 34; - - [NativeTypeName("#define OS_MEDIACENTER 35")] - public const int OS_MEDIACENTER = 35; - - [NativeTypeName("#define OS_APPLIANCE 36")] - public const int OS_APPLIANCE = 36; - [NativeTypeName("#define PLATFORM_UNKNOWN 0")] public const int PLATFORM_UNKNOWN = 0; @@ -2102,45 +1808,6 @@ public static HRESULT SHLocalStrDupA([NativeTypeName("PCSTR")] sbyte* psz, [Nati [NativeTypeName("#define ILMM_IE4 0")] public const int ILMM_IE4 = 0; - [NativeTypeName("#define SHACF_DEFAULT 0x00000000")] - public const int SHACF_DEFAULT = 0x00000000; - - [NativeTypeName("#define SHACF_FILESYSTEM 0x00000001")] - public const int SHACF_FILESYSTEM = 0x00000001; - - [NativeTypeName("#define SHACF_URLALL (SHACF_URLHISTORY | SHACF_URLMRU)")] - public const int SHACF_URLALL = (0x00000002 | 0x00000004); - - [NativeTypeName("#define SHACF_URLHISTORY 0x00000002")] - public const int SHACF_URLHISTORY = 0x00000002; - - [NativeTypeName("#define SHACF_URLMRU 0x00000004")] - public const int SHACF_URLMRU = 0x00000004; - - [NativeTypeName("#define SHACF_USETAB 0x00000008")] - public const int SHACF_USETAB = 0x00000008; - - [NativeTypeName("#define SHACF_FILESYS_ONLY 0x00000010")] - public const int SHACF_FILESYS_ONLY = 0x00000010; - - [NativeTypeName("#define SHACF_FILESYS_DIRS 0x00000020")] - public const int SHACF_FILESYS_DIRS = 0x00000020; - - [NativeTypeName("#define SHACF_VIRTUAL_NAMESPACE 0x00000040")] - public const int SHACF_VIRTUAL_NAMESPACE = 0x00000040; - - [NativeTypeName("#define SHACF_AUTOSUGGEST_FORCE_ON 0x10000000")] - public const int SHACF_AUTOSUGGEST_FORCE_ON = 0x10000000; - - [NativeTypeName("#define SHACF_AUTOSUGGEST_FORCE_OFF 0x20000000")] - public const int SHACF_AUTOSUGGEST_FORCE_OFF = 0x20000000; - - [NativeTypeName("#define SHACF_AUTOAPPEND_FORCE_ON 0x40000000")] - public const int SHACF_AUTOAPPEND_FORCE_ON = 0x40000000; - - [NativeTypeName("#define SHACF_AUTOAPPEND_FORCE_OFF 0x80000000")] - public const uint SHACF_AUTOAPPEND_FORCE_OFF = 0x80000000; - [NativeTypeName("#define DLLVER_PLATFORM_WINDOWS 0x00000001")] public const int DLLVER_PLATFORM_WINDOWS = 0x00000001; diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioClient/Windows.cs b/sources/Interop/Windows/Windows/um/SpatialAudioClient/SPTLAUDCLNT.cs similarity index 98% rename from sources/Interop/Windows/Windows/um/SpatialAudioClient/Windows.cs rename to sources/Interop/Windows/Windows/um/SpatialAudioClient/SPTLAUDCLNT.cs index b2b636de30..6e67049eb1 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioClient/Windows.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioClient/SPTLAUDCLNT.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class SPTLAUDCLNT { [NativeTypeName("#define SPTLAUDCLNT_E_DESTROYED AUDCLNT_ERR(0x0100)")] public const int SPTLAUDCLNT_E_DESTROYED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0100)))); diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/SPTLAUD.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/SPTLAUD.cs new file mode 100644 index 0000000000..a40ea772f2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/SPTLAUD.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SpatialAudioMetadata.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPTLAUD + { + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_COMMAND_NOT_FOUND AUDCLNT_ERR(0x0200)")] + public const int SPTLAUD_MD_CLNT_E_COMMAND_NOT_FOUND = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0200)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_OBJECT_NOT_INITIALIZED AUDCLNT_ERR(0x0201)")] + public const int SPTLAUD_MD_CLNT_E_OBJECT_NOT_INITIALIZED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0201)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_INVALID_ARGS AUDCLNT_ERR(0x0202)")] + public const int SPTLAUD_MD_CLNT_E_INVALID_ARGS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0202)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_METADATA_FORMAT_NOT_FOUND AUDCLNT_ERR(0x0203)")] + public const int SPTLAUD_MD_CLNT_E_METADATA_FORMAT_NOT_FOUND = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0203)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_VALUE_BUFFER_INCORRECT_SIZE AUDCLNT_ERR(0x0204)")] + public const int SPTLAUD_MD_CLNT_E_VALUE_BUFFER_INCORRECT_SIZE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0204)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_MEMORY_BOUNDS AUDCLNT_ERR(0x0205)")] + public const int SPTLAUD_MD_CLNT_E_MEMORY_BOUNDS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0205)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_MORE_COMMANDS AUDCLNT_ERR(0x0206)")] + public const int SPTLAUD_MD_CLNT_E_NO_MORE_COMMANDS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0206)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_BUFFER_ALREADY_ATTACHED AUDCLNT_ERR(0x0207)")] + public const int SPTLAUD_MD_CLNT_E_BUFFER_ALREADY_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0207)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_BUFFER_NOT_ATTACHED AUDCLNT_ERR(0x0208)")] + public const int SPTLAUD_MD_CLNT_E_BUFFER_NOT_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0208)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_FRAMECOUNT_OUT_OF_RANGE AUDCLNT_ERR(0x0209)")] + public const int SPTLAUD_MD_CLNT_E_FRAMECOUNT_OUT_OF_RANGE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0209)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMS_FOUND AUDCLNT_ERR(0x0210)")] + public const int SPTLAUD_MD_CLNT_E_NO_ITEMS_FOUND = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0210)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEM_COPY_OVERFLOW AUDCLNT_ERR(0x0211)")] + public const int SPTLAUD_MD_CLNT_E_ITEM_COPY_OVERFLOW = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0211)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMS_OPEN AUDCLNT_ERR(0x0212)")] + public const int SPTLAUD_MD_CLNT_E_NO_ITEMS_OPEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0212)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEMS_ALREADY_OPEN AUDCLNT_ERR(0x0213)")] + public const int SPTLAUD_MD_CLNT_E_ITEMS_ALREADY_OPEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0213)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ATTACH_FAILED_INTERNAL_BUFFER AUDCLNT_ERR(0x0214)")] + public const int SPTLAUD_MD_CLNT_E_ATTACH_FAILED_INTERNAL_BUFFER = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0214)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_DETACH_FAILED_INTERNAL_BUFFER AUDCLNT_ERR(0x0215)")] + public const int SPTLAUD_MD_CLNT_E_DETACH_FAILED_INTERNAL_BUFFER = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0215)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_BUFFER_ATTACHED AUDCLNT_ERR(0x0216)")] + public const int SPTLAUD_MD_CLNT_E_NO_BUFFER_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0216)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_MORE_ITEMS AUDCLNT_ERR(0x0217)")] + public const int SPTLAUD_MD_CLNT_E_NO_MORE_ITEMS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0217)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_FRAMEOFFSET_OUT_OF_RANGE AUDCLNT_ERR(0x0218)")] + public const int SPTLAUD_MD_CLNT_E_FRAMEOFFSET_OUT_OF_RANGE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0218)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEM_MUST_HAVE_COMMANDS AUDCLNT_ERR(0x0219)")] + public const int SPTLAUD_MD_CLNT_E_ITEM_MUST_HAVE_COMMANDS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0219)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMOFFSET_WRITTEN AUDCLNT_ERR(0x0220)")] + public const int SPTLAUD_MD_CLNT_E_NO_ITEMOFFSET_WRITTEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0220)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMS_WRITTEN AUDCLNT_ERR(0x0221)")] + public const int SPTLAUD_MD_CLNT_E_NO_ITEMS_WRITTEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0221)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_COMMAND_ALREADY_WRITTEN AUDCLNT_ERR(0x0222)")] + public const int SPTLAUD_MD_CLNT_E_COMMAND_ALREADY_WRITTEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0222)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_FORMAT_MISMATCH AUDCLNT_ERR(0x0223)")] + public const int SPTLAUD_MD_CLNT_E_FORMAT_MISMATCH = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0223)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_BUFFER_STILL_ATTACHED AUDCLNT_ERR(0x0224)")] + public const int SPTLAUD_MD_CLNT_E_BUFFER_STILL_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0224)))); + + [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEMS_LOCKED_FOR_WRITING AUDCLNT_ERR(0x0225)")] + public const int SPTLAUD_MD_CLNT_E_ITEMS_LOCKED_FOR_WRITING = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0225)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/Windows.cs b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/Windows.cs index 830d498fb1..ae977fa175 100644 --- a/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/Windows.cs +++ b/sources/Interop/Windows/Windows/um/SpatialAudioMetadata/Windows.cs @@ -15,83 +15,5 @@ public static partial class Windows [NativeTypeName("#define SPATIAL_AUDIO_POSITION_BYTE_COUNT (sizeof(float) * 3)")] public const uint SPATIAL_AUDIO_POSITION_BYTE_COUNT = (4 * 3); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_COMMAND_NOT_FOUND AUDCLNT_ERR(0x0200)")] - public const int SPTLAUD_MD_CLNT_E_COMMAND_NOT_FOUND = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0200)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_OBJECT_NOT_INITIALIZED AUDCLNT_ERR(0x0201)")] - public const int SPTLAUD_MD_CLNT_E_OBJECT_NOT_INITIALIZED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0201)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_INVALID_ARGS AUDCLNT_ERR(0x0202)")] - public const int SPTLAUD_MD_CLNT_E_INVALID_ARGS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0202)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_METADATA_FORMAT_NOT_FOUND AUDCLNT_ERR(0x0203)")] - public const int SPTLAUD_MD_CLNT_E_METADATA_FORMAT_NOT_FOUND = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0203)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_VALUE_BUFFER_INCORRECT_SIZE AUDCLNT_ERR(0x0204)")] - public const int SPTLAUD_MD_CLNT_E_VALUE_BUFFER_INCORRECT_SIZE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0204)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_MEMORY_BOUNDS AUDCLNT_ERR(0x0205)")] - public const int SPTLAUD_MD_CLNT_E_MEMORY_BOUNDS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0205)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_MORE_COMMANDS AUDCLNT_ERR(0x0206)")] - public const int SPTLAUD_MD_CLNT_E_NO_MORE_COMMANDS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0206)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_BUFFER_ALREADY_ATTACHED AUDCLNT_ERR(0x0207)")] - public const int SPTLAUD_MD_CLNT_E_BUFFER_ALREADY_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0207)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_BUFFER_NOT_ATTACHED AUDCLNT_ERR(0x0208)")] - public const int SPTLAUD_MD_CLNT_E_BUFFER_NOT_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0208)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_FRAMECOUNT_OUT_OF_RANGE AUDCLNT_ERR(0x0209)")] - public const int SPTLAUD_MD_CLNT_E_FRAMECOUNT_OUT_OF_RANGE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0209)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMS_FOUND AUDCLNT_ERR(0x0210)")] - public const int SPTLAUD_MD_CLNT_E_NO_ITEMS_FOUND = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0210)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEM_COPY_OVERFLOW AUDCLNT_ERR(0x0211)")] - public const int SPTLAUD_MD_CLNT_E_ITEM_COPY_OVERFLOW = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0211)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMS_OPEN AUDCLNT_ERR(0x0212)")] - public const int SPTLAUD_MD_CLNT_E_NO_ITEMS_OPEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0212)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEMS_ALREADY_OPEN AUDCLNT_ERR(0x0213)")] - public const int SPTLAUD_MD_CLNT_E_ITEMS_ALREADY_OPEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0213)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ATTACH_FAILED_INTERNAL_BUFFER AUDCLNT_ERR(0x0214)")] - public const int SPTLAUD_MD_CLNT_E_ATTACH_FAILED_INTERNAL_BUFFER = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0214)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_DETACH_FAILED_INTERNAL_BUFFER AUDCLNT_ERR(0x0215)")] - public const int SPTLAUD_MD_CLNT_E_DETACH_FAILED_INTERNAL_BUFFER = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0215)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_BUFFER_ATTACHED AUDCLNT_ERR(0x0216)")] - public const int SPTLAUD_MD_CLNT_E_NO_BUFFER_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0216)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_MORE_ITEMS AUDCLNT_ERR(0x0217)")] - public const int SPTLAUD_MD_CLNT_E_NO_MORE_ITEMS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0217)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_FRAMEOFFSET_OUT_OF_RANGE AUDCLNT_ERR(0x0218)")] - public const int SPTLAUD_MD_CLNT_E_FRAMEOFFSET_OUT_OF_RANGE = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0218)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEM_MUST_HAVE_COMMANDS AUDCLNT_ERR(0x0219)")] - public const int SPTLAUD_MD_CLNT_E_ITEM_MUST_HAVE_COMMANDS = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0219)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMOFFSET_WRITTEN AUDCLNT_ERR(0x0220)")] - public const int SPTLAUD_MD_CLNT_E_NO_ITEMOFFSET_WRITTEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0220)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_NO_ITEMS_WRITTEN AUDCLNT_ERR(0x0221)")] - public const int SPTLAUD_MD_CLNT_E_NO_ITEMS_WRITTEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0221)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_COMMAND_ALREADY_WRITTEN AUDCLNT_ERR(0x0222)")] - public const int SPTLAUD_MD_CLNT_E_COMMAND_ALREADY_WRITTEN = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0222)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_FORMAT_MISMATCH AUDCLNT_ERR(0x0223)")] - public const int SPTLAUD_MD_CLNT_E_FORMAT_MISMATCH = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0223)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_BUFFER_STILL_ATTACHED AUDCLNT_ERR(0x0224)")] - public const int SPTLAUD_MD_CLNT_E_BUFFER_STILL_ATTACHED = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0224)))); - - [NativeTypeName("#define SPTLAUD_MD_CLNT_E_ITEMS_LOCKED_FOR_WRITING AUDCLNT_ERR(0x0225)")] - public const int SPTLAUD_MD_CLNT_E_ITEMS_LOCKED_FOR_WRITING = unchecked((int)(((uint)(1) << 31) | ((uint)(2185) << 16) | ((uint)(0x0225)))); } } diff --git a/sources/Interop/Windows/Windows/um/SrRestorePtApi/BACKUP.cs b/sources/Interop/Windows/Windows/um/SrRestorePtApi/BACKUP.cs new file mode 100644 index 0000000000..237a265c29 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SrRestorePtApi/BACKUP.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SrRestorePtApi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BACKUP + { + [NativeTypeName("#define BACKUP_RECOVERY 14")] + public const int BACKUP_RECOVERY = 14; + } +} diff --git a/sources/Interop/Windows/Windows/um/SrRestorePtApi/DESKTOP.cs b/sources/Interop/Windows/Windows/um/SrRestorePtApi/DESKTOP.cs new file mode 100644 index 0000000000..07f6a09d02 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SrRestorePtApi/DESKTOP.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SrRestorePtApi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DESKTOP + { + [NativeTypeName("#define DESKTOP_SETTING 2")] + public const int DESKTOP_SETTING = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/SrRestorePtApi/DEVICE.cs b/sources/Interop/Windows/Windows/um/SrRestorePtApi/DEVICE.cs new file mode 100644 index 0000000000..af8d3f9566 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/SrRestorePtApi/DEVICE.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/SrRestorePtApi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICE + { + [NativeTypeName("#define DEVICE_DRIVER_INSTALL 10")] + public const int DEVICE_DRIVER_INSTALL = 10; + } +} diff --git a/sources/Interop/Windows/Windows/um/SrRestorePtApi/Windows.cs b/sources/Interop/Windows/Windows/um/SrRestorePtApi/Windows.cs index 564daa627c..3fc0b10620 100644 --- a/sources/Interop/Windows/Windows/um/SrRestorePtApi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/SrRestorePtApi/Windows.cs @@ -52,9 +52,6 @@ public static unsafe partial class Windows [NativeTypeName("#define APPLICATION_UNINSTALL 1")] public const int APPLICATION_UNINSTALL = 1; - [NativeTypeName("#define DESKTOP_SETTING 2")] - public const int DESKTOP_SETTING = 2; - [NativeTypeName("#define ACCESSIBILITY_SETTING 3")] public const int ACCESSIBILITY_SETTING = 3; @@ -76,9 +73,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WINDOWS_BOOT 9")] public const int WINDOWS_BOOT = 9; - [NativeTypeName("#define DEVICE_DRIVER_INSTALL 10")] - public const int DEVICE_DRIVER_INSTALL = 10; - [NativeTypeName("#define FIRSTRUN 11")] public const int FIRSTRUN = 11; @@ -88,9 +82,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CANCELLED_OPERATION 13")] public const int CANCELLED_OPERATION = 13; - [NativeTypeName("#define BACKUP_RECOVERY 14")] - public const int BACKUP_RECOVERY = 14; - [NativeTypeName("#define BACKUP 15")] public const int BACKUP = 15; diff --git a/sources/Interop/Windows/Windows/um/TextStor/GUID.cs b/sources/Interop/Windows/Windows/um/TextStor/GUID.cs new file mode 100644 index 0000000000..245e088c6b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/TextStor/GUID.cs @@ -0,0 +1,90 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/TextStor.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_TS_SERVICE_DATAOBJECT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB5, 0xFB, 0x86, 0x60, + 0x25, 0xE2, + 0xCE, 0x46, + 0xA7, + 0x70, + 0xC1, + 0xBB, + 0xD3, + 0xE0, + 0x5D, + 0x7B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_TS_SERVICE_ACCESSIBLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x62, 0x78, 0xF9, + 0xBF, 0xA5, + 0x0F, 0x4A, + 0x8C, + 0x24, + 0xFB, + 0x16, + 0xF5, + 0xD1, + 0xAA, + 0xBB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_TS_SERVICE_ACTIVEX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x7A, 0x93, 0xEA, + 0xA6, 0xC9, + 0x7D, 0x4B, + 0x89, + 0x4A, + 0x49, + 0xD9, + 0x9B, + 0x78, + 0x48, + 0x34 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/TextStor/Windows.cs b/sources/Interop/Windows/Windows/um/TextStor/Windows.cs index f9dff42c54..1c6d1768e5 100644 --- a/sources/Interop/Windows/Windows/um/TextStor/Windows.cs +++ b/sources/Interop/Windows/Windows/um/TextStor/Windows.cs @@ -3,90 +3,10 @@ // Ported from um/TextStor.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_TS_SERVICE_DATAOBJECT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB5, 0xFB, 0x86, 0x60, - 0x25, 0xE2, - 0xCE, 0x46, - 0xA7, - 0x70, - 0xC1, - 0xBB, - 0xD3, - 0xE0, - 0x5D, - 0x7B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_TS_SERVICE_ACCESSIBLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x62, 0x78, 0xF9, - 0xBF, 0xA5, - 0x0F, 0x4A, - 0x8C, - 0x24, - 0xFB, - 0x16, - 0xF5, - 0xD1, - 0xAA, - 0xBB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_TS_SERVICE_ACTIVEX - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x7A, 0x93, 0xEA, - 0xA6, 0xC9, - 0x7D, 0x4B, - 0x89, - 0x4A, - 0x49, - 0xD9, - 0x9B, - 0x78, - 0x48, - 0x34 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("#define GXFPF_ROUND_NEAREST ( 0x1 )")] public const int GXFPF_ROUND_NEAREST = (0x1); diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/UIAnimation/LIBID.Manual.cs similarity index 95% rename from sources/Interop/Windows/Windows/um/UIAnimation/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/UIAnimation/LIBID.Manual.cs index f7f15e3274..bbb808368b 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/LIBID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class LIBID { public static ref readonly Guid LIBID_UIAnimation { diff --git a/sources/Interop/Windows/Windows/um/UIAnimation/Windows.cs b/sources/Interop/Windows/Windows/um/UIAnimation/UI.cs similarity index 97% rename from sources/Interop/Windows/Windows/um/UIAnimation/Windows.cs rename to sources/Interop/Windows/Windows/um/UIAnimation/UI.cs index cc46aaa64f..865980f3a0 100644 --- a/sources/Interop/Windows/Windows/um/UIAnimation/Windows.cs +++ b/sources/Interop/Windows/Windows/um/UIAnimation/UI.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class UI { [NativeTypeName("#define UI_ANIMATION_SECONDS_EVENTUALLY ( -1 )")] public const int UI_ANIMATION_SECONDS_EVENTUALLY = (-1); diff --git a/sources/Interop/Windows/Windows/um/UserEnv/FLAG.cs b/sources/Interop/Windows/Windows/um/UserEnv/FLAG.cs new file mode 100644 index 0000000000..cce6017e0c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/UserEnv/FLAG.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/UserEnv.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FLAG + { + [NativeTypeName("#define FLAG_NO_GPO_FILTER 0x80000000")] + public const uint FLAG_NO_GPO_FILTER = 0x80000000; + + [NativeTypeName("#define FLAG_NO_CSE_INVOKE 0x40000000")] + public const int FLAG_NO_CSE_INVOKE = 0x40000000; + + [NativeTypeName("#define FLAG_ASSUME_SLOW_LINK 0x20000000")] + public const int FLAG_ASSUME_SLOW_LINK = 0x20000000; + + [NativeTypeName("#define FLAG_LOOPBACK_MERGE 0x10000000")] + public const int FLAG_LOOPBACK_MERGE = 0x10000000; + + [NativeTypeName("#define FLAG_LOOPBACK_REPLACE 0x08000000")] + public const int FLAG_LOOPBACK_REPLACE = 0x08000000; + + [NativeTypeName("#define FLAG_ASSUME_USER_WQLFILTER_TRUE 0x04000000")] + public const int FLAG_ASSUME_USER_WQLFILTER_TRUE = 0x04000000; + + [NativeTypeName("#define FLAG_ASSUME_COMP_WQLFILTER_TRUE 0x02000000")] + public const int FLAG_ASSUME_COMP_WQLFILTER_TRUE = 0x02000000; + + [NativeTypeName("#define FLAG_PLANNING_MODE 0x01000000")] + public const int FLAG_PLANNING_MODE = 0x01000000; + + [NativeTypeName("#define FLAG_NO_USER 0x00000001")] + public const int FLAG_NO_USER = 0x00000001; + + [NativeTypeName("#define FLAG_NO_COMPUTER 0x00000002")] + public const int FLAG_NO_COMPUTER = 0x00000002; + + [NativeTypeName("#define FLAG_FORCE_CREATENAMESPACE 0x00000004")] + public const int FLAG_FORCE_CREATENAMESPACE = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/UserEnv/GP.cs b/sources/Interop/Windows/Windows/um/UserEnv/GP.cs new file mode 100644 index 0000000000..a91258467b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/UserEnv/GP.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/UserEnv.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GP + { + [NativeTypeName("#define GP_DLLNAME TEXT(\"DllName\")")] + public const string GP_DLLNAME = "DllName"; + + [NativeTypeName("#define GP_ENABLEASYNCHRONOUSPROCESSING TEXT(\"EnableAsynchronousProcessing\")")] + public const string GP_ENABLEASYNCHRONOUSPROCESSING = "EnableAsynchronousProcessing"; + + [NativeTypeName("#define GP_MAXNOGPOLISTCHANGESINTERVAL TEXT(\"MaxNoGPOListChangesInterval\")")] + public const string GP_MAXNOGPOLISTCHANGESINTERVAL = "MaxNoGPOListChangesInterval"; + + [NativeTypeName("#define GP_NOBACKGROUNDPOLICY TEXT(\"NoBackgroundPolicy\")")] + public const string GP_NOBACKGROUNDPOLICY = "NoBackgroundPolicy"; + + [NativeTypeName("#define GP_NOGPOLISTCHANGES TEXT(\"NoGPOListChanges\")")] + public const string GP_NOGPOLISTCHANGES = "NoGPOListChanges"; + + [NativeTypeName("#define GP_NOMACHINEPOLICY TEXT(\"NoMachinePolicy\")")] + public const string GP_NOMACHINEPOLICY = "NoMachinePolicy"; + + [NativeTypeName("#define GP_NOSLOWLINK TEXT(\"NoSlowLink\")")] + public const string GP_NOSLOWLINK = "NoSlowLink"; + + [NativeTypeName("#define GP_NOTIFYLINKTRANSITION TEXT(\"NotifyLinkTransition\")")] + public const string GP_NOTIFYLINKTRANSITION = "NotifyLinkTransition"; + + [NativeTypeName("#define GP_NOUSERPOLICY TEXT(\"NoUserPolicy\")")] + public const string GP_NOUSERPOLICY = "NoUserPolicy"; + + [NativeTypeName("#define GP_PERUSERLOCALSETTINGS TEXT(\"PerUserLocalSettings\")")] + public const string GP_PERUSERLOCALSETTINGS = "PerUserLocalSettings"; + + [NativeTypeName("#define GP_PROCESSGROUPPOLICY TEXT(\"ProcessGroupPolicy\")")] + public const string GP_PROCESSGROUPPOLICY = "ProcessGroupPolicy"; + + [NativeTypeName("#define GP_REQUIRESSUCCESSFULREGISTRY TEXT(\"RequiresSuccessfulRegistry\")")] + public const string GP_REQUIRESSUCCESSFULREGISTRY = "RequiresSuccessfulRegistry"; + } +} diff --git a/sources/Interop/Windows/Windows/um/UserEnv/GPO.cs b/sources/Interop/Windows/Windows/um/UserEnv/GPO.cs new file mode 100644 index 0000000000..9fc731e31e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/UserEnv/GPO.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/UserEnv.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GPO + { + [NativeTypeName("#define GPO_FLAG_DISABLE 0x00000001")] + public const int GPO_FLAG_DISABLE = 0x00000001; + + [NativeTypeName("#define GPO_FLAG_FORCE 0x00000002")] + public const int GPO_FLAG_FORCE = 0x00000002; + + [NativeTypeName("#define GPO_LIST_FLAG_MACHINE 0x00000001")] + public const int GPO_LIST_FLAG_MACHINE = 0x00000001; + + [NativeTypeName("#define GPO_LIST_FLAG_SITEONLY 0x00000002")] + public const int GPO_LIST_FLAG_SITEONLY = 0x00000002; + + [NativeTypeName("#define GPO_LIST_FLAG_NO_WMIFILTERS 0x00000004")] + public const int GPO_LIST_FLAG_NO_WMIFILTERS = 0x00000004; + + [NativeTypeName("#define GPO_LIST_FLAG_NO_SECURITYFILTERS 0x00000008")] + public const int GPO_LIST_FLAG_NO_SECURITYFILTERS = 0x00000008; + + [NativeTypeName("#define GPO_INFO_FLAG_MACHINE 0x00000001")] + public const int GPO_INFO_FLAG_MACHINE = 0x00000001; + + [NativeTypeName("#define GPO_INFO_FLAG_BACKGROUND 0x00000010")] + public const int GPO_INFO_FLAG_BACKGROUND = 0x00000010; + + [NativeTypeName("#define GPO_INFO_FLAG_SLOWLINK 0x00000020")] + public const int GPO_INFO_FLAG_SLOWLINK = 0x00000020; + + [NativeTypeName("#define GPO_INFO_FLAG_VERBOSE 0x00000040")] + public const int GPO_INFO_FLAG_VERBOSE = 0x00000040; + + [NativeTypeName("#define GPO_INFO_FLAG_NOCHANGES 0x00000080")] + public const int GPO_INFO_FLAG_NOCHANGES = 0x00000080; + + [NativeTypeName("#define GPO_INFO_FLAG_LINKTRANSITION 0x00000100")] + public const int GPO_INFO_FLAG_LINKTRANSITION = 0x00000100; + + [NativeTypeName("#define GPO_INFO_FLAG_LOGRSOP_TRANSITION 0x00000200")] + public const int GPO_INFO_FLAG_LOGRSOP_TRANSITION = 0x00000200; + + [NativeTypeName("#define GPO_INFO_FLAG_FORCED_REFRESH 0x00000400")] + public const int GPO_INFO_FLAG_FORCED_REFRESH = 0x00000400; + + [NativeTypeName("#define GPO_INFO_FLAG_SAFEMODE_BOOT 0x00000800")] + public const int GPO_INFO_FLAG_SAFEMODE_BOOT = 0x00000800; + + [NativeTypeName("#define GPO_INFO_FLAG_ASYNC_FOREGROUND 0x00001000")] + public const int GPO_INFO_FLAG_ASYNC_FOREGROUND = 0x00001000; + } +} diff --git a/sources/Interop/Windows/Windows/um/UserEnv/Windows.cs b/sources/Interop/Windows/Windows/um/UserEnv/Windows.cs index b7cca1a0a4..8ca97e8aab 100644 --- a/sources/Interop/Windows/Windows/um/UserEnv/Windows.cs +++ b/sources/Interop/Windows/Windows/um/UserEnv/Windows.cs @@ -202,24 +202,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GPC_BLOCK_POLICY 0x00000001")] public const int GPC_BLOCK_POLICY = 0x00000001; - [NativeTypeName("#define GPO_FLAG_DISABLE 0x00000001")] - public const int GPO_FLAG_DISABLE = 0x00000001; - - [NativeTypeName("#define GPO_FLAG_FORCE 0x00000002")] - public const int GPO_FLAG_FORCE = 0x00000002; - - [NativeTypeName("#define GPO_LIST_FLAG_MACHINE 0x00000001")] - public const int GPO_LIST_FLAG_MACHINE = 0x00000001; - - [NativeTypeName("#define GPO_LIST_FLAG_SITEONLY 0x00000002")] - public const int GPO_LIST_FLAG_SITEONLY = 0x00000002; - - [NativeTypeName("#define GPO_LIST_FLAG_NO_WMIFILTERS 0x00000004")] - public const int GPO_LIST_FLAG_NO_WMIFILTERS = 0x00000004; - - [NativeTypeName("#define GPO_LIST_FLAG_NO_SECURITYFILTERS 0x00000008")] - public const int GPO_LIST_FLAG_NO_SECURITYFILTERS = 0x00000008; - [NativeTypeName("#define GetGPOList GetGPOListW")] public static delegate* GetGPOList => &GetGPOListW; @@ -229,105 +211,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GetAppliedGPOList GetAppliedGPOListW")] public static delegate* GetAppliedGPOList => &GetAppliedGPOListW; - [NativeTypeName("#define GP_DLLNAME TEXT(\"DllName\")")] - public const string GP_DLLNAME = "DllName"; - - [NativeTypeName("#define GP_ENABLEASYNCHRONOUSPROCESSING TEXT(\"EnableAsynchronousProcessing\")")] - public const string GP_ENABLEASYNCHRONOUSPROCESSING = "EnableAsynchronousProcessing"; - - [NativeTypeName("#define GP_MAXNOGPOLISTCHANGESINTERVAL TEXT(\"MaxNoGPOListChangesInterval\")")] - public const string GP_MAXNOGPOLISTCHANGESINTERVAL = "MaxNoGPOListChangesInterval"; - - [NativeTypeName("#define GP_NOBACKGROUNDPOLICY TEXT(\"NoBackgroundPolicy\")")] - public const string GP_NOBACKGROUNDPOLICY = "NoBackgroundPolicy"; - - [NativeTypeName("#define GP_NOGPOLISTCHANGES TEXT(\"NoGPOListChanges\")")] - public const string GP_NOGPOLISTCHANGES = "NoGPOListChanges"; - - [NativeTypeName("#define GP_NOMACHINEPOLICY TEXT(\"NoMachinePolicy\")")] - public const string GP_NOMACHINEPOLICY = "NoMachinePolicy"; - - [NativeTypeName("#define GP_NOSLOWLINK TEXT(\"NoSlowLink\")")] - public const string GP_NOSLOWLINK = "NoSlowLink"; - - [NativeTypeName("#define GP_NOTIFYLINKTRANSITION TEXT(\"NotifyLinkTransition\")")] - public const string GP_NOTIFYLINKTRANSITION = "NotifyLinkTransition"; - - [NativeTypeName("#define GP_NOUSERPOLICY TEXT(\"NoUserPolicy\")")] - public const string GP_NOUSERPOLICY = "NoUserPolicy"; - - [NativeTypeName("#define GP_PERUSERLOCALSETTINGS TEXT(\"PerUserLocalSettings\")")] - public const string GP_PERUSERLOCALSETTINGS = "PerUserLocalSettings"; - - [NativeTypeName("#define GP_PROCESSGROUPPOLICY TEXT(\"ProcessGroupPolicy\")")] - public const string GP_PROCESSGROUPPOLICY = "ProcessGroupPolicy"; - - [NativeTypeName("#define GP_REQUIRESSUCCESSFULREGISTRY TEXT(\"RequiresSuccessfulRegistry\")")] - public const string GP_REQUIRESSUCCESSFULREGISTRY = "RequiresSuccessfulRegistry"; - - [NativeTypeName("#define GPO_INFO_FLAG_MACHINE 0x00000001")] - public const int GPO_INFO_FLAG_MACHINE = 0x00000001; - - [NativeTypeName("#define GPO_INFO_FLAG_BACKGROUND 0x00000010")] - public const int GPO_INFO_FLAG_BACKGROUND = 0x00000010; - - [NativeTypeName("#define GPO_INFO_FLAG_SLOWLINK 0x00000020")] - public const int GPO_INFO_FLAG_SLOWLINK = 0x00000020; - - [NativeTypeName("#define GPO_INFO_FLAG_VERBOSE 0x00000040")] - public const int GPO_INFO_FLAG_VERBOSE = 0x00000040; - - [NativeTypeName("#define GPO_INFO_FLAG_NOCHANGES 0x00000080")] - public const int GPO_INFO_FLAG_NOCHANGES = 0x00000080; - - [NativeTypeName("#define GPO_INFO_FLAG_LINKTRANSITION 0x00000100")] - public const int GPO_INFO_FLAG_LINKTRANSITION = 0x00000100; - - [NativeTypeName("#define GPO_INFO_FLAG_LOGRSOP_TRANSITION 0x00000200")] - public const int GPO_INFO_FLAG_LOGRSOP_TRANSITION = 0x00000200; - - [NativeTypeName("#define GPO_INFO_FLAG_FORCED_REFRESH 0x00000400")] - public const int GPO_INFO_FLAG_FORCED_REFRESH = 0x00000400; - - [NativeTypeName("#define GPO_INFO_FLAG_SAFEMODE_BOOT 0x00000800")] - public const int GPO_INFO_FLAG_SAFEMODE_BOOT = 0x00000800; - - [NativeTypeName("#define GPO_INFO_FLAG_ASYNC_FOREGROUND 0x00001000")] - public const int GPO_INFO_FLAG_ASYNC_FOREGROUND = 0x00001000; - - [NativeTypeName("#define FLAG_NO_GPO_FILTER 0x80000000")] - public const uint FLAG_NO_GPO_FILTER = 0x80000000; - - [NativeTypeName("#define FLAG_NO_CSE_INVOKE 0x40000000")] - public const int FLAG_NO_CSE_INVOKE = 0x40000000; - - [NativeTypeName("#define FLAG_ASSUME_SLOW_LINK 0x20000000")] - public const int FLAG_ASSUME_SLOW_LINK = 0x20000000; - - [NativeTypeName("#define FLAG_LOOPBACK_MERGE 0x10000000")] - public const int FLAG_LOOPBACK_MERGE = 0x10000000; - - [NativeTypeName("#define FLAG_LOOPBACK_REPLACE 0x08000000")] - public const int FLAG_LOOPBACK_REPLACE = 0x08000000; - - [NativeTypeName("#define FLAG_ASSUME_USER_WQLFILTER_TRUE 0x04000000")] - public const int FLAG_ASSUME_USER_WQLFILTER_TRUE = 0x04000000; - - [NativeTypeName("#define FLAG_ASSUME_COMP_WQLFILTER_TRUE 0x02000000")] - public const int FLAG_ASSUME_COMP_WQLFILTER_TRUE = 0x02000000; - - [NativeTypeName("#define FLAG_PLANNING_MODE 0x01000000")] - public const int FLAG_PLANNING_MODE = 0x01000000; - - [NativeTypeName("#define FLAG_NO_USER 0x00000001")] - public const int FLAG_NO_USER = 0x00000001; - - [NativeTypeName("#define FLAG_NO_COMPUTER 0x00000002")] - public const int FLAG_NO_COMPUTER = 0x00000002; - - [NativeTypeName("#define FLAG_FORCE_CREATENAMESPACE 0x00000004")] - public const int FLAG_FORCE_CREATENAMESPACE = 0x00000004; - [NativeTypeName("#define RSOP_USER_ACCESS_DENIED 0x00000001")] public const int RSOP_USER_ACCESS_DENIED = 0x00000001; diff --git a/sources/Interop/Windows/Windows/um/Uxtheme/DTT.cs b/sources/Interop/Windows/Windows/um/Uxtheme/DTT.cs new file mode 100644 index 0000000000..1da10f7031 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Uxtheme/DTT.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Uxtheme.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DTT + { + [NativeTypeName("#define DTT_GRAYED 0x00000001")] + public const int DTT_GRAYED = 0x00000001; + + [NativeTypeName("#define DTT_FLAGS2VALIDBITS (DTT_GRAYED)")] + public const int DTT_FLAGS2VALIDBITS = (0x00000001); + + [NativeTypeName("#define DTT_TEXTCOLOR (1UL << 0)")] + public const uint DTT_TEXTCOLOR = (1U << 0); + + [NativeTypeName("#define DTT_BORDERCOLOR (1UL << 1)")] + public const uint DTT_BORDERCOLOR = (1U << 1); + + [NativeTypeName("#define DTT_SHADOWCOLOR (1UL << 2)")] + public const uint DTT_SHADOWCOLOR = (1U << 2); + + [NativeTypeName("#define DTT_SHADOWTYPE (1UL << 3)")] + public const uint DTT_SHADOWTYPE = (1U << 3); + + [NativeTypeName("#define DTT_SHADOWOFFSET (1UL << 4)")] + public const uint DTT_SHADOWOFFSET = (1U << 4); + + [NativeTypeName("#define DTT_BORDERSIZE (1UL << 5)")] + public const uint DTT_BORDERSIZE = (1U << 5); + + [NativeTypeName("#define DTT_FONTPROP (1UL << 6)")] + public const uint DTT_FONTPROP = (1U << 6); + + [NativeTypeName("#define DTT_COLORPROP (1UL << 7)")] + public const uint DTT_COLORPROP = (1U << 7); + + [NativeTypeName("#define DTT_STATEID (1UL << 8)")] + public const uint DTT_STATEID = (1U << 8); + + [NativeTypeName("#define DTT_CALCRECT (1UL << 9)")] + public const uint DTT_CALCRECT = (1U << 9); + + [NativeTypeName("#define DTT_APPLYOVERLAY (1UL << 10)")] + public const uint DTT_APPLYOVERLAY = (1U << 10); + + [NativeTypeName("#define DTT_GLOWSIZE (1UL << 11)")] + public const uint DTT_GLOWSIZE = (1U << 11); + + [NativeTypeName("#define DTT_CALLBACK (1UL << 12)")] + public const uint DTT_CALLBACK = (1U << 12); + + [NativeTypeName("#define DTT_COMPOSITED (1UL << 13)")] + public const uint DTT_COMPOSITED = (1U << 13); + + [NativeTypeName("#define DTT_VALIDBITS (DTT_TEXTCOLOR | \\\r\n DTT_BORDERCOLOR | \\\r\n DTT_SHADOWCOLOR | \\\r\n DTT_SHADOWTYPE | \\\r\n DTT_SHADOWOFFSET | \\\r\n DTT_BORDERSIZE | \\\r\n DTT_FONTPROP | \\\r\n DTT_COLORPROP | \\\r\n DTT_STATEID | \\\r\n DTT_CALCRECT | \\\r\n DTT_APPLYOVERLAY | \\\r\n DTT_GLOWSIZE | \\\r\n DTT_COMPOSITED)")] + public const uint DTT_VALIDBITS = ((1U << 0) | (1U << 1) | (1U << 2) | (1U << 3) | (1U << 4) | (1U << 5) | (1U << 6) | (1U << 7) | (1U << 8) | (1U << 9) | (1U << 10) | (1U << 11) | (1U << 13)); + } +} diff --git a/sources/Interop/Windows/Windows/um/Uxtheme/HTTB.cs b/sources/Interop/Windows/Windows/um/Uxtheme/HTTB.cs new file mode 100644 index 0000000000..a7cd0fa076 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Uxtheme/HTTB.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Uxtheme.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HTTB + { + [NativeTypeName("#define HTTB_BACKGROUNDSEG 0x00000000")] + public const int HTTB_BACKGROUNDSEG = 0x00000000; + + [NativeTypeName("#define HTTB_FIXEDBORDER 0x00000002")] + public const int HTTB_FIXEDBORDER = 0x00000002; + + [NativeTypeName("#define HTTB_CAPTION 0x00000004")] + public const int HTTB_CAPTION = 0x00000004; + + [NativeTypeName("#define HTTB_RESIZINGBORDER_LEFT 0x00000010")] + public const int HTTB_RESIZINGBORDER_LEFT = 0x00000010; + + [NativeTypeName("#define HTTB_RESIZINGBORDER_TOP 0x00000020")] + public const int HTTB_RESIZINGBORDER_TOP = 0x00000020; + + [NativeTypeName("#define HTTB_RESIZINGBORDER_RIGHT 0x00000040")] + public const int HTTB_RESIZINGBORDER_RIGHT = 0x00000040; + + [NativeTypeName("#define HTTB_RESIZINGBORDER_BOTTOM 0x00000080")] + public const int HTTB_RESIZINGBORDER_BOTTOM = 0x00000080; + + [NativeTypeName("#define HTTB_RESIZINGBORDER (HTTB_RESIZINGBORDER_LEFT | \\\r\n HTTB_RESIZINGBORDER_TOP | \\\r\n HTTB_RESIZINGBORDER_RIGHT | \\\r\n HTTB_RESIZINGBORDER_BOTTOM)")] + public const int HTTB_RESIZINGBORDER = (0x00000010 | 0x00000020 | 0x00000040 | 0x00000080); + + [NativeTypeName("#define HTTB_SIZINGTEMPLATE 0x00000100")] + public const int HTTB_SIZINGTEMPLATE = 0x00000100; + + [NativeTypeName("#define HTTB_SYSTEMSIZINGMARGINS 0x00000200")] + public const int HTTB_SYSTEMSIZINGMARGINS = 0x00000200; + } +} diff --git a/sources/Interop/Windows/Windows/um/Uxtheme/SZ.cs b/sources/Interop/Windows/Windows/um/Uxtheme/SZ.cs new file mode 100644 index 0000000000..6a141cca93 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/Uxtheme/SZ.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/Uxtheme.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SZ + { + [NativeTypeName("#define SZ_THDOCPROP_DISPLAYNAME L\"DisplayName\"")] + public const string SZ_THDOCPROP_DISPLAYNAME = "DisplayName"; + + [NativeTypeName("#define SZ_THDOCPROP_CANONICALNAME L\"ThemeName\"")] + public const string SZ_THDOCPROP_CANONICALNAME = "ThemeName"; + + [NativeTypeName("#define SZ_THDOCPROP_TOOLTIP L\"ToolTip\"")] + public const string SZ_THDOCPROP_TOOLTIP = "ToolTip"; + + [NativeTypeName("#define SZ_THDOCPROP_AUTHOR L\"author\"")] + public const string SZ_THDOCPROP_AUTHOR = "author"; + } +} diff --git a/sources/Interop/Windows/Windows/um/Uxtheme/Windows.cs b/sources/Interop/Windows/Windows/um/Uxtheme/Windows.cs index fdabe3500a..24c1861325 100644 --- a/sources/Interop/Windows/Windows/um/Uxtheme/Windows.cs +++ b/sources/Interop/Windows/Windows/um/Uxtheme/Windows.cs @@ -280,42 +280,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DTBG_VALIDBITS (DTBG_CLIPRECT | \\\r\n DTBG_DRAWSOLID | \\\r\n DTBG_OMITBORDER | \\\r\n DTBG_OMITCONTENT | \\\r\n DTBG_COMPUTINGREGION | \\\r\n DTBG_MIRRORDC | \\\r\n DTBG_NOMIRROR)")] public const int DTBG_VALIDBITS = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000040); - [NativeTypeName("#define DTT_GRAYED 0x00000001")] - public const int DTT_GRAYED = 0x00000001; - - [NativeTypeName("#define DTT_FLAGS2VALIDBITS (DTT_GRAYED)")] - public const int DTT_FLAGS2VALIDBITS = (0x00000001); - - [NativeTypeName("#define HTTB_BACKGROUNDSEG 0x00000000")] - public const int HTTB_BACKGROUNDSEG = 0x00000000; - - [NativeTypeName("#define HTTB_FIXEDBORDER 0x00000002")] - public const int HTTB_FIXEDBORDER = 0x00000002; - - [NativeTypeName("#define HTTB_CAPTION 0x00000004")] - public const int HTTB_CAPTION = 0x00000004; - - [NativeTypeName("#define HTTB_RESIZINGBORDER_LEFT 0x00000010")] - public const int HTTB_RESIZINGBORDER_LEFT = 0x00000010; - - [NativeTypeName("#define HTTB_RESIZINGBORDER_TOP 0x00000020")] - public const int HTTB_RESIZINGBORDER_TOP = 0x00000020; - - [NativeTypeName("#define HTTB_RESIZINGBORDER_RIGHT 0x00000040")] - public const int HTTB_RESIZINGBORDER_RIGHT = 0x00000040; - - [NativeTypeName("#define HTTB_RESIZINGBORDER_BOTTOM 0x00000080")] - public const int HTTB_RESIZINGBORDER_BOTTOM = 0x00000080; - - [NativeTypeName("#define HTTB_RESIZINGBORDER (HTTB_RESIZINGBORDER_LEFT | \\\r\n HTTB_RESIZINGBORDER_TOP | \\\r\n HTTB_RESIZINGBORDER_RIGHT | \\\r\n HTTB_RESIZINGBORDER_BOTTOM)")] - public const int HTTB_RESIZINGBORDER = (0x00000010 | 0x00000020 | 0x00000040 | 0x00000080); - - [NativeTypeName("#define HTTB_SIZINGTEMPLATE 0x00000100")] - public const int HTTB_SIZINGTEMPLATE = 0x00000100; - - [NativeTypeName("#define HTTB_SYSTEMSIZINGMARGINS 0x00000200")] - public const int HTTB_SYSTEMSIZINGMARGINS = 0x00000200; - [NativeTypeName("#define ETDT_DISABLE 0x00000001")] public const int ETDT_DISABLE = 0x00000001; @@ -349,18 +313,6 @@ public static unsafe partial class Windows [NativeTypeName("#define STAP_VALIDBITS (STAP_ALLOW_NONCLIENT | \\\r\n STAP_ALLOW_CONTROLS | \\\r\n STAP_ALLOW_WEBCONTENT)")] public const uint STAP_VALIDBITS = ((1U << 0) | (1U << 1) | (1U << 2)); - [NativeTypeName("#define SZ_THDOCPROP_DISPLAYNAME L\"DisplayName\"")] - public const string SZ_THDOCPROP_DISPLAYNAME = "DisplayName"; - - [NativeTypeName("#define SZ_THDOCPROP_CANONICALNAME L\"ThemeName\"")] - public const string SZ_THDOCPROP_CANONICALNAME = "ThemeName"; - - [NativeTypeName("#define SZ_THDOCPROP_TOOLTIP L\"ToolTip\"")] - public const string SZ_THDOCPROP_TOOLTIP = "ToolTip"; - - [NativeTypeName("#define SZ_THDOCPROP_AUTHOR L\"author\"")] - public const string SZ_THDOCPROP_AUTHOR = "author"; - [NativeTypeName("#define GBF_DIRECT 0x00000001")] public const int GBF_DIRECT = 0x00000001; @@ -394,51 +346,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WTNCA_VALIDBITS (WTNCA_NODRAWCAPTION | \\\r\n WTNCA_NODRAWICON | \\\r\n WTNCA_NOSYSMENU | \\\r\n WTNCA_NOMIRRORHELP)")] public const int WTNCA_VALIDBITS = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008); - [NativeTypeName("#define DTT_TEXTCOLOR (1UL << 0)")] - public const uint DTT_TEXTCOLOR = (1U << 0); - - [NativeTypeName("#define DTT_BORDERCOLOR (1UL << 1)")] - public const uint DTT_BORDERCOLOR = (1U << 1); - - [NativeTypeName("#define DTT_SHADOWCOLOR (1UL << 2)")] - public const uint DTT_SHADOWCOLOR = (1U << 2); - - [NativeTypeName("#define DTT_SHADOWTYPE (1UL << 3)")] - public const uint DTT_SHADOWTYPE = (1U << 3); - - [NativeTypeName("#define DTT_SHADOWOFFSET (1UL << 4)")] - public const uint DTT_SHADOWOFFSET = (1U << 4); - - [NativeTypeName("#define DTT_BORDERSIZE (1UL << 5)")] - public const uint DTT_BORDERSIZE = (1U << 5); - - [NativeTypeName("#define DTT_FONTPROP (1UL << 6)")] - public const uint DTT_FONTPROP = (1U << 6); - - [NativeTypeName("#define DTT_COLORPROP (1UL << 7)")] - public const uint DTT_COLORPROP = (1U << 7); - - [NativeTypeName("#define DTT_STATEID (1UL << 8)")] - public const uint DTT_STATEID = (1U << 8); - - [NativeTypeName("#define DTT_CALCRECT (1UL << 9)")] - public const uint DTT_CALCRECT = (1U << 9); - - [NativeTypeName("#define DTT_APPLYOVERLAY (1UL << 10)")] - public const uint DTT_APPLYOVERLAY = (1U << 10); - - [NativeTypeName("#define DTT_GLOWSIZE (1UL << 11)")] - public const uint DTT_GLOWSIZE = (1U << 11); - - [NativeTypeName("#define DTT_CALLBACK (1UL << 12)")] - public const uint DTT_CALLBACK = (1U << 12); - - [NativeTypeName("#define DTT_COMPOSITED (1UL << 13)")] - public const uint DTT_COMPOSITED = (1U << 13); - - [NativeTypeName("#define DTT_VALIDBITS (DTT_TEXTCOLOR | \\\r\n DTT_BORDERCOLOR | \\\r\n DTT_SHADOWCOLOR | \\\r\n DTT_SHADOWTYPE | \\\r\n DTT_SHADOWOFFSET | \\\r\n DTT_BORDERSIZE | \\\r\n DTT_FONTPROP | \\\r\n DTT_COLORPROP | \\\r\n DTT_STATEID | \\\r\n DTT_CALCRECT | \\\r\n DTT_APPLYOVERLAY | \\\r\n DTT_GLOWSIZE | \\\r\n DTT_COMPOSITED)")] - public const uint DTT_VALIDBITS = ((1U << 0) | (1U << 1) | (1U << 2) | (1U << 3) | (1U << 4) | (1U << 5) | (1U << 6) | (1U << 7) | (1U << 8) | (1U << 9) | (1U << 10) | (1U << 11) | (1U << 13)); - [NativeTypeName("#define BPBF_COMPOSITED BPBF_TOPDOWNDIB")] public const BP_BUFFERFORMAT BPBF_COMPOSITED = BPBF_TOPDOWNDIB; diff --git a/sources/Interop/Windows/Windows/um/WinBase/ACTIVATION.cs b/sources/Interop/Windows/Windows/um/WinBase/ACTIVATION.cs new file mode 100644 index 0000000000..d2dd1af721 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/ACTIVATION.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ACTIVATION + { + [NativeTypeName("#define ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED 1")] + public const int ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/BACKUP.cs b/sources/Interop/Windows/Windows/um/WinBase/BACKUP.cs new file mode 100644 index 0000000000..f57f6cce4e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/BACKUP.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BACKUP + { + [NativeTypeName("#define BACKUP_INVALID 0x00000000")] + public const int BACKUP_INVALID = 0x00000000; + + [NativeTypeName("#define BACKUP_DATA 0x00000001")] + public const int BACKUP_DATA = 0x00000001; + + [NativeTypeName("#define BACKUP_EA_DATA 0x00000002")] + public const int BACKUP_EA_DATA = 0x00000002; + + [NativeTypeName("#define BACKUP_SECURITY_DATA 0x00000003")] + public const int BACKUP_SECURITY_DATA = 0x00000003; + + [NativeTypeName("#define BACKUP_ALTERNATE_DATA 0x00000004")] + public const int BACKUP_ALTERNATE_DATA = 0x00000004; + + [NativeTypeName("#define BACKUP_LINK 0x00000005")] + public const int BACKUP_LINK = 0x00000005; + + [NativeTypeName("#define BACKUP_PROPERTY_DATA 0x00000006")] + public const int BACKUP_PROPERTY_DATA = 0x00000006; + + [NativeTypeName("#define BACKUP_OBJECT_ID 0x00000007")] + public const int BACKUP_OBJECT_ID = 0x00000007; + + [NativeTypeName("#define BACKUP_REPARSE_DATA 0x00000008")] + public const int BACKUP_REPARSE_DATA = 0x00000008; + + [NativeTypeName("#define BACKUP_SPARSE_BLOCK 0x00000009")] + public const int BACKUP_SPARSE_BLOCK = 0x00000009; + + [NativeTypeName("#define BACKUP_TXFS_DATA 0x0000000a")] + public const int BACKUP_TXFS_DATA = 0x0000000a; + + [NativeTypeName("#define BACKUP_GHOSTED_FILE_EXTENTS 0x0000000b")] + public const int BACKUP_GHOSTED_FILE_EXTENTS = 0x0000000b; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/BATTERY.cs b/sources/Interop/Windows/Windows/um/WinBase/BATTERY.cs new file mode 100644 index 0000000000..8422735180 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/BATTERY.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BATTERY + { + [NativeTypeName("#define BATTERY_FLAG_HIGH 0x01")] + public const int BATTERY_FLAG_HIGH = 0x01; + + [NativeTypeName("#define BATTERY_FLAG_LOW 0x02")] + public const int BATTERY_FLAG_LOW = 0x02; + + [NativeTypeName("#define BATTERY_FLAG_CRITICAL 0x04")] + public const int BATTERY_FLAG_CRITICAL = 0x04; + + [NativeTypeName("#define BATTERY_FLAG_CHARGING 0x08")] + public const int BATTERY_FLAG_CHARGING = 0x08; + + [NativeTypeName("#define BATTERY_FLAG_NO_BATTERY 0x80")] + public const int BATTERY_FLAG_NO_BATTERY = 0x80; + + [NativeTypeName("#define BATTERY_FLAG_UNKNOWN 0xFF")] + public const int BATTERY_FLAG_UNKNOWN = 0xFF; + + [NativeTypeName("#define BATTERY_PERCENTAGE_UNKNOWN 0xFF")] + public const int BATTERY_PERCENTAGE_UNKNOWN = 0xFF; + + [NativeTypeName("#define BATTERY_LIFE_UNKNOWN 0xFFFFFFFF")] + public const uint BATTERY_LIFE_UNKNOWN = 0xFFFFFFFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/BAUD.cs b/sources/Interop/Windows/Windows/um/WinBase/BAUD.cs new file mode 100644 index 0000000000..bc88e6e3b8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/BAUD.cs @@ -0,0 +1,70 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BAUD + { + [NativeTypeName("#define BAUD_075 ((DWORD)0x00000001)")] + public const uint BAUD_075 = ((uint)(0x00000001)); + + [NativeTypeName("#define BAUD_110 ((DWORD)0x00000002)")] + public const uint BAUD_110 = ((uint)(0x00000002)); + + [NativeTypeName("#define BAUD_134_5 ((DWORD)0x00000004)")] + public const uint BAUD_134_5 = ((uint)(0x00000004)); + + [NativeTypeName("#define BAUD_150 ((DWORD)0x00000008)")] + public const uint BAUD_150 = ((uint)(0x00000008)); + + [NativeTypeName("#define BAUD_300 ((DWORD)0x00000010)")] + public const uint BAUD_300 = ((uint)(0x00000010)); + + [NativeTypeName("#define BAUD_600 ((DWORD)0x00000020)")] + public const uint BAUD_600 = ((uint)(0x00000020)); + + [NativeTypeName("#define BAUD_1200 ((DWORD)0x00000040)")] + public const uint BAUD_1200 = ((uint)(0x00000040)); + + [NativeTypeName("#define BAUD_1800 ((DWORD)0x00000080)")] + public const uint BAUD_1800 = ((uint)(0x00000080)); + + [NativeTypeName("#define BAUD_2400 ((DWORD)0x00000100)")] + public const uint BAUD_2400 = ((uint)(0x00000100)); + + [NativeTypeName("#define BAUD_4800 ((DWORD)0x00000200)")] + public const uint BAUD_4800 = ((uint)(0x00000200)); + + [NativeTypeName("#define BAUD_7200 ((DWORD)0x00000400)")] + public const uint BAUD_7200 = ((uint)(0x00000400)); + + [NativeTypeName("#define BAUD_9600 ((DWORD)0x00000800)")] + public const uint BAUD_9600 = ((uint)(0x00000800)); + + [NativeTypeName("#define BAUD_14400 ((DWORD)0x00001000)")] + public const uint BAUD_14400 = ((uint)(0x00001000)); + + [NativeTypeName("#define BAUD_19200 ((DWORD)0x00002000)")] + public const uint BAUD_19200 = ((uint)(0x00002000)); + + [NativeTypeName("#define BAUD_38400 ((DWORD)0x00004000)")] + public const uint BAUD_38400 = ((uint)(0x00004000)); + + [NativeTypeName("#define BAUD_56K ((DWORD)0x00008000)")] + public const uint BAUD_56K = ((uint)(0x00008000)); + + [NativeTypeName("#define BAUD_128K ((DWORD)0x00010000)")] + public const uint BAUD_128K = ((uint)(0x00010000)); + + [NativeTypeName("#define BAUD_115200 ((DWORD)0x00020000)")] + public const uint BAUD_115200 = ((uint)(0x00020000)); + + [NativeTypeName("#define BAUD_57600 ((DWORD)0x00040000)")] + public const uint BAUD_57600 = ((uint)(0x00040000)); + + [NativeTypeName("#define BAUD_USER ((DWORD)0x10000000)")] + public const uint BAUD_USER = ((uint)(0x10000000)); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/CBR.cs b/sources/Interop/Windows/Windows/um/WinBase/CBR.cs new file mode 100644 index 0000000000..90097741a3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/CBR.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CBR + { + [NativeTypeName("#define CBR_110 110")] + public const int CBR_110 = 110; + + [NativeTypeName("#define CBR_300 300")] + public const int CBR_300 = 300; + + [NativeTypeName("#define CBR_600 600")] + public const int CBR_600 = 600; + + [NativeTypeName("#define CBR_1200 1200")] + public const int CBR_1200 = 1200; + + [NativeTypeName("#define CBR_2400 2400")] + public const int CBR_2400 = 2400; + + [NativeTypeName("#define CBR_4800 4800")] + public const int CBR_4800 = 4800; + + [NativeTypeName("#define CBR_9600 9600")] + public const int CBR_9600 = 9600; + + [NativeTypeName("#define CBR_14400 14400")] + public const int CBR_14400 = 14400; + + [NativeTypeName("#define CBR_19200 19200")] + public const int CBR_19200 = 19200; + + [NativeTypeName("#define CBR_38400 38400")] + public const int CBR_38400 = 38400; + + [NativeTypeName("#define CBR_56000 56000")] + public const int CBR_56000 = 56000; + + [NativeTypeName("#define CBR_57600 57600")] + public const int CBR_57600 = 57600; + + [NativeTypeName("#define CBR_115200 115200")] + public const int CBR_115200 = 115200; + + [NativeTypeName("#define CBR_128000 128000")] + public const int CBR_128000 = 128000; + + [NativeTypeName("#define CBR_256000 256000")] + public const int CBR_256000 = 256000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/CE.cs b/sources/Interop/Windows/Windows/um/WinBase/CE.cs new file mode 100644 index 0000000000..a7f871dee4 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/CE.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CE + { + [NativeTypeName("#define CE_RXOVER 0x0001")] + public const int CE_RXOVER = 0x0001; + + [NativeTypeName("#define CE_OVERRUN 0x0002")] + public const int CE_OVERRUN = 0x0002; + + [NativeTypeName("#define CE_RXPARITY 0x0004")] + public const int CE_RXPARITY = 0x0004; + + [NativeTypeName("#define CE_FRAME 0x0008")] + public const int CE_FRAME = 0x0008; + + [NativeTypeName("#define CE_BREAK 0x0010")] + public const int CE_BREAK = 0x0010; + + [NativeTypeName("#define CE_TXFULL 0x0100")] + public const int CE_TXFULL = 0x0100; + + [NativeTypeName("#define CE_PTO 0x0200")] + public const int CE_PTO = 0x0200; + + [NativeTypeName("#define CE_IOE 0x0400")] + public const int CE_IOE = 0x0400; + + [NativeTypeName("#define CE_DNS 0x0800")] + public const int CE_DNS = 0x0800; + + [NativeTypeName("#define CE_OOP 0x1000")] + public const int CE_OOP = 0x1000; + + [NativeTypeName("#define CE_MODE 0x8000")] + public const int CE_MODE = 0x8000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/COPY.cs b/sources/Interop/Windows/Windows/um/WinBase/COPY.cs new file mode 100644 index 0000000000..322f05d7e2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/COPY.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class COPY + { + [NativeTypeName("#define COPY_FILE_FAIL_IF_EXISTS 0x00000001")] + public const int COPY_FILE_FAIL_IF_EXISTS = 0x00000001; + + [NativeTypeName("#define COPY_FILE_RESTARTABLE 0x00000002")] + public const int COPY_FILE_RESTARTABLE = 0x00000002; + + [NativeTypeName("#define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004")] + public const int COPY_FILE_OPEN_SOURCE_FOR_WRITE = 0x00000004; + + [NativeTypeName("#define COPY_FILE_ALLOW_DECRYPTED_DESTINATION 0x00000008")] + public const int COPY_FILE_ALLOW_DECRYPTED_DESTINATION = 0x00000008; + + [NativeTypeName("#define COPY_FILE_COPY_SYMLINK 0x00000800")] + public const int COPY_FILE_COPY_SYMLINK = 0x00000800; + + [NativeTypeName("#define COPY_FILE_NO_BUFFERING 0x00001000")] + public const int COPY_FILE_NO_BUFFERING = 0x00001000; + + [NativeTypeName("#define COPY_FILE_REQUEST_SECURITY_PRIVILEGES 0x00002000")] + public const int COPY_FILE_REQUEST_SECURITY_PRIVILEGES = 0x00002000; + + [NativeTypeName("#define COPY_FILE_RESUME_FROM_PAUSE 0x00004000")] + public const int COPY_FILE_RESUME_FROM_PAUSE = 0x00004000; + + [NativeTypeName("#define COPY_FILE_NO_OFFLOAD 0x00040000")] + public const int COPY_FILE_NO_OFFLOAD = 0x00040000; + + [NativeTypeName("#define COPY_FILE_IGNORE_EDP_BLOCK 0x00400000")] + public const int COPY_FILE_IGNORE_EDP_BLOCK = 0x00400000; + + [NativeTypeName("#define COPY_FILE_IGNORE_SOURCE_ENCRYPTION 0x00800000")] + public const int COPY_FILE_IGNORE_SOURCE_ENCRYPTION = 0x00800000; + + [NativeTypeName("#define COPY_FILE_DONT_REQUEST_DEST_WRITE_DAC 0x02000000")] + public const int COPY_FILE_DONT_REQUEST_DEST_WRITE_DAC = 0x02000000; + + [NativeTypeName("#define COPY_FILE_REQUEST_COMPRESSED_TRAFFIC 0x10000000")] + public const int COPY_FILE_REQUEST_COMPRESSED_TRAFFIC = 0x10000000; + + [NativeTypeName("#define COPY_FILE_OPEN_AND_COPY_REPARSE_POINT 0x00200000")] + public const int COPY_FILE_OPEN_AND_COPY_REPARSE_POINT = 0x00200000; + + [NativeTypeName("#define COPY_FILE_DIRECTORY 0x00000080")] + public const int COPY_FILE_DIRECTORY = 0x00000080; + + [NativeTypeName("#define COPY_FILE_SKIP_ALTERNATE_STREAMS 0x00008000")] + public const int COPY_FILE_SKIP_ALTERNATE_STREAMS = 0x00008000; + + [NativeTypeName("#define COPY_FILE_DISABLE_PRE_ALLOCATION 0x04000000")] + public const int COPY_FILE_DISABLE_PRE_ALLOCATION = 0x04000000; + + [NativeTypeName("#define COPY_FILE_ENABLE_LOW_FREE_SPACE_MODE 0x08000000")] + public const int COPY_FILE_ENABLE_LOW_FREE_SPACE_MODE = 0x08000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/CREATE.cs b/sources/Interop/Windows/Windows/um/WinBase/CREATE.cs new file mode 100644 index 0000000000..63e04f6126 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/CREATE.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CREATE + { + [NativeTypeName("#define CREATE_SUSPENDED 0x00000004")] + public const int CREATE_SUSPENDED = 0x00000004; + + [NativeTypeName("#define CREATE_NEW_CONSOLE 0x00000010")] + public const int CREATE_NEW_CONSOLE = 0x00000010; + + [NativeTypeName("#define CREATE_NEW_PROCESS_GROUP 0x00000200")] + public const int CREATE_NEW_PROCESS_GROUP = 0x00000200; + + [NativeTypeName("#define CREATE_UNICODE_ENVIRONMENT 0x00000400")] + public const int CREATE_UNICODE_ENVIRONMENT = 0x00000400; + + [NativeTypeName("#define CREATE_SEPARATE_WOW_VDM 0x00000800")] + public const int CREATE_SEPARATE_WOW_VDM = 0x00000800; + + [NativeTypeName("#define CREATE_SHARED_WOW_VDM 0x00001000")] + public const int CREATE_SHARED_WOW_VDM = 0x00001000; + + [NativeTypeName("#define CREATE_FORCEDOS 0x00002000")] + public const int CREATE_FORCEDOS = 0x00002000; + + [NativeTypeName("#define CREATE_PROTECTED_PROCESS 0x00040000")] + public const int CREATE_PROTECTED_PROCESS = 0x00040000; + + [NativeTypeName("#define CREATE_SECURE_PROCESS 0x00400000")] + public const int CREATE_SECURE_PROCESS = 0x00400000; + + [NativeTypeName("#define CREATE_BREAKAWAY_FROM_JOB 0x01000000")] + public const int CREATE_BREAKAWAY_FROM_JOB = 0x01000000; + + [NativeTypeName("#define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x02000000")] + public const int CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000; + + [NativeTypeName("#define CREATE_DEFAULT_ERROR_MODE 0x04000000")] + public const int CREATE_DEFAULT_ERROR_MODE = 0x04000000; + + [NativeTypeName("#define CREATE_NO_WINDOW 0x08000000")] + public const int CREATE_NO_WINDOW = 0x08000000; + + [NativeTypeName("#define CREATE_IGNORE_SYSTEM_DEFAULT 0x80000000")] + public const uint CREATE_IGNORE_SYSTEM_DEFAULT = 0x80000000; + + [NativeTypeName("#define CREATE_FOR_IMPORT (1)")] + public const int CREATE_FOR_IMPORT = (1); + + [NativeTypeName("#define CREATE_FOR_DIR (2)")] + public const int CREATE_FOR_DIR = (2); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/EV.cs b/sources/Interop/Windows/Windows/um/WinBase/EV.cs new file mode 100644 index 0000000000..1a6830d87e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/EV.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EV + { + [NativeTypeName("#define EV_RXCHAR 0x0001")] + public const int EV_RXCHAR = 0x0001; + + [NativeTypeName("#define EV_RXFLAG 0x0002")] + public const int EV_RXFLAG = 0x0002; + + [NativeTypeName("#define EV_TXEMPTY 0x0004")] + public const int EV_TXEMPTY = 0x0004; + + [NativeTypeName("#define EV_CTS 0x0008")] + public const int EV_CTS = 0x0008; + + [NativeTypeName("#define EV_DSR 0x0010")] + public const int EV_DSR = 0x0010; + + [NativeTypeName("#define EV_RLSD 0x0020")] + public const int EV_RLSD = 0x0020; + + [NativeTypeName("#define EV_BREAK 0x0040")] + public const int EV_BREAK = 0x0040; + + [NativeTypeName("#define EV_ERR 0x0080")] + public const int EV_ERR = 0x0080; + + [NativeTypeName("#define EV_RING 0x0100")] + public const int EV_RING = 0x0100; + + [NativeTypeName("#define EV_PERR 0x0200")] + public const int EV_PERR = 0x0200; + + [NativeTypeName("#define EV_RX80FULL 0x0400")] + public const int EV_RX80FULL = 0x0400; + + [NativeTypeName("#define EV_EVENT1 0x0800")] + public const int EV_EVENT1 = 0x0800; + + [NativeTypeName("#define EV_EVENT2 0x1000")] + public const int EV_EVENT2 = 0x1000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/EVENTLOG.cs b/sources/Interop/Windows/Windows/um/WinBase/EVENTLOG.cs new file mode 100644 index 0000000000..2054b98a57 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/EVENTLOG.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EVENTLOG + { + [NativeTypeName("#define EVENTLOG_FULL_INFO 0")] + public const int EVENTLOG_FULL_INFO = 0; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/FS.cs b/sources/Interop/Windows/Windows/um/WinBase/FS.cs new file mode 100644 index 0000000000..d8a054f570 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/FS.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FS + { + [NativeTypeName("#define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES")] + public const int FS_CASE_IS_PRESERVED = 0x00000002; + + [NativeTypeName("#define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH")] + public const int FS_CASE_SENSITIVE = 0x00000001; + + [NativeTypeName("#define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK")] + public const int FS_UNICODE_STORED_ON_DISK = 0x00000004; + + [NativeTypeName("#define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS")] + public const int FS_PERSISTENT_ACLS = 0x00000008; + + [NativeTypeName("#define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED")] + public const int FS_VOL_IS_COMPRESSED = 0x00008000; + + [NativeTypeName("#define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION")] + public const int FS_FILE_COMPRESSION = 0x00000010; + + [NativeTypeName("#define FS_FILE_ENCRYPTION FILE_SUPPORTS_ENCRYPTION")] + public const int FS_FILE_ENCRYPTION = 0x00020000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/GET.cs b/sources/Interop/Windows/Windows/um/WinBase/GET.cs new file mode 100644 index 0000000000..bd48261484 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/GET.cs @@ -0,0 +1,45 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class GET + { + [NativeTypeName("#define GET_TAPE_MEDIA_INFORMATION 0")] + public const int GET_TAPE_MEDIA_INFORMATION = 0; + + [NativeTypeName("#define GET_TAPE_DRIVE_INFORMATION 1")] + public const int GET_TAPE_DRIVE_INFORMATION = 1; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A \"GetSystemWow64DirectoryA\"")] + public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x41, 0x00 }; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W L\"GetSystemWow64DirectoryA\"")] + public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W = "GetSystemWow64DirectoryA"; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T TEXT(\"GetSystemWow64DirectoryA\")")] + public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T = "GetSystemWow64DirectoryA"; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A \"GetSystemWow64DirectoryW\"")] + public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x57, 0x00 }; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W L\"GetSystemWow64DirectoryW\"")] + public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W = "GetSystemWow64DirectoryW"; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T TEXT(\"GetSystemWow64DirectoryW\")")] + public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T = "GetSystemWow64DirectoryW"; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A")] + public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x57, 0x00 }; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W")] + public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W = "GetSystemWow64DirectoryW"; + + [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_T GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T")] + public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_T_T = "GetSystemWow64DirectoryW"; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/GMEM.cs b/sources/Interop/Windows/Windows/um/WinBase/GMEM.cs new file mode 100644 index 0000000000..2d001eaa40 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/GMEM.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GMEM + { + [NativeTypeName("#define GMEM_FIXED 0x0000")] + public const int GMEM_FIXED = 0x0000; + + [NativeTypeName("#define GMEM_MOVEABLE 0x0002")] + public const int GMEM_MOVEABLE = 0x0002; + + [NativeTypeName("#define GMEM_NOCOMPACT 0x0010")] + public const int GMEM_NOCOMPACT = 0x0010; + + [NativeTypeName("#define GMEM_NODISCARD 0x0020")] + public const int GMEM_NODISCARD = 0x0020; + + [NativeTypeName("#define GMEM_ZEROINIT 0x0040")] + public const int GMEM_ZEROINIT = 0x0040; + + [NativeTypeName("#define GMEM_MODIFY 0x0080")] + public const int GMEM_MODIFY = 0x0080; + + [NativeTypeName("#define GMEM_DISCARDABLE 0x0100")] + public const int GMEM_DISCARDABLE = 0x0100; + + [NativeTypeName("#define GMEM_NOT_BANKED 0x1000")] + public const int GMEM_NOT_BANKED = 0x1000; + + [NativeTypeName("#define GMEM_SHARE 0x2000")] + public const int GMEM_SHARE = 0x2000; + + [NativeTypeName("#define GMEM_DDESHARE 0x2000")] + public const int GMEM_DDESHARE = 0x2000; + + [NativeTypeName("#define GMEM_NOTIFY 0x4000")] + public const int GMEM_NOTIFY = 0x4000; + + [NativeTypeName("#define GMEM_LOWER GMEM_NOT_BANKED")] + public const int GMEM_LOWER = 0x1000; + + [NativeTypeName("#define GMEM_VALID_FLAGS 0x7F72")] + public const int GMEM_VALID_FLAGS = 0x7F72; + + [NativeTypeName("#define GMEM_INVALID_HANDLE 0x8000")] + public const int GMEM_INVALID_HANDLE = 0x8000; + + [NativeTypeName("#define GMEM_DISCARDED 0x4000")] + public const int GMEM_DISCARDED = 0x4000; + + [NativeTypeName("#define GMEM_LOCKCOUNT 0x00FF")] + public const int GMEM_LOCKCOUNT = 0x00FF; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/LOGON32.cs b/sources/Interop/Windows/Windows/um/WinBase/LOGON32.cs new file mode 100644 index 0000000000..a90f96fd21 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/LOGON32.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LOGON32 + { + [NativeTypeName("#define LOGON32_LOGON_INTERACTIVE 2")] + public const int LOGON32_LOGON_INTERACTIVE = 2; + + [NativeTypeName("#define LOGON32_LOGON_NETWORK 3")] + public const int LOGON32_LOGON_NETWORK = 3; + + [NativeTypeName("#define LOGON32_LOGON_BATCH 4")] + public const int LOGON32_LOGON_BATCH = 4; + + [NativeTypeName("#define LOGON32_LOGON_SERVICE 5")] + public const int LOGON32_LOGON_SERVICE = 5; + + [NativeTypeName("#define LOGON32_LOGON_UNLOCK 7")] + public const int LOGON32_LOGON_UNLOCK = 7; + + [NativeTypeName("#define LOGON32_LOGON_NETWORK_CLEARTEXT 8")] + public const int LOGON32_LOGON_NETWORK_CLEARTEXT = 8; + + [NativeTypeName("#define LOGON32_LOGON_NEW_CREDENTIALS 9")] + public const int LOGON32_LOGON_NEW_CREDENTIALS = 9; + + [NativeTypeName("#define LOGON32_PROVIDER_DEFAULT 0")] + public const int LOGON32_PROVIDER_DEFAULT = 0; + + [NativeTypeName("#define LOGON32_PROVIDER_WINNT35 1")] + public const int LOGON32_PROVIDER_WINNT35 = 1; + + [NativeTypeName("#define LOGON32_PROVIDER_WINNT40 2")] + public const int LOGON32_PROVIDER_WINNT40 = 2; + + [NativeTypeName("#define LOGON32_PROVIDER_WINNT50 3")] + public const int LOGON32_PROVIDER_WINNT50 = 3; + + [NativeTypeName("#define LOGON32_PROVIDER_VIRTUAL 4")] + public const int LOGON32_PROVIDER_VIRTUAL = 4; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/MS.cs b/sources/Interop/Windows/Windows/um/WinBase/MS.cs new file mode 100644 index 0000000000..4bcdd19a7b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/MS.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MS + { + [NativeTypeName("#define MS_CTS_ON ((DWORD)0x0010)")] + public const uint MS_CTS_ON = ((uint)(0x0010)); + + [NativeTypeName("#define MS_DSR_ON ((DWORD)0x0020)")] + public const uint MS_DSR_ON = ((uint)(0x0020)); + + [NativeTypeName("#define MS_RING_ON ((DWORD)0x0040)")] + public const uint MS_RING_ON = ((uint)(0x0040)); + + [NativeTypeName("#define MS_RLSD_ON ((DWORD)0x0080)")] + public const uint MS_RLSD_ON = ((uint)(0x0080)); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/OF.cs b/sources/Interop/Windows/Windows/um/WinBase/OF.cs new file mode 100644 index 0000000000..1e3a9e711b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/OF.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OF + { + [NativeTypeName("#define OF_READ 0x00000000")] + public const int OF_READ = 0x00000000; + + [NativeTypeName("#define OF_WRITE 0x00000001")] + public const int OF_WRITE = 0x00000001; + + [NativeTypeName("#define OF_READWRITE 0x00000002")] + public const int OF_READWRITE = 0x00000002; + + [NativeTypeName("#define OF_SHARE_COMPAT 0x00000000")] + public const int OF_SHARE_COMPAT = 0x00000000; + + [NativeTypeName("#define OF_SHARE_EXCLUSIVE 0x00000010")] + public const int OF_SHARE_EXCLUSIVE = 0x00000010; + + [NativeTypeName("#define OF_SHARE_DENY_WRITE 0x00000020")] + public const int OF_SHARE_DENY_WRITE = 0x00000020; + + [NativeTypeName("#define OF_SHARE_DENY_READ 0x00000030")] + public const int OF_SHARE_DENY_READ = 0x00000030; + + [NativeTypeName("#define OF_SHARE_DENY_NONE 0x00000040")] + public const int OF_SHARE_DENY_NONE = 0x00000040; + + [NativeTypeName("#define OF_PARSE 0x00000100")] + public const int OF_PARSE = 0x00000100; + + [NativeTypeName("#define OF_DELETE 0x00000200")] + public const int OF_DELETE = 0x00000200; + + [NativeTypeName("#define OF_VERIFY 0x00000400")] + public const int OF_VERIFY = 0x00000400; + + [NativeTypeName("#define OF_CANCEL 0x00000800")] + public const int OF_CANCEL = 0x00000800; + + [NativeTypeName("#define OF_CREATE 0x00001000")] + public const int OF_CREATE = 0x00001000; + + [NativeTypeName("#define OF_PROMPT 0x00002000")] + public const int OF_PROMPT = 0x00002000; + + [NativeTypeName("#define OF_EXIST 0x00004000")] + public const int OF_EXIST = 0x00004000; + + [NativeTypeName("#define OF_REOPEN 0x00008000")] + public const int OF_REOPEN = 0x00008000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/PCF.cs b/sources/Interop/Windows/Windows/um/WinBase/PCF.cs new file mode 100644 index 0000000000..b1e59ab531 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/PCF.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PCF + { + [NativeTypeName("#define PCF_DTRDSR ((DWORD)0x0001)")] + public const uint PCF_DTRDSR = ((uint)(0x0001)); + + [NativeTypeName("#define PCF_RTSCTS ((DWORD)0x0002)")] + public const uint PCF_RTSCTS = ((uint)(0x0002)); + + [NativeTypeName("#define PCF_RLSD ((DWORD)0x0004)")] + public const uint PCF_RLSD = ((uint)(0x0004)); + + [NativeTypeName("#define PCF_PARITY_CHECK ((DWORD)0x0008)")] + public const uint PCF_PARITY_CHECK = ((uint)(0x0008)); + + [NativeTypeName("#define PCF_XONXOFF ((DWORD)0x0010)")] + public const uint PCF_XONXOFF = ((uint)(0x0010)); + + [NativeTypeName("#define PCF_SETXCHAR ((DWORD)0x0020)")] + public const uint PCF_SETXCHAR = ((uint)(0x0020)); + + [NativeTypeName("#define PCF_TOTALTIMEOUTS ((DWORD)0x0040)")] + public const uint PCF_TOTALTIMEOUTS = ((uint)(0x0040)); + + [NativeTypeName("#define PCF_INTTIMEOUTS ((DWORD)0x0080)")] + public const uint PCF_INTTIMEOUTS = ((uint)(0x0080)); + + [NativeTypeName("#define PCF_SPECIALCHARS ((DWORD)0x0100)")] + public const uint PCF_SPECIALCHARS = ((uint)(0x0100)); + + [NativeTypeName("#define PCF_16BITMODE ((DWORD)0x0200)")] + public const uint PCF_16BITMODE = ((uint)(0x0200)); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/PIPE.cs b/sources/Interop/Windows/Windows/um/WinBase/PIPE.cs new file mode 100644 index 0000000000..5fe8fe2dd8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/PIPE.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PIPE + { + [NativeTypeName("#define PIPE_ACCESS_INBOUND 0x00000001")] + public const int PIPE_ACCESS_INBOUND = 0x00000001; + + [NativeTypeName("#define PIPE_ACCESS_OUTBOUND 0x00000002")] + public const int PIPE_ACCESS_OUTBOUND = 0x00000002; + + [NativeTypeName("#define PIPE_ACCESS_DUPLEX 0x00000003")] + public const int PIPE_ACCESS_DUPLEX = 0x00000003; + + [NativeTypeName("#define PIPE_CLIENT_END 0x00000000")] + public const int PIPE_CLIENT_END = 0x00000000; + + [NativeTypeName("#define PIPE_SERVER_END 0x00000001")] + public const int PIPE_SERVER_END = 0x00000001; + + [NativeTypeName("#define PIPE_WAIT 0x00000000")] + public const int PIPE_WAIT = 0x00000000; + + [NativeTypeName("#define PIPE_NOWAIT 0x00000001")] + public const int PIPE_NOWAIT = 0x00000001; + + [NativeTypeName("#define PIPE_READMODE_BYTE 0x00000000")] + public const int PIPE_READMODE_BYTE = 0x00000000; + + [NativeTypeName("#define PIPE_READMODE_MESSAGE 0x00000002")] + public const int PIPE_READMODE_MESSAGE = 0x00000002; + + [NativeTypeName("#define PIPE_TYPE_BYTE 0x00000000")] + public const int PIPE_TYPE_BYTE = 0x00000000; + + [NativeTypeName("#define PIPE_TYPE_MESSAGE 0x00000004")] + public const int PIPE_TYPE_MESSAGE = 0x00000004; + + [NativeTypeName("#define PIPE_ACCEPT_REMOTE_CLIENTS 0x00000000")] + public const int PIPE_ACCEPT_REMOTE_CLIENTS = 0x00000000; + + [NativeTypeName("#define PIPE_REJECT_REMOTE_CLIENTS 0x00000008")] + public const int PIPE_REJECT_REMOTE_CLIENTS = 0x00000008; + + [NativeTypeName("#define PIPE_UNLIMITED_INSTANCES 255")] + public const int PIPE_UNLIMITED_INSTANCES = 255; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/PROC.cs b/sources/Interop/Windows/Windows/um/WinBase/PROC.cs new file mode 100644 index 0000000000..7cef05fa33 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/PROC.cs @@ -0,0 +1,81 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using static TerraFX.Interop.Windows.PROC_THREAD_ATTRIBUTE_NUM; + +namespace TerraFX.Interop.Windows +{ + public static partial class PROC + { + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_NUMBER 0x0000FFFF")] + public const int PROC_THREAD_ATTRIBUTE_NUMBER = 0x0000FFFF; + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_THREAD 0x00010000")] + public const int PROC_THREAD_ATTRIBUTE_THREAD = 0x00010000; + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_INPUT 0x00020000")] + public const int PROC_THREAD_ATTRIBUTE_INPUT = 0x00020000; + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_ADDITIVE 0x00040000")] + public const int PROC_THREAD_ATTRIBUTE_ADDITIVE = 0x00040000; + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PARENT_PROCESS ProcThreadAttributeValue (ProcThreadAttributeParentProcess, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_PARENT_PROCESS = (((int)(ProcThreadAttributeParentProcess) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_HANDLE_LIST ProcThreadAttributeValue (ProcThreadAttributeHandleList, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_HANDLE_LIST = (((int)(ProcThreadAttributeHandleList) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_GROUP_AFFINITY ProcThreadAttributeValue (ProcThreadAttributeGroupAffinity, TRUE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_GROUP_AFFINITY = (((int)(ProcThreadAttributeGroupAffinity) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PREFERRED_NODE ProcThreadAttributeValue (ProcThreadAttributePreferredNode, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_PREFERRED_NODE = (((int)(ProcThreadAttributePreferredNode) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR ProcThreadAttributeValue (ProcThreadAttributeIdealProcessor, TRUE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR = (((int)(ProcThreadAttributeIdealProcessor) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_UMS_THREAD ProcThreadAttributeValue (ProcThreadAttributeUmsThread, TRUE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_UMS_THREAD = (((int)(ProcThreadAttributeUmsThread) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY ProcThreadAttributeValue (ProcThreadAttributeMitigationPolicy, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY = (((int)(ProcThreadAttributeMitigationPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES ProcThreadAttributeValue (ProcThreadAttributeSecurityCapabilities, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES = (((int)(ProcThreadAttributeSecurityCapabilities) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PROTECTION_LEVEL ProcThreadAttributeValue (ProcThreadAttributeProtectionLevel, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_PROTECTION_LEVEL = (((int)(ProcThreadAttributeProtectionLevel) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE ProcThreadAttributeValue (ProcThreadAttributePseudoConsole, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE = (((int)(ProcThreadAttributePseudoConsole) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_MACHINE_TYPE ProcThreadAttributeValue (ProcThreadAttributeMachineType, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_MACHINE_TYPE = (((int)(ProcThreadAttributeMachineType) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_ENABLE_OPTIONAL_XSTATE_FEATURES ProcThreadAttributeValue (ProcThreadAttributeEnableOptionalXStateFeatures, TRUE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_ENABLE_OPTIONAL_XSTATE_FEATURES = (((int)(ProcThreadAttributeEnableOptionalXStateFeatures) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_JOB_LIST ProcThreadAttributeValue (ProcThreadAttributeJobList, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_JOB_LIST = (((int)(ProcThreadAttributeJobList) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_CHILD_PROCESS_POLICY ProcThreadAttributeValue (ProcThreadAttributeChildProcessPolicy, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_CHILD_PROCESS_POLICY = (((int)(ProcThreadAttributeChildProcessPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_ALL_APPLICATION_PACKAGES_POLICY ProcThreadAttributeValue (ProcThreadAttributeAllApplicationPackagesPolicy, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_ALL_APPLICATION_PACKAGES_POLICY = (((int)(ProcThreadAttributeAllApplicationPackagesPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_WIN32K_FILTER ProcThreadAttributeValue (ProcThreadAttributeWin32kFilter, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_WIN32K_FILTER = (((int)(ProcThreadAttributeWin32kFilter) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_DESKTOP_APP_POLICY ProcThreadAttributeValue (ProcThreadAttributeDesktopAppPolicy, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_DESKTOP_APP_POLICY = (((int)(ProcThreadAttributeDesktopAppPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_MITIGATION_AUDIT_POLICY ProcThreadAttributeValue (ProcThreadAttributeMitigationAuditPolicy, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_MITIGATION_AUDIT_POLICY = (((int)(ProcThreadAttributeMitigationAuditPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_COMPONENT_FILTER ProcThreadAttributeValue (ProcThreadAttributeComponentFilter, FALSE, TRUE, FALSE)")] + public const int PROC_THREAD_ATTRIBUTE_COMPONENT_FILTER = (((int)(ProcThreadAttributeComponentFilter) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/PROTECTION.cs b/sources/Interop/Windows/Windows/um/WinBase/PROTECTION.cs new file mode 100644 index 0000000000..dde7a80466 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/PROTECTION.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PROTECTION + { + [NativeTypeName("#define PROTECTION_LEVEL_WINTCB_LIGHT 0x00000000")] + public const int PROTECTION_LEVEL_WINTCB_LIGHT = 0x00000000; + + [NativeTypeName("#define PROTECTION_LEVEL_WINDOWS 0x00000001")] + public const int PROTECTION_LEVEL_WINDOWS = 0x00000001; + + [NativeTypeName("#define PROTECTION_LEVEL_WINDOWS_LIGHT 0x00000002")] + public const int PROTECTION_LEVEL_WINDOWS_LIGHT = 0x00000002; + + [NativeTypeName("#define PROTECTION_LEVEL_ANTIMALWARE_LIGHT 0x00000003")] + public const int PROTECTION_LEVEL_ANTIMALWARE_LIGHT = 0x00000003; + + [NativeTypeName("#define PROTECTION_LEVEL_LSA_LIGHT 0x00000004")] + public const int PROTECTION_LEVEL_LSA_LIGHT = 0x00000004; + + [NativeTypeName("#define PROTECTION_LEVEL_WINTCB 0x00000005")] + public const int PROTECTION_LEVEL_WINTCB = 0x00000005; + + [NativeTypeName("#define PROTECTION_LEVEL_CODEGEN_LIGHT 0x00000006")] + public const int PROTECTION_LEVEL_CODEGEN_LIGHT = 0x00000006; + + [NativeTypeName("#define PROTECTION_LEVEL_AUTHENTICODE 0x00000007")] + public const int PROTECTION_LEVEL_AUTHENTICODE = 0x00000007; + + [NativeTypeName("#define PROTECTION_LEVEL_PPL_APP 0x00000008")] + public const int PROTECTION_LEVEL_PPL_APP = 0x00000008; + + [NativeTypeName("#define PROTECTION_LEVEL_SAME 0xFFFFFFFF")] + public const uint PROTECTION_LEVEL_SAME = 0xFFFFFFFF; + + [NativeTypeName("#define PROTECTION_LEVEL_NONE 0xFFFFFFFE")] + public const uint PROTECTION_LEVEL_NONE = 0xFFFFFFFE; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/PST.cs b/sources/Interop/Windows/Windows/um/WinBase/PST.cs new file mode 100644 index 0000000000..573fa302b7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/PST.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PST + { + [NativeTypeName("#define PST_UNSPECIFIED ((DWORD)0x00000000)")] + public const uint PST_UNSPECIFIED = ((uint)(0x00000000)); + + [NativeTypeName("#define PST_RS232 ((DWORD)0x00000001)")] + public const uint PST_RS232 = ((uint)(0x00000001)); + + [NativeTypeName("#define PST_PARALLELPORT ((DWORD)0x00000002)")] + public const uint PST_PARALLELPORT = ((uint)(0x00000002)); + + [NativeTypeName("#define PST_RS422 ((DWORD)0x00000003)")] + public const uint PST_RS422 = ((uint)(0x00000003)); + + [NativeTypeName("#define PST_RS423 ((DWORD)0x00000004)")] + public const uint PST_RS423 = ((uint)(0x00000004)); + + [NativeTypeName("#define PST_RS449 ((DWORD)0x00000005)")] + public const uint PST_RS449 = ((uint)(0x00000005)); + + [NativeTypeName("#define PST_MODEM ((DWORD)0x00000006)")] + public const uint PST_MODEM = ((uint)(0x00000006)); + + [NativeTypeName("#define PST_FAX ((DWORD)0x00000021)")] + public const uint PST_FAX = ((uint)(0x00000021)); + + [NativeTypeName("#define PST_SCANNER ((DWORD)0x00000022)")] + public const uint PST_SCANNER = ((uint)(0x00000022)); + + [NativeTypeName("#define PST_NETWORK_BRIDGE ((DWORD)0x00000100)")] + public const uint PST_NETWORK_BRIDGE = ((uint)(0x00000100)); + + [NativeTypeName("#define PST_LAT ((DWORD)0x00000101)")] + public const uint PST_LAT = ((uint)(0x00000101)); + + [NativeTypeName("#define PST_TCPIP_TELNET ((DWORD)0x00000102)")] + public const uint PST_TCPIP_TELNET = ((uint)(0x00000102)); + + [NativeTypeName("#define PST_X25 ((DWORD)0x00000103)")] + public const uint PST_X25 = ((uint)(0x00000103)); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/QUERY.cs b/sources/Interop/Windows/Windows/um/WinBase/QUERY.cs new file mode 100644 index 0000000000..b0de743498 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/QUERY.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class QUERY + { + [NativeTypeName("#define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX (0x00000004)")] + public const int QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX = (0x00000004); + + [NativeTypeName("#define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE (0x00000008)")] + public const int QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE = (0x00000008); + + [NativeTypeName("#define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS (0x00000010)")] + public const int QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS = (0x00000010); + + [NativeTypeName("#define QUERY_ACTCTX_FLAG_NO_ADDREF (0x80000000)")] + public const uint QUERY_ACTCTX_FLAG_NO_ADDREF = (0x80000000); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/RPI.cs b/sources/Interop/Windows/Windows/um/WinBase/RPI.cs new file mode 100644 index 0000000000..d361fe5dd7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/RPI.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RPI + { + [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_TIMEWARP 0x00000002")] + public const int RPI_FLAG_SMB2_SHARECAP_TIMEWARP = 0x00000002; + + [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_DFS 0x00000008")] + public const int RPI_FLAG_SMB2_SHARECAP_DFS = 0x00000008; + + [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_CONTINUOUS_AVAILABILITY 0x00000010")] + public const int RPI_FLAG_SMB2_SHARECAP_CONTINUOUS_AVAILABILITY = 0x00000010; + + [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_SCALEOUT 0x00000020")] + public const int RPI_FLAG_SMB2_SHARECAP_SCALEOUT = 0x00000020; + + [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_CLUSTER 0x00000040")] + public const int RPI_FLAG_SMB2_SHARECAP_CLUSTER = 0x00000040; + + [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_DFS 0x00000001")] + public const int RPI_SMB2_FLAG_SERVERCAP_DFS = 0x00000001; + + [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_LEASING 0x00000002")] + public const int RPI_SMB2_FLAG_SERVERCAP_LEASING = 0x00000002; + + [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_LARGEMTU 0x00000004")] + public const int RPI_SMB2_FLAG_SERVERCAP_LARGEMTU = 0x00000004; + + [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_MULTICHANNEL 0x00000008")] + public const int RPI_SMB2_FLAG_SERVERCAP_MULTICHANNEL = 0x00000008; + + [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_PERSISTENT_HANDLES 0x00000010")] + public const int RPI_SMB2_FLAG_SERVERCAP_PERSISTENT_HANDLES = 0x00000010; + + [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_DIRECTORY_LEASING 0x00000020")] + public const int RPI_SMB2_FLAG_SERVERCAP_DIRECTORY_LEASING = 0x00000020; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/S.cs b/sources/Interop/Windows/Windows/um/WinBase/S.cs new file mode 100644 index 0000000000..eadbc2b66e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/S.cs @@ -0,0 +1,100 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class S + { + [NativeTypeName("#define S_QUEUEEMPTY 0")] + public const int S_QUEUEEMPTY = 0; + + [NativeTypeName("#define S_THRESHOLD 1")] + public const int S_THRESHOLD = 1; + + [NativeTypeName("#define S_ALLTHRESHOLD 2")] + public const int S_ALLTHRESHOLD = 2; + + [NativeTypeName("#define S_NORMAL 0")] + public const int S_NORMAL = 0; + + [NativeTypeName("#define S_LEGATO 1")] + public const int S_LEGATO = 1; + + [NativeTypeName("#define S_STACCATO 2")] + public const int S_STACCATO = 2; + + [NativeTypeName("#define S_PERIOD512 0")] + public const int S_PERIOD512 = 0; + + [NativeTypeName("#define S_PERIOD1024 1")] + public const int S_PERIOD1024 = 1; + + [NativeTypeName("#define S_PERIOD2048 2")] + public const int S_PERIOD2048 = 2; + + [NativeTypeName("#define S_PERIODVOICE 3")] + public const int S_PERIODVOICE = 3; + + [NativeTypeName("#define S_WHITE512 4")] + public const int S_WHITE512 = 4; + + [NativeTypeName("#define S_WHITE1024 5")] + public const int S_WHITE1024 = 5; + + [NativeTypeName("#define S_WHITE2048 6")] + public const int S_WHITE2048 = 6; + + [NativeTypeName("#define S_WHITEVOICE 7")] + public const int S_WHITEVOICE = 7; + + [NativeTypeName("#define S_SERDVNA (-1)")] + public const int S_SERDVNA = (-1); + + [NativeTypeName("#define S_SEROFM (-2)")] + public const int S_SEROFM = (-2); + + [NativeTypeName("#define S_SERMACT (-3)")] + public const int S_SERMACT = (-3); + + [NativeTypeName("#define S_SERQFUL (-4)")] + public const int S_SERQFUL = (-4); + + [NativeTypeName("#define S_SERBDNT (-5)")] + public const int S_SERBDNT = (-5); + + [NativeTypeName("#define S_SERDLN (-6)")] + public const int S_SERDLN = (-6); + + [NativeTypeName("#define S_SERDCC (-7)")] + public const int S_SERDCC = (-7); + + [NativeTypeName("#define S_SERDTP (-8)")] + public const int S_SERDTP = (-8); + + [NativeTypeName("#define S_SERDVL (-9)")] + public const int S_SERDVL = (-9); + + [NativeTypeName("#define S_SERDMD (-10)")] + public const int S_SERDMD = (-10); + + [NativeTypeName("#define S_SERDSH (-11)")] + public const int S_SERDSH = (-11); + + [NativeTypeName("#define S_SERDPT (-12)")] + public const int S_SERDPT = (-12); + + [NativeTypeName("#define S_SERDFQ (-13)")] + public const int S_SERDFQ = (-13); + + [NativeTypeName("#define S_SERDDR (-14)")] + public const int S_SERDDR = (-14); + + [NativeTypeName("#define S_SERDSR (-15)")] + public const int S_SERDSR = (-15); + + [NativeTypeName("#define S_SERDST (-16)")] + public const int S_SERDST = (-16); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/WinBase/SCS.Manual.cs similarity index 93% rename from sources/Interop/Windows/Windows/um/WinBase/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/WinBase/SCS.Manual.cs index 16cfe7f22c..239dcd5622 100644 --- a/sources/Interop/Windows/Windows/um/WinBase/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/WinBase/SCS.Manual.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class SCS { public static int SCS_THIS_PLATFORM_BINARY { diff --git a/sources/Interop/Windows/Windows/um/WinBase/SCS.cs b/sources/Interop/Windows/Windows/um/WinBase/SCS.cs new file mode 100644 index 0000000000..760df24f8b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/SCS.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SCS + { + [NativeTypeName("#define SCS_32BIT_BINARY 0")] + public const int SCS_32BIT_BINARY = 0; + + [NativeTypeName("#define SCS_DOS_BINARY 1")] + public const int SCS_DOS_BINARY = 1; + + [NativeTypeName("#define SCS_WOW_BINARY 2")] + public const int SCS_WOW_BINARY = 2; + + [NativeTypeName("#define SCS_PIF_BINARY 3")] + public const int SCS_PIF_BINARY = 3; + + [NativeTypeName("#define SCS_POSIX_BINARY 4")] + public const int SCS_POSIX_BINARY = 4; + + [NativeTypeName("#define SCS_OS216_BINARY 5")] + public const int SCS_OS216_BINARY = 5; + + [NativeTypeName("#define SCS_64BIT_BINARY 6")] + public const int SCS_64BIT_BINARY = 6; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/SET.cs b/sources/Interop/Windows/Windows/um/WinBase/SET.cs new file mode 100644 index 0000000000..884c79e84d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/SET.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SET + { + [NativeTypeName("#define SET_TAPE_MEDIA_INFORMATION 0")] + public const int SET_TAPE_MEDIA_INFORMATION = 0; + + [NativeTypeName("#define SET_TAPE_DRIVE_INFORMATION 1")] + public const int SET_TAPE_DRIVE_INFORMATION = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/SHUTDOWN.cs b/sources/Interop/Windows/Windows/um/WinBase/SHUTDOWN.cs new file mode 100644 index 0000000000..1c17922565 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/SHUTDOWN.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHUTDOWN + { + [NativeTypeName("#define SHUTDOWN_NORETRY 0x00000001")] + public const int SHUTDOWN_NORETRY = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/STARTF.cs b/sources/Interop/Windows/Windows/um/WinBase/STARTF.cs new file mode 100644 index 0000000000..0431baf04c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/STARTF.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STARTF + { + [NativeTypeName("#define STARTF_USESHOWWINDOW 0x00000001")] + public const int STARTF_USESHOWWINDOW = 0x00000001; + + [NativeTypeName("#define STARTF_USESIZE 0x00000002")] + public const int STARTF_USESIZE = 0x00000002; + + [NativeTypeName("#define STARTF_USEPOSITION 0x00000004")] + public const int STARTF_USEPOSITION = 0x00000004; + + [NativeTypeName("#define STARTF_USECOUNTCHARS 0x00000008")] + public const int STARTF_USECOUNTCHARS = 0x00000008; + + [NativeTypeName("#define STARTF_USEFILLATTRIBUTE 0x00000010")] + public const int STARTF_USEFILLATTRIBUTE = 0x00000010; + + [NativeTypeName("#define STARTF_RUNFULLSCREEN 0x00000020")] + public const int STARTF_RUNFULLSCREEN = 0x00000020; + + [NativeTypeName("#define STARTF_FORCEONFEEDBACK 0x00000040")] + public const int STARTF_FORCEONFEEDBACK = 0x00000040; + + [NativeTypeName("#define STARTF_FORCEOFFFEEDBACK 0x00000080")] + public const int STARTF_FORCEOFFFEEDBACK = 0x00000080; + + [NativeTypeName("#define STARTF_USESTDHANDLES 0x00000100")] + public const int STARTF_USESTDHANDLES = 0x00000100; + + [NativeTypeName("#define STARTF_USEHOTKEY 0x00000200")] + public const int STARTF_USEHOTKEY = 0x00000200; + + [NativeTypeName("#define STARTF_TITLEISLINKNAME 0x00000800")] + public const int STARTF_TITLEISLINKNAME = 0x00000800; + + [NativeTypeName("#define STARTF_TITLEISAPPID 0x00001000")] + public const int STARTF_TITLEISAPPID = 0x00001000; + + [NativeTypeName("#define STARTF_PREVENTPINNING 0x00002000")] + public const int STARTF_PREVENTPINNING = 0x00002000; + + [NativeTypeName("#define STARTF_UNTRUSTEDSOURCE 0x00008000")] + public const int STARTF_UNTRUSTEDSOURCE = 0x00008000; + + [NativeTypeName("#define STARTF_HOLOGRAPHIC 0x00040000")] + public const int STARTF_HOLOGRAPHIC = 0x00040000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/STD.cs b/sources/Interop/Windows/Windows/um/WinBase/STD.cs new file mode 100644 index 0000000000..352ec37481 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/STD.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STD + { + [NativeTypeName("#define STD_INPUT_HANDLE ((DWORD)-10)")] + public const uint STD_INPUT_HANDLE = unchecked((uint)(-10)); + + [NativeTypeName("#define STD_OUTPUT_HANDLE ((DWORD)-11)")] + public const uint STD_OUTPUT_HANDLE = unchecked((uint)(-11)); + + [NativeTypeName("#define STD_ERROR_HANDLE ((DWORD)-12)")] + public const uint STD_ERROR_HANDLE = unchecked((uint)(-12)); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/STREAM.cs b/sources/Interop/Windows/Windows/um/WinBase/STREAM.cs new file mode 100644 index 0000000000..6ca62103c7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/STREAM.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STREAM + { + [NativeTypeName("#define STREAM_NORMAL_ATTRIBUTE 0x00000000")] + public const int STREAM_NORMAL_ATTRIBUTE = 0x00000000; + + [NativeTypeName("#define STREAM_MODIFIED_WHEN_READ 0x00000001")] + public const int STREAM_MODIFIED_WHEN_READ = 0x00000001; + + [NativeTypeName("#define STREAM_CONTAINS_SECURITY 0x00000002")] + public const int STREAM_CONTAINS_SECURITY = 0x00000002; + + [NativeTypeName("#define STREAM_CONTAINS_PROPERTIES 0x00000004")] + public const int STREAM_CONTAINS_PROPERTIES = 0x00000004; + + [NativeTypeName("#define STREAM_SPARSE_ATTRIBUTE 0x00000008")] + public const int STREAM_SPARSE_ATTRIBUTE = 0x00000008; + + [NativeTypeName("#define STREAM_CONTAINS_GHOSTED_FILE_EXTENTS 0x00000010")] + public const int STREAM_CONTAINS_GHOSTED_FILE_EXTENTS = 0x00000010; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/SYSTEM.cs b/sources/Interop/Windows/Windows/um/WinBase/SYSTEM.cs new file mode 100644 index 0000000000..e56da2f911 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/SYSTEM.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SYSTEM + { + [NativeTypeName("#define SYSTEM_STATUS_FLAG_POWER_SAVING_ON 0x01")] + public const int SYSTEM_STATUS_FLAG_POWER_SAVING_ON = 0x01; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/TC.cs b/sources/Interop/Windows/Windows/um/WinBase/TC.cs new file mode 100644 index 0000000000..05b8c1f2af --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/TC.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TC + { + [NativeTypeName("#define TC_NORMAL 0")] + public const int TC_NORMAL = 0; + + [NativeTypeName("#define TC_HARDERR 1")] + public const int TC_HARDERR = 1; + + [NativeTypeName("#define TC_GP_TRAP 2")] + public const int TC_GP_TRAP = 2; + + [NativeTypeName("#define TC_SIGNAL 3")] + public const int TC_SIGNAL = 3; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/THREAD.cs b/sources/Interop/Windows/Windows/um/WinBase/THREAD.cs new file mode 100644 index 0000000000..e4b6956dc5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinBase/THREAD.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinBase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class THREAD + { + [NativeTypeName("#define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN")] + public const int THREAD_PRIORITY_LOWEST = (-2); + + [NativeTypeName("#define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)")] + public const int THREAD_PRIORITY_BELOW_NORMAL = ((-2) + 1); + + [NativeTypeName("#define THREAD_PRIORITY_NORMAL 0")] + public const int THREAD_PRIORITY_NORMAL = 0; + + [NativeTypeName("#define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX")] + public const int THREAD_PRIORITY_HIGHEST = 2; + + [NativeTypeName("#define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)")] + public const int THREAD_PRIORITY_ABOVE_NORMAL = (2 - 1); + + [NativeTypeName("#define THREAD_PRIORITY_ERROR_RETURN (MAXLONG)")] + public const int THREAD_PRIORITY_ERROR_RETURN = (0x7fffffff); + + [NativeTypeName("#define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT")] + public const int THREAD_PRIORITY_TIME_CRITICAL = 15; + + [NativeTypeName("#define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE")] + public const int THREAD_PRIORITY_IDLE = (-15); + + [NativeTypeName("#define THREAD_MODE_BACKGROUND_BEGIN 0x00010000")] + public const int THREAD_MODE_BACKGROUND_BEGIN = 0x00010000; + + [NativeTypeName("#define THREAD_MODE_BACKGROUND_END 0x00020000")] + public const int THREAD_MODE_BACKGROUND_END = 0x00020000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinBase/Windows.cs b/sources/Interop/Windows/Windows/um/WinBase/Windows.cs index 1d50746c52..bcb1cd6443 100644 --- a/sources/Interop/Windows/Windows/um/WinBase/Windows.cs +++ b/sources/Interop/Windows/Windows/um/WinBase/Windows.cs @@ -6,7 +6,6 @@ using System; using System.Runtime.InteropServices; using System.Runtime.Versioning; -using static TerraFX.Interop.Windows.PROC_THREAD_ATTRIBUTE_NUM; namespace TerraFX.Interop.Windows { @@ -1563,60 +1562,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CALLBACK_STREAM_SWITCH 0x00000001")] public const int CALLBACK_STREAM_SWITCH = 0x00000001; - [NativeTypeName("#define COPY_FILE_FAIL_IF_EXISTS 0x00000001")] - public const int COPY_FILE_FAIL_IF_EXISTS = 0x00000001; - - [NativeTypeName("#define COPY_FILE_RESTARTABLE 0x00000002")] - public const int COPY_FILE_RESTARTABLE = 0x00000002; - - [NativeTypeName("#define COPY_FILE_OPEN_SOURCE_FOR_WRITE 0x00000004")] - public const int COPY_FILE_OPEN_SOURCE_FOR_WRITE = 0x00000004; - - [NativeTypeName("#define COPY_FILE_ALLOW_DECRYPTED_DESTINATION 0x00000008")] - public const int COPY_FILE_ALLOW_DECRYPTED_DESTINATION = 0x00000008; - - [NativeTypeName("#define COPY_FILE_COPY_SYMLINK 0x00000800")] - public const int COPY_FILE_COPY_SYMLINK = 0x00000800; - - [NativeTypeName("#define COPY_FILE_NO_BUFFERING 0x00001000")] - public const int COPY_FILE_NO_BUFFERING = 0x00001000; - - [NativeTypeName("#define COPY_FILE_REQUEST_SECURITY_PRIVILEGES 0x00002000")] - public const int COPY_FILE_REQUEST_SECURITY_PRIVILEGES = 0x00002000; - - [NativeTypeName("#define COPY_FILE_RESUME_FROM_PAUSE 0x00004000")] - public const int COPY_FILE_RESUME_FROM_PAUSE = 0x00004000; - - [NativeTypeName("#define COPY_FILE_NO_OFFLOAD 0x00040000")] - public const int COPY_FILE_NO_OFFLOAD = 0x00040000; - - [NativeTypeName("#define COPY_FILE_IGNORE_EDP_BLOCK 0x00400000")] - public const int COPY_FILE_IGNORE_EDP_BLOCK = 0x00400000; - - [NativeTypeName("#define COPY_FILE_IGNORE_SOURCE_ENCRYPTION 0x00800000")] - public const int COPY_FILE_IGNORE_SOURCE_ENCRYPTION = 0x00800000; - - [NativeTypeName("#define COPY_FILE_DONT_REQUEST_DEST_WRITE_DAC 0x02000000")] - public const int COPY_FILE_DONT_REQUEST_DEST_WRITE_DAC = 0x02000000; - - [NativeTypeName("#define COPY_FILE_REQUEST_COMPRESSED_TRAFFIC 0x10000000")] - public const int COPY_FILE_REQUEST_COMPRESSED_TRAFFIC = 0x10000000; - - [NativeTypeName("#define COPY_FILE_OPEN_AND_COPY_REPARSE_POINT 0x00200000")] - public const int COPY_FILE_OPEN_AND_COPY_REPARSE_POINT = 0x00200000; - - [NativeTypeName("#define COPY_FILE_DIRECTORY 0x00000080")] - public const int COPY_FILE_DIRECTORY = 0x00000080; - - [NativeTypeName("#define COPY_FILE_SKIP_ALTERNATE_STREAMS 0x00008000")] - public const int COPY_FILE_SKIP_ALTERNATE_STREAMS = 0x00008000; - - [NativeTypeName("#define COPY_FILE_DISABLE_PRE_ALLOCATION 0x04000000")] - public const int COPY_FILE_DISABLE_PRE_ALLOCATION = 0x04000000; - - [NativeTypeName("#define COPY_FILE_ENABLE_LOW_FREE_SPACE_MODE 0x08000000")] - public const int COPY_FILE_ENABLE_LOW_FREE_SPACE_MODE = 0x08000000; - [NativeTypeName("#define REPLACEFILE_WRITE_THROUGH 0x00000001")] public const int REPLACEFILE_WRITE_THROUGH = 0x00000001; @@ -1626,183 +1571,12 @@ public static unsafe partial class Windows [NativeTypeName("#define REPLACEFILE_IGNORE_ACL_ERRORS 0x00000004")] public const int REPLACEFILE_IGNORE_ACL_ERRORS = 0x00000004; - [NativeTypeName("#define PIPE_ACCESS_INBOUND 0x00000001")] - public const int PIPE_ACCESS_INBOUND = 0x00000001; - - [NativeTypeName("#define PIPE_ACCESS_OUTBOUND 0x00000002")] - public const int PIPE_ACCESS_OUTBOUND = 0x00000002; - - [NativeTypeName("#define PIPE_ACCESS_DUPLEX 0x00000003")] - public const int PIPE_ACCESS_DUPLEX = 0x00000003; - - [NativeTypeName("#define PIPE_CLIENT_END 0x00000000")] - public const int PIPE_CLIENT_END = 0x00000000; - - [NativeTypeName("#define PIPE_SERVER_END 0x00000001")] - public const int PIPE_SERVER_END = 0x00000001; - - [NativeTypeName("#define PIPE_WAIT 0x00000000")] - public const int PIPE_WAIT = 0x00000000; - - [NativeTypeName("#define PIPE_NOWAIT 0x00000001")] - public const int PIPE_NOWAIT = 0x00000001; - - [NativeTypeName("#define PIPE_READMODE_BYTE 0x00000000")] - public const int PIPE_READMODE_BYTE = 0x00000000; - - [NativeTypeName("#define PIPE_READMODE_MESSAGE 0x00000002")] - public const int PIPE_READMODE_MESSAGE = 0x00000002; - - [NativeTypeName("#define PIPE_TYPE_BYTE 0x00000000")] - public const int PIPE_TYPE_BYTE = 0x00000000; - - [NativeTypeName("#define PIPE_TYPE_MESSAGE 0x00000004")] - public const int PIPE_TYPE_MESSAGE = 0x00000004; - - [NativeTypeName("#define PIPE_ACCEPT_REMOTE_CLIENTS 0x00000000")] - public const int PIPE_ACCEPT_REMOTE_CLIENTS = 0x00000000; - - [NativeTypeName("#define PIPE_REJECT_REMOTE_CLIENTS 0x00000008")] - public const int PIPE_REJECT_REMOTE_CLIENTS = 0x00000008; - - [NativeTypeName("#define PIPE_UNLIMITED_INSTANCES 255")] - public const int PIPE_UNLIMITED_INSTANCES = 255; - [NativeTypeName("#define FAIL_FAST_GENERATE_EXCEPTION_ADDRESS 0x1")] public const int FAIL_FAST_GENERATE_EXCEPTION_ADDRESS = 0x1; [NativeTypeName("#define FAIL_FAST_NO_HARD_ERROR_DLG 0x2")] public const int FAIL_FAST_NO_HARD_ERROR_DLG = 0x2; - [NativeTypeName("#define PST_UNSPECIFIED ((DWORD)0x00000000)")] - public const uint PST_UNSPECIFIED = ((uint)(0x00000000)); - - [NativeTypeName("#define PST_RS232 ((DWORD)0x00000001)")] - public const uint PST_RS232 = ((uint)(0x00000001)); - - [NativeTypeName("#define PST_PARALLELPORT ((DWORD)0x00000002)")] - public const uint PST_PARALLELPORT = ((uint)(0x00000002)); - - [NativeTypeName("#define PST_RS422 ((DWORD)0x00000003)")] - public const uint PST_RS422 = ((uint)(0x00000003)); - - [NativeTypeName("#define PST_RS423 ((DWORD)0x00000004)")] - public const uint PST_RS423 = ((uint)(0x00000004)); - - [NativeTypeName("#define PST_RS449 ((DWORD)0x00000005)")] - public const uint PST_RS449 = ((uint)(0x00000005)); - - [NativeTypeName("#define PST_MODEM ((DWORD)0x00000006)")] - public const uint PST_MODEM = ((uint)(0x00000006)); - - [NativeTypeName("#define PST_FAX ((DWORD)0x00000021)")] - public const uint PST_FAX = ((uint)(0x00000021)); - - [NativeTypeName("#define PST_SCANNER ((DWORD)0x00000022)")] - public const uint PST_SCANNER = ((uint)(0x00000022)); - - [NativeTypeName("#define PST_NETWORK_BRIDGE ((DWORD)0x00000100)")] - public const uint PST_NETWORK_BRIDGE = ((uint)(0x00000100)); - - [NativeTypeName("#define PST_LAT ((DWORD)0x00000101)")] - public const uint PST_LAT = ((uint)(0x00000101)); - - [NativeTypeName("#define PST_TCPIP_TELNET ((DWORD)0x00000102)")] - public const uint PST_TCPIP_TELNET = ((uint)(0x00000102)); - - [NativeTypeName("#define PST_X25 ((DWORD)0x00000103)")] - public const uint PST_X25 = ((uint)(0x00000103)); - - [NativeTypeName("#define PCF_DTRDSR ((DWORD)0x0001)")] - public const uint PCF_DTRDSR = ((uint)(0x0001)); - - [NativeTypeName("#define PCF_RTSCTS ((DWORD)0x0002)")] - public const uint PCF_RTSCTS = ((uint)(0x0002)); - - [NativeTypeName("#define PCF_RLSD ((DWORD)0x0004)")] - public const uint PCF_RLSD = ((uint)(0x0004)); - - [NativeTypeName("#define PCF_PARITY_CHECK ((DWORD)0x0008)")] - public const uint PCF_PARITY_CHECK = ((uint)(0x0008)); - - [NativeTypeName("#define PCF_XONXOFF ((DWORD)0x0010)")] - public const uint PCF_XONXOFF = ((uint)(0x0010)); - - [NativeTypeName("#define PCF_SETXCHAR ((DWORD)0x0020)")] - public const uint PCF_SETXCHAR = ((uint)(0x0020)); - - [NativeTypeName("#define PCF_TOTALTIMEOUTS ((DWORD)0x0040)")] - public const uint PCF_TOTALTIMEOUTS = ((uint)(0x0040)); - - [NativeTypeName("#define PCF_INTTIMEOUTS ((DWORD)0x0080)")] - public const uint PCF_INTTIMEOUTS = ((uint)(0x0080)); - - [NativeTypeName("#define PCF_SPECIALCHARS ((DWORD)0x0100)")] - public const uint PCF_SPECIALCHARS = ((uint)(0x0100)); - - [NativeTypeName("#define PCF_16BITMODE ((DWORD)0x0200)")] - public const uint PCF_16BITMODE = ((uint)(0x0200)); - - [NativeTypeName("#define BAUD_075 ((DWORD)0x00000001)")] - public const uint BAUD_075 = ((uint)(0x00000001)); - - [NativeTypeName("#define BAUD_110 ((DWORD)0x00000002)")] - public const uint BAUD_110 = ((uint)(0x00000002)); - - [NativeTypeName("#define BAUD_134_5 ((DWORD)0x00000004)")] - public const uint BAUD_134_5 = ((uint)(0x00000004)); - - [NativeTypeName("#define BAUD_150 ((DWORD)0x00000008)")] - public const uint BAUD_150 = ((uint)(0x00000008)); - - [NativeTypeName("#define BAUD_300 ((DWORD)0x00000010)")] - public const uint BAUD_300 = ((uint)(0x00000010)); - - [NativeTypeName("#define BAUD_600 ((DWORD)0x00000020)")] - public const uint BAUD_600 = ((uint)(0x00000020)); - - [NativeTypeName("#define BAUD_1200 ((DWORD)0x00000040)")] - public const uint BAUD_1200 = ((uint)(0x00000040)); - - [NativeTypeName("#define BAUD_1800 ((DWORD)0x00000080)")] - public const uint BAUD_1800 = ((uint)(0x00000080)); - - [NativeTypeName("#define BAUD_2400 ((DWORD)0x00000100)")] - public const uint BAUD_2400 = ((uint)(0x00000100)); - - [NativeTypeName("#define BAUD_4800 ((DWORD)0x00000200)")] - public const uint BAUD_4800 = ((uint)(0x00000200)); - - [NativeTypeName("#define BAUD_7200 ((DWORD)0x00000400)")] - public const uint BAUD_7200 = ((uint)(0x00000400)); - - [NativeTypeName("#define BAUD_9600 ((DWORD)0x00000800)")] - public const uint BAUD_9600 = ((uint)(0x00000800)); - - [NativeTypeName("#define BAUD_14400 ((DWORD)0x00001000)")] - public const uint BAUD_14400 = ((uint)(0x00001000)); - - [NativeTypeName("#define BAUD_19200 ((DWORD)0x00002000)")] - public const uint BAUD_19200 = ((uint)(0x00002000)); - - [NativeTypeName("#define BAUD_38400 ((DWORD)0x00004000)")] - public const uint BAUD_38400 = ((uint)(0x00004000)); - - [NativeTypeName("#define BAUD_56K ((DWORD)0x00008000)")] - public const uint BAUD_56K = ((uint)(0x00008000)); - - [NativeTypeName("#define BAUD_128K ((DWORD)0x00010000)")] - public const uint BAUD_128K = ((uint)(0x00010000)); - - [NativeTypeName("#define BAUD_115200 ((DWORD)0x00020000)")] - public const uint BAUD_115200 = ((uint)(0x00020000)); - - [NativeTypeName("#define BAUD_57600 ((DWORD)0x00040000)")] - public const uint BAUD_57600 = ((uint)(0x00040000)); - - [NativeTypeName("#define BAUD_USER ((DWORD)0x10000000)")] - public const uint BAUD_USER = ((uint)(0x10000000)); - [NativeTypeName("#define DATABITS_5 ((WORD)0x0001)")] public const ushort DATABITS_5 = ((ushort)(0x0001)); @@ -1869,75 +1643,21 @@ public static unsafe partial class Windows [NativeTypeName("#define RTS_CONTROL_TOGGLE 0x03")] public const int RTS_CONTROL_TOGGLE = 0x03; - [NativeTypeName("#define GMEM_FIXED 0x0000")] - public const int GMEM_FIXED = 0x0000; - - [NativeTypeName("#define GMEM_MOVEABLE 0x0002")] - public const int GMEM_MOVEABLE = 0x0002; - - [NativeTypeName("#define GMEM_NOCOMPACT 0x0010")] - public const int GMEM_NOCOMPACT = 0x0010; - - [NativeTypeName("#define GMEM_NODISCARD 0x0020")] - public const int GMEM_NODISCARD = 0x0020; - - [NativeTypeName("#define GMEM_ZEROINIT 0x0040")] - public const int GMEM_ZEROINIT = 0x0040; - - [NativeTypeName("#define GMEM_MODIFY 0x0080")] - public const int GMEM_MODIFY = 0x0080; - - [NativeTypeName("#define GMEM_DISCARDABLE 0x0100")] - public const int GMEM_DISCARDABLE = 0x0100; - - [NativeTypeName("#define GMEM_NOT_BANKED 0x1000")] - public const int GMEM_NOT_BANKED = 0x1000; - - [NativeTypeName("#define GMEM_SHARE 0x2000")] - public const int GMEM_SHARE = 0x2000; - - [NativeTypeName("#define GMEM_DDESHARE 0x2000")] - public const int GMEM_DDESHARE = 0x2000; - - [NativeTypeName("#define GMEM_NOTIFY 0x4000")] - public const int GMEM_NOTIFY = 0x4000; - - [NativeTypeName("#define GMEM_LOWER GMEM_NOT_BANKED")] - public const int GMEM_LOWER = 0x1000; - - [NativeTypeName("#define GMEM_VALID_FLAGS 0x7F72")] - public const int GMEM_VALID_FLAGS = 0x7F72; - - [NativeTypeName("#define GMEM_INVALID_HANDLE 0x8000")] - public const int GMEM_INVALID_HANDLE = 0x8000; - [NativeTypeName("#define GHND (GMEM_MOVEABLE | GMEM_ZEROINIT)")] public const int GHND = (0x0002 | 0x0040); [NativeTypeName("#define GPTR (GMEM_FIXED | GMEM_ZEROINIT)")] public const int GPTR = (0x0000 | 0x0040); - [NativeTypeName("#define GMEM_DISCARDED 0x4000")] - public const int GMEM_DISCARDED = 0x4000; - - [NativeTypeName("#define GMEM_LOCKCOUNT 0x00FF")] - public const int GMEM_LOCKCOUNT = 0x00FF; - [NativeTypeName("#define DEBUG_PROCESS 0x00000001")] public const int DEBUG_PROCESS = 0x00000001; [NativeTypeName("#define DEBUG_ONLY_THIS_PROCESS 0x00000002")] public const int DEBUG_ONLY_THIS_PROCESS = 0x00000002; - [NativeTypeName("#define CREATE_SUSPENDED 0x00000004")] - public const int CREATE_SUSPENDED = 0x00000004; - [NativeTypeName("#define DETACHED_PROCESS 0x00000008")] public const int DETACHED_PROCESS = 0x00000008; - [NativeTypeName("#define CREATE_NEW_CONSOLE 0x00000010")] - public const int CREATE_NEW_CONSOLE = 0x00000010; - [NativeTypeName("#define NORMAL_PRIORITY_CLASS 0x00000020")] public const int NORMAL_PRIORITY_CLASS = 0x00000020; @@ -1950,21 +1670,6 @@ public static unsafe partial class Windows [NativeTypeName("#define REALTIME_PRIORITY_CLASS 0x00000100")] public const int REALTIME_PRIORITY_CLASS = 0x00000100; - [NativeTypeName("#define CREATE_NEW_PROCESS_GROUP 0x00000200")] - public const int CREATE_NEW_PROCESS_GROUP = 0x00000200; - - [NativeTypeName("#define CREATE_UNICODE_ENVIRONMENT 0x00000400")] - public const int CREATE_UNICODE_ENVIRONMENT = 0x00000400; - - [NativeTypeName("#define CREATE_SEPARATE_WOW_VDM 0x00000800")] - public const int CREATE_SEPARATE_WOW_VDM = 0x00000800; - - [NativeTypeName("#define CREATE_SHARED_WOW_VDM 0x00001000")] - public const int CREATE_SHARED_WOW_VDM = 0x00001000; - - [NativeTypeName("#define CREATE_FORCEDOS 0x00002000")] - public const int CREATE_FORCEDOS = 0x00002000; - [NativeTypeName("#define BELOW_NORMAL_PRIORITY_CLASS 0x00004000")] public const int BELOW_NORMAL_PRIORITY_CLASS = 0x00004000; @@ -1977,27 +1682,9 @@ public static unsafe partial class Windows [NativeTypeName("#define INHERIT_CALLER_PRIORITY 0x00020000")] public const int INHERIT_CALLER_PRIORITY = 0x00020000; - [NativeTypeName("#define CREATE_PROTECTED_PROCESS 0x00040000")] - public const int CREATE_PROTECTED_PROCESS = 0x00040000; - [NativeTypeName("#define EXTENDED_STARTUPINFO_PRESENT 0x00080000")] public const int EXTENDED_STARTUPINFO_PRESENT = 0x00080000; - [NativeTypeName("#define CREATE_SECURE_PROCESS 0x00400000")] - public const int CREATE_SECURE_PROCESS = 0x00400000; - - [NativeTypeName("#define CREATE_BREAKAWAY_FROM_JOB 0x01000000")] - public const int CREATE_BREAKAWAY_FROM_JOB = 0x01000000; - - [NativeTypeName("#define CREATE_PRESERVE_CODE_AUTHZ_LEVEL 0x02000000")] - public const int CREATE_PRESERVE_CODE_AUTHZ_LEVEL = 0x02000000; - - [NativeTypeName("#define CREATE_DEFAULT_ERROR_MODE 0x04000000")] - public const int CREATE_DEFAULT_ERROR_MODE = 0x04000000; - - [NativeTypeName("#define CREATE_NO_WINDOW 0x08000000")] - public const int CREATE_NO_WINDOW = 0x08000000; - [NativeTypeName("#define PROFILE_USER 0x10000000")] public const int PROFILE_USER = 0x10000000; @@ -2007,42 +1694,9 @@ public static unsafe partial class Windows [NativeTypeName("#define PROFILE_SERVER 0x40000000")] public const int PROFILE_SERVER = 0x40000000; - [NativeTypeName("#define CREATE_IGNORE_SYSTEM_DEFAULT 0x80000000")] - public const uint CREATE_IGNORE_SYSTEM_DEFAULT = 0x80000000; - [NativeTypeName("#define STACK_SIZE_PARAM_IS_A_RESERVATION 0x00010000")] public const int STACK_SIZE_PARAM_IS_A_RESERVATION = 0x00010000; - [NativeTypeName("#define THREAD_PRIORITY_LOWEST THREAD_BASE_PRIORITY_MIN")] - public const int THREAD_PRIORITY_LOWEST = (-2); - - [NativeTypeName("#define THREAD_PRIORITY_BELOW_NORMAL (THREAD_PRIORITY_LOWEST+1)")] - public const int THREAD_PRIORITY_BELOW_NORMAL = ((-2) + 1); - - [NativeTypeName("#define THREAD_PRIORITY_NORMAL 0")] - public const int THREAD_PRIORITY_NORMAL = 0; - - [NativeTypeName("#define THREAD_PRIORITY_HIGHEST THREAD_BASE_PRIORITY_MAX")] - public const int THREAD_PRIORITY_HIGHEST = 2; - - [NativeTypeName("#define THREAD_PRIORITY_ABOVE_NORMAL (THREAD_PRIORITY_HIGHEST-1)")] - public const int THREAD_PRIORITY_ABOVE_NORMAL = (2 - 1); - - [NativeTypeName("#define THREAD_PRIORITY_ERROR_RETURN (MAXLONG)")] - public const int THREAD_PRIORITY_ERROR_RETURN = (0x7fffffff); - - [NativeTypeName("#define THREAD_PRIORITY_TIME_CRITICAL THREAD_BASE_PRIORITY_LOWRT")] - public const int THREAD_PRIORITY_TIME_CRITICAL = 15; - - [NativeTypeName("#define THREAD_PRIORITY_IDLE THREAD_BASE_PRIORITY_IDLE")] - public const int THREAD_PRIORITY_IDLE = (-15); - - [NativeTypeName("#define THREAD_MODE_BACKGROUND_BEGIN 0x00010000")] - public const int THREAD_MODE_BACKGROUND_BEGIN = 0x00010000; - - [NativeTypeName("#define THREAD_MODE_BACKGROUND_END 0x00020000")] - public const int THREAD_MODE_BACKGROUND_END = 0x00020000; - [NativeTypeName("#define VOLUME_NAME_DOS 0x0")] public const int VOLUME_NAME_DOS = 0x0; @@ -2076,15 +1730,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DRIVE_RAMDISK 6")] public const int DRIVE_RAMDISK = 6; - [NativeTypeName("#define STD_INPUT_HANDLE ((DWORD)-10)")] - public const uint STD_INPUT_HANDLE = unchecked((uint)(-10)); - - [NativeTypeName("#define STD_OUTPUT_HANDLE ((DWORD)-11)")] - public const uint STD_OUTPUT_HANDLE = unchecked((uint)(-11)); - - [NativeTypeName("#define STD_ERROR_HANDLE ((DWORD)-12)")] - public const uint STD_ERROR_HANDLE = unchecked((uint)(-12)); - [NativeTypeName("#define NOPARITY 0")] public const int NOPARITY = 0; @@ -2115,84 +1760,6 @@ public static unsafe partial class Windows [NativeTypeName("#define INFINITE 0xFFFFFFFF")] public const uint INFINITE = 0xFFFFFFFF; - [NativeTypeName("#define CBR_110 110")] - public const int CBR_110 = 110; - - [NativeTypeName("#define CBR_300 300")] - public const int CBR_300 = 300; - - [NativeTypeName("#define CBR_600 600")] - public const int CBR_600 = 600; - - [NativeTypeName("#define CBR_1200 1200")] - public const int CBR_1200 = 1200; - - [NativeTypeName("#define CBR_2400 2400")] - public const int CBR_2400 = 2400; - - [NativeTypeName("#define CBR_4800 4800")] - public const int CBR_4800 = 4800; - - [NativeTypeName("#define CBR_9600 9600")] - public const int CBR_9600 = 9600; - - [NativeTypeName("#define CBR_14400 14400")] - public const int CBR_14400 = 14400; - - [NativeTypeName("#define CBR_19200 19200")] - public const int CBR_19200 = 19200; - - [NativeTypeName("#define CBR_38400 38400")] - public const int CBR_38400 = 38400; - - [NativeTypeName("#define CBR_56000 56000")] - public const int CBR_56000 = 56000; - - [NativeTypeName("#define CBR_57600 57600")] - public const int CBR_57600 = 57600; - - [NativeTypeName("#define CBR_115200 115200")] - public const int CBR_115200 = 115200; - - [NativeTypeName("#define CBR_128000 128000")] - public const int CBR_128000 = 128000; - - [NativeTypeName("#define CBR_256000 256000")] - public const int CBR_256000 = 256000; - - [NativeTypeName("#define CE_RXOVER 0x0001")] - public const int CE_RXOVER = 0x0001; - - [NativeTypeName("#define CE_OVERRUN 0x0002")] - public const int CE_OVERRUN = 0x0002; - - [NativeTypeName("#define CE_RXPARITY 0x0004")] - public const int CE_RXPARITY = 0x0004; - - [NativeTypeName("#define CE_FRAME 0x0008")] - public const int CE_FRAME = 0x0008; - - [NativeTypeName("#define CE_BREAK 0x0010")] - public const int CE_BREAK = 0x0010; - - [NativeTypeName("#define CE_TXFULL 0x0100")] - public const int CE_TXFULL = 0x0100; - - [NativeTypeName("#define CE_PTO 0x0200")] - public const int CE_PTO = 0x0200; - - [NativeTypeName("#define CE_IOE 0x0400")] - public const int CE_IOE = 0x0400; - - [NativeTypeName("#define CE_DNS 0x0800")] - public const int CE_DNS = 0x0800; - - [NativeTypeName("#define CE_OOP 0x1000")] - public const int CE_OOP = 0x1000; - - [NativeTypeName("#define CE_MODE 0x8000")] - public const int CE_MODE = 0x8000; - [NativeTypeName("#define IE_BADID (-1)")] public const int IE_BADID = (-1); @@ -2217,45 +1784,6 @@ public static unsafe partial class Windows [NativeTypeName("#define IE_BAUDRATE (-12)")] public const int IE_BAUDRATE = (-12); - [NativeTypeName("#define EV_RXCHAR 0x0001")] - public const int EV_RXCHAR = 0x0001; - - [NativeTypeName("#define EV_RXFLAG 0x0002")] - public const int EV_RXFLAG = 0x0002; - - [NativeTypeName("#define EV_TXEMPTY 0x0004")] - public const int EV_TXEMPTY = 0x0004; - - [NativeTypeName("#define EV_CTS 0x0008")] - public const int EV_CTS = 0x0008; - - [NativeTypeName("#define EV_DSR 0x0010")] - public const int EV_DSR = 0x0010; - - [NativeTypeName("#define EV_RLSD 0x0020")] - public const int EV_RLSD = 0x0020; - - [NativeTypeName("#define EV_BREAK 0x0040")] - public const int EV_BREAK = 0x0040; - - [NativeTypeName("#define EV_ERR 0x0080")] - public const int EV_ERR = 0x0080; - - [NativeTypeName("#define EV_RING 0x0100")] - public const int EV_RING = 0x0100; - - [NativeTypeName("#define EV_PERR 0x0200")] - public const int EV_PERR = 0x0200; - - [NativeTypeName("#define EV_RX80FULL 0x0400")] - public const int EV_RX80FULL = 0x0400; - - [NativeTypeName("#define EV_EVENT1 0x0800")] - public const int EV_EVENT1 = 0x0800; - - [NativeTypeName("#define EV_EVENT2 0x1000")] - public const int EV_EVENT2 = 0x1000; - [NativeTypeName("#define SETXOFF 1")] public const int SETXOFF = 1; @@ -2298,108 +1826,6 @@ public static unsafe partial class Windows [NativeTypeName("#define LPTx 0x80")] public const int LPTx = 0x80; - [NativeTypeName("#define MS_CTS_ON ((DWORD)0x0010)")] - public const uint MS_CTS_ON = ((uint)(0x0010)); - - [NativeTypeName("#define MS_DSR_ON ((DWORD)0x0020)")] - public const uint MS_DSR_ON = ((uint)(0x0020)); - - [NativeTypeName("#define MS_RING_ON ((DWORD)0x0040)")] - public const uint MS_RING_ON = ((uint)(0x0040)); - - [NativeTypeName("#define MS_RLSD_ON ((DWORD)0x0080)")] - public const uint MS_RLSD_ON = ((uint)(0x0080)); - - [NativeTypeName("#define S_QUEUEEMPTY 0")] - public const int S_QUEUEEMPTY = 0; - - [NativeTypeName("#define S_THRESHOLD 1")] - public const int S_THRESHOLD = 1; - - [NativeTypeName("#define S_ALLTHRESHOLD 2")] - public const int S_ALLTHRESHOLD = 2; - - [NativeTypeName("#define S_NORMAL 0")] - public const int S_NORMAL = 0; - - [NativeTypeName("#define S_LEGATO 1")] - public const int S_LEGATO = 1; - - [NativeTypeName("#define S_STACCATO 2")] - public const int S_STACCATO = 2; - - [NativeTypeName("#define S_PERIOD512 0")] - public const int S_PERIOD512 = 0; - - [NativeTypeName("#define S_PERIOD1024 1")] - public const int S_PERIOD1024 = 1; - - [NativeTypeName("#define S_PERIOD2048 2")] - public const int S_PERIOD2048 = 2; - - [NativeTypeName("#define S_PERIODVOICE 3")] - public const int S_PERIODVOICE = 3; - - [NativeTypeName("#define S_WHITE512 4")] - public const int S_WHITE512 = 4; - - [NativeTypeName("#define S_WHITE1024 5")] - public const int S_WHITE1024 = 5; - - [NativeTypeName("#define S_WHITE2048 6")] - public const int S_WHITE2048 = 6; - - [NativeTypeName("#define S_WHITEVOICE 7")] - public const int S_WHITEVOICE = 7; - - [NativeTypeName("#define S_SERDVNA (-1)")] - public const int S_SERDVNA = (-1); - - [NativeTypeName("#define S_SEROFM (-2)")] - public const int S_SEROFM = (-2); - - [NativeTypeName("#define S_SERMACT (-3)")] - public const int S_SERMACT = (-3); - - [NativeTypeName("#define S_SERQFUL (-4)")] - public const int S_SERQFUL = (-4); - - [NativeTypeName("#define S_SERBDNT (-5)")] - public const int S_SERBDNT = (-5); - - [NativeTypeName("#define S_SERDLN (-6)")] - public const int S_SERDLN = (-6); - - [NativeTypeName("#define S_SERDCC (-7)")] - public const int S_SERDCC = (-7); - - [NativeTypeName("#define S_SERDTP (-8)")] - public const int S_SERDTP = (-8); - - [NativeTypeName("#define S_SERDVL (-9)")] - public const int S_SERDVL = (-9); - - [NativeTypeName("#define S_SERDMD (-10)")] - public const int S_SERDMD = (-10); - - [NativeTypeName("#define S_SERDSH (-11)")] - public const int S_SERDSH = (-11); - - [NativeTypeName("#define S_SERDPT (-12)")] - public const int S_SERDPT = (-12); - - [NativeTypeName("#define S_SERDFQ (-13)")] - public const int S_SERDFQ = (-13); - - [NativeTypeName("#define S_SERDDR (-14)")] - public const int S_SERDDR = (-14); - - [NativeTypeName("#define S_SERDSR (-15)")] - public const int S_SERDSR = (-15); - - [NativeTypeName("#define S_SERDST (-16)")] - public const int S_SERDST = (-16); - [NativeTypeName("#define NMPWAIT_WAIT_FOREVER 0xffffffff")] public const uint NMPWAIT_WAIT_FOREVER = 0xffffffff; @@ -2409,75 +1835,6 @@ public static unsafe partial class Windows [NativeTypeName("#define NMPWAIT_USE_DEFAULT_WAIT 0x00000000")] public const int NMPWAIT_USE_DEFAULT_WAIT = 0x00000000; - [NativeTypeName("#define FS_CASE_IS_PRESERVED FILE_CASE_PRESERVED_NAMES")] - public const int FS_CASE_IS_PRESERVED = 0x00000002; - - [NativeTypeName("#define FS_CASE_SENSITIVE FILE_CASE_SENSITIVE_SEARCH")] - public const int FS_CASE_SENSITIVE = 0x00000001; - - [NativeTypeName("#define FS_UNICODE_STORED_ON_DISK FILE_UNICODE_ON_DISK")] - public const int FS_UNICODE_STORED_ON_DISK = 0x00000004; - - [NativeTypeName("#define FS_PERSISTENT_ACLS FILE_PERSISTENT_ACLS")] - public const int FS_PERSISTENT_ACLS = 0x00000008; - - [NativeTypeName("#define FS_VOL_IS_COMPRESSED FILE_VOLUME_IS_COMPRESSED")] - public const int FS_VOL_IS_COMPRESSED = 0x00008000; - - [NativeTypeName("#define FS_FILE_COMPRESSION FILE_FILE_COMPRESSION")] - public const int FS_FILE_COMPRESSION = 0x00000010; - - [NativeTypeName("#define FS_FILE_ENCRYPTION FILE_SUPPORTS_ENCRYPTION")] - public const int FS_FILE_ENCRYPTION = 0x00020000; - - [NativeTypeName("#define OF_READ 0x00000000")] - public const int OF_READ = 0x00000000; - - [NativeTypeName("#define OF_WRITE 0x00000001")] - public const int OF_WRITE = 0x00000001; - - [NativeTypeName("#define OF_READWRITE 0x00000002")] - public const int OF_READWRITE = 0x00000002; - - [NativeTypeName("#define OF_SHARE_COMPAT 0x00000000")] - public const int OF_SHARE_COMPAT = 0x00000000; - - [NativeTypeName("#define OF_SHARE_EXCLUSIVE 0x00000010")] - public const int OF_SHARE_EXCLUSIVE = 0x00000010; - - [NativeTypeName("#define OF_SHARE_DENY_WRITE 0x00000020")] - public const int OF_SHARE_DENY_WRITE = 0x00000020; - - [NativeTypeName("#define OF_SHARE_DENY_READ 0x00000030")] - public const int OF_SHARE_DENY_READ = 0x00000030; - - [NativeTypeName("#define OF_SHARE_DENY_NONE 0x00000040")] - public const int OF_SHARE_DENY_NONE = 0x00000040; - - [NativeTypeName("#define OF_PARSE 0x00000100")] - public const int OF_PARSE = 0x00000100; - - [NativeTypeName("#define OF_DELETE 0x00000200")] - public const int OF_DELETE = 0x00000200; - - [NativeTypeName("#define OF_VERIFY 0x00000400")] - public const int OF_VERIFY = 0x00000400; - - [NativeTypeName("#define OF_CANCEL 0x00000800")] - public const int OF_CANCEL = 0x00000800; - - [NativeTypeName("#define OF_CREATE 0x00001000")] - public const int OF_CREATE = 0x00001000; - - [NativeTypeName("#define OF_PROMPT 0x00002000")] - public const int OF_PROMPT = 0x00002000; - - [NativeTypeName("#define OF_EXIST 0x00004000")] - public const int OF_EXIST = 0x00004000; - - [NativeTypeName("#define OF_REOPEN 0x00008000")] - public const int OF_REOPEN = 0x00008000; - [NativeTypeName("#define OFS_MAXPATHNAME 128")] public const int OFS_MAXPATHNAME = 128; @@ -2487,27 +1844,6 @@ public static unsafe partial class Windows [NativeTypeName("#define INVALID_ATOM ((ATOM)0)")] public const ushort INVALID_ATOM = ((ushort)(0)); - [NativeTypeName("#define SCS_32BIT_BINARY 0")] - public const int SCS_32BIT_BINARY = 0; - - [NativeTypeName("#define SCS_DOS_BINARY 1")] - public const int SCS_DOS_BINARY = 1; - - [NativeTypeName("#define SCS_WOW_BINARY 2")] - public const int SCS_WOW_BINARY = 2; - - [NativeTypeName("#define SCS_PIF_BINARY 3")] - public const int SCS_PIF_BINARY = 3; - - [NativeTypeName("#define SCS_POSIX_BINARY 4")] - public const int SCS_POSIX_BINARY = 4; - - [NativeTypeName("#define SCS_OS216_BINARY 5")] - public const int SCS_OS216_BINARY = 5; - - [NativeTypeName("#define SCS_64BIT_BINARY 6")] - public const int SCS_64BIT_BINARY = 6; - [NativeTypeName("#define GetBinaryType GetBinaryTypeW")] public static delegate* GetBinaryType => &GetBinaryTypeW; @@ -2547,18 +1883,6 @@ public static unsafe partial class Windows [NativeTypeName("#define HINSTANCE_ERROR 32")] public const int HINSTANCE_ERROR = 32; - [NativeTypeName("#define GET_TAPE_MEDIA_INFORMATION 0")] - public const int GET_TAPE_MEDIA_INFORMATION = 0; - - [NativeTypeName("#define GET_TAPE_DRIVE_INFORMATION 1")] - public const int GET_TAPE_DRIVE_INFORMATION = 1; - - [NativeTypeName("#define SET_TAPE_MEDIA_INFORMATION 0")] - public const int SET_TAPE_MEDIA_INFORMATION = 0; - - [NativeTypeName("#define SET_TAPE_DRIVE_INFORMATION 1")] - public const int SET_TAPE_DRIVE_INFORMATION = 1; - [NativeTypeName("#define FORMAT_MESSAGE_ALLOCATE_BUFFER 0x00000100")] public const int FORMAT_MESSAGE_ALLOCATE_BUFFER = 0x00000100; @@ -2598,12 +1922,6 @@ public static unsafe partial class Windows [NativeTypeName("#define EFS_USE_RECOVERY_KEYS (0x1)")] public const int EFS_USE_RECOVERY_KEYS = (0x1); - [NativeTypeName("#define CREATE_FOR_IMPORT (1)")] - public const int CREATE_FOR_IMPORT = (1); - - [NativeTypeName("#define CREATE_FOR_DIR (2)")] - public const int CREATE_FOR_DIR = (2); - [NativeTypeName("#define OVERWRITE_HIDDEN (4)")] public const int OVERWRITE_HIDDEN = (4); @@ -2634,213 +1952,9 @@ public static unsafe partial class Windows [NativeTypeName("#define lstrlen lstrlenW")] public static delegate* lstrlen => &lstrlenW; - [NativeTypeName("#define BACKUP_INVALID 0x00000000")] - public const int BACKUP_INVALID = 0x00000000; - - [NativeTypeName("#define BACKUP_DATA 0x00000001")] - public const int BACKUP_DATA = 0x00000001; - - [NativeTypeName("#define BACKUP_EA_DATA 0x00000002")] - public const int BACKUP_EA_DATA = 0x00000002; - - [NativeTypeName("#define BACKUP_SECURITY_DATA 0x00000003")] - public const int BACKUP_SECURITY_DATA = 0x00000003; - - [NativeTypeName("#define BACKUP_ALTERNATE_DATA 0x00000004")] - public const int BACKUP_ALTERNATE_DATA = 0x00000004; - - [NativeTypeName("#define BACKUP_LINK 0x00000005")] - public const int BACKUP_LINK = 0x00000005; - - [NativeTypeName("#define BACKUP_PROPERTY_DATA 0x00000006")] - public const int BACKUP_PROPERTY_DATA = 0x00000006; - - [NativeTypeName("#define BACKUP_OBJECT_ID 0x00000007")] - public const int BACKUP_OBJECT_ID = 0x00000007; - - [NativeTypeName("#define BACKUP_REPARSE_DATA 0x00000008")] - public const int BACKUP_REPARSE_DATA = 0x00000008; - - [NativeTypeName("#define BACKUP_SPARSE_BLOCK 0x00000009")] - public const int BACKUP_SPARSE_BLOCK = 0x00000009; - - [NativeTypeName("#define BACKUP_TXFS_DATA 0x0000000a")] - public const int BACKUP_TXFS_DATA = 0x0000000a; - - [NativeTypeName("#define BACKUP_GHOSTED_FILE_EXTENTS 0x0000000b")] - public const int BACKUP_GHOSTED_FILE_EXTENTS = 0x0000000b; - - [NativeTypeName("#define STREAM_NORMAL_ATTRIBUTE 0x00000000")] - public const int STREAM_NORMAL_ATTRIBUTE = 0x00000000; - - [NativeTypeName("#define STREAM_MODIFIED_WHEN_READ 0x00000001")] - public const int STREAM_MODIFIED_WHEN_READ = 0x00000001; - - [NativeTypeName("#define STREAM_CONTAINS_SECURITY 0x00000002")] - public const int STREAM_CONTAINS_SECURITY = 0x00000002; - - [NativeTypeName("#define STREAM_CONTAINS_PROPERTIES 0x00000004")] - public const int STREAM_CONTAINS_PROPERTIES = 0x00000004; - - [NativeTypeName("#define STREAM_SPARSE_ATTRIBUTE 0x00000008")] - public const int STREAM_SPARSE_ATTRIBUTE = 0x00000008; - - [NativeTypeName("#define STREAM_CONTAINS_GHOSTED_FILE_EXTENTS 0x00000010")] - public const int STREAM_CONTAINS_GHOSTED_FILE_EXTENTS = 0x00000010; - - [NativeTypeName("#define STARTF_USESHOWWINDOW 0x00000001")] - public const int STARTF_USESHOWWINDOW = 0x00000001; - - [NativeTypeName("#define STARTF_USESIZE 0x00000002")] - public const int STARTF_USESIZE = 0x00000002; - - [NativeTypeName("#define STARTF_USEPOSITION 0x00000004")] - public const int STARTF_USEPOSITION = 0x00000004; - - [NativeTypeName("#define STARTF_USECOUNTCHARS 0x00000008")] - public const int STARTF_USECOUNTCHARS = 0x00000008; - - [NativeTypeName("#define STARTF_USEFILLATTRIBUTE 0x00000010")] - public const int STARTF_USEFILLATTRIBUTE = 0x00000010; - - [NativeTypeName("#define STARTF_RUNFULLSCREEN 0x00000020")] - public const int STARTF_RUNFULLSCREEN = 0x00000020; - - [NativeTypeName("#define STARTF_FORCEONFEEDBACK 0x00000040")] - public const int STARTF_FORCEONFEEDBACK = 0x00000040; - - [NativeTypeName("#define STARTF_FORCEOFFFEEDBACK 0x00000080")] - public const int STARTF_FORCEOFFFEEDBACK = 0x00000080; - - [NativeTypeName("#define STARTF_USESTDHANDLES 0x00000100")] - public const int STARTF_USESTDHANDLES = 0x00000100; - - [NativeTypeName("#define STARTF_USEHOTKEY 0x00000200")] - public const int STARTF_USEHOTKEY = 0x00000200; - - [NativeTypeName("#define STARTF_TITLEISLINKNAME 0x00000800")] - public const int STARTF_TITLEISLINKNAME = 0x00000800; - - [NativeTypeName("#define STARTF_TITLEISAPPID 0x00001000")] - public const int STARTF_TITLEISAPPID = 0x00001000; - - [NativeTypeName("#define STARTF_PREVENTPINNING 0x00002000")] - public const int STARTF_PREVENTPINNING = 0x00002000; - - [NativeTypeName("#define STARTF_UNTRUSTEDSOURCE 0x00008000")] - public const int STARTF_UNTRUSTEDSOURCE = 0x00008000; - - [NativeTypeName("#define STARTF_HOLOGRAPHIC 0x00040000")] - public const int STARTF_HOLOGRAPHIC = 0x00040000; - - [NativeTypeName("#define SHUTDOWN_NORETRY 0x00000001")] - public const int SHUTDOWN_NORETRY = 0x00000001; - - [NativeTypeName("#define PROTECTION_LEVEL_WINTCB_LIGHT 0x00000000")] - public const int PROTECTION_LEVEL_WINTCB_LIGHT = 0x00000000; - - [NativeTypeName("#define PROTECTION_LEVEL_WINDOWS 0x00000001")] - public const int PROTECTION_LEVEL_WINDOWS = 0x00000001; - - [NativeTypeName("#define PROTECTION_LEVEL_WINDOWS_LIGHT 0x00000002")] - public const int PROTECTION_LEVEL_WINDOWS_LIGHT = 0x00000002; - - [NativeTypeName("#define PROTECTION_LEVEL_ANTIMALWARE_LIGHT 0x00000003")] - public const int PROTECTION_LEVEL_ANTIMALWARE_LIGHT = 0x00000003; - - [NativeTypeName("#define PROTECTION_LEVEL_LSA_LIGHT 0x00000004")] - public const int PROTECTION_LEVEL_LSA_LIGHT = 0x00000004; - - [NativeTypeName("#define PROTECTION_LEVEL_WINTCB 0x00000005")] - public const int PROTECTION_LEVEL_WINTCB = 0x00000005; - - [NativeTypeName("#define PROTECTION_LEVEL_CODEGEN_LIGHT 0x00000006")] - public const int PROTECTION_LEVEL_CODEGEN_LIGHT = 0x00000006; - - [NativeTypeName("#define PROTECTION_LEVEL_AUTHENTICODE 0x00000007")] - public const int PROTECTION_LEVEL_AUTHENTICODE = 0x00000007; - - [NativeTypeName("#define PROTECTION_LEVEL_PPL_APP 0x00000008")] - public const int PROTECTION_LEVEL_PPL_APP = 0x00000008; - - [NativeTypeName("#define PROTECTION_LEVEL_SAME 0xFFFFFFFF")] - public const uint PROTECTION_LEVEL_SAME = 0xFFFFFFFF; - - [NativeTypeName("#define PROTECTION_LEVEL_NONE 0xFFFFFFFE")] - public const uint PROTECTION_LEVEL_NONE = 0xFFFFFFFE; - [NativeTypeName("#define QueryFullProcessImageName QueryFullProcessImageNameW")] public static delegate* QueryFullProcessImageName => &QueryFullProcessImageNameW; - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_NUMBER 0x0000FFFF")] - public const int PROC_THREAD_ATTRIBUTE_NUMBER = 0x0000FFFF; - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_THREAD 0x00010000")] - public const int PROC_THREAD_ATTRIBUTE_THREAD = 0x00010000; - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_INPUT 0x00020000")] - public const int PROC_THREAD_ATTRIBUTE_INPUT = 0x00020000; - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_ADDITIVE 0x00040000")] - public const int PROC_THREAD_ATTRIBUTE_ADDITIVE = 0x00040000; - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PARENT_PROCESS ProcThreadAttributeValue (ProcThreadAttributeParentProcess, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_PARENT_PROCESS = (((int)(ProcThreadAttributeParentProcess) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_HANDLE_LIST ProcThreadAttributeValue (ProcThreadAttributeHandleList, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_HANDLE_LIST = (((int)(ProcThreadAttributeHandleList) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_GROUP_AFFINITY ProcThreadAttributeValue (ProcThreadAttributeGroupAffinity, TRUE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_GROUP_AFFINITY = (((int)(ProcThreadAttributeGroupAffinity) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PREFERRED_NODE ProcThreadAttributeValue (ProcThreadAttributePreferredNode, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_PREFERRED_NODE = (((int)(ProcThreadAttributePreferredNode) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR ProcThreadAttributeValue (ProcThreadAttributeIdealProcessor, TRUE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_IDEAL_PROCESSOR = (((int)(ProcThreadAttributeIdealProcessor) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_UMS_THREAD ProcThreadAttributeValue (ProcThreadAttributeUmsThread, TRUE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_UMS_THREAD = (((int)(ProcThreadAttributeUmsThread) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY ProcThreadAttributeValue (ProcThreadAttributeMitigationPolicy, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_MITIGATION_POLICY = (((int)(ProcThreadAttributeMitigationPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES ProcThreadAttributeValue (ProcThreadAttributeSecurityCapabilities, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_SECURITY_CAPABILITIES = (((int)(ProcThreadAttributeSecurityCapabilities) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PROTECTION_LEVEL ProcThreadAttributeValue (ProcThreadAttributeProtectionLevel, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_PROTECTION_LEVEL = (((int)(ProcThreadAttributeProtectionLevel) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE ProcThreadAttributeValue (ProcThreadAttributePseudoConsole, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE = (((int)(ProcThreadAttributePseudoConsole) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_MACHINE_TYPE ProcThreadAttributeValue (ProcThreadAttributeMachineType, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_MACHINE_TYPE = (((int)(ProcThreadAttributeMachineType) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_ENABLE_OPTIONAL_XSTATE_FEATURES ProcThreadAttributeValue (ProcThreadAttributeEnableOptionalXStateFeatures, TRUE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_ENABLE_OPTIONAL_XSTATE_FEATURES = (((int)(ProcThreadAttributeEnableOptionalXStateFeatures) & 0x0000FFFF) | ((1 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_JOB_LIST ProcThreadAttributeValue (ProcThreadAttributeJobList, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_JOB_LIST = (((int)(ProcThreadAttributeJobList) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_CHILD_PROCESS_POLICY ProcThreadAttributeValue (ProcThreadAttributeChildProcessPolicy, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_CHILD_PROCESS_POLICY = (((int)(ProcThreadAttributeChildProcessPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_ALL_APPLICATION_PACKAGES_POLICY ProcThreadAttributeValue (ProcThreadAttributeAllApplicationPackagesPolicy, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_ALL_APPLICATION_PACKAGES_POLICY = (((int)(ProcThreadAttributeAllApplicationPackagesPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_WIN32K_FILTER ProcThreadAttributeValue (ProcThreadAttributeWin32kFilter, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_WIN32K_FILTER = (((int)(ProcThreadAttributeWin32kFilter) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_DESKTOP_APP_POLICY ProcThreadAttributeValue (ProcThreadAttributeDesktopAppPolicy, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_DESKTOP_APP_POLICY = (((int)(ProcThreadAttributeDesktopAppPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_MITIGATION_AUDIT_POLICY ProcThreadAttributeValue (ProcThreadAttributeMitigationAuditPolicy, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_MITIGATION_AUDIT_POLICY = (((int)(ProcThreadAttributeMitigationAuditPolicy) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_COMPONENT_FILTER ProcThreadAttributeValue (ProcThreadAttributeComponentFilter, FALSE, TRUE, FALSE)")] - public const int PROC_THREAD_ATTRIBUTE_COMPONENT_FILTER = (((int)(ProcThreadAttributeComponentFilter) & 0x0000FFFF) | ((0 != 0) ? 0x00010000 : 0) | ((1 != 0) ? 0x00020000 : 0) | ((0 != 0) ? 0x00040000 : 0)); - [NativeTypeName("#define GetFirmwareEnvironmentVariable GetFirmwareEnvironmentVariableW")] public static delegate* GetFirmwareEnvironmentVariable => &GetFirmwareEnvironmentVariableW; @@ -2933,33 +2047,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WritePrivateProfileStruct WritePrivateProfileStructW")] public static delegate* WritePrivateProfileStruct => &WritePrivateProfileStructW; - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A \"GetSystemWow64DirectoryA\"")] - public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_A_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x41, 0x00 }; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W L\"GetSystemWow64DirectoryA\"")] - public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_A_W = "GetSystemWow64DirectoryA"; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T TEXT(\"GetSystemWow64DirectoryA\")")] - public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_A_T = "GetSystemWow64DirectoryA"; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A \"GetSystemWow64DirectoryW\"")] - public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x57, 0x00 }; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W L\"GetSystemWow64DirectoryW\"")] - public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W = "GetSystemWow64DirectoryW"; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T TEXT(\"GetSystemWow64DirectoryW\")")] - public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T = "GetSystemWow64DirectoryW"; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A GET_SYSTEM_WOW64_DIRECTORY_NAME_W_A")] - public static ReadOnlySpan GET_SYSTEM_WOW64_DIRECTORY_NAME_T_A => new byte[] { 0x47, 0x65, 0x74, 0x53, 0x79, 0x73, 0x74, 0x65, 0x6D, 0x57, 0x6F, 0x77, 0x36, 0x34, 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x57, 0x00 }; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W GET_SYSTEM_WOW64_DIRECTORY_NAME_W_W")] - public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_T_W = "GetSystemWow64DirectoryW"; - - [NativeTypeName("#define GET_SYSTEM_WOW64_DIRECTORY_NAME_T_T GET_SYSTEM_WOW64_DIRECTORY_NAME_W_T")] - public const string GET_SYSTEM_WOW64_DIRECTORY_NAME_T_T = "GetSystemWow64DirectoryW"; - [NativeTypeName("#define SetDllDirectory SetDllDirectoryW")] public static delegate* SetDllDirectory => &SetDllDirectoryW; @@ -3110,9 +2197,6 @@ public static unsafe partial class Windows [NativeTypeName("#define ReportEvent ReportEventW")] public static delegate* ReportEvent => &ReportEventW; - [NativeTypeName("#define EVENTLOG_FULL_INFO 0")] - public const int EVENTLOG_FULL_INFO = 0; - [NativeTypeName("#define OPERATION_API_VERSION 1")] public const int OPERATION_API_VERSION = 1; @@ -3167,42 +2251,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GetUserName GetUserNameW")] public static delegate* GetUserName => &GetUserNameW; - [NativeTypeName("#define LOGON32_LOGON_INTERACTIVE 2")] - public const int LOGON32_LOGON_INTERACTIVE = 2; - - [NativeTypeName("#define LOGON32_LOGON_NETWORK 3")] - public const int LOGON32_LOGON_NETWORK = 3; - - [NativeTypeName("#define LOGON32_LOGON_BATCH 4")] - public const int LOGON32_LOGON_BATCH = 4; - - [NativeTypeName("#define LOGON32_LOGON_SERVICE 5")] - public const int LOGON32_LOGON_SERVICE = 5; - - [NativeTypeName("#define LOGON32_LOGON_UNLOCK 7")] - public const int LOGON32_LOGON_UNLOCK = 7; - - [NativeTypeName("#define LOGON32_LOGON_NETWORK_CLEARTEXT 8")] - public const int LOGON32_LOGON_NETWORK_CLEARTEXT = 8; - - [NativeTypeName("#define LOGON32_LOGON_NEW_CREDENTIALS 9")] - public const int LOGON32_LOGON_NEW_CREDENTIALS = 9; - - [NativeTypeName("#define LOGON32_PROVIDER_DEFAULT 0")] - public const int LOGON32_PROVIDER_DEFAULT = 0; - - [NativeTypeName("#define LOGON32_PROVIDER_WINNT35 1")] - public const int LOGON32_PROVIDER_WINNT35 = 1; - - [NativeTypeName("#define LOGON32_PROVIDER_WINNT40 2")] - public const int LOGON32_PROVIDER_WINNT40 = 2; - - [NativeTypeName("#define LOGON32_PROVIDER_WINNT50 3")] - public const int LOGON32_PROVIDER_WINNT50 = 3; - - [NativeTypeName("#define LOGON32_PROVIDER_VIRTUAL 4")] - public const int LOGON32_PROVIDER_VIRTUAL = 4; - [NativeTypeName("#define LogonUser LogonUserW")] public static delegate* LogonUser => &LogonUserW; @@ -3251,18 +2299,6 @@ public static unsafe partial class Windows [NativeTypeName("#define VerifyVersionInfo VerifyVersionInfoW")] public static delegate* VerifyVersionInfo => &VerifyVersionInfoW; - [NativeTypeName("#define TC_NORMAL 0")] - public const int TC_NORMAL = 0; - - [NativeTypeName("#define TC_HARDERR 1")] - public const int TC_HARDERR = 1; - - [NativeTypeName("#define TC_GP_TRAP 2")] - public const int TC_GP_TRAP = 2; - - [NativeTypeName("#define TC_SIGNAL 3")] - public const int TC_SIGNAL = 3; - [NativeTypeName("#define AC_LINE_OFFLINE 0x00")] public const int AC_LINE_OFFLINE = 0x00; @@ -3275,33 +2311,6 @@ public static unsafe partial class Windows [NativeTypeName("#define AC_LINE_UNKNOWN 0xFF")] public const int AC_LINE_UNKNOWN = 0xFF; - [NativeTypeName("#define BATTERY_FLAG_HIGH 0x01")] - public const int BATTERY_FLAG_HIGH = 0x01; - - [NativeTypeName("#define BATTERY_FLAG_LOW 0x02")] - public const int BATTERY_FLAG_LOW = 0x02; - - [NativeTypeName("#define BATTERY_FLAG_CRITICAL 0x04")] - public const int BATTERY_FLAG_CRITICAL = 0x04; - - [NativeTypeName("#define BATTERY_FLAG_CHARGING 0x08")] - public const int BATTERY_FLAG_CHARGING = 0x08; - - [NativeTypeName("#define BATTERY_FLAG_NO_BATTERY 0x80")] - public const int BATTERY_FLAG_NO_BATTERY = 0x80; - - [NativeTypeName("#define BATTERY_FLAG_UNKNOWN 0xFF")] - public const int BATTERY_FLAG_UNKNOWN = 0xFF; - - [NativeTypeName("#define BATTERY_PERCENTAGE_UNKNOWN 0xFF")] - public const int BATTERY_PERCENTAGE_UNKNOWN = 0xFF; - - [NativeTypeName("#define SYSTEM_STATUS_FLAG_POWER_SAVING_ON 0x01")] - public const int SYSTEM_STATUS_FLAG_POWER_SAVING_ON = 0x01; - - [NativeTypeName("#define BATTERY_LIFE_UNKNOWN 0xFFFFFFFF")] - public const uint BATTERY_LIFE_UNKNOWN = 0xFFFFFFFF; - [NativeTypeName("#define CreateJobObject CreateJobObjectW")] public static delegate* CreateJobObject => &CreateJobObjectW; @@ -3359,21 +2368,6 @@ public static unsafe partial class Windows [NativeTypeName("#define FindActCtxSectionString FindActCtxSectionStringW")] public static delegate* FindActCtxSectionString => &FindActCtxSectionStringW; - [NativeTypeName("#define ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED 1")] - public const int ACTIVATION_CONTEXT_BASIC_INFORMATION_DEFINED = 1; - - [NativeTypeName("#define QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX (0x00000004)")] - public const int QUERY_ACTCTX_FLAG_USE_ACTIVE_ACTCTX = (0x00000004); - - [NativeTypeName("#define QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE (0x00000008)")] - public const int QUERY_ACTCTX_FLAG_ACTCTX_IS_HMODULE = (0x00000008); - - [NativeTypeName("#define QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS (0x00000010)")] - public const int QUERY_ACTCTX_FLAG_ACTCTX_IS_ADDRESS = (0x00000010); - - [NativeTypeName("#define QUERY_ACTCTX_FLAG_NO_ADDREF (0x80000000)")] - public const uint QUERY_ACTCTX_FLAG_NO_ADDREF = (0x80000000); - [NativeTypeName("#define RESTART_MAX_CMD_LINE 1024")] public const int RESTART_MAX_CMD_LINE = 1024; @@ -3404,39 +2398,6 @@ public static unsafe partial class Windows [NativeTypeName("#define REMOTE_PROTOCOL_INFO_FLAG_PERSISTENT_HANDLE 0x00000004")] public const int REMOTE_PROTOCOL_INFO_FLAG_PERSISTENT_HANDLE = 0x00000004; - [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_TIMEWARP 0x00000002")] - public const int RPI_FLAG_SMB2_SHARECAP_TIMEWARP = 0x00000002; - - [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_DFS 0x00000008")] - public const int RPI_FLAG_SMB2_SHARECAP_DFS = 0x00000008; - - [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_CONTINUOUS_AVAILABILITY 0x00000010")] - public const int RPI_FLAG_SMB2_SHARECAP_CONTINUOUS_AVAILABILITY = 0x00000010; - - [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_SCALEOUT 0x00000020")] - public const int RPI_FLAG_SMB2_SHARECAP_SCALEOUT = 0x00000020; - - [NativeTypeName("#define RPI_FLAG_SMB2_SHARECAP_CLUSTER 0x00000040")] - public const int RPI_FLAG_SMB2_SHARECAP_CLUSTER = 0x00000040; - - [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_DFS 0x00000001")] - public const int RPI_SMB2_FLAG_SERVERCAP_DFS = 0x00000001; - - [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_LEASING 0x00000002")] - public const int RPI_SMB2_FLAG_SERVERCAP_LEASING = 0x00000002; - - [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_LARGEMTU 0x00000004")] - public const int RPI_SMB2_FLAG_SERVERCAP_LARGEMTU = 0x00000004; - - [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_MULTICHANNEL 0x00000008")] - public const int RPI_SMB2_FLAG_SERVERCAP_MULTICHANNEL = 0x00000008; - - [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_PERSISTENT_HANDLES 0x00000010")] - public const int RPI_SMB2_FLAG_SERVERCAP_PERSISTENT_HANDLES = 0x00000010; - - [NativeTypeName("#define RPI_SMB2_FLAG_SERVERCAP_DIRECTORY_LEASING 0x00000020")] - public const int RPI_SMB2_FLAG_SERVERCAP_DIRECTORY_LEASING = 0x00000020; - [NativeTypeName("#define SYMBOLIC_LINK_FLAG_DIRECTORY (0x1)")] public const int SYMBOLIC_LINK_FLAG_DIRECTORY = (0x1); diff --git a/sources/Interop/Windows/Windows/um/WinTrust/CPD.cs b/sources/Interop/Windows/Windows/um/WinTrust/CPD.cs new file mode 100644 index 0000000000..bb4f549b7c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinTrust/CPD.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CPD + { + [NativeTypeName("#define CPD_CHOICE_SIP 1")] + public const int CPD_CHOICE_SIP = 1; + + [NativeTypeName("#define CPD_USE_NT5_CHAIN_FLAG 0x80000000")] + public const uint CPD_USE_NT5_CHAIN_FLAG = 0x80000000; + + [NativeTypeName("#define CPD_REVOCATION_CHECK_NONE 0x00010000")] + public const int CPD_REVOCATION_CHECK_NONE = 0x00010000; + + [NativeTypeName("#define CPD_REVOCATION_CHECK_END_CERT 0x00020000")] + public const int CPD_REVOCATION_CHECK_END_CERT = 0x00020000; + + [NativeTypeName("#define CPD_REVOCATION_CHECK_CHAIN 0x00040000")] + public const int CPD_REVOCATION_CHECK_CHAIN = 0x00040000; + + [NativeTypeName("#define CPD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT 0x00080000")] + public const int CPD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x00080000; + + [NativeTypeName("#define CPD_RETURN_LOWER_QUALITY_CHAINS 0x00100000")] + public const int CPD_RETURN_LOWER_QUALITY_CHAINS = 0x00100000; + + [NativeTypeName("#define CPD_UISTATE_MODE_PROMPT 0x00000000")] + public const int CPD_UISTATE_MODE_PROMPT = 0x00000000; + + [NativeTypeName("#define CPD_UISTATE_MODE_BLOCK 0x00000001")] + public const int CPD_UISTATE_MODE_BLOCK = 0x00000001; + + [NativeTypeName("#define CPD_UISTATE_MODE_ALLOW 0x00000002")] + public const int CPD_UISTATE_MODE_ALLOW = 0x00000002; + + [NativeTypeName("#define CPD_UISTATE_MODE_MASK 0x00000003")] + public const int CPD_UISTATE_MODE_MASK = 0x00000003; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinTrust/SPC.cs b/sources/Interop/Windows/Windows/um/WinTrust/SPC.cs new file mode 100644 index 0000000000..3d44d7a3f2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinTrust/SPC.cs @@ -0,0 +1,132 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class SPC + { + [NativeTypeName("#define SPC_COMMON_NAME_OBJID szOID_COMMON_NAME")] + public static ReadOnlySpan SPC_COMMON_NAME_OBJID => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; + + [NativeTypeName("#define SPC_TIME_STAMP_REQUEST_OBJID \"1.3.6.1.4.1.311.3.2.1\"")] + public static ReadOnlySpan SPC_TIME_STAMP_REQUEST_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; + + [NativeTypeName("#define SPC_INDIRECT_DATA_OBJID \"1.3.6.1.4.1.311.2.1.4\"")] + public static ReadOnlySpan SPC_INDIRECT_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; + + [NativeTypeName("#define SPC_SP_AGENCY_INFO_OBJID \"1.3.6.1.4.1.311.2.1.10\"")] + public static ReadOnlySpan SPC_SP_AGENCY_INFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x00 }; + + [NativeTypeName("#define SPC_STATEMENT_TYPE_OBJID \"1.3.6.1.4.1.311.2.1.11\"")] + public static ReadOnlySpan SPC_STATEMENT_TYPE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x00 }; + + [NativeTypeName("#define SPC_SP_OPUS_INFO_OBJID \"1.3.6.1.4.1.311.2.1.12\"")] + public static ReadOnlySpan SPC_SP_OPUS_INFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; + + [NativeTypeName("#define SPC_CERT_EXTENSIONS_OBJID \"1.3.6.1.4.1.311.2.1.14\"")] + public static ReadOnlySpan SPC_CERT_EXTENSIONS_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x34, 0x00 }; + + [NativeTypeName("#define SPC_PE_IMAGE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.15\"")] + public static ReadOnlySpan SPC_PE_IMAGE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x35, 0x00 }; + + [NativeTypeName("#define SPC_RAW_FILE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.18\"")] + public static ReadOnlySpan SPC_RAW_FILE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x38, 0x00 }; + + [NativeTypeName("#define SPC_STRUCTURED_STORAGE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.19\"")] + public static ReadOnlySpan SPC_STRUCTURED_STORAGE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x39, 0x00 }; + + [NativeTypeName("#define SPC_JAVA_CLASS_DATA_OBJID \"1.3.6.1.4.1.311.2.1.20\"")] + public static ReadOnlySpan SPC_JAVA_CLASS_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x30, 0x00 }; + + [NativeTypeName("#define SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID \"1.3.6.1.4.1.311.2.1.21\"")] + public static ReadOnlySpan SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x31, 0x00 }; + + [NativeTypeName("#define SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID \"1.3.6.1.4.1.311.2.1.22\"")] + public static ReadOnlySpan SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x32, 0x00 }; + + [NativeTypeName("#define SPC_CAB_DATA_OBJID \"1.3.6.1.4.1.311.2.1.25\"")] + public static ReadOnlySpan SPC_CAB_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; + + [NativeTypeName("#define SPC_GLUE_RDN_OBJID \"1.3.6.1.4.1.311.2.1.25\"")] + public static ReadOnlySpan SPC_GLUE_RDN_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; + + [NativeTypeName("#define SPC_MINIMAL_CRITERIA_OBJID \"1.3.6.1.4.1.311.2.1.26\"")] + public static ReadOnlySpan SPC_MINIMAL_CRITERIA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x36, 0x00 }; + + [NativeTypeName("#define SPC_FINANCIAL_CRITERIA_OBJID \"1.3.6.1.4.1.311.2.1.27\"")] + public static ReadOnlySpan SPC_FINANCIAL_CRITERIA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x37, 0x00 }; + + [NativeTypeName("#define SPC_LINK_OBJID \"1.3.6.1.4.1.311.2.1.28\"")] + public static ReadOnlySpan SPC_LINK_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x38, 0x00 }; + + [NativeTypeName("#define SPC_SIGINFO_OBJID \"1.3.6.1.4.1.311.2.1.30\"")] + public static ReadOnlySpan SPC_SIGINFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x33, 0x30, 0x00 }; + + [NativeTypeName("#define SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID \"1.3.6.1.4.1.311.2.3.1\"")] + public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; + + [NativeTypeName("#define SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID \"1.3.6.1.4.1.311.2.3.2\"")] + public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; + + [NativeTypeName("#define SPC_RELAXED_PE_MARKER_CHECK_OBJID \"1.3.6.1.4.1.311.2.6.1\"")] + public static ReadOnlySpan SPC_RELAXED_PE_MARKER_CHECK_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x36, 0x2E, 0x31, 0x00 }; + + [NativeTypeName("#define SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID \"1.3.6.1.4.1.311.2.6.2\"")] + public static ReadOnlySpan SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x36, 0x2E, 0x32, 0x00 }; + + [NativeTypeName("#define SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID \"1.3.6.1.4.1.311.10.41.1\"")] + public static ReadOnlySpan SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x34, 0x31, 0x2E, 0x31, 0x00 }; + + [NativeTypeName("#define SPC_NATURAL_AUTH_PLUGIN_OBJID \"1.3.6.1.4.1.311.96.1.1\"")] + public static ReadOnlySpan SPC_NATURAL_AUTH_PLUGIN_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x39, 0x36, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; + + [NativeTypeName("#define SPC_SP_AGENCY_INFO_STRUCT ((LPCSTR) 2000)")] + public static sbyte* SPC_SP_AGENCY_INFO_STRUCT => ((sbyte*)(2000)); + + [NativeTypeName("#define SPC_MINIMAL_CRITERIA_STRUCT ((LPCSTR) 2001)")] + public static sbyte* SPC_MINIMAL_CRITERIA_STRUCT => ((sbyte*)(2001)); + + [NativeTypeName("#define SPC_FINANCIAL_CRITERIA_STRUCT ((LPCSTR) 2002)")] + public static sbyte* SPC_FINANCIAL_CRITERIA_STRUCT => ((sbyte*)(2002)); + + [NativeTypeName("#define SPC_INDIRECT_DATA_CONTENT_STRUCT ((LPCSTR) 2003)")] + public static sbyte* SPC_INDIRECT_DATA_CONTENT_STRUCT => ((sbyte*)(2003)); + + [NativeTypeName("#define SPC_PE_IMAGE_DATA_STRUCT ((LPCSTR) 2004)")] + public static sbyte* SPC_PE_IMAGE_DATA_STRUCT => ((sbyte*)(2004)); + + [NativeTypeName("#define SPC_LINK_STRUCT ((LPCSTR) 2005)")] + public static sbyte* SPC_LINK_STRUCT => ((sbyte*)(2005)); + + [NativeTypeName("#define SPC_STATEMENT_TYPE_STRUCT ((LPCSTR) 2006)")] + public static sbyte* SPC_STATEMENT_TYPE_STRUCT => ((sbyte*)(2006)); + + [NativeTypeName("#define SPC_SP_OPUS_INFO_STRUCT ((LPCSTR) 2007)")] + public static sbyte* SPC_SP_OPUS_INFO_STRUCT => ((sbyte*)(2007)); + + [NativeTypeName("#define SPC_CAB_DATA_STRUCT ((LPCSTR) 2008)")] + public static sbyte* SPC_CAB_DATA_STRUCT => ((sbyte*)(2008)); + + [NativeTypeName("#define SPC_JAVA_CLASS_DATA_STRUCT ((LPCSTR) 2009)")] + public static sbyte* SPC_JAVA_CLASS_DATA_STRUCT => ((sbyte*)(2009)); + + [NativeTypeName("#define SPC_SIGINFO_STRUCT ((LPCSTR) 2130)")] + public static sbyte* SPC_SIGINFO_STRUCT => ((sbyte*)(2130)); + + [NativeTypeName("#define SPC_UUID_LENGTH 16")] + public const int SPC_UUID_LENGTH = 16; + + [NativeTypeName("#define SPC_URL_LINK_CHOICE 1")] + public const int SPC_URL_LINK_CHOICE = 1; + + [NativeTypeName("#define SPC_MONIKER_LINK_CHOICE 2")] + public const int SPC_MONIKER_LINK_CHOICE = 2; + + [NativeTypeName("#define SPC_FILE_LINK_CHOICE 3")] + public const int SPC_FILE_LINK_CHOICE = 3; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinTrust/TRUSTERROR.cs b/sources/Interop/Windows/Windows/um/WinTrust/TRUSTERROR.cs new file mode 100644 index 0000000000..4e36a319b8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinTrust/TRUSTERROR.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TRUSTERROR + { + [NativeTypeName("#define TRUSTERROR_STEP_WVTPARAMS 0")] + public const int TRUSTERROR_STEP_WVTPARAMS = 0; + + [NativeTypeName("#define TRUSTERROR_STEP_FILEIO 2")] + public const int TRUSTERROR_STEP_FILEIO = 2; + + [NativeTypeName("#define TRUSTERROR_STEP_SIP 3")] + public const int TRUSTERROR_STEP_SIP = 3; + + [NativeTypeName("#define TRUSTERROR_STEP_SIPSUBJINFO 5")] + public const int TRUSTERROR_STEP_SIPSUBJINFO = 5; + + [NativeTypeName("#define TRUSTERROR_STEP_CATALOGFILE 6")] + public const int TRUSTERROR_STEP_CATALOGFILE = 6; + + [NativeTypeName("#define TRUSTERROR_STEP_CERTSTORE 7")] + public const int TRUSTERROR_STEP_CERTSTORE = 7; + + [NativeTypeName("#define TRUSTERROR_STEP_MESSAGE 8")] + public const int TRUSTERROR_STEP_MESSAGE = 8; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_SIGNERCOUNT 9")] + public const int TRUSTERROR_STEP_MSG_SIGNERCOUNT = 9; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_INNERCNTTYPE 10")] + public const int TRUSTERROR_STEP_MSG_INNERCNTTYPE = 10; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_INNERCNT 11")] + public const int TRUSTERROR_STEP_MSG_INNERCNT = 11; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_STORE 12")] + public const int TRUSTERROR_STEP_MSG_STORE = 12; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_SIGNERINFO 13")] + public const int TRUSTERROR_STEP_MSG_SIGNERINFO = 13; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_SIGNERCERT 14")] + public const int TRUSTERROR_STEP_MSG_SIGNERCERT = 14; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_CERTCHAIN 15")] + public const int TRUSTERROR_STEP_MSG_CERTCHAIN = 15; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_COUNTERSIGINFO 16")] + public const int TRUSTERROR_STEP_MSG_COUNTERSIGINFO = 16; + + [NativeTypeName("#define TRUSTERROR_STEP_MSG_COUNTERSIGCERT 17")] + public const int TRUSTERROR_STEP_MSG_COUNTERSIGCERT = 17; + + [NativeTypeName("#define TRUSTERROR_STEP_VERIFY_MSGHASH 18")] + public const int TRUSTERROR_STEP_VERIFY_MSGHASH = 18; + + [NativeTypeName("#define TRUSTERROR_STEP_VERIFY_MSGINDIRECTDATA 19")] + public const int TRUSTERROR_STEP_VERIFY_MSGINDIRECTDATA = 19; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_WVTINIT 30")] + public const int TRUSTERROR_STEP_FINAL_WVTINIT = 30; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_INITPROV 31")] + public const int TRUSTERROR_STEP_FINAL_INITPROV = 31; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_OBJPROV 32")] + public const int TRUSTERROR_STEP_FINAL_OBJPROV = 32; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_SIGPROV 33")] + public const int TRUSTERROR_STEP_FINAL_SIGPROV = 33; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_CERTPROV 34")] + public const int TRUSTERROR_STEP_FINAL_CERTPROV = 34; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_CERTCHKPROV 35")] + public const int TRUSTERROR_STEP_FINAL_CERTCHKPROV = 35; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_POLICYPROV 36")] + public const int TRUSTERROR_STEP_FINAL_POLICYPROV = 36; + + [NativeTypeName("#define TRUSTERROR_STEP_FINAL_UIPROV 37")] + public const int TRUSTERROR_STEP_FINAL_UIPROV = 37; + + [NativeTypeName("#define TRUSTERROR_MAX_STEPS 38")] + public const int TRUSTERROR_MAX_STEPS = 38; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinTrust/WSS.cs b/sources/Interop/Windows/Windows/um/WinTrust/WSS.cs new file mode 100644 index 0000000000..3f489dc214 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinTrust/WSS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WSS + { + [NativeTypeName("#define WSS_VERIFY_SPECIFIC 0x00000001")] + public const int WSS_VERIFY_SPECIFIC = 0x00000001; + + [NativeTypeName("#define WSS_GET_SECONDARY_SIG_COUNT 0x00000002")] + public const int WSS_GET_SECONDARY_SIG_COUNT = 0x00000002; + + [NativeTypeName("#define WSS_VERIFY_SEALING 0x00000004")] + public const int WSS_VERIFY_SEALING = 0x00000004; + + [NativeTypeName("#define WSS_INPUT_FLAG_MASK 0x00000007")] + public const int WSS_INPUT_FLAG_MASK = 0x00000007; + + [NativeTypeName("#define WSS_OUT_SEALING_STATUS_VERIFIED 0x80000000")] + public const uint WSS_OUT_SEALING_STATUS_VERIFIED = 0x80000000; + + [NativeTypeName("#define WSS_OUT_HAS_SEALING_INTENT 0x40000000")] + public const int WSS_OUT_HAS_SEALING_INTENT = 0x40000000; + + [NativeTypeName("#define WSS_OUT_FILE_SUPPORTS_SEAL 0x20000000")] + public const int WSS_OUT_FILE_SUPPORTS_SEAL = 0x20000000; + + [NativeTypeName("#define WSS_OUTPUT_FLAG_MASK 0xe0000000")] + public const uint WSS_OUTPUT_FLAG_MASK = 0xe0000000; + + [NativeTypeName("#define WSS_OBJTRUST_SUPPORT 0x00000001")] + public const int WSS_OBJTRUST_SUPPORT = 0x00000001; + + [NativeTypeName("#define WSS_SIGTRUST_SUPPORT 0x00000002")] + public const int WSS_SIGTRUST_SUPPORT = 0x00000002; + + [NativeTypeName("#define WSS_CERTTRUST_SUPPORT 0x00000004")] + public const int WSS_CERTTRUST_SUPPORT = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinTrust/WT.cs b/sources/Interop/Windows/Windows/um/WinTrust/WT.cs new file mode 100644 index 0000000000..1657516b41 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinTrust/WT.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WT + { + [NativeTypeName("#define WT_CURRENT_VERSION 0x00000200")] + public const int WT_CURRENT_VERSION = 0x00000200; + + [NativeTypeName("#define WT_PROVIDER_DLL_NAME L\"WINTRUST.DLL\"")] + public const string WT_PROVIDER_DLL_NAME = "WINTRUST.DLL"; + + [NativeTypeName("#define WT_PROVIDER_CERTTRUST_FUNCTION L\"WintrustCertificateTrust\"")] + public const string WT_PROVIDER_CERTTRUST_FUNCTION = "WintrustCertificateTrust"; + + [NativeTypeName("#define WT_ADD_ACTION_ID_RET_RESULT_FLAG 0x1")] + public const int WT_ADD_ACTION_ID_RET_RESULT_FLAG = 0x1; + + [NativeTypeName("#define WT_TRUSTDBDIALOG_NO_UI_FLAG 0x00000001")] + public const int WT_TRUSTDBDIALOG_NO_UI_FLAG = 0x00000001; + + [NativeTypeName("#define WT_TRUSTDBDIALOG_ONLY_PUB_TAB_FLAG 0x00000002")] + public const int WT_TRUSTDBDIALOG_ONLY_PUB_TAB_FLAG = 0x00000002; + + [NativeTypeName("#define WT_TRUSTDBDIALOG_WRITE_LEGACY_REG_FLAG 0x00000100")] + public const int WT_TRUSTDBDIALOG_WRITE_LEGACY_REG_FLAG = 0x00000100; + + [NativeTypeName("#define WT_TRUSTDBDIALOG_WRITE_IEAK_STORE_FLAG 0x00000200")] + public const int WT_TRUSTDBDIALOG_WRITE_IEAK_STORE_FLAG = 0x00000200; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinTrust/WTD.cs b/sources/Interop/Windows/Windows/um/WinTrust/WTD.cs new file mode 100644 index 0000000000..e84438e78f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinTrust/WTD.cs @@ -0,0 +1,112 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WTD + { + [NativeTypeName("#define WTD_UI_ALL 1")] + public const int WTD_UI_ALL = 1; + + [NativeTypeName("#define WTD_UI_NONE 2")] + public const int WTD_UI_NONE = 2; + + [NativeTypeName("#define WTD_UI_NOBAD 3")] + public const int WTD_UI_NOBAD = 3; + + [NativeTypeName("#define WTD_UI_NOGOOD 4")] + public const int WTD_UI_NOGOOD = 4; + + [NativeTypeName("#define WTD_REVOKE_NONE 0x00000000")] + public const int WTD_REVOKE_NONE = 0x00000000; + + [NativeTypeName("#define WTD_REVOKE_WHOLECHAIN 0x00000001")] + public const int WTD_REVOKE_WHOLECHAIN = 0x00000001; + + [NativeTypeName("#define WTD_CHOICE_FILE 1")] + public const int WTD_CHOICE_FILE = 1; + + [NativeTypeName("#define WTD_CHOICE_CATALOG 2")] + public const int WTD_CHOICE_CATALOG = 2; + + [NativeTypeName("#define WTD_CHOICE_BLOB 3")] + public const int WTD_CHOICE_BLOB = 3; + + [NativeTypeName("#define WTD_CHOICE_SIGNER 4")] + public const int WTD_CHOICE_SIGNER = 4; + + [NativeTypeName("#define WTD_CHOICE_CERT 5")] + public const int WTD_CHOICE_CERT = 5; + + [NativeTypeName("#define WTD_STATEACTION_IGNORE 0x00000000")] + public const int WTD_STATEACTION_IGNORE = 0x00000000; + + [NativeTypeName("#define WTD_STATEACTION_VERIFY 0x00000001")] + public const int WTD_STATEACTION_VERIFY = 0x00000001; + + [NativeTypeName("#define WTD_STATEACTION_CLOSE 0x00000002")] + public const int WTD_STATEACTION_CLOSE = 0x00000002; + + [NativeTypeName("#define WTD_STATEACTION_AUTO_CACHE 0x00000003")] + public const int WTD_STATEACTION_AUTO_CACHE = 0x00000003; + + [NativeTypeName("#define WTD_STATEACTION_AUTO_CACHE_FLUSH 0x00000004")] + public const int WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004; + + [NativeTypeName("#define WTD_PROV_FLAGS_MASK 0x0000FFFF")] + public const int WTD_PROV_FLAGS_MASK = 0x0000FFFF; + + [NativeTypeName("#define WTD_USE_IE4_TRUST_FLAG 0x00000001")] + public const int WTD_USE_IE4_TRUST_FLAG = 0x00000001; + + [NativeTypeName("#define WTD_NO_IE4_CHAIN_FLAG 0x00000002")] + public const int WTD_NO_IE4_CHAIN_FLAG = 0x00000002; + + [NativeTypeName("#define WTD_NO_POLICY_USAGE_FLAG 0x00000004")] + public const int WTD_NO_POLICY_USAGE_FLAG = 0x00000004; + + [NativeTypeName("#define WTD_REVOCATION_CHECK_NONE 0x00000010")] + public const int WTD_REVOCATION_CHECK_NONE = 0x00000010; + + [NativeTypeName("#define WTD_REVOCATION_CHECK_END_CERT 0x00000020")] + public const int WTD_REVOCATION_CHECK_END_CERT = 0x00000020; + + [NativeTypeName("#define WTD_REVOCATION_CHECK_CHAIN 0x00000040")] + public const int WTD_REVOCATION_CHECK_CHAIN = 0x00000040; + + [NativeTypeName("#define WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT 0x00000080")] + public const int WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x00000080; + + [NativeTypeName("#define WTD_SAFER_FLAG 0x00000100")] + public const int WTD_SAFER_FLAG = 0x00000100; + + [NativeTypeName("#define WTD_HASH_ONLY_FLAG 0x00000200")] + public const int WTD_HASH_ONLY_FLAG = 0x00000200; + + [NativeTypeName("#define WTD_USE_DEFAULT_OSVER_CHECK 0x00000400")] + public const int WTD_USE_DEFAULT_OSVER_CHECK = 0x00000400; + + [NativeTypeName("#define WTD_LIFETIME_SIGNING_FLAG 0x00000800")] + public const int WTD_LIFETIME_SIGNING_FLAG = 0x00000800; + + [NativeTypeName("#define WTD_CACHE_ONLY_URL_RETRIEVAL 0x00001000")] + public const int WTD_CACHE_ONLY_URL_RETRIEVAL = 0x00001000; + + [NativeTypeName("#define WTD_DISABLE_MD2_MD4 0x00002000")] + public const int WTD_DISABLE_MD2_MD4 = 0x00002000; + + [NativeTypeName("#define WTD_MOTW 0x00004000")] + public const int WTD_MOTW = 0x00004000; + + [NativeTypeName("#define WTD_CODE_INTEGRITY_DRIVER_MODE 0x00008000")] + public const int WTD_CODE_INTEGRITY_DRIVER_MODE = 0x00008000; + + [NativeTypeName("#define WTD_UICONTEXT_EXECUTE 0")] + public const int WTD_UICONTEXT_EXECUTE = 0; + + [NativeTypeName("#define WTD_UICONTEXT_INSTALL 1")] + public const int WTD_UICONTEXT_INSTALL = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinTrust/WTPF.cs b/sources/Interop/Windows/Windows/um/WinTrust/WTPF.cs new file mode 100644 index 0000000000..31bbcaae9e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinTrust/WTPF.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinTrust.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WTPF + { + [NativeTypeName("#define WTPF_TRUSTTEST 0x00000020")] + public const int WTPF_TRUSTTEST = 0x00000020; + + [NativeTypeName("#define WTPF_TESTCANBEVALID 0x00000080")] + public const int WTPF_TESTCANBEVALID = 0x00000080; + + [NativeTypeName("#define WTPF_IGNOREEXPIRATION 0x00000100")] + public const int WTPF_IGNOREEXPIRATION = 0x00000100; + + [NativeTypeName("#define WTPF_IGNOREREVOKATION 0x00000200")] + public const int WTPF_IGNOREREVOKATION = 0x00000200; + + [NativeTypeName("#define WTPF_OFFLINEOK_IND 0x00000400")] + public const int WTPF_OFFLINEOK_IND = 0x00000400; + + [NativeTypeName("#define WTPF_OFFLINEOK_COM 0x00000800")] + public const int WTPF_OFFLINEOK_COM = 0x00000800; + + [NativeTypeName("#define WTPF_OFFLINEOKNBU_IND 0x00001000")] + public const int WTPF_OFFLINEOKNBU_IND = 0x00001000; + + [NativeTypeName("#define WTPF_OFFLINEOKNBU_COM 0x00002000")] + public const int WTPF_OFFLINEOKNBU_COM = 0x00002000; + + [NativeTypeName("#define WTPF_VERIFY_V1_OFF 0x00010000")] + public const int WTPF_VERIFY_V1_OFF = 0x00010000; + + [NativeTypeName("#define WTPF_IGNOREREVOCATIONONTS 0x00020000")] + public const int WTPF_IGNOREREVOCATIONONTS = 0x00020000; + + [NativeTypeName("#define WTPF_ALLOWONLYPERTRUST 0x00040000")] + public const int WTPF_ALLOWONLYPERTRUST = 0x00040000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinTrust/Windows.cs b/sources/Interop/Windows/Windows/um/WinTrust/Windows.cs index 0e9ad1d3f8..ac2dd9ab70 100644 --- a/sources/Interop/Windows/Windows/um/WinTrust/Windows.cs +++ b/sources/Interop/Windows/Windows/um/WinTrust/Windows.cs @@ -80,132 +80,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WINTRUST_MAX_HASH_BYTES_TO_MAP_DEFAULT 0x00100000")] public const int WINTRUST_MAX_HASH_BYTES_TO_MAP_DEFAULT = 0x00100000; - [NativeTypeName("#define WTD_UI_ALL 1")] - public const int WTD_UI_ALL = 1; - - [NativeTypeName("#define WTD_UI_NONE 2")] - public const int WTD_UI_NONE = 2; - - [NativeTypeName("#define WTD_UI_NOBAD 3")] - public const int WTD_UI_NOBAD = 3; - - [NativeTypeName("#define WTD_UI_NOGOOD 4")] - public const int WTD_UI_NOGOOD = 4; - - [NativeTypeName("#define WTD_REVOKE_NONE 0x00000000")] - public const int WTD_REVOKE_NONE = 0x00000000; - - [NativeTypeName("#define WTD_REVOKE_WHOLECHAIN 0x00000001")] - public const int WTD_REVOKE_WHOLECHAIN = 0x00000001; - - [NativeTypeName("#define WTD_CHOICE_FILE 1")] - public const int WTD_CHOICE_FILE = 1; - - [NativeTypeName("#define WTD_CHOICE_CATALOG 2")] - public const int WTD_CHOICE_CATALOG = 2; - - [NativeTypeName("#define WTD_CHOICE_BLOB 3")] - public const int WTD_CHOICE_BLOB = 3; - - [NativeTypeName("#define WTD_CHOICE_SIGNER 4")] - public const int WTD_CHOICE_SIGNER = 4; - - [NativeTypeName("#define WTD_CHOICE_CERT 5")] - public const int WTD_CHOICE_CERT = 5; - - [NativeTypeName("#define WTD_STATEACTION_IGNORE 0x00000000")] - public const int WTD_STATEACTION_IGNORE = 0x00000000; - - [NativeTypeName("#define WTD_STATEACTION_VERIFY 0x00000001")] - public const int WTD_STATEACTION_VERIFY = 0x00000001; - - [NativeTypeName("#define WTD_STATEACTION_CLOSE 0x00000002")] - public const int WTD_STATEACTION_CLOSE = 0x00000002; - - [NativeTypeName("#define WTD_STATEACTION_AUTO_CACHE 0x00000003")] - public const int WTD_STATEACTION_AUTO_CACHE = 0x00000003; - - [NativeTypeName("#define WTD_STATEACTION_AUTO_CACHE_FLUSH 0x00000004")] - public const int WTD_STATEACTION_AUTO_CACHE_FLUSH = 0x00000004; - - [NativeTypeName("#define WTD_PROV_FLAGS_MASK 0x0000FFFF")] - public const int WTD_PROV_FLAGS_MASK = 0x0000FFFF; - - [NativeTypeName("#define WTD_USE_IE4_TRUST_FLAG 0x00000001")] - public const int WTD_USE_IE4_TRUST_FLAG = 0x00000001; - - [NativeTypeName("#define WTD_NO_IE4_CHAIN_FLAG 0x00000002")] - public const int WTD_NO_IE4_CHAIN_FLAG = 0x00000002; - - [NativeTypeName("#define WTD_NO_POLICY_USAGE_FLAG 0x00000004")] - public const int WTD_NO_POLICY_USAGE_FLAG = 0x00000004; - - [NativeTypeName("#define WTD_REVOCATION_CHECK_NONE 0x00000010")] - public const int WTD_REVOCATION_CHECK_NONE = 0x00000010; - - [NativeTypeName("#define WTD_REVOCATION_CHECK_END_CERT 0x00000020")] - public const int WTD_REVOCATION_CHECK_END_CERT = 0x00000020; - - [NativeTypeName("#define WTD_REVOCATION_CHECK_CHAIN 0x00000040")] - public const int WTD_REVOCATION_CHECK_CHAIN = 0x00000040; - - [NativeTypeName("#define WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT 0x00000080")] - public const int WTD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x00000080; - - [NativeTypeName("#define WTD_SAFER_FLAG 0x00000100")] - public const int WTD_SAFER_FLAG = 0x00000100; - - [NativeTypeName("#define WTD_HASH_ONLY_FLAG 0x00000200")] - public const int WTD_HASH_ONLY_FLAG = 0x00000200; - - [NativeTypeName("#define WTD_USE_DEFAULT_OSVER_CHECK 0x00000400")] - public const int WTD_USE_DEFAULT_OSVER_CHECK = 0x00000400; - - [NativeTypeName("#define WTD_LIFETIME_SIGNING_FLAG 0x00000800")] - public const int WTD_LIFETIME_SIGNING_FLAG = 0x00000800; - - [NativeTypeName("#define WTD_CACHE_ONLY_URL_RETRIEVAL 0x00001000")] - public const int WTD_CACHE_ONLY_URL_RETRIEVAL = 0x00001000; - - [NativeTypeName("#define WTD_DISABLE_MD2_MD4 0x00002000")] - public const int WTD_DISABLE_MD2_MD4 = 0x00002000; - - [NativeTypeName("#define WTD_MOTW 0x00004000")] - public const int WTD_MOTW = 0x00004000; - - [NativeTypeName("#define WTD_CODE_INTEGRITY_DRIVER_MODE 0x00008000")] - public const int WTD_CODE_INTEGRITY_DRIVER_MODE = 0x00008000; - - [NativeTypeName("#define WTD_UICONTEXT_EXECUTE 0")] - public const int WTD_UICONTEXT_EXECUTE = 0; - - [NativeTypeName("#define WTD_UICONTEXT_INSTALL 1")] - public const int WTD_UICONTEXT_INSTALL = 1; - - [NativeTypeName("#define WSS_VERIFY_SPECIFIC 0x00000001")] - public const int WSS_VERIFY_SPECIFIC = 0x00000001; - - [NativeTypeName("#define WSS_GET_SECONDARY_SIG_COUNT 0x00000002")] - public const int WSS_GET_SECONDARY_SIG_COUNT = 0x00000002; - - [NativeTypeName("#define WSS_VERIFY_SEALING 0x00000004")] - public const int WSS_VERIFY_SEALING = 0x00000004; - - [NativeTypeName("#define WSS_INPUT_FLAG_MASK 0x00000007")] - public const int WSS_INPUT_FLAG_MASK = 0x00000007; - - [NativeTypeName("#define WSS_OUT_SEALING_STATUS_VERIFIED 0x80000000")] - public const uint WSS_OUT_SEALING_STATUS_VERIFIED = 0x80000000; - - [NativeTypeName("#define WSS_OUT_HAS_SEALING_INTENT 0x40000000")] - public const int WSS_OUT_HAS_SEALING_INTENT = 0x40000000; - - [NativeTypeName("#define WSS_OUT_FILE_SUPPORTS_SEAL 0x20000000")] - public const int WSS_OUT_FILE_SUPPORTS_SEAL = 0x20000000; - - [NativeTypeName("#define WSS_OUTPUT_FLAG_MASK 0xe0000000")] - public const uint WSS_OUTPUT_FLAG_MASK = 0xe0000000; - [NativeTypeName("#define WTCI_DONT_OPEN_STORES 0x00000001")] public const int WTCI_DONT_OPEN_STORES = 0x00000001; @@ -215,177 +89,9 @@ public static unsafe partial class Windows [NativeTypeName("#define WTCI_USE_LOCAL_MACHINE 0x00000004")] public const int WTCI_USE_LOCAL_MACHINE = 0x00000004; - [NativeTypeName("#define WTPF_TRUSTTEST 0x00000020")] - public const int WTPF_TRUSTTEST = 0x00000020; - - [NativeTypeName("#define WTPF_TESTCANBEVALID 0x00000080")] - public const int WTPF_TESTCANBEVALID = 0x00000080; - - [NativeTypeName("#define WTPF_IGNOREEXPIRATION 0x00000100")] - public const int WTPF_IGNOREEXPIRATION = 0x00000100; - - [NativeTypeName("#define WTPF_IGNOREREVOKATION 0x00000200")] - public const int WTPF_IGNOREREVOKATION = 0x00000200; - - [NativeTypeName("#define WTPF_OFFLINEOK_IND 0x00000400")] - public const int WTPF_OFFLINEOK_IND = 0x00000400; - - [NativeTypeName("#define WTPF_OFFLINEOK_COM 0x00000800")] - public const int WTPF_OFFLINEOK_COM = 0x00000800; - - [NativeTypeName("#define WTPF_OFFLINEOKNBU_IND 0x00001000")] - public const int WTPF_OFFLINEOKNBU_IND = 0x00001000; - - [NativeTypeName("#define WTPF_OFFLINEOKNBU_COM 0x00002000")] - public const int WTPF_OFFLINEOKNBU_COM = 0x00002000; - - [NativeTypeName("#define WTPF_VERIFY_V1_OFF 0x00010000")] - public const int WTPF_VERIFY_V1_OFF = 0x00010000; - - [NativeTypeName("#define WTPF_IGNOREREVOCATIONONTS 0x00020000")] - public const int WTPF_IGNOREREVOCATIONONTS = 0x00020000; - - [NativeTypeName("#define WTPF_ALLOWONLYPERTRUST 0x00040000")] - public const int WTPF_ALLOWONLYPERTRUST = 0x00040000; - - [NativeTypeName("#define TRUSTERROR_STEP_WVTPARAMS 0")] - public const int TRUSTERROR_STEP_WVTPARAMS = 0; - - [NativeTypeName("#define TRUSTERROR_STEP_FILEIO 2")] - public const int TRUSTERROR_STEP_FILEIO = 2; - - [NativeTypeName("#define TRUSTERROR_STEP_SIP 3")] - public const int TRUSTERROR_STEP_SIP = 3; - - [NativeTypeName("#define TRUSTERROR_STEP_SIPSUBJINFO 5")] - public const int TRUSTERROR_STEP_SIPSUBJINFO = 5; - - [NativeTypeName("#define TRUSTERROR_STEP_CATALOGFILE 6")] - public const int TRUSTERROR_STEP_CATALOGFILE = 6; - - [NativeTypeName("#define TRUSTERROR_STEP_CERTSTORE 7")] - public const int TRUSTERROR_STEP_CERTSTORE = 7; - - [NativeTypeName("#define TRUSTERROR_STEP_MESSAGE 8")] - public const int TRUSTERROR_STEP_MESSAGE = 8; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_SIGNERCOUNT 9")] - public const int TRUSTERROR_STEP_MSG_SIGNERCOUNT = 9; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_INNERCNTTYPE 10")] - public const int TRUSTERROR_STEP_MSG_INNERCNTTYPE = 10; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_INNERCNT 11")] - public const int TRUSTERROR_STEP_MSG_INNERCNT = 11; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_STORE 12")] - public const int TRUSTERROR_STEP_MSG_STORE = 12; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_SIGNERINFO 13")] - public const int TRUSTERROR_STEP_MSG_SIGNERINFO = 13; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_SIGNERCERT 14")] - public const int TRUSTERROR_STEP_MSG_SIGNERCERT = 14; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_CERTCHAIN 15")] - public const int TRUSTERROR_STEP_MSG_CERTCHAIN = 15; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_COUNTERSIGINFO 16")] - public const int TRUSTERROR_STEP_MSG_COUNTERSIGINFO = 16; - - [NativeTypeName("#define TRUSTERROR_STEP_MSG_COUNTERSIGCERT 17")] - public const int TRUSTERROR_STEP_MSG_COUNTERSIGCERT = 17; - - [NativeTypeName("#define TRUSTERROR_STEP_VERIFY_MSGHASH 18")] - public const int TRUSTERROR_STEP_VERIFY_MSGHASH = 18; - - [NativeTypeName("#define TRUSTERROR_STEP_VERIFY_MSGINDIRECTDATA 19")] - public const int TRUSTERROR_STEP_VERIFY_MSGINDIRECTDATA = 19; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_WVTINIT 30")] - public const int TRUSTERROR_STEP_FINAL_WVTINIT = 30; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_INITPROV 31")] - public const int TRUSTERROR_STEP_FINAL_INITPROV = 31; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_OBJPROV 32")] - public const int TRUSTERROR_STEP_FINAL_OBJPROV = 32; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_SIGPROV 33")] - public const int TRUSTERROR_STEP_FINAL_SIGPROV = 33; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_CERTPROV 34")] - public const int TRUSTERROR_STEP_FINAL_CERTPROV = 34; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_CERTCHKPROV 35")] - public const int TRUSTERROR_STEP_FINAL_CERTCHKPROV = 35; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_POLICYPROV 36")] - public const int TRUSTERROR_STEP_FINAL_POLICYPROV = 36; - - [NativeTypeName("#define TRUSTERROR_STEP_FINAL_UIPROV 37")] - public const int TRUSTERROR_STEP_FINAL_UIPROV = 37; - - [NativeTypeName("#define TRUSTERROR_MAX_STEPS 38")] - public const int TRUSTERROR_MAX_STEPS = 38; - - [NativeTypeName("#define CPD_CHOICE_SIP 1")] - public const int CPD_CHOICE_SIP = 1; - - [NativeTypeName("#define CPD_USE_NT5_CHAIN_FLAG 0x80000000")] - public const uint CPD_USE_NT5_CHAIN_FLAG = 0x80000000; - - [NativeTypeName("#define CPD_REVOCATION_CHECK_NONE 0x00010000")] - public const int CPD_REVOCATION_CHECK_NONE = 0x00010000; - - [NativeTypeName("#define CPD_REVOCATION_CHECK_END_CERT 0x00020000")] - public const int CPD_REVOCATION_CHECK_END_CERT = 0x00020000; - - [NativeTypeName("#define CPD_REVOCATION_CHECK_CHAIN 0x00040000")] - public const int CPD_REVOCATION_CHECK_CHAIN = 0x00040000; - - [NativeTypeName("#define CPD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT 0x00080000")] - public const int CPD_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x00080000; - - [NativeTypeName("#define CPD_RETURN_LOWER_QUALITY_CHAINS 0x00100000")] - public const int CPD_RETURN_LOWER_QUALITY_CHAINS = 0x00100000; - - [NativeTypeName("#define CPD_UISTATE_MODE_PROMPT 0x00000000")] - public const int CPD_UISTATE_MODE_PROMPT = 0x00000000; - - [NativeTypeName("#define CPD_UISTATE_MODE_BLOCK 0x00000001")] - public const int CPD_UISTATE_MODE_BLOCK = 0x00000001; - - [NativeTypeName("#define CPD_UISTATE_MODE_ALLOW 0x00000002")] - public const int CPD_UISTATE_MODE_ALLOW = 0x00000002; - - [NativeTypeName("#define CPD_UISTATE_MODE_MASK 0x00000003")] - public const int CPD_UISTATE_MODE_MASK = 0x00000003; - - [NativeTypeName("#define WSS_OBJTRUST_SUPPORT 0x00000001")] - public const int WSS_OBJTRUST_SUPPORT = 0x00000001; - - [NativeTypeName("#define WSS_SIGTRUST_SUPPORT 0x00000002")] - public const int WSS_SIGTRUST_SUPPORT = 0x00000002; - - [NativeTypeName("#define WSS_CERTTRUST_SUPPORT 0x00000004")] - public const int WSS_CERTTRUST_SUPPORT = 0x00000004; - [NativeTypeName("#define SGNR_TYPE_TIMESTAMP 0x00000010")] public const int SGNR_TYPE_TIMESTAMP = 0x00000010; - [NativeTypeName("#define WT_CURRENT_VERSION 0x00000200")] - public const int WT_CURRENT_VERSION = 0x00000200; - - [NativeTypeName("#define WT_PROVIDER_DLL_NAME L\"WINTRUST.DLL\"")] - public const string WT_PROVIDER_DLL_NAME = "WINTRUST.DLL"; - - [NativeTypeName("#define WT_PROVIDER_CERTTRUST_FUNCTION L\"WintrustCertificateTrust\"")] - public const string WT_PROVIDER_CERTTRUST_FUNCTION = "WintrustCertificateTrust"; - - [NativeTypeName("#define WT_ADD_ACTION_ID_RET_RESULT_FLAG 0x1")] - public const int WT_ADD_ACTION_ID_RET_RESULT_FLAG = 0x1; - [NativeTypeName("#define DWACTION_ALLOCANDFILL 1")] public const int DWACTION_ALLOCANDFILL = 1; @@ -401,69 +107,6 @@ public static unsafe partial class Windows [NativeTypeName("#define szOID_TRUSTED_SERVER_AUTH_CA_LIST \"1.3.6.1.4.1.311.2.2.3\"")] public static ReadOnlySpan szOID_TRUSTED_SERVER_AUTH_CA_LIST => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; - [NativeTypeName("#define SPC_COMMON_NAME_OBJID szOID_COMMON_NAME")] - public static ReadOnlySpan SPC_COMMON_NAME_OBJID => new byte[] { 0x32, 0x2E, 0x35, 0x2E, 0x34, 0x2E, 0x33, 0x00 }; - - [NativeTypeName("#define SPC_TIME_STAMP_REQUEST_OBJID \"1.3.6.1.4.1.311.3.2.1\"")] - public static ReadOnlySpan SPC_TIME_STAMP_REQUEST_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x33, 0x2E, 0x32, 0x2E, 0x31, 0x00 }; - - [NativeTypeName("#define SPC_INDIRECT_DATA_OBJID \"1.3.6.1.4.1.311.2.1.4\"")] - public static ReadOnlySpan SPC_INDIRECT_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x34, 0x00 }; - - [NativeTypeName("#define SPC_SP_AGENCY_INFO_OBJID \"1.3.6.1.4.1.311.2.1.10\"")] - public static ReadOnlySpan SPC_SP_AGENCY_INFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x30, 0x00 }; - - [NativeTypeName("#define SPC_STATEMENT_TYPE_OBJID \"1.3.6.1.4.1.311.2.1.11\"")] - public static ReadOnlySpan SPC_STATEMENT_TYPE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x31, 0x00 }; - - [NativeTypeName("#define SPC_SP_OPUS_INFO_OBJID \"1.3.6.1.4.1.311.2.1.12\"")] - public static ReadOnlySpan SPC_SP_OPUS_INFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x32, 0x00 }; - - [NativeTypeName("#define SPC_CERT_EXTENSIONS_OBJID \"1.3.6.1.4.1.311.2.1.14\"")] - public static ReadOnlySpan SPC_CERT_EXTENSIONS_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x34, 0x00 }; - - [NativeTypeName("#define SPC_PE_IMAGE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.15\"")] - public static ReadOnlySpan SPC_PE_IMAGE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x35, 0x00 }; - - [NativeTypeName("#define SPC_RAW_FILE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.18\"")] - public static ReadOnlySpan SPC_RAW_FILE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x38, 0x00 }; - - [NativeTypeName("#define SPC_STRUCTURED_STORAGE_DATA_OBJID \"1.3.6.1.4.1.311.2.1.19\"")] - public static ReadOnlySpan SPC_STRUCTURED_STORAGE_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x31, 0x39, 0x00 }; - - [NativeTypeName("#define SPC_JAVA_CLASS_DATA_OBJID \"1.3.6.1.4.1.311.2.1.20\"")] - public static ReadOnlySpan SPC_JAVA_CLASS_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x30, 0x00 }; - - [NativeTypeName("#define SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID \"1.3.6.1.4.1.311.2.1.21\"")] - public static ReadOnlySpan SPC_INDIVIDUAL_SP_KEY_PURPOSE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x31, 0x00 }; - - [NativeTypeName("#define SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID \"1.3.6.1.4.1.311.2.1.22\"")] - public static ReadOnlySpan SPC_COMMERCIAL_SP_KEY_PURPOSE_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x32, 0x00 }; - - [NativeTypeName("#define SPC_CAB_DATA_OBJID \"1.3.6.1.4.1.311.2.1.25\"")] - public static ReadOnlySpan SPC_CAB_DATA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; - - [NativeTypeName("#define SPC_GLUE_RDN_OBJID \"1.3.6.1.4.1.311.2.1.25\"")] - public static ReadOnlySpan SPC_GLUE_RDN_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x35, 0x00 }; - - [NativeTypeName("#define SPC_MINIMAL_CRITERIA_OBJID \"1.3.6.1.4.1.311.2.1.26\"")] - public static ReadOnlySpan SPC_MINIMAL_CRITERIA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x36, 0x00 }; - - [NativeTypeName("#define SPC_FINANCIAL_CRITERIA_OBJID \"1.3.6.1.4.1.311.2.1.27\"")] - public static ReadOnlySpan SPC_FINANCIAL_CRITERIA_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x37, 0x00 }; - - [NativeTypeName("#define SPC_LINK_OBJID \"1.3.6.1.4.1.311.2.1.28\"")] - public static ReadOnlySpan SPC_LINK_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x32, 0x38, 0x00 }; - - [NativeTypeName("#define SPC_SIGINFO_OBJID \"1.3.6.1.4.1.311.2.1.30\"")] - public static ReadOnlySpan SPC_SIGINFO_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x33, 0x30, 0x00 }; - - [NativeTypeName("#define SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID \"1.3.6.1.4.1.311.2.3.1\"")] - public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V1_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x31, 0x00 }; - - [NativeTypeName("#define SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID \"1.3.6.1.4.1.311.2.3.2\"")] - public static ReadOnlySpan SPC_PE_IMAGE_PAGE_HASHES_V2_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x33, 0x2E, 0x32, 0x00 }; - [NativeTypeName("#define szOID_NESTED_SIGNATURE \"1.3.6.1.4.1.311.2.4.1\"")] public static ReadOnlySpan szOID_NESTED_SIGNATURE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x34, 0x2E, 0x31, 0x00 }; @@ -479,12 +122,6 @@ public static unsafe partial class Windows [NativeTypeName("#define szOID_ENHANCED_HASH \"1.3.6.1.4.1.311.2.5.1\"")] public static ReadOnlySpan szOID_ENHANCED_HASH => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x35, 0x2E, 0x31, 0x00 }; - [NativeTypeName("#define SPC_RELAXED_PE_MARKER_CHECK_OBJID \"1.3.6.1.4.1.311.2.6.1\"")] - public static ReadOnlySpan SPC_RELAXED_PE_MARKER_CHECK_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x36, 0x2E, 0x31, 0x00 }; - - [NativeTypeName("#define SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID \"1.3.6.1.4.1.311.2.6.2\"")] - public static ReadOnlySpan SPC_ENCRYPTED_DIGEST_RETRY_COUNT_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x32, 0x2E, 0x36, 0x2E, 0x32, 0x00 }; - [NativeTypeName("#define szOID_PKCS_9_SEQUENCE_NUMBER \"1.2.840.113549.1.9.25.4\"")] public static ReadOnlySpan szOID_PKCS_9_SEQUENCE_NUMBER => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x39, 0x2E, 0x32, 0x35, 0x2E, 0x34, 0x00 }; @@ -497,42 +134,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CAT_MEMBERINFO2_OBJID \"1.3.6.1.4.1.311.12.2.3\"")] public static ReadOnlySpan CAT_MEMBERINFO2_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x32, 0x2E, 0x32, 0x2E, 0x33, 0x00 }; - [NativeTypeName("#define SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID \"1.3.6.1.4.1.311.10.41.1\"")] - public static ReadOnlySpan SPC_WINDOWS_HELLO_COMPATIBILITY_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x34, 0x31, 0x2E, 0x31, 0x00 }; - - [NativeTypeName("#define SPC_NATURAL_AUTH_PLUGIN_OBJID \"1.3.6.1.4.1.311.96.1.1\"")] - public static ReadOnlySpan SPC_NATURAL_AUTH_PLUGIN_OBJID => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x39, 0x36, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; - - [NativeTypeName("#define SPC_SP_AGENCY_INFO_STRUCT ((LPCSTR) 2000)")] - public static sbyte* SPC_SP_AGENCY_INFO_STRUCT => ((sbyte*)(2000)); - - [NativeTypeName("#define SPC_MINIMAL_CRITERIA_STRUCT ((LPCSTR) 2001)")] - public static sbyte* SPC_MINIMAL_CRITERIA_STRUCT => ((sbyte*)(2001)); - - [NativeTypeName("#define SPC_FINANCIAL_CRITERIA_STRUCT ((LPCSTR) 2002)")] - public static sbyte* SPC_FINANCIAL_CRITERIA_STRUCT => ((sbyte*)(2002)); - - [NativeTypeName("#define SPC_INDIRECT_DATA_CONTENT_STRUCT ((LPCSTR) 2003)")] - public static sbyte* SPC_INDIRECT_DATA_CONTENT_STRUCT => ((sbyte*)(2003)); - - [NativeTypeName("#define SPC_PE_IMAGE_DATA_STRUCT ((LPCSTR) 2004)")] - public static sbyte* SPC_PE_IMAGE_DATA_STRUCT => ((sbyte*)(2004)); - - [NativeTypeName("#define SPC_LINK_STRUCT ((LPCSTR) 2005)")] - public static sbyte* SPC_LINK_STRUCT => ((sbyte*)(2005)); - - [NativeTypeName("#define SPC_STATEMENT_TYPE_STRUCT ((LPCSTR) 2006)")] - public static sbyte* SPC_STATEMENT_TYPE_STRUCT => ((sbyte*)(2006)); - - [NativeTypeName("#define SPC_SP_OPUS_INFO_STRUCT ((LPCSTR) 2007)")] - public static sbyte* SPC_SP_OPUS_INFO_STRUCT => ((sbyte*)(2007)); - - [NativeTypeName("#define SPC_CAB_DATA_STRUCT ((LPCSTR) 2008)")] - public static sbyte* SPC_CAB_DATA_STRUCT => ((sbyte*)(2008)); - - [NativeTypeName("#define SPC_JAVA_CLASS_DATA_STRUCT ((LPCSTR) 2009)")] - public static sbyte* SPC_JAVA_CLASS_DATA_STRUCT => ((sbyte*)(2009)); - [NativeTypeName("#define INTENT_TO_SEAL_ATTRIBUTE_STRUCT ((LPCSTR) 2010)")] public static sbyte* INTENT_TO_SEAL_ATTRIBUTE_STRUCT => ((sbyte*)(2010)); @@ -542,9 +143,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SEALING_TIMESTAMP_ATTRIBUTE_STRUCT ((LPCSTR) 2012)")] public static sbyte* SEALING_TIMESTAMP_ATTRIBUTE_STRUCT => ((sbyte*)(2012)); - [NativeTypeName("#define SPC_SIGINFO_STRUCT ((LPCSTR) 2130)")] - public static sbyte* SPC_SIGINFO_STRUCT => ((sbyte*)(2130)); - [NativeTypeName("#define CAT_NAMEVALUE_STRUCT ((LPCSTR) 2221)")] public static sbyte* CAT_NAMEVALUE_STRUCT => ((sbyte*)(2221)); @@ -554,18 +152,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CAT_MEMBERINFO2_STRUCT ((LPCSTR) 2223)")] public static sbyte* CAT_MEMBERINFO2_STRUCT => ((sbyte*)(2223)); - [NativeTypeName("#define SPC_UUID_LENGTH 16")] - public const int SPC_UUID_LENGTH = 16; - - [NativeTypeName("#define SPC_URL_LINK_CHOICE 1")] - public const int SPC_URL_LINK_CHOICE = 1; - - [NativeTypeName("#define SPC_MONIKER_LINK_CHOICE 2")] - public const int SPC_MONIKER_LINK_CHOICE = 2; - - [NativeTypeName("#define SPC_FILE_LINK_CHOICE 3")] - public const int SPC_FILE_LINK_CHOICE = 3; - [NativeTypeName("#define WIN_CERT_REVISION_1_0 (0x0100)")] public const int WIN_CERT_REVISION_1_0 = (0x0100); @@ -583,17 +169,5 @@ public static unsafe partial class Windows [NativeTypeName("#define WIN_CERT_TYPE_TS_STACK_SIGNED (0x0004)")] public const int WIN_CERT_TYPE_TS_STACK_SIGNED = (0x0004); - - [NativeTypeName("#define WT_TRUSTDBDIALOG_NO_UI_FLAG 0x00000001")] - public const int WT_TRUSTDBDIALOG_NO_UI_FLAG = 0x00000001; - - [NativeTypeName("#define WT_TRUSTDBDIALOG_ONLY_PUB_TAB_FLAG 0x00000002")] - public const int WT_TRUSTDBDIALOG_ONLY_PUB_TAB_FLAG = 0x00000002; - - [NativeTypeName("#define WT_TRUSTDBDIALOG_WRITE_LEGACY_REG_FLAG 0x00000100")] - public const int WT_TRUSTDBDIALOG_WRITE_LEGACY_REG_FLAG = 0x00000100; - - [NativeTypeName("#define WT_TRUSTDBDIALOG_WRITE_IEAK_STORE_FLAG 0x00000200")] - public const int WT_TRUSTDBDIALOG_WRITE_IEAK_STORE_FLAG = 0x00000200; } } diff --git a/sources/Interop/Windows/Windows/um/WinUser/ARW.cs b/sources/Interop/Windows/Windows/um/WinUser/ARW.cs new file mode 100644 index 0000000000..db64bb8967 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/ARW.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ARW + { + [NativeTypeName("#define ARW_BOTTOMLEFT 0x0000L")] + public const int ARW_BOTTOMLEFT = 0x0000; + + [NativeTypeName("#define ARW_BOTTOMRIGHT 0x0001L")] + public const int ARW_BOTTOMRIGHT = 0x0001; + + [NativeTypeName("#define ARW_TOPLEFT 0x0002L")] + public const int ARW_TOPLEFT = 0x0002; + + [NativeTypeName("#define ARW_TOPRIGHT 0x0003L")] + public const int ARW_TOPRIGHT = 0x0003; + + [NativeTypeName("#define ARW_STARTMASK 0x0003L")] + public const int ARW_STARTMASK = 0x0003; + + [NativeTypeName("#define ARW_STARTRIGHT 0x0001L")] + public const int ARW_STARTRIGHT = 0x0001; + + [NativeTypeName("#define ARW_STARTTOP 0x0002L")] + public const int ARW_STARTTOP = 0x0002; + + [NativeTypeName("#define ARW_LEFT 0x0000L")] + public const int ARW_LEFT = 0x0000; + + [NativeTypeName("#define ARW_RIGHT 0x0000L")] + public const int ARW_RIGHT = 0x0000; + + [NativeTypeName("#define ARW_UP 0x0004L")] + public const int ARW_UP = 0x0004; + + [NativeTypeName("#define ARW_DOWN 0x0004L")] + public const int ARW_DOWN = 0x0004; + + [NativeTypeName("#define ARW_HIDE 0x0008L")] + public const int ARW_HIDE = 0x0008; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/BF.cs b/sources/Interop/Windows/Windows/um/WinUser/BF.cs new file mode 100644 index 0000000000..550a8e63a1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/BF.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BF + { + [NativeTypeName("#define BF_LEFT 0x0001")] + public const int BF_LEFT = 0x0001; + + [NativeTypeName("#define BF_TOP 0x0002")] + public const int BF_TOP = 0x0002; + + [NativeTypeName("#define BF_RIGHT 0x0004")] + public const int BF_RIGHT = 0x0004; + + [NativeTypeName("#define BF_BOTTOM 0x0008")] + public const int BF_BOTTOM = 0x0008; + + [NativeTypeName("#define BF_TOPLEFT (BF_TOP | BF_LEFT)")] + public const int BF_TOPLEFT = (0x0002 | 0x0001); + + [NativeTypeName("#define BF_TOPRIGHT (BF_TOP | BF_RIGHT)")] + public const int BF_TOPRIGHT = (0x0002 | 0x0004); + + [NativeTypeName("#define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)")] + public const int BF_BOTTOMLEFT = (0x0008 | 0x0001); + + [NativeTypeName("#define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)")] + public const int BF_BOTTOMRIGHT = (0x0008 | 0x0004); + + [NativeTypeName("#define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)")] + public const int BF_RECT = (0x0001 | 0x0002 | 0x0004 | 0x0008); + + [NativeTypeName("#define BF_DIAGONAL 0x0010")] + public const int BF_DIAGONAL = 0x0010; + + [NativeTypeName("#define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)")] + public const int BF_DIAGONAL_ENDTOPRIGHT = (0x0010 | 0x0002 | 0x0004); + + [NativeTypeName("#define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)")] + public const int BF_DIAGONAL_ENDTOPLEFT = (0x0010 | 0x0002 | 0x0001); + + [NativeTypeName("#define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)")] + public const int BF_DIAGONAL_ENDBOTTOMLEFT = (0x0010 | 0x0008 | 0x0001); + + [NativeTypeName("#define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)")] + public const int BF_DIAGONAL_ENDBOTTOMRIGHT = (0x0010 | 0x0008 | 0x0004); + + [NativeTypeName("#define BF_MIDDLE 0x0800")] + public const int BF_MIDDLE = 0x0800; + + [NativeTypeName("#define BF_SOFT 0x1000")] + public const int BF_SOFT = 0x1000; + + [NativeTypeName("#define BF_ADJUST 0x2000")] + public const int BF_ADJUST = 0x2000; + + [NativeTypeName("#define BF_FLAT 0x4000")] + public const int BF_FLAT = 0x4000; + + [NativeTypeName("#define BF_MONO 0x8000")] + public const int BF_MONO = 0x8000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/BN.cs b/sources/Interop/Windows/Windows/um/WinUser/BN.cs new file mode 100644 index 0000000000..d498c71270 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/BN.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BN + { + [NativeTypeName("#define BN_CLICKED 0")] + public const int BN_CLICKED = 0; + + [NativeTypeName("#define BN_PAINT 1")] + public const int BN_PAINT = 1; + + [NativeTypeName("#define BN_HILITE 2")] + public const int BN_HILITE = 2; + + [NativeTypeName("#define BN_UNHILITE 3")] + public const int BN_UNHILITE = 3; + + [NativeTypeName("#define BN_DISABLE 4")] + public const int BN_DISABLE = 4; + + [NativeTypeName("#define BN_DOUBLECLICKED 5")] + public const int BN_DOUBLECLICKED = 5; + + [NativeTypeName("#define BN_PUSHED BN_HILITE")] + public const int BN_PUSHED = 2; + + [NativeTypeName("#define BN_UNPUSHED BN_UNHILITE")] + public const int BN_UNPUSHED = 3; + + [NativeTypeName("#define BN_DBLCLK BN_DOUBLECLICKED")] + public const int BN_DBLCLK = 5; + + [NativeTypeName("#define BN_SETFOCUS 6")] + public const int BN_SETFOCUS = 6; + + [NativeTypeName("#define BN_KILLFOCUS 7")] + public const int BN_KILLFOCUS = 7; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/BS.cs b/sources/Interop/Windows/Windows/um/WinUser/BS.cs new file mode 100644 index 0000000000..26aea2c69a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/BS.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BS + { + [NativeTypeName("#define BS_PUSHBUTTON 0x00000000L")] + public const int BS_PUSHBUTTON = 0x00000000; + + [NativeTypeName("#define BS_DEFPUSHBUTTON 0x00000001L")] + public const int BS_DEFPUSHBUTTON = 0x00000001; + + [NativeTypeName("#define BS_CHECKBOX 0x00000002L")] + public const int BS_CHECKBOX = 0x00000002; + + [NativeTypeName("#define BS_AUTOCHECKBOX 0x00000003L")] + public const int BS_AUTOCHECKBOX = 0x00000003; + + [NativeTypeName("#define BS_RADIOBUTTON 0x00000004L")] + public const int BS_RADIOBUTTON = 0x00000004; + + [NativeTypeName("#define BS_3STATE 0x00000005L")] + public const int BS_3STATE = 0x00000005; + + [NativeTypeName("#define BS_AUTO3STATE 0x00000006L")] + public const int BS_AUTO3STATE = 0x00000006; + + [NativeTypeName("#define BS_GROUPBOX 0x00000007L")] + public const int BS_GROUPBOX = 0x00000007; + + [NativeTypeName("#define BS_USERBUTTON 0x00000008L")] + public const int BS_USERBUTTON = 0x00000008; + + [NativeTypeName("#define BS_AUTORADIOBUTTON 0x00000009L")] + public const int BS_AUTORADIOBUTTON = 0x00000009; + + [NativeTypeName("#define BS_PUSHBOX 0x0000000AL")] + public const int BS_PUSHBOX = 0x0000000A; + + [NativeTypeName("#define BS_OWNERDRAW 0x0000000BL")] + public const int BS_OWNERDRAW = 0x0000000B; + + [NativeTypeName("#define BS_TYPEMASK 0x0000000FL")] + public const int BS_TYPEMASK = 0x0000000F; + + [NativeTypeName("#define BS_LEFTTEXT 0x00000020L")] + public const int BS_LEFTTEXT = 0x00000020; + + [NativeTypeName("#define BS_TEXT 0x00000000L")] + public const int BS_TEXT = 0x00000000; + + [NativeTypeName("#define BS_ICON 0x00000040L")] + public const int BS_ICON = 0x00000040; + + [NativeTypeName("#define BS_BITMAP 0x00000080L")] + public const int BS_BITMAP = 0x00000080; + + [NativeTypeName("#define BS_LEFT 0x00000100L")] + public const int BS_LEFT = 0x00000100; + + [NativeTypeName("#define BS_RIGHT 0x00000200L")] + public const int BS_RIGHT = 0x00000200; + + [NativeTypeName("#define BS_CENTER 0x00000300L")] + public const int BS_CENTER = 0x00000300; + + [NativeTypeName("#define BS_TOP 0x00000400L")] + public const int BS_TOP = 0x00000400; + + [NativeTypeName("#define BS_BOTTOM 0x00000800L")] + public const int BS_BOTTOM = 0x00000800; + + [NativeTypeName("#define BS_VCENTER 0x00000C00L")] + public const int BS_VCENTER = 0x00000C00; + + [NativeTypeName("#define BS_PUSHLIKE 0x00001000L")] + public const int BS_PUSHLIKE = 0x00001000; + + [NativeTypeName("#define BS_MULTILINE 0x00002000L")] + public const int BS_MULTILINE = 0x00002000; + + [NativeTypeName("#define BS_NOTIFY 0x00004000L")] + public const int BS_NOTIFY = 0x00004000; + + [NativeTypeName("#define BS_FLAT 0x00008000L")] + public const int BS_FLAT = 0x00008000; + + [NativeTypeName("#define BS_RIGHTBUTTON BS_LEFTTEXT")] + public const int BS_RIGHTBUTTON = 0x00000020; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/BSF.cs b/sources/Interop/Windows/Windows/um/WinUser/BSF.cs new file mode 100644 index 0000000000..9b70432dcf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/BSF.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BSF + { + [NativeTypeName("#define BSF_QUERY 0x00000001")] + public const int BSF_QUERY = 0x00000001; + + [NativeTypeName("#define BSF_IGNORECURRENTTASK 0x00000002")] + public const int BSF_IGNORECURRENTTASK = 0x00000002; + + [NativeTypeName("#define BSF_FLUSHDISK 0x00000004")] + public const int BSF_FLUSHDISK = 0x00000004; + + [NativeTypeName("#define BSF_NOHANG 0x00000008")] + public const int BSF_NOHANG = 0x00000008; + + [NativeTypeName("#define BSF_POSTMESSAGE 0x00000010")] + public const int BSF_POSTMESSAGE = 0x00000010; + + [NativeTypeName("#define BSF_FORCEIFHUNG 0x00000020")] + public const int BSF_FORCEIFHUNG = 0x00000020; + + [NativeTypeName("#define BSF_NOTIMEOUTIFNOTHUNG 0x00000040")] + public const int BSF_NOTIMEOUTIFNOTHUNG = 0x00000040; + + [NativeTypeName("#define BSF_ALLOWSFW 0x00000080")] + public const int BSF_ALLOWSFW = 0x00000080; + + [NativeTypeName("#define BSF_SENDNOTIFYMESSAGE 0x00000100")] + public const int BSF_SENDNOTIFYMESSAGE = 0x00000100; + + [NativeTypeName("#define BSF_RETURNHDESK 0x00000200")] + public const int BSF_RETURNHDESK = 0x00000200; + + [NativeTypeName("#define BSF_LUID 0x00000400")] + public const int BSF_LUID = 0x00000400; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CB.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/CB.Manual.cs new file mode 100644 index 0000000000..2d530fa198 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CB.Manual.cs @@ -0,0 +1,12 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class CB + { + public const int CB_MULTIPLEADDSTRING = 0x0163; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CB.cs b/sources/Interop/Windows/Windows/um/WinUser/CB.cs new file mode 100644 index 0000000000..27bdc212d3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CB.cs @@ -0,0 +1,127 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CB + { + [NativeTypeName("#define CB_OKAY 0")] + public const int CB_OKAY = 0; + + [NativeTypeName("#define CB_ERR (-1)")] + public const int CB_ERR = (-1); + + [NativeTypeName("#define CB_ERRSPACE (-2)")] + public const int CB_ERRSPACE = (-2); + + [NativeTypeName("#define CB_GETEDITSEL 0x0140")] + public const int CB_GETEDITSEL = 0x0140; + + [NativeTypeName("#define CB_LIMITTEXT 0x0141")] + public const int CB_LIMITTEXT = 0x0141; + + [NativeTypeName("#define CB_SETEDITSEL 0x0142")] + public const int CB_SETEDITSEL = 0x0142; + + [NativeTypeName("#define CB_ADDSTRING 0x0143")] + public const int CB_ADDSTRING = 0x0143; + + [NativeTypeName("#define CB_DELETESTRING 0x0144")] + public const int CB_DELETESTRING = 0x0144; + + [NativeTypeName("#define CB_DIR 0x0145")] + public const int CB_DIR = 0x0145; + + [NativeTypeName("#define CB_GETCOUNT 0x0146")] + public const int CB_GETCOUNT = 0x0146; + + [NativeTypeName("#define CB_GETCURSEL 0x0147")] + public const int CB_GETCURSEL = 0x0147; + + [NativeTypeName("#define CB_GETLBTEXT 0x0148")] + public const int CB_GETLBTEXT = 0x0148; + + [NativeTypeName("#define CB_GETLBTEXTLEN 0x0149")] + public const int CB_GETLBTEXTLEN = 0x0149; + + [NativeTypeName("#define CB_INSERTSTRING 0x014A")] + public const int CB_INSERTSTRING = 0x014A; + + [NativeTypeName("#define CB_RESETCONTENT 0x014B")] + public const int CB_RESETCONTENT = 0x014B; + + [NativeTypeName("#define CB_FINDSTRING 0x014C")] + public const int CB_FINDSTRING = 0x014C; + + [NativeTypeName("#define CB_SELECTSTRING 0x014D")] + public const int CB_SELECTSTRING = 0x014D; + + [NativeTypeName("#define CB_SETCURSEL 0x014E")] + public const int CB_SETCURSEL = 0x014E; + + [NativeTypeName("#define CB_SHOWDROPDOWN 0x014F")] + public const int CB_SHOWDROPDOWN = 0x014F; + + [NativeTypeName("#define CB_GETITEMDATA 0x0150")] + public const int CB_GETITEMDATA = 0x0150; + + [NativeTypeName("#define CB_SETITEMDATA 0x0151")] + public const int CB_SETITEMDATA = 0x0151; + + [NativeTypeName("#define CB_GETDROPPEDCONTROLRECT 0x0152")] + public const int CB_GETDROPPEDCONTROLRECT = 0x0152; + + [NativeTypeName("#define CB_SETITEMHEIGHT 0x0153")] + public const int CB_SETITEMHEIGHT = 0x0153; + + [NativeTypeName("#define CB_GETITEMHEIGHT 0x0154")] + public const int CB_GETITEMHEIGHT = 0x0154; + + [NativeTypeName("#define CB_SETEXTENDEDUI 0x0155")] + public const int CB_SETEXTENDEDUI = 0x0155; + + [NativeTypeName("#define CB_GETEXTENDEDUI 0x0156")] + public const int CB_GETEXTENDEDUI = 0x0156; + + [NativeTypeName("#define CB_GETDROPPEDSTATE 0x0157")] + public const int CB_GETDROPPEDSTATE = 0x0157; + + [NativeTypeName("#define CB_FINDSTRINGEXACT 0x0158")] + public const int CB_FINDSTRINGEXACT = 0x0158; + + [NativeTypeName("#define CB_SETLOCALE 0x0159")] + public const int CB_SETLOCALE = 0x0159; + + [NativeTypeName("#define CB_GETLOCALE 0x015A")] + public const int CB_GETLOCALE = 0x015A; + + [NativeTypeName("#define CB_GETTOPINDEX 0x015b")] + public const int CB_GETTOPINDEX = 0x015b; + + [NativeTypeName("#define CB_SETTOPINDEX 0x015c")] + public const int CB_SETTOPINDEX = 0x015c; + + [NativeTypeName("#define CB_GETHORIZONTALEXTENT 0x015d")] + public const int CB_GETHORIZONTALEXTENT = 0x015d; + + [NativeTypeName("#define CB_SETHORIZONTALEXTENT 0x015e")] + public const int CB_SETHORIZONTALEXTENT = 0x015e; + + [NativeTypeName("#define CB_GETDROPPEDWIDTH 0x015f")] + public const int CB_GETDROPPEDWIDTH = 0x015f; + + [NativeTypeName("#define CB_SETDROPPEDWIDTH 0x0160")] + public const int CB_SETDROPPEDWIDTH = 0x0160; + + [NativeTypeName("#define CB_INITSTORAGE 0x0161")] + public const int CB_INITSTORAGE = 0x0161; + + [NativeTypeName("#define CB_GETCOMBOBOXINFO 0x0164")] + public const int CB_GETCOMBOBOXINFO = 0x0164; + + [NativeTypeName("#define CB_MSGMAX 0x0165")] + public const int CB_MSGMAX = 0x0165; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CBN.cs b/sources/Interop/Windows/Windows/um/WinUser/CBN.cs new file mode 100644 index 0000000000..04be8a60d1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CBN.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CBN + { + [NativeTypeName("#define CBN_ERRSPACE (-1)")] + public const int CBN_ERRSPACE = (-1); + + [NativeTypeName("#define CBN_SELCHANGE 1")] + public const int CBN_SELCHANGE = 1; + + [NativeTypeName("#define CBN_DBLCLK 2")] + public const int CBN_DBLCLK = 2; + + [NativeTypeName("#define CBN_SETFOCUS 3")] + public const int CBN_SETFOCUS = 3; + + [NativeTypeName("#define CBN_KILLFOCUS 4")] + public const int CBN_KILLFOCUS = 4; + + [NativeTypeName("#define CBN_EDITCHANGE 5")] + public const int CBN_EDITCHANGE = 5; + + [NativeTypeName("#define CBN_EDITUPDATE 6")] + public const int CBN_EDITUPDATE = 6; + + [NativeTypeName("#define CBN_DROPDOWN 7")] + public const int CBN_DROPDOWN = 7; + + [NativeTypeName("#define CBN_CLOSEUP 8")] + public const int CBN_CLOSEUP = 8; + + [NativeTypeName("#define CBN_SELENDOK 9")] + public const int CBN_SELENDOK = 9; + + [NativeTypeName("#define CBN_SELENDCANCEL 10")] + public const int CBN_SELENDCANCEL = 10; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CBS.cs b/sources/Interop/Windows/Windows/um/WinUser/CBS.cs new file mode 100644 index 0000000000..5e066b19ae --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CBS.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CBS + { + [NativeTypeName("#define CBS_SIMPLE 0x0001L")] + public const int CBS_SIMPLE = 0x0001; + + [NativeTypeName("#define CBS_DROPDOWN 0x0002L")] + public const int CBS_DROPDOWN = 0x0002; + + [NativeTypeName("#define CBS_DROPDOWNLIST 0x0003L")] + public const int CBS_DROPDOWNLIST = 0x0003; + + [NativeTypeName("#define CBS_OWNERDRAWFIXED 0x0010L")] + public const int CBS_OWNERDRAWFIXED = 0x0010; + + [NativeTypeName("#define CBS_OWNERDRAWVARIABLE 0x0020L")] + public const int CBS_OWNERDRAWVARIABLE = 0x0020; + + [NativeTypeName("#define CBS_AUTOHSCROLL 0x0040L")] + public const int CBS_AUTOHSCROLL = 0x0040; + + [NativeTypeName("#define CBS_OEMCONVERT 0x0080L")] + public const int CBS_OEMCONVERT = 0x0080; + + [NativeTypeName("#define CBS_SORT 0x0100L")] + public const int CBS_SORT = 0x0100; + + [NativeTypeName("#define CBS_HASSTRINGS 0x0200L")] + public const int CBS_HASSTRINGS = 0x0200; + + [NativeTypeName("#define CBS_NOINTEGRALHEIGHT 0x0400L")] + public const int CBS_NOINTEGRALHEIGHT = 0x0400; + + [NativeTypeName("#define CBS_DISABLENOSCROLL 0x0800L")] + public const int CBS_DISABLENOSCROLL = 0x0800; + + [NativeTypeName("#define CBS_UPPERCASE 0x2000L")] + public const int CBS_UPPERCASE = 0x2000; + + [NativeTypeName("#define CBS_LOWERCASE 0x4000L")] + public const int CBS_LOWERCASE = 0x4000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CDS.cs b/sources/Interop/Windows/Windows/um/WinUser/CDS.cs new file mode 100644 index 0000000000..aa0154289b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CDS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CDS + { + [NativeTypeName("#define CDS_UPDATEREGISTRY 0x00000001")] + public const int CDS_UPDATEREGISTRY = 0x00000001; + + [NativeTypeName("#define CDS_TEST 0x00000002")] + public const int CDS_TEST = 0x00000002; + + [NativeTypeName("#define CDS_FULLSCREEN 0x00000004")] + public const int CDS_FULLSCREEN = 0x00000004; + + [NativeTypeName("#define CDS_GLOBAL 0x00000008")] + public const int CDS_GLOBAL = 0x00000008; + + [NativeTypeName("#define CDS_SET_PRIMARY 0x00000010")] + public const int CDS_SET_PRIMARY = 0x00000010; + + [NativeTypeName("#define CDS_VIDEOPARAMETERS 0x00000020")] + public const int CDS_VIDEOPARAMETERS = 0x00000020; + + [NativeTypeName("#define CDS_ENABLE_UNSAFE_MODES 0x00000100")] + public const int CDS_ENABLE_UNSAFE_MODES = 0x00000100; + + [NativeTypeName("#define CDS_DISABLE_UNSAFE_MODES 0x00000200")] + public const int CDS_DISABLE_UNSAFE_MODES = 0x00000200; + + [NativeTypeName("#define CDS_RESET 0x40000000")] + public const int CDS_RESET = 0x40000000; + + [NativeTypeName("#define CDS_RESET_EX 0x20000000")] + public const int CDS_RESET_EX = 0x20000000; + + [NativeTypeName("#define CDS_NORESET 0x10000000")] + public const int CDS_NORESET = 0x10000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CF.cs b/sources/Interop/Windows/Windows/um/WinUser/CF.cs new file mode 100644 index 0000000000..d5e0312aa2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CF.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CF + { + [NativeTypeName("#define CF_TEXT 1")] + public const int CF_TEXT = 1; + + [NativeTypeName("#define CF_BITMAP 2")] + public const int CF_BITMAP = 2; + + [NativeTypeName("#define CF_METAFILEPICT 3")] + public const int CF_METAFILEPICT = 3; + + [NativeTypeName("#define CF_SYLK 4")] + public const int CF_SYLK = 4; + + [NativeTypeName("#define CF_DIF 5")] + public const int CF_DIF = 5; + + [NativeTypeName("#define CF_TIFF 6")] + public const int CF_TIFF = 6; + + [NativeTypeName("#define CF_OEMTEXT 7")] + public const int CF_OEMTEXT = 7; + + [NativeTypeName("#define CF_DIB 8")] + public const int CF_DIB = 8; + + [NativeTypeName("#define CF_PALETTE 9")] + public const int CF_PALETTE = 9; + + [NativeTypeName("#define CF_PENDATA 10")] + public const int CF_PENDATA = 10; + + [NativeTypeName("#define CF_RIFF 11")] + public const int CF_RIFF = 11; + + [NativeTypeName("#define CF_WAVE 12")] + public const int CF_WAVE = 12; + + [NativeTypeName("#define CF_UNICODETEXT 13")] + public const int CF_UNICODETEXT = 13; + + [NativeTypeName("#define CF_ENHMETAFILE 14")] + public const int CF_ENHMETAFILE = 14; + + [NativeTypeName("#define CF_HDROP 15")] + public const int CF_HDROP = 15; + + [NativeTypeName("#define CF_LOCALE 16")] + public const int CF_LOCALE = 16; + + [NativeTypeName("#define CF_DIBV5 17")] + public const int CF_DIBV5 = 17; + + [NativeTypeName("#define CF_MAX 18")] + public const int CF_MAX = 18; + + [NativeTypeName("#define CF_OWNERDISPLAY 0x0080")] + public const int CF_OWNERDISPLAY = 0x0080; + + [NativeTypeName("#define CF_DSPTEXT 0x0081")] + public const int CF_DSPTEXT = 0x0081; + + [NativeTypeName("#define CF_DSPBITMAP 0x0082")] + public const int CF_DSPBITMAP = 0x0082; + + [NativeTypeName("#define CF_DSPMETAFILEPICT 0x0083")] + public const int CF_DSPMETAFILEPICT = 0x0083; + + [NativeTypeName("#define CF_DSPENHMETAFILE 0x008E")] + public const int CF_DSPENHMETAFILE = 0x008E; + + [NativeTypeName("#define CF_PRIVATEFIRST 0x0200")] + public const int CF_PRIVATEFIRST = 0x0200; + + [NativeTypeName("#define CF_PRIVATELAST 0x02FF")] + public const int CF_PRIVATELAST = 0x02FF; + + [NativeTypeName("#define CF_GDIOBJFIRST 0x0300")] + public const int CF_GDIOBJFIRST = 0x0300; + + [NativeTypeName("#define CF_GDIOBJLAST 0x03FF")] + public const int CF_GDIOBJLAST = 0x03FF; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/COLOR.cs b/sources/Interop/Windows/Windows/um/WinUser/COLOR.cs new file mode 100644 index 0000000000..49a1bb4445 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/COLOR.cs @@ -0,0 +1,118 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class COLOR + { + [NativeTypeName("#define COLOR_SCROLLBAR 0")] + public const int COLOR_SCROLLBAR = 0; + + [NativeTypeName("#define COLOR_BACKGROUND 1")] + public const int COLOR_BACKGROUND = 1; + + [NativeTypeName("#define COLOR_ACTIVECAPTION 2")] + public const int COLOR_ACTIVECAPTION = 2; + + [NativeTypeName("#define COLOR_INACTIVECAPTION 3")] + public const int COLOR_INACTIVECAPTION = 3; + + [NativeTypeName("#define COLOR_MENU 4")] + public const int COLOR_MENU = 4; + + [NativeTypeName("#define COLOR_WINDOW 5")] + public const int COLOR_WINDOW = 5; + + [NativeTypeName("#define COLOR_WINDOWFRAME 6")] + public const int COLOR_WINDOWFRAME = 6; + + [NativeTypeName("#define COLOR_MENUTEXT 7")] + public const int COLOR_MENUTEXT = 7; + + [NativeTypeName("#define COLOR_WINDOWTEXT 8")] + public const int COLOR_WINDOWTEXT = 8; + + [NativeTypeName("#define COLOR_CAPTIONTEXT 9")] + public const int COLOR_CAPTIONTEXT = 9; + + [NativeTypeName("#define COLOR_ACTIVEBORDER 10")] + public const int COLOR_ACTIVEBORDER = 10; + + [NativeTypeName("#define COLOR_INACTIVEBORDER 11")] + public const int COLOR_INACTIVEBORDER = 11; + + [NativeTypeName("#define COLOR_APPWORKSPACE 12")] + public const int COLOR_APPWORKSPACE = 12; + + [NativeTypeName("#define COLOR_HIGHLIGHT 13")] + public const int COLOR_HIGHLIGHT = 13; + + [NativeTypeName("#define COLOR_HIGHLIGHTTEXT 14")] + public const int COLOR_HIGHLIGHTTEXT = 14; + + [NativeTypeName("#define COLOR_BTNFACE 15")] + public const int COLOR_BTNFACE = 15; + + [NativeTypeName("#define COLOR_BTNSHADOW 16")] + public const int COLOR_BTNSHADOW = 16; + + [NativeTypeName("#define COLOR_GRAYTEXT 17")] + public const int COLOR_GRAYTEXT = 17; + + [NativeTypeName("#define COLOR_BTNTEXT 18")] + public const int COLOR_BTNTEXT = 18; + + [NativeTypeName("#define COLOR_INACTIVECAPTIONTEXT 19")] + public const int COLOR_INACTIVECAPTIONTEXT = 19; + + [NativeTypeName("#define COLOR_BTNHIGHLIGHT 20")] + public const int COLOR_BTNHIGHLIGHT = 20; + + [NativeTypeName("#define COLOR_3DDKSHADOW 21")] + public const int COLOR_3DDKSHADOW = 21; + + [NativeTypeName("#define COLOR_3DLIGHT 22")] + public const int COLOR_3DLIGHT = 22; + + [NativeTypeName("#define COLOR_INFOTEXT 23")] + public const int COLOR_INFOTEXT = 23; + + [NativeTypeName("#define COLOR_INFOBK 24")] + public const int COLOR_INFOBK = 24; + + [NativeTypeName("#define COLOR_HOTLIGHT 26")] + public const int COLOR_HOTLIGHT = 26; + + [NativeTypeName("#define COLOR_GRADIENTACTIVECAPTION 27")] + public const int COLOR_GRADIENTACTIVECAPTION = 27; + + [NativeTypeName("#define COLOR_GRADIENTINACTIVECAPTION 28")] + public const int COLOR_GRADIENTINACTIVECAPTION = 28; + + [NativeTypeName("#define COLOR_MENUHILIGHT 29")] + public const int COLOR_MENUHILIGHT = 29; + + [NativeTypeName("#define COLOR_MENUBAR 30")] + public const int COLOR_MENUBAR = 30; + + [NativeTypeName("#define COLOR_DESKTOP COLOR_BACKGROUND")] + public const int COLOR_DESKTOP = 1; + + [NativeTypeName("#define COLOR_3DFACE COLOR_BTNFACE")] + public const int COLOR_3DFACE = 15; + + [NativeTypeName("#define COLOR_3DSHADOW COLOR_BTNSHADOW")] + public const int COLOR_3DSHADOW = 16; + + [NativeTypeName("#define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT")] + public const int COLOR_3DHIGHLIGHT = 20; + + [NativeTypeName("#define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT")] + public const int COLOR_3DHILIGHT = 20; + + [NativeTypeName("#define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT")] + public const int COLOR_BTNHILIGHT = 20; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CONSOLE.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/CONSOLE.Manual.cs new file mode 100644 index 0000000000..ecfbf4642f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CONSOLE.Manual.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class CONSOLE + { + public static int CONSOLE_APPLICATION_16BIT + { + get + { + if (sizeof(nint) == 4) + { + return 0x0001; + } + else + { + return 0x0000; + } + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CONSOLE.cs b/sources/Interop/Windows/Windows/um/WinUser/CONSOLE.cs new file mode 100644 index 0000000000..1bea71cb14 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CONSOLE.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CONSOLE + { + [NativeTypeName("#define CONSOLE_CARET_SELECTION 0x0001")] + public const int CONSOLE_CARET_SELECTION = 0x0001; + + [NativeTypeName("#define CONSOLE_CARET_VISIBLE 0x0002")] + public const int CONSOLE_CARET_VISIBLE = 0x0002; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/CS.cs b/sources/Interop/Windows/Windows/um/WinUser/CS.cs new file mode 100644 index 0000000000..4f07602994 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/CS.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CS + { + [NativeTypeName("#define CS_VREDRAW 0x0001")] + public const int CS_VREDRAW = 0x0001; + + [NativeTypeName("#define CS_HREDRAW 0x0002")] + public const int CS_HREDRAW = 0x0002; + + [NativeTypeName("#define CS_DBLCLKS 0x0008")] + public const int CS_DBLCLKS = 0x0008; + + [NativeTypeName("#define CS_OWNDC 0x0020")] + public const int CS_OWNDC = 0x0020; + + [NativeTypeName("#define CS_CLASSDC 0x0040")] + public const int CS_CLASSDC = 0x0040; + + [NativeTypeName("#define CS_PARENTDC 0x0080")] + public const int CS_PARENTDC = 0x0080; + + [NativeTypeName("#define CS_NOCLOSE 0x0200")] + public const int CS_NOCLOSE = 0x0200; + + [NativeTypeName("#define CS_SAVEBITS 0x0800")] + public const int CS_SAVEBITS = 0x0800; + + [NativeTypeName("#define CS_BYTEALIGNCLIENT 0x1000")] + public const int CS_BYTEALIGNCLIENT = 0x1000; + + [NativeTypeName("#define CS_BYTEALIGNWINDOW 0x2000")] + public const int CS_BYTEALIGNWINDOW = 0x2000; + + [NativeTypeName("#define CS_GLOBALCLASS 0x4000")] + public const int CS_GLOBALCLASS = 0x4000; + + [NativeTypeName("#define CS_IME 0x00010000")] + public const int CS_IME = 0x00010000; + + [NativeTypeName("#define CS_DROPSHADOW 0x00020000")] + public const int CS_DROPSHADOW = 0x00020000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DC.cs b/sources/Interop/Windows/Windows/um/WinUser/DC.cs new file mode 100644 index 0000000000..2b79fbd94b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DC.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DC + { + [NativeTypeName("#define DC_ACTIVE 0x0001")] + public const int DC_ACTIVE = 0x0001; + + [NativeTypeName("#define DC_SMALLCAP 0x0002")] + public const int DC_SMALLCAP = 0x0002; + + [NativeTypeName("#define DC_ICON 0x0004")] + public const int DC_ICON = 0x0004; + + [NativeTypeName("#define DC_TEXT 0x0008")] + public const int DC_TEXT = 0x0008; + + [NativeTypeName("#define DC_INBUTTON 0x0010")] + public const int DC_INBUTTON = 0x0010; + + [NativeTypeName("#define DC_GRADIENT 0x0020")] + public const int DC_GRADIENT = 0x0020; + + [NativeTypeName("#define DC_BUTTONS 0x1000")] + public const int DC_BUTTONS = 0x1000; + + [NativeTypeName("#define DC_HASDEFID 0x534B")] + public const int DC_HASDEFID = 0x534B; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DCX.cs b/sources/Interop/Windows/Windows/um/WinUser/DCX.cs new file mode 100644 index 0000000000..8b5afd2f55 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DCX.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DCX + { + [NativeTypeName("#define DCX_WINDOW 0x00000001L")] + public const int DCX_WINDOW = 0x00000001; + + [NativeTypeName("#define DCX_CACHE 0x00000002L")] + public const int DCX_CACHE = 0x00000002; + + [NativeTypeName("#define DCX_NORESETATTRS 0x00000004L")] + public const int DCX_NORESETATTRS = 0x00000004; + + [NativeTypeName("#define DCX_CLIPCHILDREN 0x00000008L")] + public const int DCX_CLIPCHILDREN = 0x00000008; + + [NativeTypeName("#define DCX_CLIPSIBLINGS 0x00000010L")] + public const int DCX_CLIPSIBLINGS = 0x00000010; + + [NativeTypeName("#define DCX_PARENTCLIP 0x00000020L")] + public const int DCX_PARENTCLIP = 0x00000020; + + [NativeTypeName("#define DCX_EXCLUDERGN 0x00000040L")] + public const int DCX_EXCLUDERGN = 0x00000040; + + [NativeTypeName("#define DCX_INTERSECTRGN 0x00000080L")] + public const int DCX_INTERSECTRGN = 0x00000080; + + [NativeTypeName("#define DCX_EXCLUDEUPDATE 0x00000100L")] + public const int DCX_EXCLUDEUPDATE = 0x00000100; + + [NativeTypeName("#define DCX_INTERSECTUPDATE 0x00000200L")] + public const int DCX_INTERSECTUPDATE = 0x00000200; + + [NativeTypeName("#define DCX_LOCKWINDOWUPDATE 0x00000400L")] + public const int DCX_LOCKWINDOWUPDATE = 0x00000400; + + [NativeTypeName("#define DCX_VALIDATE 0x00200000L")] + public const int DCX_VALIDATE = 0x00200000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DESKTOP.cs b/sources/Interop/Windows/Windows/um/WinUser/DESKTOP.cs new file mode 100644 index 0000000000..c1ad0f70b6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DESKTOP.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DESKTOP + { + [NativeTypeName("#define DESKTOP_READOBJECTS 0x0001L")] + public const int DESKTOP_READOBJECTS = 0x0001; + + [NativeTypeName("#define DESKTOP_CREATEWINDOW 0x0002L")] + public const int DESKTOP_CREATEWINDOW = 0x0002; + + [NativeTypeName("#define DESKTOP_CREATEMENU 0x0004L")] + public const int DESKTOP_CREATEMENU = 0x0004; + + [NativeTypeName("#define DESKTOP_HOOKCONTROL 0x0008L")] + public const int DESKTOP_HOOKCONTROL = 0x0008; + + [NativeTypeName("#define DESKTOP_JOURNALRECORD 0x0010L")] + public const int DESKTOP_JOURNALRECORD = 0x0010; + + [NativeTypeName("#define DESKTOP_JOURNALPLAYBACK 0x0020L")] + public const int DESKTOP_JOURNALPLAYBACK = 0x0020; + + [NativeTypeName("#define DESKTOP_ENUMERATE 0x0040L")] + public const int DESKTOP_ENUMERATE = 0x0040; + + [NativeTypeName("#define DESKTOP_WRITEOBJECTS 0x0080L")] + public const int DESKTOP_WRITEOBJECTS = 0x0080; + + [NativeTypeName("#define DESKTOP_SWITCHDESKTOP 0x0100L")] + public const int DESKTOP_SWITCHDESKTOP = 0x0100; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DEVICE.cs b/sources/Interop/Windows/Windows/um/WinUser/DEVICE.cs new file mode 100644 index 0000000000..0006010c1f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DEVICE.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICE + { + [NativeTypeName("#define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000")] + public const int DEVICE_NOTIFY_WINDOW_HANDLE = 0x00000000; + + [NativeTypeName("#define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001")] + public const int DEVICE_NOTIFY_SERVICE_HANDLE = 0x00000001; + + [NativeTypeName("#define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004")] + public const int DEVICE_NOTIFY_ALL_INTERFACE_CLASSES = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DFCS.cs b/sources/Interop/Windows/Windows/um/WinUser/DFCS.cs new file mode 100644 index 0000000000..1586dd7124 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DFCS.cs @@ -0,0 +1,100 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DFCS + { + [NativeTypeName("#define DFCS_CAPTIONCLOSE 0x0000")] + public const int DFCS_CAPTIONCLOSE = 0x0000; + + [NativeTypeName("#define DFCS_CAPTIONMIN 0x0001")] + public const int DFCS_CAPTIONMIN = 0x0001; + + [NativeTypeName("#define DFCS_CAPTIONMAX 0x0002")] + public const int DFCS_CAPTIONMAX = 0x0002; + + [NativeTypeName("#define DFCS_CAPTIONRESTORE 0x0003")] + public const int DFCS_CAPTIONRESTORE = 0x0003; + + [NativeTypeName("#define DFCS_CAPTIONHELP 0x0004")] + public const int DFCS_CAPTIONHELP = 0x0004; + + [NativeTypeName("#define DFCS_MENUARROW 0x0000")] + public const int DFCS_MENUARROW = 0x0000; + + [NativeTypeName("#define DFCS_MENUCHECK 0x0001")] + public const int DFCS_MENUCHECK = 0x0001; + + [NativeTypeName("#define DFCS_MENUBULLET 0x0002")] + public const int DFCS_MENUBULLET = 0x0002; + + [NativeTypeName("#define DFCS_MENUARROWRIGHT 0x0004")] + public const int DFCS_MENUARROWRIGHT = 0x0004; + + [NativeTypeName("#define DFCS_SCROLLUP 0x0000")] + public const int DFCS_SCROLLUP = 0x0000; + + [NativeTypeName("#define DFCS_SCROLLDOWN 0x0001")] + public const int DFCS_SCROLLDOWN = 0x0001; + + [NativeTypeName("#define DFCS_SCROLLLEFT 0x0002")] + public const int DFCS_SCROLLLEFT = 0x0002; + + [NativeTypeName("#define DFCS_SCROLLRIGHT 0x0003")] + public const int DFCS_SCROLLRIGHT = 0x0003; + + [NativeTypeName("#define DFCS_SCROLLCOMBOBOX 0x0005")] + public const int DFCS_SCROLLCOMBOBOX = 0x0005; + + [NativeTypeName("#define DFCS_SCROLLSIZEGRIP 0x0008")] + public const int DFCS_SCROLLSIZEGRIP = 0x0008; + + [NativeTypeName("#define DFCS_SCROLLSIZEGRIPRIGHT 0x0010")] + public const int DFCS_SCROLLSIZEGRIPRIGHT = 0x0010; + + [NativeTypeName("#define DFCS_BUTTONCHECK 0x0000")] + public const int DFCS_BUTTONCHECK = 0x0000; + + [NativeTypeName("#define DFCS_BUTTONRADIOIMAGE 0x0001")] + public const int DFCS_BUTTONRADIOIMAGE = 0x0001; + + [NativeTypeName("#define DFCS_BUTTONRADIOMASK 0x0002")] + public const int DFCS_BUTTONRADIOMASK = 0x0002; + + [NativeTypeName("#define DFCS_BUTTONRADIO 0x0004")] + public const int DFCS_BUTTONRADIO = 0x0004; + + [NativeTypeName("#define DFCS_BUTTON3STATE 0x0008")] + public const int DFCS_BUTTON3STATE = 0x0008; + + [NativeTypeName("#define DFCS_BUTTONPUSH 0x0010")] + public const int DFCS_BUTTONPUSH = 0x0010; + + [NativeTypeName("#define DFCS_INACTIVE 0x0100")] + public const int DFCS_INACTIVE = 0x0100; + + [NativeTypeName("#define DFCS_PUSHED 0x0200")] + public const int DFCS_PUSHED = 0x0200; + + [NativeTypeName("#define DFCS_CHECKED 0x0400")] + public const int DFCS_CHECKED = 0x0400; + + [NativeTypeName("#define DFCS_TRANSPARENT 0x0800")] + public const int DFCS_TRANSPARENT = 0x0800; + + [NativeTypeName("#define DFCS_HOT 0x1000")] + public const int DFCS_HOT = 0x1000; + + [NativeTypeName("#define DFCS_ADJUSTRECT 0x2000")] + public const int DFCS_ADJUSTRECT = 0x2000; + + [NativeTypeName("#define DFCS_FLAT 0x4000")] + public const int DFCS_FLAT = 0x4000; + + [NativeTypeName("#define DFCS_MONO 0x8000")] + public const int DFCS_MONO = 0x8000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DISP.cs b/sources/Interop/Windows/Windows/um/WinUser/DISP.cs new file mode 100644 index 0000000000..7172833028 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DISP.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DISP + { + [NativeTypeName("#define DISP_CHANGE_SUCCESSFUL 0")] + public const int DISP_CHANGE_SUCCESSFUL = 0; + + [NativeTypeName("#define DISP_CHANGE_RESTART 1")] + public const int DISP_CHANGE_RESTART = 1; + + [NativeTypeName("#define DISP_CHANGE_FAILED -1")] + public const int DISP_CHANGE_FAILED = -1; + + [NativeTypeName("#define DISP_CHANGE_BADMODE -2")] + public const int DISP_CHANGE_BADMODE = -2; + + [NativeTypeName("#define DISP_CHANGE_NOTUPDATED -3")] + public const int DISP_CHANGE_NOTUPDATED = -3; + + [NativeTypeName("#define DISP_CHANGE_BADFLAGS -4")] + public const int DISP_CHANGE_BADFLAGS = -4; + + [NativeTypeName("#define DISP_CHANGE_BADPARAM -5")] + public const int DISP_CHANGE_BADPARAM = -5; + + [NativeTypeName("#define DISP_CHANGE_BADDUALVIEW -6")] + public const int DISP_CHANGE_BADDUALVIEW = -6; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DLGC.cs b/sources/Interop/Windows/Windows/um/WinUser/DLGC.cs new file mode 100644 index 0000000000..4bd7988329 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DLGC.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DLGC + { + [NativeTypeName("#define DLGC_WANTARROWS 0x0001")] + public const int DLGC_WANTARROWS = 0x0001; + + [NativeTypeName("#define DLGC_WANTTAB 0x0002")] + public const int DLGC_WANTTAB = 0x0002; + + [NativeTypeName("#define DLGC_WANTALLKEYS 0x0004")] + public const int DLGC_WANTALLKEYS = 0x0004; + + [NativeTypeName("#define DLGC_WANTMESSAGE 0x0004")] + public const int DLGC_WANTMESSAGE = 0x0004; + + [NativeTypeName("#define DLGC_HASSETSEL 0x0008")] + public const int DLGC_HASSETSEL = 0x0008; + + [NativeTypeName("#define DLGC_DEFPUSHBUTTON 0x0010")] + public const int DLGC_DEFPUSHBUTTON = 0x0010; + + [NativeTypeName("#define DLGC_UNDEFPUSHBUTTON 0x0020")] + public const int DLGC_UNDEFPUSHBUTTON = 0x0020; + + [NativeTypeName("#define DLGC_RADIOBUTTON 0x0040")] + public const int DLGC_RADIOBUTTON = 0x0040; + + [NativeTypeName("#define DLGC_WANTCHARS 0x0080")] + public const int DLGC_WANTCHARS = 0x0080; + + [NativeTypeName("#define DLGC_STATIC 0x0100")] + public const int DLGC_STATIC = 0x0100; + + [NativeTypeName("#define DLGC_BUTTON 0x2000")] + public const int DLGC_BUTTON = 0x2000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DM.cs b/sources/Interop/Windows/Windows/um/WinUser/DM.cs new file mode 100644 index 0000000000..aed9ea5278 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DM.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DM + { + [NativeTypeName("#define DM_POINTERHITTEST 0x0250")] + public const int DM_POINTERHITTEST = 0x0250; + + [NativeTypeName("#define DM_GETDEFID (WM_USER+0)")] + public const int DM_GETDEFID = (0x0400 + 0); + + [NativeTypeName("#define DM_SETDEFID (WM_USER+1)")] + public const int DM_SETDEFID = (0x0400 + 1); + + [NativeTypeName("#define DM_REPOSITION (WM_USER+2)")] + public const int DM_REPOSITION = (0x0400 + 2); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DS.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/DS.Manual.cs new file mode 100644 index 0000000000..bba4d1cc46 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DS.Manual.cs @@ -0,0 +1,12 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class DS + { + public const int DS_USEPIXELS = 0x8000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DS.cs b/sources/Interop/Windows/Windows/um/WinUser/DS.cs new file mode 100644 index 0000000000..715131e585 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DS.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DS + { + [NativeTypeName("#define DS_ABSALIGN 0x01L")] + public const int DS_ABSALIGN = 0x01; + + [NativeTypeName("#define DS_SYSMODAL 0x02L")] + public const int DS_SYSMODAL = 0x02; + + [NativeTypeName("#define DS_LOCALEDIT 0x20L")] + public const int DS_LOCALEDIT = 0x20; + + [NativeTypeName("#define DS_SETFONT 0x40L")] + public const int DS_SETFONT = 0x40; + + [NativeTypeName("#define DS_MODALFRAME 0x80L")] + public const int DS_MODALFRAME = 0x80; + + [NativeTypeName("#define DS_NOIDLEMSG 0x100L")] + public const int DS_NOIDLEMSG = 0x100; + + [NativeTypeName("#define DS_SETFOREGROUND 0x200L")] + public const int DS_SETFOREGROUND = 0x200; + + [NativeTypeName("#define DS_3DLOOK 0x0004L")] + public const int DS_3DLOOK = 0x0004; + + [NativeTypeName("#define DS_FIXEDSYS 0x0008L")] + public const int DS_FIXEDSYS = 0x0008; + + [NativeTypeName("#define DS_NOFAILCREATE 0x0010L")] + public const int DS_NOFAILCREATE = 0x0010; + + [NativeTypeName("#define DS_CONTROL 0x0400L")] + public const int DS_CONTROL = 0x0400; + + [NativeTypeName("#define DS_CENTER 0x0800L")] + public const int DS_CENTER = 0x0800; + + [NativeTypeName("#define DS_CENTERMOUSE 0x1000L")] + public const int DS_CENTERMOUSE = 0x1000; + + [NativeTypeName("#define DS_CONTEXTHELP 0x2000L")] + public const int DS_CONTEXTHELP = 0x2000; + + [NativeTypeName("#define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)")] + public const int DS_SHELLFONT = (0x40 | 0x0008); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/DT.cs b/sources/Interop/Windows/Windows/um/WinUser/DT.cs new file mode 100644 index 0000000000..ee94b430eb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/DT.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DT + { + [NativeTypeName("#define DT_TOP 0x00000000")] + public const int DT_TOP = 0x00000000; + + [NativeTypeName("#define DT_LEFT 0x00000000")] + public const int DT_LEFT = 0x00000000; + + [NativeTypeName("#define DT_CENTER 0x00000001")] + public const int DT_CENTER = 0x00000001; + + [NativeTypeName("#define DT_RIGHT 0x00000002")] + public const int DT_RIGHT = 0x00000002; + + [NativeTypeName("#define DT_VCENTER 0x00000004")] + public const int DT_VCENTER = 0x00000004; + + [NativeTypeName("#define DT_BOTTOM 0x00000008")] + public const int DT_BOTTOM = 0x00000008; + + [NativeTypeName("#define DT_WORDBREAK 0x00000010")] + public const int DT_WORDBREAK = 0x00000010; + + [NativeTypeName("#define DT_SINGLELINE 0x00000020")] + public const int DT_SINGLELINE = 0x00000020; + + [NativeTypeName("#define DT_EXPANDTABS 0x00000040")] + public const int DT_EXPANDTABS = 0x00000040; + + [NativeTypeName("#define DT_TABSTOP 0x00000080")] + public const int DT_TABSTOP = 0x00000080; + + [NativeTypeName("#define DT_NOCLIP 0x00000100")] + public const int DT_NOCLIP = 0x00000100; + + [NativeTypeName("#define DT_EXTERNALLEADING 0x00000200")] + public const int DT_EXTERNALLEADING = 0x00000200; + + [NativeTypeName("#define DT_CALCRECT 0x00000400")] + public const int DT_CALCRECT = 0x00000400; + + [NativeTypeName("#define DT_NOPREFIX 0x00000800")] + public const int DT_NOPREFIX = 0x00000800; + + [NativeTypeName("#define DT_INTERNAL 0x00001000")] + public const int DT_INTERNAL = 0x00001000; + + [NativeTypeName("#define DT_EDITCONTROL 0x00002000")] + public const int DT_EDITCONTROL = 0x00002000; + + [NativeTypeName("#define DT_PATH_ELLIPSIS 0x00004000")] + public const int DT_PATH_ELLIPSIS = 0x00004000; + + [NativeTypeName("#define DT_END_ELLIPSIS 0x00008000")] + public const int DT_END_ELLIPSIS = 0x00008000; + + [NativeTypeName("#define DT_MODIFYSTRING 0x00010000")] + public const int DT_MODIFYSTRING = 0x00010000; + + [NativeTypeName("#define DT_RTLREADING 0x00020000")] + public const int DT_RTLREADING = 0x00020000; + + [NativeTypeName("#define DT_WORD_ELLIPSIS 0x00040000")] + public const int DT_WORD_ELLIPSIS = 0x00040000; + + [NativeTypeName("#define DT_NOFULLWIDTHCHARBREAK 0x00080000")] + public const int DT_NOFULLWIDTHCHARBREAK = 0x00080000; + + [NativeTypeName("#define DT_HIDEPREFIX 0x00100000")] + public const int DT_HIDEPREFIX = 0x00100000; + + [NativeTypeName("#define DT_PREFIXONLY 0x00200000")] + public const int DT_PREFIXONLY = 0x00200000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/EC.cs b/sources/Interop/Windows/Windows/um/WinUser/EC.cs new file mode 100644 index 0000000000..4954cc4fcd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/EC.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EC + { + [NativeTypeName("#define EC_LEFTMARGIN 0x0001")] + public const int EC_LEFTMARGIN = 0x0001; + + [NativeTypeName("#define EC_RIGHTMARGIN 0x0002")] + public const int EC_RIGHTMARGIN = 0x0002; + + [NativeTypeName("#define EC_USEFONTINFO 0xffff")] + public const int EC_USEFONTINFO = 0xffff; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/EN.cs b/sources/Interop/Windows/Windows/um/WinUser/EN.cs new file mode 100644 index 0000000000..b462e4f223 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/EN.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EN + { + [NativeTypeName("#define EN_SETFOCUS 0x0100")] + public const int EN_SETFOCUS = 0x0100; + + [NativeTypeName("#define EN_KILLFOCUS 0x0200")] + public const int EN_KILLFOCUS = 0x0200; + + [NativeTypeName("#define EN_CHANGE 0x0300")] + public const int EN_CHANGE = 0x0300; + + [NativeTypeName("#define EN_UPDATE 0x0400")] + public const int EN_UPDATE = 0x0400; + + [NativeTypeName("#define EN_ERRSPACE 0x0500")] + public const int EN_ERRSPACE = 0x0500; + + [NativeTypeName("#define EN_MAXTEXT 0x0501")] + public const int EN_MAXTEXT = 0x0501; + + [NativeTypeName("#define EN_HSCROLL 0x0601")] + public const int EN_HSCROLL = 0x0601; + + [NativeTypeName("#define EN_VSCROLL 0x0602")] + public const int EN_VSCROLL = 0x0602; + + [NativeTypeName("#define EN_ALIGN_LTR_EC 0x0700")] + public const int EN_ALIGN_LTR_EC = 0x0700; + + [NativeTypeName("#define EN_ALIGN_RTL_EC 0x0701")] + public const int EN_ALIGN_RTL_EC = 0x0701; + + [NativeTypeName("#define EN_BEFORE_PASTE 0x0800")] + public const int EN_BEFORE_PASTE = 0x0800; + + [NativeTypeName("#define EN_AFTER_PASTE 0x0801")] + public const int EN_AFTER_PASTE = 0x0801; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/ES.cs b/sources/Interop/Windows/Windows/um/WinUser/ES.cs new file mode 100644 index 0000000000..74bd9e24ab --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/ES.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ES + { + [NativeTypeName("#define ES_LEFT 0x0000L")] + public const int ES_LEFT = 0x0000; + + [NativeTypeName("#define ES_CENTER 0x0001L")] + public const int ES_CENTER = 0x0001; + + [NativeTypeName("#define ES_RIGHT 0x0002L")] + public const int ES_RIGHT = 0x0002; + + [NativeTypeName("#define ES_MULTILINE 0x0004L")] + public const int ES_MULTILINE = 0x0004; + + [NativeTypeName("#define ES_UPPERCASE 0x0008L")] + public const int ES_UPPERCASE = 0x0008; + + [NativeTypeName("#define ES_LOWERCASE 0x0010L")] + public const int ES_LOWERCASE = 0x0010; + + [NativeTypeName("#define ES_PASSWORD 0x0020L")] + public const int ES_PASSWORD = 0x0020; + + [NativeTypeName("#define ES_AUTOVSCROLL 0x0040L")] + public const int ES_AUTOVSCROLL = 0x0040; + + [NativeTypeName("#define ES_AUTOHSCROLL 0x0080L")] + public const int ES_AUTOHSCROLL = 0x0080; + + [NativeTypeName("#define ES_NOHIDESEL 0x0100L")] + public const int ES_NOHIDESEL = 0x0100; + + [NativeTypeName("#define ES_OEMCONVERT 0x0400L")] + public const int ES_OEMCONVERT = 0x0400; + + [NativeTypeName("#define ES_READONLY 0x0800L")] + public const int ES_READONLY = 0x0800; + + [NativeTypeName("#define ES_WANTRETURN 0x1000L")] + public const int ES_WANTRETURN = 0x1000; + + [NativeTypeName("#define ES_NUMBER 0x2000L")] + public const int ES_NUMBER = 0x2000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/EWX.cs b/sources/Interop/Windows/Windows/um/WinUser/EWX.cs new file mode 100644 index 0000000000..54107f0cbe --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/EWX.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EWX + { + [NativeTypeName("#define EWX_LOGOFF 0x00000000")] + public const int EWX_LOGOFF = 0x00000000; + + [NativeTypeName("#define EWX_SHUTDOWN 0x00000001")] + public const int EWX_SHUTDOWN = 0x00000001; + + [NativeTypeName("#define EWX_REBOOT 0x00000002")] + public const int EWX_REBOOT = 0x00000002; + + [NativeTypeName("#define EWX_FORCE 0x00000004")] + public const int EWX_FORCE = 0x00000004; + + [NativeTypeName("#define EWX_POWEROFF 0x00000008")] + public const int EWX_POWEROFF = 0x00000008; + + [NativeTypeName("#define EWX_FORCEIFHUNG 0x00000010")] + public const int EWX_FORCEIFHUNG = 0x00000010; + + [NativeTypeName("#define EWX_QUICKRESOLVE 0x00000020")] + public const int EWX_QUICKRESOLVE = 0x00000020; + + [NativeTypeName("#define EWX_RESTARTAPPS 0x00000040")] + public const int EWX_RESTARTAPPS = 0x00000040; + + [NativeTypeName("#define EWX_HYBRID_SHUTDOWN 0x00400000")] + public const int EWX_HYBRID_SHUTDOWN = 0x00400000; + + [NativeTypeName("#define EWX_BOOTOPTIONS 0x01000000")] + public const int EWX_BOOTOPTIONS = 0x01000000; + + [NativeTypeName("#define EWX_ARSO 0x04000000")] + public const int EWX_ARSO = 0x04000000; + + [NativeTypeName("#define EWX_CHECK_SAFE_FOR_SERVER 0x08000000")] + public const int EWX_CHECK_SAFE_FOR_SERVER = 0x08000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/GCL.cs b/sources/Interop/Windows/Windows/um/WinUser/GCL.cs new file mode 100644 index 0000000000..2aaf17e82f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/GCL.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GCL + { + [NativeTypeName("#define GCL_MENUNAME (-8)")] + public const int GCL_MENUNAME = (-8); + + [NativeTypeName("#define GCL_HBRBACKGROUND (-10)")] + public const int GCL_HBRBACKGROUND = (-10); + + [NativeTypeName("#define GCL_HCURSOR (-12)")] + public const int GCL_HCURSOR = (-12); + + [NativeTypeName("#define GCL_HICON (-14)")] + public const int GCL_HICON = (-14); + + [NativeTypeName("#define GCL_HMODULE (-16)")] + public const int GCL_HMODULE = (-16); + + [NativeTypeName("#define GCL_CBWNDEXTRA (-18)")] + public const int GCL_CBWNDEXTRA = (-18); + + [NativeTypeName("#define GCL_CBCLSEXTRA (-20)")] + public const int GCL_CBCLSEXTRA = (-20); + + [NativeTypeName("#define GCL_WNDPROC (-24)")] + public const int GCL_WNDPROC = (-24); + + [NativeTypeName("#define GCL_STYLE (-26)")] + public const int GCL_STYLE = (-26); + + [NativeTypeName("#define GCL_HICONSM (-34)")] + public const int GCL_HICONSM = (-34); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/HCBT.cs b/sources/Interop/Windows/Windows/um/WinUser/HCBT.cs new file mode 100644 index 0000000000..772e17d304 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/HCBT.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HCBT + { + [NativeTypeName("#define HCBT_MOVESIZE 0")] + public const int HCBT_MOVESIZE = 0; + + [NativeTypeName("#define HCBT_MINMAX 1")] + public const int HCBT_MINMAX = 1; + + [NativeTypeName("#define HCBT_QS 2")] + public const int HCBT_QS = 2; + + [NativeTypeName("#define HCBT_CREATEWND 3")] + public const int HCBT_CREATEWND = 3; + + [NativeTypeName("#define HCBT_DESTROYWND 4")] + public const int HCBT_DESTROYWND = 4; + + [NativeTypeName("#define HCBT_ACTIVATE 5")] + public const int HCBT_ACTIVATE = 5; + + [NativeTypeName("#define HCBT_CLICKSKIPPED 6")] + public const int HCBT_CLICKSKIPPED = 6; + + [NativeTypeName("#define HCBT_KEYSKIPPED 7")] + public const int HCBT_KEYSKIPPED = 7; + + [NativeTypeName("#define HCBT_SYSCOMMAND 8")] + public const int HCBT_SYSCOMMAND = 8; + + [NativeTypeName("#define HCBT_SETFOCUS 9")] + public const int HCBT_SETFOCUS = 9; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/HCF.cs b/sources/Interop/Windows/Windows/um/WinUser/HCF.cs new file mode 100644 index 0000000000..c179e3f853 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/HCF.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HCF + { + [NativeTypeName("#define HCF_HIGHCONTRASTON 0x00000001")] + public const int HCF_HIGHCONTRASTON = 0x00000001; + + [NativeTypeName("#define HCF_AVAILABLE 0x00000002")] + public const int HCF_AVAILABLE = 0x00000002; + + [NativeTypeName("#define HCF_HOTKEYACTIVE 0x00000004")] + public const int HCF_HOTKEYACTIVE = 0x00000004; + + [NativeTypeName("#define HCF_CONFIRMHOTKEY 0x00000008")] + public const int HCF_CONFIRMHOTKEY = 0x00000008; + + [NativeTypeName("#define HCF_HOTKEYSOUND 0x00000010")] + public const int HCF_HOTKEYSOUND = 0x00000010; + + [NativeTypeName("#define HCF_INDICATOR 0x00000020")] + public const int HCF_INDICATOR = 0x00000020; + + [NativeTypeName("#define HCF_HOTKEYAVAILABLE 0x00000040")] + public const int HCF_HOTKEYAVAILABLE = 0x00000040; + + [NativeTypeName("#define HCF_LOGONDESKTOP 0x00000100")] + public const int HCF_LOGONDESKTOP = 0x00000100; + + [NativeTypeName("#define HCF_DEFAULTDESKTOP 0x00000200")] + public const int HCF_DEFAULTDESKTOP = 0x00000200; + + [NativeTypeName("#define HCF_OPTION_NOTHEMECHANGE 0x00001000")] + public const int HCF_OPTION_NOTHEMECHANGE = 0x00001000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/HELP.cs b/sources/Interop/Windows/Windows/um/WinUser/HELP.cs new file mode 100644 index 0000000000..4b3b61f2c5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/HELP.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HELP + { + [NativeTypeName("#define HELP_CONTEXT 0x0001L")] + public const int HELP_CONTEXT = 0x0001; + + [NativeTypeName("#define HELP_QUIT 0x0002L")] + public const int HELP_QUIT = 0x0002; + + [NativeTypeName("#define HELP_INDEX 0x0003L")] + public const int HELP_INDEX = 0x0003; + + [NativeTypeName("#define HELP_CONTENTS 0x0003L")] + public const int HELP_CONTENTS = 0x0003; + + [NativeTypeName("#define HELP_HELPONHELP 0x0004L")] + public const int HELP_HELPONHELP = 0x0004; + + [NativeTypeName("#define HELP_SETINDEX 0x0005L")] + public const int HELP_SETINDEX = 0x0005; + + [NativeTypeName("#define HELP_SETCONTENTS 0x0005L")] + public const int HELP_SETCONTENTS = 0x0005; + + [NativeTypeName("#define HELP_CONTEXTPOPUP 0x0008L")] + public const int HELP_CONTEXTPOPUP = 0x0008; + + [NativeTypeName("#define HELP_FORCEFILE 0x0009L")] + public const int HELP_FORCEFILE = 0x0009; + + [NativeTypeName("#define HELP_KEY 0x0101L")] + public const int HELP_KEY = 0x0101; + + [NativeTypeName("#define HELP_COMMAND 0x0102L")] + public const int HELP_COMMAND = 0x0102; + + [NativeTypeName("#define HELP_PARTIALKEY 0x0105L")] + public const int HELP_PARTIALKEY = 0x0105; + + [NativeTypeName("#define HELP_MULTIKEY 0x0201L")] + public const int HELP_MULTIKEY = 0x0201; + + [NativeTypeName("#define HELP_SETWINPOS 0x0203L")] + public const int HELP_SETWINPOS = 0x0203; + + [NativeTypeName("#define HELP_CONTEXTMENU 0x000a")] + public const int HELP_CONTEXTMENU = 0x000a; + + [NativeTypeName("#define HELP_FINDER 0x000b")] + public const int HELP_FINDER = 0x000b; + + [NativeTypeName("#define HELP_WM_HELP 0x000c")] + public const int HELP_WM_HELP = 0x000c; + + [NativeTypeName("#define HELP_SETPOPUP_POS 0x000d")] + public const int HELP_SETPOPUP_POS = 0x000d; + + [NativeTypeName("#define HELP_TCARD 0x8000")] + public const int HELP_TCARD = 0x8000; + + [NativeTypeName("#define HELP_TCARD_DATA 0x0010")] + public const int HELP_TCARD_DATA = 0x0010; + + [NativeTypeName("#define HELP_TCARD_OTHER_CALLER 0x0011")] + public const int HELP_TCARD_OTHER_CALLER = 0x0011; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/HSHELL.cs b/sources/Interop/Windows/Windows/um/WinUser/HSHELL.cs new file mode 100644 index 0000000000..c2f7f14176 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/HSHELL.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HSHELL + { + [NativeTypeName("#define HSHELL_WINDOWCREATED 1")] + public const int HSHELL_WINDOWCREATED = 1; + + [NativeTypeName("#define HSHELL_WINDOWDESTROYED 2")] + public const int HSHELL_WINDOWDESTROYED = 2; + + [NativeTypeName("#define HSHELL_ACTIVATESHELLWINDOW 3")] + public const int HSHELL_ACTIVATESHELLWINDOW = 3; + + [NativeTypeName("#define HSHELL_WINDOWACTIVATED 4")] + public const int HSHELL_WINDOWACTIVATED = 4; + + [NativeTypeName("#define HSHELL_GETMINRECT 5")] + public const int HSHELL_GETMINRECT = 5; + + [NativeTypeName("#define HSHELL_REDRAW 6")] + public const int HSHELL_REDRAW = 6; + + [NativeTypeName("#define HSHELL_TASKMAN 7")] + public const int HSHELL_TASKMAN = 7; + + [NativeTypeName("#define HSHELL_LANGUAGE 8")] + public const int HSHELL_LANGUAGE = 8; + + [NativeTypeName("#define HSHELL_SYSMENU 9")] + public const int HSHELL_SYSMENU = 9; + + [NativeTypeName("#define HSHELL_ENDTASK 10")] + public const int HSHELL_ENDTASK = 10; + + [NativeTypeName("#define HSHELL_ACCESSIBILITYSTATE 11")] + public const int HSHELL_ACCESSIBILITYSTATE = 11; + + [NativeTypeName("#define HSHELL_APPCOMMAND 12")] + public const int HSHELL_APPCOMMAND = 12; + + [NativeTypeName("#define HSHELL_WINDOWREPLACED 13")] + public const int HSHELL_WINDOWREPLACED = 13; + + [NativeTypeName("#define HSHELL_WINDOWREPLACING 14")] + public const int HSHELL_WINDOWREPLACING = 14; + + [NativeTypeName("#define HSHELL_MONITORCHANGED 16")] + public const int HSHELL_MONITORCHANGED = 16; + + [NativeTypeName("#define HSHELL_HIGHBIT 0x8000")] + public const int HSHELL_HIGHBIT = 0x8000; + + [NativeTypeName("#define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)")] + public const int HSHELL_FLASH = (6 | 0x8000); + + [NativeTypeName("#define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)")] + public const int HSHELL_RUDEAPPACTIVATED = (4 | 0x8000); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/IDI.cs b/sources/Interop/Windows/Windows/um/WinUser/IDI.cs new file mode 100644 index 0000000000..4b9f8ff3bd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/IDI.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class IDI + { + [NativeTypeName("#define IDI_APPLICATION MAKEINTRESOURCE(32512)")] + public static ushort* IDI_APPLICATION => ((ushort*)((nuint)((ushort)(32512)))); + + [NativeTypeName("#define IDI_HAND MAKEINTRESOURCE(32513)")] + public static ushort* IDI_HAND => ((ushort*)((nuint)((ushort)(32513)))); + + [NativeTypeName("#define IDI_QUESTION MAKEINTRESOURCE(32514)")] + public static ushort* IDI_QUESTION => ((ushort*)((nuint)((ushort)(32514)))); + + [NativeTypeName("#define IDI_EXCLAMATION MAKEINTRESOURCE(32515)")] + public static ushort* IDI_EXCLAMATION => ((ushort*)((nuint)((ushort)(32515)))); + + [NativeTypeName("#define IDI_ASTERISK MAKEINTRESOURCE(32516)")] + public static ushort* IDI_ASTERISK => ((ushort*)((nuint)((ushort)(32516)))); + + [NativeTypeName("#define IDI_WINLOGO MAKEINTRESOURCE(32517)")] + public static ushort* IDI_WINLOGO => ((ushort*)((nuint)((ushort)(32517)))); + + [NativeTypeName("#define IDI_SHIELD MAKEINTRESOURCE(32518)")] + public static ushort* IDI_SHIELD => ((ushort*)((nuint)((ushort)(32518)))); + + [NativeTypeName("#define IDI_WARNING IDI_EXCLAMATION")] + public static ushort* IDI_WARNING => ((ushort*)((nuint)((ushort)(32515)))); + + [NativeTypeName("#define IDI_ERROR IDI_HAND")] + public static ushort* IDI_ERROR => ((ushort*)((nuint)((ushort)(32513)))); + + [NativeTypeName("#define IDI_INFORMATION IDI_ASTERISK")] + public static ushort* IDI_INFORMATION => ((ushort*)((nuint)((ushort)(32516)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/LB.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/LB.Manual.cs new file mode 100644 index 0000000000..c9a98844b2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/LB.Manual.cs @@ -0,0 +1,12 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class LB + { + public const int LB_MULTIPLEADDSTRING = 0x01B1; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/LB.cs b/sources/Interop/Windows/Windows/um/WinUser/LB.cs new file mode 100644 index 0000000000..d189f0db27 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/LB.cs @@ -0,0 +1,148 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LB + { + [NativeTypeName("#define LB_CTLCODE 0L")] + public const int LB_CTLCODE = 0; + + [NativeTypeName("#define LB_OKAY 0")] + public const int LB_OKAY = 0; + + [NativeTypeName("#define LB_ERR (-1)")] + public const int LB_ERR = (-1); + + [NativeTypeName("#define LB_ERRSPACE (-2)")] + public const int LB_ERRSPACE = (-2); + + [NativeTypeName("#define LB_ADDSTRING 0x0180")] + public const int LB_ADDSTRING = 0x0180; + + [NativeTypeName("#define LB_INSERTSTRING 0x0181")] + public const int LB_INSERTSTRING = 0x0181; + + [NativeTypeName("#define LB_DELETESTRING 0x0182")] + public const int LB_DELETESTRING = 0x0182; + + [NativeTypeName("#define LB_SELITEMRANGEEX 0x0183")] + public const int LB_SELITEMRANGEEX = 0x0183; + + [NativeTypeName("#define LB_RESETCONTENT 0x0184")] + public const int LB_RESETCONTENT = 0x0184; + + [NativeTypeName("#define LB_SETSEL 0x0185")] + public const int LB_SETSEL = 0x0185; + + [NativeTypeName("#define LB_SETCURSEL 0x0186")] + public const int LB_SETCURSEL = 0x0186; + + [NativeTypeName("#define LB_GETSEL 0x0187")] + public const int LB_GETSEL = 0x0187; + + [NativeTypeName("#define LB_GETCURSEL 0x0188")] + public const int LB_GETCURSEL = 0x0188; + + [NativeTypeName("#define LB_GETTEXT 0x0189")] + public const int LB_GETTEXT = 0x0189; + + [NativeTypeName("#define LB_GETTEXTLEN 0x018A")] + public const int LB_GETTEXTLEN = 0x018A; + + [NativeTypeName("#define LB_GETCOUNT 0x018B")] + public const int LB_GETCOUNT = 0x018B; + + [NativeTypeName("#define LB_SELECTSTRING 0x018C")] + public const int LB_SELECTSTRING = 0x018C; + + [NativeTypeName("#define LB_DIR 0x018D")] + public const int LB_DIR = 0x018D; + + [NativeTypeName("#define LB_GETTOPINDEX 0x018E")] + public const int LB_GETTOPINDEX = 0x018E; + + [NativeTypeName("#define LB_FINDSTRING 0x018F")] + public const int LB_FINDSTRING = 0x018F; + + [NativeTypeName("#define LB_GETSELCOUNT 0x0190")] + public const int LB_GETSELCOUNT = 0x0190; + + [NativeTypeName("#define LB_GETSELITEMS 0x0191")] + public const int LB_GETSELITEMS = 0x0191; + + [NativeTypeName("#define LB_SETTABSTOPS 0x0192")] + public const int LB_SETTABSTOPS = 0x0192; + + [NativeTypeName("#define LB_GETHORIZONTALEXTENT 0x0193")] + public const int LB_GETHORIZONTALEXTENT = 0x0193; + + [NativeTypeName("#define LB_SETHORIZONTALEXTENT 0x0194")] + public const int LB_SETHORIZONTALEXTENT = 0x0194; + + [NativeTypeName("#define LB_SETCOLUMNWIDTH 0x0195")] + public const int LB_SETCOLUMNWIDTH = 0x0195; + + [NativeTypeName("#define LB_ADDFILE 0x0196")] + public const int LB_ADDFILE = 0x0196; + + [NativeTypeName("#define LB_SETTOPINDEX 0x0197")] + public const int LB_SETTOPINDEX = 0x0197; + + [NativeTypeName("#define LB_GETITEMRECT 0x0198")] + public const int LB_GETITEMRECT = 0x0198; + + [NativeTypeName("#define LB_GETITEMDATA 0x0199")] + public const int LB_GETITEMDATA = 0x0199; + + [NativeTypeName("#define LB_SETITEMDATA 0x019A")] + public const int LB_SETITEMDATA = 0x019A; + + [NativeTypeName("#define LB_SELITEMRANGE 0x019B")] + public const int LB_SELITEMRANGE = 0x019B; + + [NativeTypeName("#define LB_SETANCHORINDEX 0x019C")] + public const int LB_SETANCHORINDEX = 0x019C; + + [NativeTypeName("#define LB_GETANCHORINDEX 0x019D")] + public const int LB_GETANCHORINDEX = 0x019D; + + [NativeTypeName("#define LB_SETCARETINDEX 0x019E")] + public const int LB_SETCARETINDEX = 0x019E; + + [NativeTypeName("#define LB_GETCARETINDEX 0x019F")] + public const int LB_GETCARETINDEX = 0x019F; + + [NativeTypeName("#define LB_SETITEMHEIGHT 0x01A0")] + public const int LB_SETITEMHEIGHT = 0x01A0; + + [NativeTypeName("#define LB_GETITEMHEIGHT 0x01A1")] + public const int LB_GETITEMHEIGHT = 0x01A1; + + [NativeTypeName("#define LB_FINDSTRINGEXACT 0x01A2")] + public const int LB_FINDSTRINGEXACT = 0x01A2; + + [NativeTypeName("#define LB_SETLOCALE 0x01A5")] + public const int LB_SETLOCALE = 0x01A5; + + [NativeTypeName("#define LB_GETLOCALE 0x01A6")] + public const int LB_GETLOCALE = 0x01A6; + + [NativeTypeName("#define LB_SETCOUNT 0x01A7")] + public const int LB_SETCOUNT = 0x01A7; + + [NativeTypeName("#define LB_INITSTORAGE 0x01A8")] + public const int LB_INITSTORAGE = 0x01A8; + + [NativeTypeName("#define LB_ITEMFROMPOINT 0x01A9")] + public const int LB_ITEMFROMPOINT = 0x01A9; + + [NativeTypeName("#define LB_GETLISTBOXINFO 0x01B2")] + public const int LB_GETLISTBOXINFO = 0x01B2; + + [NativeTypeName("#define LB_MSGMAX 0x01B3")] + public const int LB_MSGMAX = 0x01B3; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/LBS.cs b/sources/Interop/Windows/Windows/um/WinUser/LBS.cs new file mode 100644 index 0000000000..f910f6cbb5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/LBS.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LBS + { + [NativeTypeName("#define LBS_NOTIFY 0x0001L")] + public const int LBS_NOTIFY = 0x0001; + + [NativeTypeName("#define LBS_SORT 0x0002L")] + public const int LBS_SORT = 0x0002; + + [NativeTypeName("#define LBS_NOREDRAW 0x0004L")] + public const int LBS_NOREDRAW = 0x0004; + + [NativeTypeName("#define LBS_MULTIPLESEL 0x0008L")] + public const int LBS_MULTIPLESEL = 0x0008; + + [NativeTypeName("#define LBS_OWNERDRAWFIXED 0x0010L")] + public const int LBS_OWNERDRAWFIXED = 0x0010; + + [NativeTypeName("#define LBS_OWNERDRAWVARIABLE 0x0020L")] + public const int LBS_OWNERDRAWVARIABLE = 0x0020; + + [NativeTypeName("#define LBS_HASSTRINGS 0x0040L")] + public const int LBS_HASSTRINGS = 0x0040; + + [NativeTypeName("#define LBS_USETABSTOPS 0x0080L")] + public const int LBS_USETABSTOPS = 0x0080; + + [NativeTypeName("#define LBS_NOINTEGRALHEIGHT 0x0100L")] + public const int LBS_NOINTEGRALHEIGHT = 0x0100; + + [NativeTypeName("#define LBS_MULTICOLUMN 0x0200L")] + public const int LBS_MULTICOLUMN = 0x0200; + + [NativeTypeName("#define LBS_WANTKEYBOARDINPUT 0x0400L")] + public const int LBS_WANTKEYBOARDINPUT = 0x0400; + + [NativeTypeName("#define LBS_EXTENDEDSEL 0x0800L")] + public const int LBS_EXTENDEDSEL = 0x0800; + + [NativeTypeName("#define LBS_DISABLENOSCROLL 0x1000L")] + public const int LBS_DISABLENOSCROLL = 0x1000; + + [NativeTypeName("#define LBS_NODATA 0x2000L")] + public const int LBS_NODATA = 0x2000; + + [NativeTypeName("#define LBS_NOSEL 0x4000L")] + public const int LBS_NOSEL = 0x4000; + + [NativeTypeName("#define LBS_COMBOBOX 0x8000L")] + public const int LBS_COMBOBOX = 0x8000; + + [NativeTypeName("#define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)")] + public const int LBS_STANDARD = (0x0001 | 0x0002 | 0x00200000 | 0x00800000); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/LR.cs b/sources/Interop/Windows/Windows/um/WinUser/LR.cs new file mode 100644 index 0000000000..cce731bc61 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/LR.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LR + { + [NativeTypeName("#define LR_DEFAULTCOLOR 0x00000000")] + public const int LR_DEFAULTCOLOR = 0x00000000; + + [NativeTypeName("#define LR_MONOCHROME 0x00000001")] + public const int LR_MONOCHROME = 0x00000001; + + [NativeTypeName("#define LR_COLOR 0x00000002")] + public const int LR_COLOR = 0x00000002; + + [NativeTypeName("#define LR_COPYRETURNORG 0x00000004")] + public const int LR_COPYRETURNORG = 0x00000004; + + [NativeTypeName("#define LR_COPYDELETEORG 0x00000008")] + public const int LR_COPYDELETEORG = 0x00000008; + + [NativeTypeName("#define LR_LOADFROMFILE 0x00000010")] + public const int LR_LOADFROMFILE = 0x00000010; + + [NativeTypeName("#define LR_LOADTRANSPARENT 0x00000020")] + public const int LR_LOADTRANSPARENT = 0x00000020; + + [NativeTypeName("#define LR_DEFAULTSIZE 0x00000040")] + public const int LR_DEFAULTSIZE = 0x00000040; + + [NativeTypeName("#define LR_VGACOLOR 0x00000080")] + public const int LR_VGACOLOR = 0x00000080; + + [NativeTypeName("#define LR_LOADMAP3DCOLORS 0x00001000")] + public const int LR_LOADMAP3DCOLORS = 0x00001000; + + [NativeTypeName("#define LR_CREATEDIBSECTION 0x00002000")] + public const int LR_CREATEDIBSECTION = 0x00002000; + + [NativeTypeName("#define LR_COPYFROMRESOURCE 0x00004000")] + public const int LR_COPYFROMRESOURCE = 0x00004000; + + [NativeTypeName("#define LR_SHARED 0x00008000")] + public const int LR_SHARED = 0x00008000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MB.cs b/sources/Interop/Windows/Windows/um/WinUser/MB.cs new file mode 100644 index 0000000000..6ebc4fd624 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MB.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MB + { + [NativeTypeName("#define MB_OK 0x00000000L")] + public const int MB_OK = 0x00000000; + + [NativeTypeName("#define MB_OKCANCEL 0x00000001L")] + public const int MB_OKCANCEL = 0x00000001; + + [NativeTypeName("#define MB_ABORTRETRYIGNORE 0x00000002L")] + public const int MB_ABORTRETRYIGNORE = 0x00000002; + + [NativeTypeName("#define MB_YESNOCANCEL 0x00000003L")] + public const int MB_YESNOCANCEL = 0x00000003; + + [NativeTypeName("#define MB_YESNO 0x00000004L")] + public const int MB_YESNO = 0x00000004; + + [NativeTypeName("#define MB_RETRYCANCEL 0x00000005L")] + public const int MB_RETRYCANCEL = 0x00000005; + + [NativeTypeName("#define MB_CANCELTRYCONTINUE 0x00000006L")] + public const int MB_CANCELTRYCONTINUE = 0x00000006; + + [NativeTypeName("#define MB_ICONHAND 0x00000010L")] + public const int MB_ICONHAND = 0x00000010; + + [NativeTypeName("#define MB_ICONQUESTION 0x00000020L")] + public const int MB_ICONQUESTION = 0x00000020; + + [NativeTypeName("#define MB_ICONEXCLAMATION 0x00000030L")] + public const int MB_ICONEXCLAMATION = 0x00000030; + + [NativeTypeName("#define MB_ICONASTERISK 0x00000040L")] + public const int MB_ICONASTERISK = 0x00000040; + + [NativeTypeName("#define MB_USERICON 0x00000080L")] + public const int MB_USERICON = 0x00000080; + + [NativeTypeName("#define MB_ICONWARNING MB_ICONEXCLAMATION")] + public const int MB_ICONWARNING = 0x00000030; + + [NativeTypeName("#define MB_ICONERROR MB_ICONHAND")] + public const int MB_ICONERROR = 0x00000010; + + [NativeTypeName("#define MB_ICONINFORMATION MB_ICONASTERISK")] + public const int MB_ICONINFORMATION = 0x00000040; + + [NativeTypeName("#define MB_ICONSTOP MB_ICONHAND")] + public const int MB_ICONSTOP = 0x00000010; + + [NativeTypeName("#define MB_DEFBUTTON1 0x00000000L")] + public const int MB_DEFBUTTON1 = 0x00000000; + + [NativeTypeName("#define MB_DEFBUTTON2 0x00000100L")] + public const int MB_DEFBUTTON2 = 0x00000100; + + [NativeTypeName("#define MB_DEFBUTTON3 0x00000200L")] + public const int MB_DEFBUTTON3 = 0x00000200; + + [NativeTypeName("#define MB_DEFBUTTON4 0x00000300L")] + public const int MB_DEFBUTTON4 = 0x00000300; + + [NativeTypeName("#define MB_APPLMODAL 0x00000000L")] + public const int MB_APPLMODAL = 0x00000000; + + [NativeTypeName("#define MB_SYSTEMMODAL 0x00001000L")] + public const int MB_SYSTEMMODAL = 0x00001000; + + [NativeTypeName("#define MB_TASKMODAL 0x00002000L")] + public const int MB_TASKMODAL = 0x00002000; + + [NativeTypeName("#define MB_HELP 0x00004000L")] + public const int MB_HELP = 0x00004000; + + [NativeTypeName("#define MB_NOFOCUS 0x00008000L")] + public const int MB_NOFOCUS = 0x00008000; + + [NativeTypeName("#define MB_SETFOREGROUND 0x00010000L")] + public const int MB_SETFOREGROUND = 0x00010000; + + [NativeTypeName("#define MB_DEFAULT_DESKTOP_ONLY 0x00020000L")] + public const int MB_DEFAULT_DESKTOP_ONLY = 0x00020000; + + [NativeTypeName("#define MB_TOPMOST 0x00040000L")] + public const int MB_TOPMOST = 0x00040000; + + [NativeTypeName("#define MB_RIGHT 0x00080000L")] + public const int MB_RIGHT = 0x00080000; + + [NativeTypeName("#define MB_RTLREADING 0x00100000L")] + public const int MB_RTLREADING = 0x00100000; + + [NativeTypeName("#define MB_SERVICE_NOTIFICATION 0x00200000L")] + public const int MB_SERVICE_NOTIFICATION = 0x00200000; + + [NativeTypeName("#define MB_SERVICE_NOTIFICATION_NT3X 0x00040000L")] + public const int MB_SERVICE_NOTIFICATION_NT3X = 0x00040000; + + [NativeTypeName("#define MB_TYPEMASK 0x0000000FL")] + public const int MB_TYPEMASK = 0x0000000F; + + [NativeTypeName("#define MB_ICONMASK 0x000000F0L")] + public const int MB_ICONMASK = 0x000000F0; + + [NativeTypeName("#define MB_DEFMASK 0x00000F00L")] + public const int MB_DEFMASK = 0x00000F00; + + [NativeTypeName("#define MB_MODEMASK 0x00003000L")] + public const int MB_MODEMASK = 0x00003000; + + [NativeTypeName("#define MB_MISCMASK 0x0000C000L")] + public const int MB_MISCMASK = 0x0000C000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MFT.cs b/sources/Interop/Windows/Windows/um/WinUser/MFT.cs new file mode 100644 index 0000000000..2fb64d7e63 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MFT.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MFT + { + [NativeTypeName("#define MFT_STRING MF_STRING")] + public const int MFT_STRING = 0x00000000; + + [NativeTypeName("#define MFT_BITMAP MF_BITMAP")] + public const int MFT_BITMAP = 0x00000004; + + [NativeTypeName("#define MFT_MENUBARBREAK MF_MENUBARBREAK")] + public const int MFT_MENUBARBREAK = 0x00000020; + + [NativeTypeName("#define MFT_MENUBREAK MF_MENUBREAK")] + public const int MFT_MENUBREAK = 0x00000040; + + [NativeTypeName("#define MFT_OWNERDRAW MF_OWNERDRAW")] + public const int MFT_OWNERDRAW = 0x00000100; + + [NativeTypeName("#define MFT_RADIOCHECK 0x00000200L")] + public const int MFT_RADIOCHECK = 0x00000200; + + [NativeTypeName("#define MFT_SEPARATOR MF_SEPARATOR")] + public const int MFT_SEPARATOR = 0x00000800; + + [NativeTypeName("#define MFT_RIGHTORDER 0x00002000L")] + public const int MFT_RIGHTORDER = 0x00002000; + + [NativeTypeName("#define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY")] + public const int MFT_RIGHTJUSTIFY = 0x00004000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MIM.cs b/sources/Interop/Windows/Windows/um/WinUser/MIM.cs new file mode 100644 index 0000000000..ea2bd34a3e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MIM.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIM + { + [NativeTypeName("#define MIM_MAXHEIGHT 0x00000001")] + public const int MIM_MAXHEIGHT = 0x00000001; + + [NativeTypeName("#define MIM_BACKGROUND 0x00000002")] + public const int MIM_BACKGROUND = 0x00000002; + + [NativeTypeName("#define MIM_HELPID 0x00000004")] + public const int MIM_HELPID = 0x00000004; + + [NativeTypeName("#define MIM_MENUDATA 0x00000008")] + public const int MIM_MENUDATA = 0x00000008; + + [NativeTypeName("#define MIM_STYLE 0x00000010")] + public const int MIM_STYLE = 0x00000010; + + [NativeTypeName("#define MIM_APPLYTOSUBMENUS 0x80000000")] + public const uint MIM_APPLYTOSUBMENUS = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MK.cs b/sources/Interop/Windows/Windows/um/WinUser/MK.cs new file mode 100644 index 0000000000..a9fc1a6513 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MK.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MK + { + [NativeTypeName("#define MK_LBUTTON 0x0001")] + public const int MK_LBUTTON = 0x0001; + + [NativeTypeName("#define MK_RBUTTON 0x0002")] + public const int MK_RBUTTON = 0x0002; + + [NativeTypeName("#define MK_SHIFT 0x0004")] + public const int MK_SHIFT = 0x0004; + + [NativeTypeName("#define MK_CONTROL 0x0008")] + public const int MK_CONTROL = 0x0008; + + [NativeTypeName("#define MK_MBUTTON 0x0010")] + public const int MK_MBUTTON = 0x0010; + + [NativeTypeName("#define MK_XBUTTON1 0x0020")] + public const int MK_XBUTTON1 = 0x0020; + + [NativeTypeName("#define MK_XBUTTON2 0x0040")] + public const int MK_XBUTTON2 = 0x0040; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MKF.cs b/sources/Interop/Windows/Windows/um/WinUser/MKF.cs new file mode 100644 index 0000000000..98f36adfa6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MKF.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MKF + { + [NativeTypeName("#define MKF_MOUSEKEYSON 0x00000001")] + public const int MKF_MOUSEKEYSON = 0x00000001; + + [NativeTypeName("#define MKF_AVAILABLE 0x00000002")] + public const int MKF_AVAILABLE = 0x00000002; + + [NativeTypeName("#define MKF_HOTKEYACTIVE 0x00000004")] + public const int MKF_HOTKEYACTIVE = 0x00000004; + + [NativeTypeName("#define MKF_CONFIRMHOTKEY 0x00000008")] + public const int MKF_CONFIRMHOTKEY = 0x00000008; + + [NativeTypeName("#define MKF_HOTKEYSOUND 0x00000010")] + public const int MKF_HOTKEYSOUND = 0x00000010; + + [NativeTypeName("#define MKF_INDICATOR 0x00000020")] + public const int MKF_INDICATOR = 0x00000020; + + [NativeTypeName("#define MKF_MODIFIERS 0x00000040")] + public const int MKF_MODIFIERS = 0x00000040; + + [NativeTypeName("#define MKF_REPLACENUMBERS 0x00000080")] + public const int MKF_REPLACENUMBERS = 0x00000080; + + [NativeTypeName("#define MKF_LEFTBUTTONSEL 0x10000000")] + public const int MKF_LEFTBUTTONSEL = 0x10000000; + + [NativeTypeName("#define MKF_RIGHTBUTTONSEL 0x20000000")] + public const int MKF_RIGHTBUTTONSEL = 0x20000000; + + [NativeTypeName("#define MKF_LEFTBUTTONDOWN 0x01000000")] + public const int MKF_LEFTBUTTONDOWN = 0x01000000; + + [NativeTypeName("#define MKF_RIGHTBUTTONDOWN 0x02000000")] + public const int MKF_RIGHTBUTTONDOWN = 0x02000000; + + [NativeTypeName("#define MKF_MOUSEMODE 0x80000000")] + public const uint MKF_MOUSEMODE = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MOD.cs b/sources/Interop/Windows/Windows/um/WinUser/MOD.cs new file mode 100644 index 0000000000..f4e5d09c6d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MOD.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MOD + { + [NativeTypeName("#define MOD_ALT 0x0001")] + public const int MOD_ALT = 0x0001; + + [NativeTypeName("#define MOD_CONTROL 0x0002")] + public const int MOD_CONTROL = 0x0002; + + [NativeTypeName("#define MOD_SHIFT 0x0004")] + public const int MOD_SHIFT = 0x0004; + + [NativeTypeName("#define MOD_WIN 0x0008")] + public const int MOD_WIN = 0x0008; + + [NativeTypeName("#define MOD_NOREPEAT 0x4000")] + public const int MOD_NOREPEAT = 0x4000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MOUSEEVENTF.cs b/sources/Interop/Windows/Windows/um/WinUser/MOUSEEVENTF.cs new file mode 100644 index 0000000000..64ce4ec13b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MOUSEEVENTF.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MOUSEEVENTF + { + [NativeTypeName("#define MOUSEEVENTF_MOVE 0x0001")] + public const int MOUSEEVENTF_MOVE = 0x0001; + + [NativeTypeName("#define MOUSEEVENTF_LEFTDOWN 0x0002")] + public const int MOUSEEVENTF_LEFTDOWN = 0x0002; + + [NativeTypeName("#define MOUSEEVENTF_LEFTUP 0x0004")] + public const int MOUSEEVENTF_LEFTUP = 0x0004; + + [NativeTypeName("#define MOUSEEVENTF_RIGHTDOWN 0x0008")] + public const int MOUSEEVENTF_RIGHTDOWN = 0x0008; + + [NativeTypeName("#define MOUSEEVENTF_RIGHTUP 0x0010")] + public const int MOUSEEVENTF_RIGHTUP = 0x0010; + + [NativeTypeName("#define MOUSEEVENTF_MIDDLEDOWN 0x0020")] + public const int MOUSEEVENTF_MIDDLEDOWN = 0x0020; + + [NativeTypeName("#define MOUSEEVENTF_MIDDLEUP 0x0040")] + public const int MOUSEEVENTF_MIDDLEUP = 0x0040; + + [NativeTypeName("#define MOUSEEVENTF_XDOWN 0x0080")] + public const int MOUSEEVENTF_XDOWN = 0x0080; + + [NativeTypeName("#define MOUSEEVENTF_XUP 0x0100")] + public const int MOUSEEVENTF_XUP = 0x0100; + + [NativeTypeName("#define MOUSEEVENTF_WHEEL 0x0800")] + public const int MOUSEEVENTF_WHEEL = 0x0800; + + [NativeTypeName("#define MOUSEEVENTF_HWHEEL 0x01000")] + public const int MOUSEEVENTF_HWHEEL = 0x01000; + + [NativeTypeName("#define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000")] + public const int MOUSEEVENTF_MOVE_NOCOALESCE = 0x2000; + + [NativeTypeName("#define MOUSEEVENTF_VIRTUALDESK 0x4000")] + public const int MOUSEEVENTF_VIRTUALDESK = 0x4000; + + [NativeTypeName("#define MOUSEEVENTF_ABSOLUTE 0x8000")] + public const int MOUSEEVENTF_ABSOLUTE = 0x8000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/MSGF.cs b/sources/Interop/Windows/Windows/um/WinUser/MSGF.cs new file mode 100644 index 0000000000..4ac6a0db64 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/MSGF.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MSGF + { + [NativeTypeName("#define MSGF_DIALOGBOX 0")] + public const int MSGF_DIALOGBOX = 0; + + [NativeTypeName("#define MSGF_MESSAGEBOX 1")] + public const int MSGF_MESSAGEBOX = 1; + + [NativeTypeName("#define MSGF_MENU 2")] + public const int MSGF_MENU = 2; + + [NativeTypeName("#define MSGF_SCROLLBAR 5")] + public const int MSGF_SCROLLBAR = 5; + + [NativeTypeName("#define MSGF_NEXTWINDOW 6")] + public const int MSGF_NEXTWINDOW = 6; + + [NativeTypeName("#define MSGF_MAX 8")] + public const int MSGF_MAX = 8; + + [NativeTypeName("#define MSGF_USER 4096")] + public const int MSGF_USER = 4096; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/OBJID.cs b/sources/Interop/Windows/Windows/um/WinUser/OBJID.cs new file mode 100644 index 0000000000..b965d663c5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/OBJID.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OBJID + { + [NativeTypeName("#define OBJID_WINDOW ((LONG)0x00000000)")] + public const int OBJID_WINDOW = ((int)(0x00000000)); + + [NativeTypeName("#define OBJID_SYSMENU ((LONG)0xFFFFFFFF)")] + public const int OBJID_SYSMENU = unchecked((int)(0xFFFFFFFF)); + + [NativeTypeName("#define OBJID_TITLEBAR ((LONG)0xFFFFFFFE)")] + public const int OBJID_TITLEBAR = unchecked((int)(0xFFFFFFFE)); + + [NativeTypeName("#define OBJID_MENU ((LONG)0xFFFFFFFD)")] + public const int OBJID_MENU = unchecked((int)(0xFFFFFFFD)); + + [NativeTypeName("#define OBJID_CLIENT ((LONG)0xFFFFFFFC)")] + public const int OBJID_CLIENT = unchecked((int)(0xFFFFFFFC)); + + [NativeTypeName("#define OBJID_VSCROLL ((LONG)0xFFFFFFFB)")] + public const int OBJID_VSCROLL = unchecked((int)(0xFFFFFFFB)); + + [NativeTypeName("#define OBJID_HSCROLL ((LONG)0xFFFFFFFA)")] + public const int OBJID_HSCROLL = unchecked((int)(0xFFFFFFFA)); + + [NativeTypeName("#define OBJID_SIZEGRIP ((LONG)0xFFFFFFF9)")] + public const int OBJID_SIZEGRIP = unchecked((int)(0xFFFFFFF9)); + + [NativeTypeName("#define OBJID_CARET ((LONG)0xFFFFFFF8)")] + public const int OBJID_CARET = unchecked((int)(0xFFFFFFF8)); + + [NativeTypeName("#define OBJID_CURSOR ((LONG)0xFFFFFFF7)")] + public const int OBJID_CURSOR = unchecked((int)(0xFFFFFFF7)); + + [NativeTypeName("#define OBJID_ALERT ((LONG)0xFFFFFFF6)")] + public const int OBJID_ALERT = unchecked((int)(0xFFFFFFF6)); + + [NativeTypeName("#define OBJID_SOUND ((LONG)0xFFFFFFF5)")] + public const int OBJID_SOUND = unchecked((int)(0xFFFFFFF5)); + + [NativeTypeName("#define OBJID_QUERYCLASSNAMEIDX ((LONG)0xFFFFFFF4)")] + public const int OBJID_QUERYCLASSNAMEIDX = unchecked((int)(0xFFFFFFF4)); + + [NativeTypeName("#define OBJID_NATIVEOM ((LONG)0xFFFFFFF0)")] + public const int OBJID_NATIVEOM = unchecked((int)(0xFFFFFFF0)); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/OBM.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/OBM.Manual.cs new file mode 100644 index 0000000000..726afcd688 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/OBM.Manual.cs @@ -0,0 +1,78 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class OBM + { + public const int OBM_CLOSE = 32754; + + public const int OBM_UPARROW = 32753; + + public const int OBM_DNARROW = 32752; + + public const int OBM_RGARROW = 32751; + + public const int OBM_LFARROW = 32750; + + public const int OBM_REDUCE = 32749; + + public const int OBM_ZOOM = 32748; + + public const int OBM_RESTORE = 32747; + + public const int OBM_REDUCED = 32746; + + public const int OBM_ZOOMD = 32745; + + public const int OBM_RESTORED = 32744; + + public const int OBM_UPARROWD = 32743; + + public const int OBM_DNARROWD = 32742; + + public const int OBM_RGARROWD = 32741; + + public const int OBM_LFARROWD = 32740; + + public const int OBM_MNARROW = 32739; + + public const int OBM_COMBO = 32738; + + public const int OBM_UPARROWI = 32737; + + public const int OBM_DNARROWI = 32736; + + public const int OBM_RGARROWI = 32735; + + public const int OBM_LFARROWI = 32734; + + public const int OBM_OLD_CLOSE = 32767; + + public const int OBM_SIZE = 32766; + + public const int OBM_OLD_UPARROW = 32765; + + public const int OBM_OLD_DNARROW = 32764; + + public const int OBM_OLD_RGARROW = 32763; + + public const int OBM_OLD_LFARROW = 32762; + + public const int OBM_BTSIZE = 32761; + + public const int OBM_CHECK = 32760; + + public const int OBM_CHECKBOXES = 32759; + + public const int OBM_BTNCORNERS = 32758; + + public const int OBM_OLD_REDUCE = 32757; + + public const int OBM_OLD_ZOOM = 32756; + + public const int OBM_OLD_RESTORE = 32755; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/OCR.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/OCR.Manual.cs new file mode 100644 index 0000000000..9ae3d12423 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/OCR.Manual.cs @@ -0,0 +1,47 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class OCR + { + public const int OCR_NORMAL = 32512; + + public const int OCR_IBEAM = 32513; + + public const int OCR_WAIT = 32514; + + public const int OCR_CROSS = 32515; + + public const int OCR_UP = 32516; + + [Obsolete("use OCR_SIZEALL")] + public const int OCR_SIZE = 32640; + + [Obsolete("use OCR_NORMAL")] + public const int OCR_ICON = 32641; + + public const int OCR_SIZENWSE = 32642; + + public const int OCR_SIZENESW = 32643; + + public const int OCR_SIZEWE = 32644; + + public const int OCR_SIZENS = 32645; + + public const int OCR_SIZEALL = 32646; + + [Obsolete("use OIC_WINLOGO")] + public const int OCR_ICOCUR = 32647; + + public const int OCR_NO = 32648; + + public const int OCR_HAND = 32649; + + public const int OCR_APPSTARTING = 32650; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/ODS.cs b/sources/Interop/Windows/Windows/um/WinUser/ODS.cs new file mode 100644 index 0000000000..4d25bf28a2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/ODS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ODS + { + [NativeTypeName("#define ODS_SELECTED 0x0001")] + public const int ODS_SELECTED = 0x0001; + + [NativeTypeName("#define ODS_GRAYED 0x0002")] + public const int ODS_GRAYED = 0x0002; + + [NativeTypeName("#define ODS_DISABLED 0x0004")] + public const int ODS_DISABLED = 0x0004; + + [NativeTypeName("#define ODS_CHECKED 0x0008")] + public const int ODS_CHECKED = 0x0008; + + [NativeTypeName("#define ODS_FOCUS 0x0010")] + public const int ODS_FOCUS = 0x0010; + + [NativeTypeName("#define ODS_DEFAULT 0x0020")] + public const int ODS_DEFAULT = 0x0020; + + [NativeTypeName("#define ODS_COMBOBOXEDIT 0x1000")] + public const int ODS_COMBOBOXEDIT = 0x1000; + + [NativeTypeName("#define ODS_HOTLIGHT 0x0040")] + public const int ODS_HOTLIGHT = 0x0040; + + [NativeTypeName("#define ODS_INACTIVE 0x0080")] + public const int ODS_INACTIVE = 0x0080; + + [NativeTypeName("#define ODS_NOACCEL 0x0100")] + public const int ODS_NOACCEL = 0x0100; + + [NativeTypeName("#define ODS_NOFOCUSRECT 0x0200")] + public const int ODS_NOFOCUSRECT = 0x0200; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/OIC.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/OIC.Manual.cs new file mode 100644 index 0000000000..3ed389c9e5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/OIC.Manual.cs @@ -0,0 +1,30 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class OIC + { + public const int OIC_SAMPLE = 32512; + + public const int OIC_HAND = 32513; + + public const int OIC_QUES = 32514; + + public const int OIC_BANG = 32515; + + public const int OIC_NOTE = 32516; + + public const int OIC_WINLOGO = 32517; + + public const int OIC_WARNING = OIC_BANG; + + public const int OIC_ERROR = OIC_HAND; + + public const int OIC_INFORMATION = OIC_NOTE; + + public const int OIC_SHIELD = 32518; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/PBT.cs b/sources/Interop/Windows/Windows/um/WinUser/PBT.cs new file mode 100644 index 0000000000..b3560320ca --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/PBT.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PBT + { + [NativeTypeName("#define PBT_APMQUERYSUSPEND 0x0000")] + public const int PBT_APMQUERYSUSPEND = 0x0000; + + [NativeTypeName("#define PBT_APMQUERYSTANDBY 0x0001")] + public const int PBT_APMQUERYSTANDBY = 0x0001; + + [NativeTypeName("#define PBT_APMQUERYSUSPENDFAILED 0x0002")] + public const int PBT_APMQUERYSUSPENDFAILED = 0x0002; + + [NativeTypeName("#define PBT_APMQUERYSTANDBYFAILED 0x0003")] + public const int PBT_APMQUERYSTANDBYFAILED = 0x0003; + + [NativeTypeName("#define PBT_APMSUSPEND 0x0004")] + public const int PBT_APMSUSPEND = 0x0004; + + [NativeTypeName("#define PBT_APMSTANDBY 0x0005")] + public const int PBT_APMSTANDBY = 0x0005; + + [NativeTypeName("#define PBT_APMRESUMECRITICAL 0x0006")] + public const int PBT_APMRESUMECRITICAL = 0x0006; + + [NativeTypeName("#define PBT_APMRESUMESUSPEND 0x0007")] + public const int PBT_APMRESUMESUSPEND = 0x0007; + + [NativeTypeName("#define PBT_APMRESUMESTANDBY 0x0008")] + public const int PBT_APMRESUMESTANDBY = 0x0008; + + [NativeTypeName("#define PBT_APMBATTERYLOW 0x0009")] + public const int PBT_APMBATTERYLOW = 0x0009; + + [NativeTypeName("#define PBT_APMPOWERSTATUSCHANGE 0x000A")] + public const int PBT_APMPOWERSTATUSCHANGE = 0x000A; + + [NativeTypeName("#define PBT_APMOEMEVENT 0x000B")] + public const int PBT_APMOEMEVENT = 0x000B; + + [NativeTypeName("#define PBT_APMRESUMEAUTOMATIC 0x0012")] + public const int PBT_APMRESUMEAUTOMATIC = 0x0012; + + [NativeTypeName("#define PBT_POWERSETTINGCHANGE 0x8013")] + public const int PBT_POWERSETTINGCHANGE = 0x8013; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/PDC.cs b/sources/Interop/Windows/Windows/um/WinUser/PDC.cs new file mode 100644 index 0000000000..b928c59c36 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/PDC.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PDC + { + [NativeTypeName("#define PDC_ARRIVAL 0x001")] + public const int PDC_ARRIVAL = 0x001; + + [NativeTypeName("#define PDC_REMOVAL 0x002")] + public const int PDC_REMOVAL = 0x002; + + [NativeTypeName("#define PDC_ORIENTATION_0 0x004")] + public const int PDC_ORIENTATION_0 = 0x004; + + [NativeTypeName("#define PDC_ORIENTATION_90 0x008")] + public const int PDC_ORIENTATION_90 = 0x008; + + [NativeTypeName("#define PDC_ORIENTATION_180 0x010")] + public const int PDC_ORIENTATION_180 = 0x010; + + [NativeTypeName("#define PDC_ORIENTATION_270 0x020")] + public const int PDC_ORIENTATION_270 = 0x020; + + [NativeTypeName("#define PDC_MODE_DEFAULT 0x040")] + public const int PDC_MODE_DEFAULT = 0x040; + + [NativeTypeName("#define PDC_MODE_CENTERED 0x080")] + public const int PDC_MODE_CENTERED = 0x080; + + [NativeTypeName("#define PDC_MAPPING_CHANGE 0x100")] + public const int PDC_MAPPING_CHANGE = 0x100; + + [NativeTypeName("#define PDC_RESOLUTION 0x200")] + public const int PDC_RESOLUTION = 0x200; + + [NativeTypeName("#define PDC_ORIGIN 0x400")] + public const int PDC_ORIGIN = 0x400; + + [NativeTypeName("#define PDC_MODE_ASPECTRATIOPRESERVED 0x800")] + public const int PDC_MODE_ASPECTRATIOPRESERVED = 0x800; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/POINTER.cs b/sources/Interop/Windows/Windows/um/WinUser/POINTER.cs new file mode 100644 index 0000000000..4353b53bdf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/POINTER.cs @@ -0,0 +1,109 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class POINTER + { + [NativeTypeName("#define POINTER_FLAG_NONE 0x00000000")] + public const int POINTER_FLAG_NONE = 0x00000000; + + [NativeTypeName("#define POINTER_FLAG_NEW 0x00000001")] + public const int POINTER_FLAG_NEW = 0x00000001; + + [NativeTypeName("#define POINTER_FLAG_INRANGE 0x00000002")] + public const int POINTER_FLAG_INRANGE = 0x00000002; + + [NativeTypeName("#define POINTER_FLAG_INCONTACT 0x00000004")] + public const int POINTER_FLAG_INCONTACT = 0x00000004; + + [NativeTypeName("#define POINTER_FLAG_FIRSTBUTTON 0x00000010")] + public const int POINTER_FLAG_FIRSTBUTTON = 0x00000010; + + [NativeTypeName("#define POINTER_FLAG_SECONDBUTTON 0x00000020")] + public const int POINTER_FLAG_SECONDBUTTON = 0x00000020; + + [NativeTypeName("#define POINTER_FLAG_THIRDBUTTON 0x00000040")] + public const int POINTER_FLAG_THIRDBUTTON = 0x00000040; + + [NativeTypeName("#define POINTER_FLAG_FOURTHBUTTON 0x00000080")] + public const int POINTER_FLAG_FOURTHBUTTON = 0x00000080; + + [NativeTypeName("#define POINTER_FLAG_FIFTHBUTTON 0x00000100")] + public const int POINTER_FLAG_FIFTHBUTTON = 0x00000100; + + [NativeTypeName("#define POINTER_FLAG_PRIMARY 0x00002000")] + public const int POINTER_FLAG_PRIMARY = 0x00002000; + + [NativeTypeName("#define POINTER_FLAG_CONFIDENCE 0x00004000")] + public const int POINTER_FLAG_CONFIDENCE = 0x00004000; + + [NativeTypeName("#define POINTER_FLAG_CANCELED 0x00008000")] + public const int POINTER_FLAG_CANCELED = 0x00008000; + + [NativeTypeName("#define POINTER_FLAG_DOWN 0x00010000")] + public const int POINTER_FLAG_DOWN = 0x00010000; + + [NativeTypeName("#define POINTER_FLAG_UPDATE 0x00020000")] + public const int POINTER_FLAG_UPDATE = 0x00020000; + + [NativeTypeName("#define POINTER_FLAG_UP 0x00040000")] + public const int POINTER_FLAG_UP = 0x00040000; + + [NativeTypeName("#define POINTER_FLAG_WHEEL 0x00080000")] + public const int POINTER_FLAG_WHEEL = 0x00080000; + + [NativeTypeName("#define POINTER_FLAG_HWHEEL 0x00100000")] + public const int POINTER_FLAG_HWHEEL = 0x00100000; + + [NativeTypeName("#define POINTER_FLAG_CAPTURECHANGED 0x00200000")] + public const int POINTER_FLAG_CAPTURECHANGED = 0x00200000; + + [NativeTypeName("#define POINTER_FLAG_HASTRANSFORM 0x00400000")] + public const int POINTER_FLAG_HASTRANSFORM = 0x00400000; + + [NativeTypeName("#define POINTER_MOD_SHIFT (0x0004)")] + public const int POINTER_MOD_SHIFT = (0x0004); + + [NativeTypeName("#define POINTER_MOD_CTRL (0x0008)")] + public const int POINTER_MOD_CTRL = (0x0008); + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_NEW 0x00000001")] + public const int POINTER_MESSAGE_FLAG_NEW = 0x00000001; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_INRANGE 0x00000002")] + public const int POINTER_MESSAGE_FLAG_INRANGE = 0x00000002; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_INCONTACT 0x00000004")] + public const int POINTER_MESSAGE_FLAG_INCONTACT = 0x00000004; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_FIRSTBUTTON 0x00000010")] + public const int POINTER_MESSAGE_FLAG_FIRSTBUTTON = 0x00000010; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_SECONDBUTTON 0x00000020")] + public const int POINTER_MESSAGE_FLAG_SECONDBUTTON = 0x00000020; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_THIRDBUTTON 0x00000040")] + public const int POINTER_MESSAGE_FLAG_THIRDBUTTON = 0x00000040; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_FOURTHBUTTON 0x00000080")] + public const int POINTER_MESSAGE_FLAG_FOURTHBUTTON = 0x00000080; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_FIFTHBUTTON 0x00000100")] + public const int POINTER_MESSAGE_FLAG_FIFTHBUTTON = 0x00000100; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_PRIMARY 0x00002000")] + public const int POINTER_MESSAGE_FLAG_PRIMARY = 0x00002000; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_CONFIDENCE 0x00004000")] + public const int POINTER_MESSAGE_FLAG_CONFIDENCE = 0x00004000; + + [NativeTypeName("#define POINTER_MESSAGE_FLAG_CANCELED 0x00008000")] + public const int POINTER_MESSAGE_FLAG_CANCELED = 0x00008000; + + [NativeTypeName("#define POINTER_DEVICE_PRODUCT_STRING_MAX 520")] + public const int POINTER_DEVICE_PRODUCT_STRING_MAX = 520; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/PRF.cs b/sources/Interop/Windows/Windows/um/WinUser/PRF.cs new file mode 100644 index 0000000000..8b8a904616 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/PRF.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PRF + { + [NativeTypeName("#define PRF_CHECKVISIBLE 0x00000001L")] + public const int PRF_CHECKVISIBLE = 0x00000001; + + [NativeTypeName("#define PRF_NONCLIENT 0x00000002L")] + public const int PRF_NONCLIENT = 0x00000002; + + [NativeTypeName("#define PRF_CLIENT 0x00000004L")] + public const int PRF_CLIENT = 0x00000004; + + [NativeTypeName("#define PRF_ERASEBKGND 0x00000008L")] + public const int PRF_ERASEBKGND = 0x00000008; + + [NativeTypeName("#define PRF_CHILDREN 0x00000010L")] + public const int PRF_CHILDREN = 0x00000010; + + [NativeTypeName("#define PRF_OWNED 0x00000020L")] + public const int PRF_OWNED = 0x00000020; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/QS.cs b/sources/Interop/Windows/Windows/um/WinUser/QS.cs new file mode 100644 index 0000000000..7c2b69bca7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/QS.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class QS + { + [NativeTypeName("#define QS_KEY 0x0001")] + public const int QS_KEY = 0x0001; + + [NativeTypeName("#define QS_MOUSEMOVE 0x0002")] + public const int QS_MOUSEMOVE = 0x0002; + + [NativeTypeName("#define QS_MOUSEBUTTON 0x0004")] + public const int QS_MOUSEBUTTON = 0x0004; + + [NativeTypeName("#define QS_POSTMESSAGE 0x0008")] + public const int QS_POSTMESSAGE = 0x0008; + + [NativeTypeName("#define QS_TIMER 0x0010")] + public const int QS_TIMER = 0x0010; + + [NativeTypeName("#define QS_PAINT 0x0020")] + public const int QS_PAINT = 0x0020; + + [NativeTypeName("#define QS_SENDMESSAGE 0x0040")] + public const int QS_SENDMESSAGE = 0x0040; + + [NativeTypeName("#define QS_HOTKEY 0x0080")] + public const int QS_HOTKEY = 0x0080; + + [NativeTypeName("#define QS_ALLPOSTMESSAGE 0x0100")] + public const int QS_ALLPOSTMESSAGE = 0x0100; + + [NativeTypeName("#define QS_RAWINPUT 0x0400")] + public const int QS_RAWINPUT = 0x0400; + + [NativeTypeName("#define QS_TOUCH 0x0800")] + public const int QS_TOUCH = 0x0800; + + [NativeTypeName("#define QS_POINTER 0x1000")] + public const int QS_POINTER = 0x1000; + + [NativeTypeName("#define QS_MOUSE (QS_MOUSEMOVE | \\\r\n QS_MOUSEBUTTON)")] + public const int QS_MOUSE = (0x0002 | 0x0004); + + [NativeTypeName("#define QS_INPUT (QS_MOUSE | \\\r\n QS_KEY | \\\r\n QS_RAWINPUT | \\\r\n QS_TOUCH | \\\r\n QS_POINTER)")] + public const int QS_INPUT = ((0x0002 | 0x0004) | 0x0001 | 0x0400 | 0x0800 | 0x1000); + + [NativeTypeName("#define QS_ALLEVENTS (QS_INPUT | \\\r\n QS_POSTMESSAGE | \\\r\n QS_TIMER | \\\r\n QS_PAINT | \\\r\n QS_HOTKEY)")] + public const int QS_ALLEVENTS = (((0x0002 | 0x0004) | 0x0001 | 0x0400 | 0x0800 | 0x1000) | 0x0008 | 0x0010 | 0x0020 | 0x0080); + + [NativeTypeName("#define QS_ALLINPUT (QS_INPUT | \\\r\n QS_POSTMESSAGE | \\\r\n QS_TIMER | \\\r\n QS_PAINT | \\\r\n QS_HOTKEY | \\\r\n QS_SENDMESSAGE)")] + public const int QS_ALLINPUT = (((0x0002 | 0x0004) | 0x0001 | 0x0400 | 0x0800 | 0x1000) | 0x0008 | 0x0010 | 0x0020 | 0x0080 | 0x0040); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/RDW.cs b/sources/Interop/Windows/Windows/um/WinUser/RDW.cs new file mode 100644 index 0000000000..ba27813294 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/RDW.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RDW + { + [NativeTypeName("#define RDW_INVALIDATE 0x0001")] + public const int RDW_INVALIDATE = 0x0001; + + [NativeTypeName("#define RDW_INTERNALPAINT 0x0002")] + public const int RDW_INTERNALPAINT = 0x0002; + + [NativeTypeName("#define RDW_ERASE 0x0004")] + public const int RDW_ERASE = 0x0004; + + [NativeTypeName("#define RDW_VALIDATE 0x0008")] + public const int RDW_VALIDATE = 0x0008; + + [NativeTypeName("#define RDW_NOINTERNALPAINT 0x0010")] + public const int RDW_NOINTERNALPAINT = 0x0010; + + [NativeTypeName("#define RDW_NOERASE 0x0020")] + public const int RDW_NOERASE = 0x0020; + + [NativeTypeName("#define RDW_NOCHILDREN 0x0040")] + public const int RDW_NOCHILDREN = 0x0040; + + [NativeTypeName("#define RDW_ALLCHILDREN 0x0080")] + public const int RDW_ALLCHILDREN = 0x0080; + + [NativeTypeName("#define RDW_UPDATENOW 0x0100")] + public const int RDW_UPDATENOW = 0x0100; + + [NativeTypeName("#define RDW_ERASENOW 0x0200")] + public const int RDW_ERASENOW = 0x0200; + + [NativeTypeName("#define RDW_FRAME 0x0400")] + public const int RDW_FRAME = 0x0400; + + [NativeTypeName("#define RDW_NOFRAME 0x0800")] + public const int RDW_NOFRAME = 0x0800; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/RI.cs b/sources/Interop/Windows/Windows/um/WinUser/RI.cs new file mode 100644 index 0000000000..e7b666d287 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/RI.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RI + { + [NativeTypeName("#define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001")] + public const int RI_MOUSE_LEFT_BUTTON_DOWN = 0x0001; + + [NativeTypeName("#define RI_MOUSE_LEFT_BUTTON_UP 0x0002")] + public const int RI_MOUSE_LEFT_BUTTON_UP = 0x0002; + + [NativeTypeName("#define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004")] + public const int RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004; + + [NativeTypeName("#define RI_MOUSE_RIGHT_BUTTON_UP 0x0008")] + public const int RI_MOUSE_RIGHT_BUTTON_UP = 0x0008; + + [NativeTypeName("#define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010")] + public const int RI_MOUSE_MIDDLE_BUTTON_DOWN = 0x0010; + + [NativeTypeName("#define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020")] + public const int RI_MOUSE_MIDDLE_BUTTON_UP = 0x0020; + + [NativeTypeName("#define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN")] + public const int RI_MOUSE_BUTTON_1_DOWN = 0x0001; + + [NativeTypeName("#define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP")] + public const int RI_MOUSE_BUTTON_1_UP = 0x0002; + + [NativeTypeName("#define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN")] + public const int RI_MOUSE_BUTTON_2_DOWN = 0x0004; + + [NativeTypeName("#define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP")] + public const int RI_MOUSE_BUTTON_2_UP = 0x0008; + + [NativeTypeName("#define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN")] + public const int RI_MOUSE_BUTTON_3_DOWN = 0x0010; + + [NativeTypeName("#define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP")] + public const int RI_MOUSE_BUTTON_3_UP = 0x0020; + + [NativeTypeName("#define RI_MOUSE_BUTTON_4_DOWN 0x0040")] + public const int RI_MOUSE_BUTTON_4_DOWN = 0x0040; + + [NativeTypeName("#define RI_MOUSE_BUTTON_4_UP 0x0080")] + public const int RI_MOUSE_BUTTON_4_UP = 0x0080; + + [NativeTypeName("#define RI_MOUSE_BUTTON_5_DOWN 0x0100")] + public const int RI_MOUSE_BUTTON_5_DOWN = 0x0100; + + [NativeTypeName("#define RI_MOUSE_BUTTON_5_UP 0x0200")] + public const int RI_MOUSE_BUTTON_5_UP = 0x0200; + + [NativeTypeName("#define RI_MOUSE_WHEEL 0x0400")] + public const int RI_MOUSE_WHEEL = 0x0400; + + [NativeTypeName("#define RI_MOUSE_HWHEEL 0x0800")] + public const int RI_MOUSE_HWHEEL = 0x0800; + + [NativeTypeName("#define RI_KEY_MAKE 0")] + public const int RI_KEY_MAKE = 0; + + [NativeTypeName("#define RI_KEY_BREAK 1")] + public const int RI_KEY_BREAK = 1; + + [NativeTypeName("#define RI_KEY_E0 2")] + public const int RI_KEY_E0 = 2; + + [NativeTypeName("#define RI_KEY_E1 4")] + public const int RI_KEY_E1 = 4; + + [NativeTypeName("#define RI_KEY_TERMSRV_SET_LED 8")] + public const int RI_KEY_TERMSRV_SET_LED = 8; + + [NativeTypeName("#define RI_KEY_TERMSRV_SHADOW 0x10")] + public const int RI_KEY_TERMSRV_SHADOW = 0x10; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/RIDEV.cs b/sources/Interop/Windows/Windows/um/WinUser/RIDEV.cs new file mode 100644 index 0000000000..534f6df727 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/RIDEV.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RIDEV + { + [NativeTypeName("#define RIDEV_REMOVE 0x00000001")] + public const int RIDEV_REMOVE = 0x00000001; + + [NativeTypeName("#define RIDEV_EXCLUDE 0x00000010")] + public const int RIDEV_EXCLUDE = 0x00000010; + + [NativeTypeName("#define RIDEV_PAGEONLY 0x00000020")] + public const int RIDEV_PAGEONLY = 0x00000020; + + [NativeTypeName("#define RIDEV_NOLEGACY 0x00000030")] + public const int RIDEV_NOLEGACY = 0x00000030; + + [NativeTypeName("#define RIDEV_INPUTSINK 0x00000100")] + public const int RIDEV_INPUTSINK = 0x00000100; + + [NativeTypeName("#define RIDEV_CAPTUREMOUSE 0x00000200")] + public const int RIDEV_CAPTUREMOUSE = 0x00000200; + + [NativeTypeName("#define RIDEV_NOHOTKEYS 0x00000200")] + public const int RIDEV_NOHOTKEYS = 0x00000200; + + [NativeTypeName("#define RIDEV_APPKEYS 0x00000400")] + public const int RIDEV_APPKEYS = 0x00000400; + + [NativeTypeName("#define RIDEV_EXINPUTSINK 0x00001000")] + public const int RIDEV_EXINPUTSINK = 0x00001000; + + [NativeTypeName("#define RIDEV_DEVNOTIFY 0x00002000")] + public const int RIDEV_DEVNOTIFY = 0x00002000; + + [NativeTypeName("#define RIDEV_EXMODEMASK 0x000000F0")] + public const int RIDEV_EXMODEMASK = 0x000000F0; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SBS.cs b/sources/Interop/Windows/Windows/um/WinUser/SBS.cs new file mode 100644 index 0000000000..2c16b71a9c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SBS.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SBS + { + [NativeTypeName("#define SBS_HORZ 0x0000L")] + public const int SBS_HORZ = 0x0000; + + [NativeTypeName("#define SBS_VERT 0x0001L")] + public const int SBS_VERT = 0x0001; + + [NativeTypeName("#define SBS_TOPALIGN 0x0002L")] + public const int SBS_TOPALIGN = 0x0002; + + [NativeTypeName("#define SBS_LEFTALIGN 0x0002L")] + public const int SBS_LEFTALIGN = 0x0002; + + [NativeTypeName("#define SBS_BOTTOMALIGN 0x0004L")] + public const int SBS_BOTTOMALIGN = 0x0004; + + [NativeTypeName("#define SBS_RIGHTALIGN 0x0004L")] + public const int SBS_RIGHTALIGN = 0x0004; + + [NativeTypeName("#define SBS_SIZEBOXTOPLEFTALIGN 0x0002L")] + public const int SBS_SIZEBOXTOPLEFTALIGN = 0x0002; + + [NativeTypeName("#define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L")] + public const int SBS_SIZEBOXBOTTOMRIGHTALIGN = 0x0004; + + [NativeTypeName("#define SBS_SIZEBOX 0x0008L")] + public const int SBS_SIZEBOX = 0x0008; + + [NativeTypeName("#define SBS_SIZEGRIP 0x0010L")] + public const int SBS_SIZEGRIP = 0x0010; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SC.cs b/sources/Interop/Windows/Windows/um/WinUser/SC.cs new file mode 100644 index 0000000000..aa5804d801 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SC.cs @@ -0,0 +1,76 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SC + { + [NativeTypeName("#define SC_SIZE 0xF000")] + public const int SC_SIZE = 0xF000; + + [NativeTypeName("#define SC_MOVE 0xF010")] + public const int SC_MOVE = 0xF010; + + [NativeTypeName("#define SC_MINIMIZE 0xF020")] + public const int SC_MINIMIZE = 0xF020; + + [NativeTypeName("#define SC_MAXIMIZE 0xF030")] + public const int SC_MAXIMIZE = 0xF030; + + [NativeTypeName("#define SC_NEXTWINDOW 0xF040")] + public const int SC_NEXTWINDOW = 0xF040; + + [NativeTypeName("#define SC_PREVWINDOW 0xF050")] + public const int SC_PREVWINDOW = 0xF050; + + [NativeTypeName("#define SC_CLOSE 0xF060")] + public const int SC_CLOSE = 0xF060; + + [NativeTypeName("#define SC_VSCROLL 0xF070")] + public const int SC_VSCROLL = 0xF070; + + [NativeTypeName("#define SC_HSCROLL 0xF080")] + public const int SC_HSCROLL = 0xF080; + + [NativeTypeName("#define SC_MOUSEMENU 0xF090")] + public const int SC_MOUSEMENU = 0xF090; + + [NativeTypeName("#define SC_KEYMENU 0xF100")] + public const int SC_KEYMENU = 0xF100; + + [NativeTypeName("#define SC_ARRANGE 0xF110")] + public const int SC_ARRANGE = 0xF110; + + [NativeTypeName("#define SC_RESTORE 0xF120")] + public const int SC_RESTORE = 0xF120; + + [NativeTypeName("#define SC_TASKLIST 0xF130")] + public const int SC_TASKLIST = 0xF130; + + [NativeTypeName("#define SC_SCREENSAVE 0xF140")] + public const int SC_SCREENSAVE = 0xF140; + + [NativeTypeName("#define SC_HOTKEY 0xF150")] + public const int SC_HOTKEY = 0xF150; + + [NativeTypeName("#define SC_DEFAULT 0xF160")] + public const int SC_DEFAULT = 0xF160; + + [NativeTypeName("#define SC_MONITORPOWER 0xF170")] + public const int SC_MONITORPOWER = 0xF170; + + [NativeTypeName("#define SC_CONTEXTHELP 0xF180")] + public const int SC_CONTEXTHELP = 0xF180; + + [NativeTypeName("#define SC_SEPARATOR 0xF00F")] + public const int SC_SEPARATOR = 0xF00F; + + [NativeTypeName("#define SC_ICON SC_MINIMIZE")] + public const int SC_ICON = 0xF020; + + [NativeTypeName("#define SC_ZOOM SC_MAXIMIZE")] + public const int SC_ZOOM = 0xF030; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SKF.cs b/sources/Interop/Windows/Windows/um/WinUser/SKF.cs new file mode 100644 index 0000000000..1879428b4d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SKF.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SKF + { + [NativeTypeName("#define SKF_STICKYKEYSON 0x00000001")] + public const int SKF_STICKYKEYSON = 0x00000001; + + [NativeTypeName("#define SKF_AVAILABLE 0x00000002")] + public const int SKF_AVAILABLE = 0x00000002; + + [NativeTypeName("#define SKF_HOTKEYACTIVE 0x00000004")] + public const int SKF_HOTKEYACTIVE = 0x00000004; + + [NativeTypeName("#define SKF_CONFIRMHOTKEY 0x00000008")] + public const int SKF_CONFIRMHOTKEY = 0x00000008; + + [NativeTypeName("#define SKF_HOTKEYSOUND 0x00000010")] + public const int SKF_HOTKEYSOUND = 0x00000010; + + [NativeTypeName("#define SKF_INDICATOR 0x00000020")] + public const int SKF_INDICATOR = 0x00000020; + + [NativeTypeName("#define SKF_AUDIBLEFEEDBACK 0x00000040")] + public const int SKF_AUDIBLEFEEDBACK = 0x00000040; + + [NativeTypeName("#define SKF_TRISTATE 0x00000080")] + public const int SKF_TRISTATE = 0x00000080; + + [NativeTypeName("#define SKF_TWOKEYSOFF 0x00000100")] + public const int SKF_TWOKEYSOFF = 0x00000100; + + [NativeTypeName("#define SKF_LALTLATCHED 0x10000000")] + public const int SKF_LALTLATCHED = 0x10000000; + + [NativeTypeName("#define SKF_LCTLLATCHED 0x04000000")] + public const int SKF_LCTLLATCHED = 0x04000000; + + [NativeTypeName("#define SKF_LSHIFTLATCHED 0x01000000")] + public const int SKF_LSHIFTLATCHED = 0x01000000; + + [NativeTypeName("#define SKF_RALTLATCHED 0x20000000")] + public const int SKF_RALTLATCHED = 0x20000000; + + [NativeTypeName("#define SKF_RCTLLATCHED 0x08000000")] + public const int SKF_RCTLLATCHED = 0x08000000; + + [NativeTypeName("#define SKF_RSHIFTLATCHED 0x02000000")] + public const int SKF_RSHIFTLATCHED = 0x02000000; + + [NativeTypeName("#define SKF_LWINLATCHED 0x40000000")] + public const int SKF_LWINLATCHED = 0x40000000; + + [NativeTypeName("#define SKF_RWINLATCHED 0x80000000")] + public const uint SKF_RWINLATCHED = 0x80000000; + + [NativeTypeName("#define SKF_LALTLOCKED 0x00100000")] + public const int SKF_LALTLOCKED = 0x00100000; + + [NativeTypeName("#define SKF_LCTLLOCKED 0x00040000")] + public const int SKF_LCTLLOCKED = 0x00040000; + + [NativeTypeName("#define SKF_LSHIFTLOCKED 0x00010000")] + public const int SKF_LSHIFTLOCKED = 0x00010000; + + [NativeTypeName("#define SKF_RALTLOCKED 0x00200000")] + public const int SKF_RALTLOCKED = 0x00200000; + + [NativeTypeName("#define SKF_RCTLLOCKED 0x00080000")] + public const int SKF_RCTLLOCKED = 0x00080000; + + [NativeTypeName("#define SKF_RSHIFTLOCKED 0x00020000")] + public const int SKF_RSHIFTLOCKED = 0x00020000; + + [NativeTypeName("#define SKF_LWINLOCKED 0x00400000")] + public const int SKF_LWINLOCKED = 0x00400000; + + [NativeTypeName("#define SKF_RWINLOCKED 0x00800000")] + public const int SKF_RWINLOCKED = 0x00800000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SOUND.cs b/sources/Interop/Windows/Windows/um/WinUser/SOUND.cs new file mode 100644 index 0000000000..bc55eae95f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SOUND.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SOUND + { + [NativeTypeName("#define SOUND_SYSTEM_STARTUP 1")] + public const int SOUND_SYSTEM_STARTUP = 1; + + [NativeTypeName("#define SOUND_SYSTEM_SHUTDOWN 2")] + public const int SOUND_SYSTEM_SHUTDOWN = 2; + + [NativeTypeName("#define SOUND_SYSTEM_BEEP 3")] + public const int SOUND_SYSTEM_BEEP = 3; + + [NativeTypeName("#define SOUND_SYSTEM_ERROR 4")] + public const int SOUND_SYSTEM_ERROR = 4; + + [NativeTypeName("#define SOUND_SYSTEM_QUESTION 5")] + public const int SOUND_SYSTEM_QUESTION = 5; + + [NativeTypeName("#define SOUND_SYSTEM_WARNING 6")] + public const int SOUND_SYSTEM_WARNING = 6; + + [NativeTypeName("#define SOUND_SYSTEM_INFORMATION 7")] + public const int SOUND_SYSTEM_INFORMATION = 7; + + [NativeTypeName("#define SOUND_SYSTEM_MAXIMIZE 8")] + public const int SOUND_SYSTEM_MAXIMIZE = 8; + + [NativeTypeName("#define SOUND_SYSTEM_MINIMIZE 9")] + public const int SOUND_SYSTEM_MINIMIZE = 9; + + [NativeTypeName("#define SOUND_SYSTEM_RESTOREUP 10")] + public const int SOUND_SYSTEM_RESTOREUP = 10; + + [NativeTypeName("#define SOUND_SYSTEM_RESTOREDOWN 11")] + public const int SOUND_SYSTEM_RESTOREDOWN = 11; + + [NativeTypeName("#define SOUND_SYSTEM_APPSTART 12")] + public const int SOUND_SYSTEM_APPSTART = 12; + + [NativeTypeName("#define SOUND_SYSTEM_FAULT 13")] + public const int SOUND_SYSTEM_FAULT = 13; + + [NativeTypeName("#define SOUND_SYSTEM_APPEND 14")] + public const int SOUND_SYSTEM_APPEND = 14; + + [NativeTypeName("#define SOUND_SYSTEM_MENUCOMMAND 15")] + public const int SOUND_SYSTEM_MENUCOMMAND = 15; + + [NativeTypeName("#define SOUND_SYSTEM_MENUPOPUP 16")] + public const int SOUND_SYSTEM_MENUPOPUP = 16; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SS.cs b/sources/Interop/Windows/Windows/um/WinUser/SS.cs new file mode 100644 index 0000000000..edc5cb128b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SS.cs @@ -0,0 +1,106 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SS + { + [NativeTypeName("#define SS_LEFT 0x00000000L")] + public const int SS_LEFT = 0x00000000; + + [NativeTypeName("#define SS_CENTER 0x00000001L")] + public const int SS_CENTER = 0x00000001; + + [NativeTypeName("#define SS_RIGHT 0x00000002L")] + public const int SS_RIGHT = 0x00000002; + + [NativeTypeName("#define SS_ICON 0x00000003L")] + public const int SS_ICON = 0x00000003; + + [NativeTypeName("#define SS_BLACKRECT 0x00000004L")] + public const int SS_BLACKRECT = 0x00000004; + + [NativeTypeName("#define SS_GRAYRECT 0x00000005L")] + public const int SS_GRAYRECT = 0x00000005; + + [NativeTypeName("#define SS_WHITERECT 0x00000006L")] + public const int SS_WHITERECT = 0x00000006; + + [NativeTypeName("#define SS_BLACKFRAME 0x00000007L")] + public const int SS_BLACKFRAME = 0x00000007; + + [NativeTypeName("#define SS_GRAYFRAME 0x00000008L")] + public const int SS_GRAYFRAME = 0x00000008; + + [NativeTypeName("#define SS_WHITEFRAME 0x00000009L")] + public const int SS_WHITEFRAME = 0x00000009; + + [NativeTypeName("#define SS_USERITEM 0x0000000AL")] + public const int SS_USERITEM = 0x0000000A; + + [NativeTypeName("#define SS_SIMPLE 0x0000000BL")] + public const int SS_SIMPLE = 0x0000000B; + + [NativeTypeName("#define SS_LEFTNOWORDWRAP 0x0000000CL")] + public const int SS_LEFTNOWORDWRAP = 0x0000000C; + + [NativeTypeName("#define SS_OWNERDRAW 0x0000000DL")] + public const int SS_OWNERDRAW = 0x0000000D; + + [NativeTypeName("#define SS_BITMAP 0x0000000EL")] + public const int SS_BITMAP = 0x0000000E; + + [NativeTypeName("#define SS_ENHMETAFILE 0x0000000FL")] + public const int SS_ENHMETAFILE = 0x0000000F; + + [NativeTypeName("#define SS_ETCHEDHORZ 0x00000010L")] + public const int SS_ETCHEDHORZ = 0x00000010; + + [NativeTypeName("#define SS_ETCHEDVERT 0x00000011L")] + public const int SS_ETCHEDVERT = 0x00000011; + + [NativeTypeName("#define SS_ETCHEDFRAME 0x00000012L")] + public const int SS_ETCHEDFRAME = 0x00000012; + + [NativeTypeName("#define SS_TYPEMASK 0x0000001FL")] + public const int SS_TYPEMASK = 0x0000001F; + + [NativeTypeName("#define SS_REALSIZECONTROL 0x00000040L")] + public const int SS_REALSIZECONTROL = 0x00000040; + + [NativeTypeName("#define SS_NOPREFIX 0x00000080L")] + public const int SS_NOPREFIX = 0x00000080; + + [NativeTypeName("#define SS_NOTIFY 0x00000100L")] + public const int SS_NOTIFY = 0x00000100; + + [NativeTypeName("#define SS_CENTERIMAGE 0x00000200L")] + public const int SS_CENTERIMAGE = 0x00000200; + + [NativeTypeName("#define SS_RIGHTJUST 0x00000400L")] + public const int SS_RIGHTJUST = 0x00000400; + + [NativeTypeName("#define SS_REALSIZEIMAGE 0x00000800L")] + public const int SS_REALSIZEIMAGE = 0x00000800; + + [NativeTypeName("#define SS_SUNKEN 0x00001000L")] + public const int SS_SUNKEN = 0x00001000; + + [NativeTypeName("#define SS_EDITCONTROL 0x00002000L")] + public const int SS_EDITCONTROL = 0x00002000; + + [NativeTypeName("#define SS_ENDELLIPSIS 0x00004000L")] + public const int SS_ENDELLIPSIS = 0x00004000; + + [NativeTypeName("#define SS_PATHELLIPSIS 0x00008000L")] + public const int SS_PATHELLIPSIS = 0x00008000; + + [NativeTypeName("#define SS_WORDELLIPSIS 0x0000C000L")] + public const int SS_WORDELLIPSIS = 0x0000C000; + + [NativeTypeName("#define SS_ELLIPSISMASK 0x0000C000L")] + public const int SS_ELLIPSISMASK = 0x0000C000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SSF.cs b/sources/Interop/Windows/Windows/um/WinUser/SSF.cs new file mode 100644 index 0000000000..10d1d86bf8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SSF.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SSF + { + [NativeTypeName("#define SSF_SOUNDSENTRYON 0x00000001")] + public const int SSF_SOUNDSENTRYON = 0x00000001; + + [NativeTypeName("#define SSF_AVAILABLE 0x00000002")] + public const int SSF_AVAILABLE = 0x00000002; + + [NativeTypeName("#define SSF_INDICATOR 0x00000004")] + public const int SSF_INDICATOR = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/STATE.cs b/sources/Interop/Windows/Windows/um/WinUser/STATE.cs new file mode 100644 index 0000000000..c799d0485e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/STATE.cs @@ -0,0 +1,106 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STATE + { + [NativeTypeName("#define STATE_SYSTEM_UNAVAILABLE 0x00000001")] + public const int STATE_SYSTEM_UNAVAILABLE = 0x00000001; + + [NativeTypeName("#define STATE_SYSTEM_SELECTED 0x00000002")] + public const int STATE_SYSTEM_SELECTED = 0x00000002; + + [NativeTypeName("#define STATE_SYSTEM_FOCUSED 0x00000004")] + public const int STATE_SYSTEM_FOCUSED = 0x00000004; + + [NativeTypeName("#define STATE_SYSTEM_PRESSED 0x00000008")] + public const int STATE_SYSTEM_PRESSED = 0x00000008; + + [NativeTypeName("#define STATE_SYSTEM_CHECKED 0x00000010")] + public const int STATE_SYSTEM_CHECKED = 0x00000010; + + [NativeTypeName("#define STATE_SYSTEM_MIXED 0x00000020")] + public const int STATE_SYSTEM_MIXED = 0x00000020; + + [NativeTypeName("#define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED")] + public const int STATE_SYSTEM_INDETERMINATE = 0x00000020; + + [NativeTypeName("#define STATE_SYSTEM_READONLY 0x00000040")] + public const int STATE_SYSTEM_READONLY = 0x00000040; + + [NativeTypeName("#define STATE_SYSTEM_HOTTRACKED 0x00000080")] + public const int STATE_SYSTEM_HOTTRACKED = 0x00000080; + + [NativeTypeName("#define STATE_SYSTEM_DEFAULT 0x00000100")] + public const int STATE_SYSTEM_DEFAULT = 0x00000100; + + [NativeTypeName("#define STATE_SYSTEM_EXPANDED 0x00000200")] + public const int STATE_SYSTEM_EXPANDED = 0x00000200; + + [NativeTypeName("#define STATE_SYSTEM_COLLAPSED 0x00000400")] + public const int STATE_SYSTEM_COLLAPSED = 0x00000400; + + [NativeTypeName("#define STATE_SYSTEM_BUSY 0x00000800")] + public const int STATE_SYSTEM_BUSY = 0x00000800; + + [NativeTypeName("#define STATE_SYSTEM_FLOATING 0x00001000")] + public const int STATE_SYSTEM_FLOATING = 0x00001000; + + [NativeTypeName("#define STATE_SYSTEM_MARQUEED 0x00002000")] + public const int STATE_SYSTEM_MARQUEED = 0x00002000; + + [NativeTypeName("#define STATE_SYSTEM_ANIMATED 0x00004000")] + public const int STATE_SYSTEM_ANIMATED = 0x00004000; + + [NativeTypeName("#define STATE_SYSTEM_INVISIBLE 0x00008000")] + public const int STATE_SYSTEM_INVISIBLE = 0x00008000; + + [NativeTypeName("#define STATE_SYSTEM_OFFSCREEN 0x00010000")] + public const int STATE_SYSTEM_OFFSCREEN = 0x00010000; + + [NativeTypeName("#define STATE_SYSTEM_SIZEABLE 0x00020000")] + public const int STATE_SYSTEM_SIZEABLE = 0x00020000; + + [NativeTypeName("#define STATE_SYSTEM_MOVEABLE 0x00040000")] + public const int STATE_SYSTEM_MOVEABLE = 0x00040000; + + [NativeTypeName("#define STATE_SYSTEM_SELFVOICING 0x00080000")] + public const int STATE_SYSTEM_SELFVOICING = 0x00080000; + + [NativeTypeName("#define STATE_SYSTEM_FOCUSABLE 0x00100000")] + public const int STATE_SYSTEM_FOCUSABLE = 0x00100000; + + [NativeTypeName("#define STATE_SYSTEM_SELECTABLE 0x00200000")] + public const int STATE_SYSTEM_SELECTABLE = 0x00200000; + + [NativeTypeName("#define STATE_SYSTEM_LINKED 0x00400000")] + public const int STATE_SYSTEM_LINKED = 0x00400000; + + [NativeTypeName("#define STATE_SYSTEM_TRAVERSED 0x00800000")] + public const int STATE_SYSTEM_TRAVERSED = 0x00800000; + + [NativeTypeName("#define STATE_SYSTEM_MULTISELECTABLE 0x01000000")] + public const int STATE_SYSTEM_MULTISELECTABLE = 0x01000000; + + [NativeTypeName("#define STATE_SYSTEM_EXTSELECTABLE 0x02000000")] + public const int STATE_SYSTEM_EXTSELECTABLE = 0x02000000; + + [NativeTypeName("#define STATE_SYSTEM_ALERT_LOW 0x04000000")] + public const int STATE_SYSTEM_ALERT_LOW = 0x04000000; + + [NativeTypeName("#define STATE_SYSTEM_ALERT_MEDIUM 0x08000000")] + public const int STATE_SYSTEM_ALERT_MEDIUM = 0x08000000; + + [NativeTypeName("#define STATE_SYSTEM_ALERT_HIGH 0x10000000")] + public const int STATE_SYSTEM_ALERT_HIGH = 0x10000000; + + [NativeTypeName("#define STATE_SYSTEM_PROTECTED 0x20000000")] + public const int STATE_SYSTEM_PROTECTED = 0x20000000; + + [NativeTypeName("#define STATE_SYSTEM_VALID 0x3FFFFFFF")] + public const int STATE_SYSTEM_VALID = 0x3FFFFFFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SW.cs b/sources/Interop/Windows/Windows/um/WinUser/SW.cs new file mode 100644 index 0000000000..0b22213073 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SW.cs @@ -0,0 +1,79 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SW + { + [NativeTypeName("#define SW_HIDE 0")] + public const int SW_HIDE = 0; + + [NativeTypeName("#define SW_SHOWNORMAL 1")] + public const int SW_SHOWNORMAL = 1; + + [NativeTypeName("#define SW_NORMAL 1")] + public const int SW_NORMAL = 1; + + [NativeTypeName("#define SW_SHOWMINIMIZED 2")] + public const int SW_SHOWMINIMIZED = 2; + + [NativeTypeName("#define SW_SHOWMAXIMIZED 3")] + public const int SW_SHOWMAXIMIZED = 3; + + [NativeTypeName("#define SW_MAXIMIZE 3")] + public const int SW_MAXIMIZE = 3; + + [NativeTypeName("#define SW_SHOWNOACTIVATE 4")] + public const int SW_SHOWNOACTIVATE = 4; + + [NativeTypeName("#define SW_SHOW 5")] + public const int SW_SHOW = 5; + + [NativeTypeName("#define SW_MINIMIZE 6")] + public const int SW_MINIMIZE = 6; + + [NativeTypeName("#define SW_SHOWMINNOACTIVE 7")] + public const int SW_SHOWMINNOACTIVE = 7; + + [NativeTypeName("#define SW_SHOWNA 8")] + public const int SW_SHOWNA = 8; + + [NativeTypeName("#define SW_RESTORE 9")] + public const int SW_RESTORE = 9; + + [NativeTypeName("#define SW_SHOWDEFAULT 10")] + public const int SW_SHOWDEFAULT = 10; + + [NativeTypeName("#define SW_FORCEMINIMIZE 11")] + public const int SW_FORCEMINIMIZE = 11; + + [NativeTypeName("#define SW_MAX 11")] + public const int SW_MAX = 11; + + [NativeTypeName("#define SW_PARENTCLOSING 1")] + public const int SW_PARENTCLOSING = 1; + + [NativeTypeName("#define SW_OTHERZOOM 2")] + public const int SW_OTHERZOOM = 2; + + [NativeTypeName("#define SW_PARENTOPENING 3")] + public const int SW_PARENTOPENING = 3; + + [NativeTypeName("#define SW_OTHERUNZOOM 4")] + public const int SW_OTHERUNZOOM = 4; + + [NativeTypeName("#define SW_SCROLLCHILDREN 0x0001")] + public const int SW_SCROLLCHILDREN = 0x0001; + + [NativeTypeName("#define SW_INVALIDATE 0x0002")] + public const int SW_INVALIDATE = 0x0002; + + [NativeTypeName("#define SW_ERASE 0x0004")] + public const int SW_ERASE = 0x0004; + + [NativeTypeName("#define SW_SMOOTHSCROLL 0x0010")] + public const int SW_SMOOTHSCROLL = 0x0010; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/SWP.cs b/sources/Interop/Windows/Windows/um/WinUser/SWP.cs new file mode 100644 index 0000000000..205b85da2e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/SWP.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SWP + { + [NativeTypeName("#define SWP_NOSIZE 0x0001")] + public const int SWP_NOSIZE = 0x0001; + + [NativeTypeName("#define SWP_NOMOVE 0x0002")] + public const int SWP_NOMOVE = 0x0002; + + [NativeTypeName("#define SWP_NOZORDER 0x0004")] + public const int SWP_NOZORDER = 0x0004; + + [NativeTypeName("#define SWP_NOREDRAW 0x0008")] + public const int SWP_NOREDRAW = 0x0008; + + [NativeTypeName("#define SWP_NOACTIVATE 0x0010")] + public const int SWP_NOACTIVATE = 0x0010; + + [NativeTypeName("#define SWP_FRAMECHANGED 0x0020")] + public const int SWP_FRAMECHANGED = 0x0020; + + [NativeTypeName("#define SWP_SHOWWINDOW 0x0040")] + public const int SWP_SHOWWINDOW = 0x0040; + + [NativeTypeName("#define SWP_HIDEWINDOW 0x0080")] + public const int SWP_HIDEWINDOW = 0x0080; + + [NativeTypeName("#define SWP_NOCOPYBITS 0x0100")] + public const int SWP_NOCOPYBITS = 0x0100; + + [NativeTypeName("#define SWP_NOOWNERZORDER 0x0200")] + public const int SWP_NOOWNERZORDER = 0x0200; + + [NativeTypeName("#define SWP_NOSENDCHANGING 0x0400")] + public const int SWP_NOSENDCHANGING = 0x0400; + + [NativeTypeName("#define SWP_DRAWFRAME SWP_FRAMECHANGED")] + public const int SWP_DRAWFRAME = 0x0020; + + [NativeTypeName("#define SWP_NOREPOSITION SWP_NOOWNERZORDER")] + public const int SWP_NOREPOSITION = 0x0200; + + [NativeTypeName("#define SWP_DEFERERASE 0x2000")] + public const int SWP_DEFERERASE = 0x2000; + + [NativeTypeName("#define SWP_ASYNCWINDOWPOS 0x4000")] + public const int SWP_ASYNCWINDOWPOS = 0x4000; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/TOUCH.cs b/sources/Interop/Windows/Windows/um/WinUser/TOUCH.cs new file mode 100644 index 0000000000..8f1b148e64 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/TOUCH.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TOUCH + { + [NativeTypeName("#define TOUCH_FLAG_NONE 0x00000000")] + public const int TOUCH_FLAG_NONE = 0x00000000; + + [NativeTypeName("#define TOUCH_MASK_NONE 0x00000000")] + public const int TOUCH_MASK_NONE = 0x00000000; + + [NativeTypeName("#define TOUCH_MASK_CONTACTAREA 0x00000001")] + public const int TOUCH_MASK_CONTACTAREA = 0x00000001; + + [NativeTypeName("#define TOUCH_MASK_ORIENTATION 0x00000002")] + public const int TOUCH_MASK_ORIENTATION = 0x00000002; + + [NativeTypeName("#define TOUCH_MASK_PRESSURE 0x00000004")] + public const int TOUCH_MASK_PRESSURE = 0x00000004; + + [NativeTypeName("#define TOUCH_FEEDBACK_DEFAULT 0x1")] + public const int TOUCH_FEEDBACK_DEFAULT = 0x1; + + [NativeTypeName("#define TOUCH_FEEDBACK_INDIRECT 0x2")] + public const int TOUCH_FEEDBACK_INDIRECT = 0x2; + + [NativeTypeName("#define TOUCH_FEEDBACK_NONE 0x3")] + public const int TOUCH_FEEDBACK_NONE = 0x3; + + [NativeTypeName("#define TOUCH_HIT_TESTING_DEFAULT 0x0")] + public const int TOUCH_HIT_TESTING_DEFAULT = 0x0; + + [NativeTypeName("#define TOUCH_HIT_TESTING_CLIENT 0x1")] + public const int TOUCH_HIT_TESTING_CLIENT = 0x1; + + [NativeTypeName("#define TOUCH_HIT_TESTING_NONE 0x2")] + public const int TOUCH_HIT_TESTING_NONE = 0x2; + + [NativeTypeName("#define TOUCH_HIT_TESTING_PROXIMITY_CLOSEST 0x0")] + public const int TOUCH_HIT_TESTING_PROXIMITY_CLOSEST = 0x0; + + [NativeTypeName("#define TOUCH_HIT_TESTING_PROXIMITY_FARTHEST 0xFFF")] + public const int TOUCH_HIT_TESTING_PROXIMITY_FARTHEST = 0xFFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/WC.cs b/sources/Interop/Windows/Windows/um/WinUser/WC.cs new file mode 100644 index 0000000000..76f7a603c8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/WC.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class WC + { + [NativeTypeName("#define WC_DIALOG (MAKEINTATOM(0x8002))")] + public static ushort* WC_DIALOG => ((ushort*)((nuint)((ushort)(0x8002)))); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/WH.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/WH.Manual.cs new file mode 100644 index 0000000000..1f09fd0fcf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/WH.Manual.cs @@ -0,0 +1,12 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winuser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class WH + { + public const int WH_HARDWARE = 8; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/WH.cs b/sources/Interop/Windows/Windows/um/WinUser/WH.cs new file mode 100644 index 0000000000..65b97a2776 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/WH.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WH + { + [NativeTypeName("#define WH_MIN (-1)")] + public const int WH_MIN = (-1); + + [NativeTypeName("#define WH_MSGFILTER (-1)")] + public const int WH_MSGFILTER = (-1); + + [NativeTypeName("#define WH_JOURNALRECORD 0")] + public const int WH_JOURNALRECORD = 0; + + [NativeTypeName("#define WH_JOURNALPLAYBACK 1")] + public const int WH_JOURNALPLAYBACK = 1; + + [NativeTypeName("#define WH_KEYBOARD 2")] + public const int WH_KEYBOARD = 2; + + [NativeTypeName("#define WH_GETMESSAGE 3")] + public const int WH_GETMESSAGE = 3; + + [NativeTypeName("#define WH_CALLWNDPROC 4")] + public const int WH_CALLWNDPROC = 4; + + [NativeTypeName("#define WH_CBT 5")] + public const int WH_CBT = 5; + + [NativeTypeName("#define WH_SYSMSGFILTER 6")] + public const int WH_SYSMSGFILTER = 6; + + [NativeTypeName("#define WH_MOUSE 7")] + public const int WH_MOUSE = 7; + + [NativeTypeName("#define WH_DEBUG 9")] + public const int WH_DEBUG = 9; + + [NativeTypeName("#define WH_SHELL 10")] + public const int WH_SHELL = 10; + + [NativeTypeName("#define WH_FOREGROUNDIDLE 11")] + public const int WH_FOREGROUNDIDLE = 11; + + [NativeTypeName("#define WH_CALLWNDPROCRET 12")] + public const int WH_CALLWNDPROCRET = 12; + + [NativeTypeName("#define WH_KEYBOARD_LL 13")] + public const int WH_KEYBOARD_LL = 13; + + [NativeTypeName("#define WH_MOUSE_LL 14")] + public const int WH_MOUSE_LL = 14; + + [NativeTypeName("#define WH_MAX 14")] + public const int WH_MAX = 14; + + [NativeTypeName("#define WH_MINHOOK WH_MIN")] + public const int WH_MINHOOK = (-1); + + [NativeTypeName("#define WH_MAXHOOK WH_MAX")] + public const int WH_MAXHOOK = 14; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/WINSTA.cs b/sources/Interop/Windows/Windows/um/WinUser/WINSTA.cs new file mode 100644 index 0000000000..79799df366 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/WINSTA.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WINSTA + { + [NativeTypeName("#define WINSTA_ENUMDESKTOPS 0x0001L")] + public const int WINSTA_ENUMDESKTOPS = 0x0001; + + [NativeTypeName("#define WINSTA_READATTRIBUTES 0x0002L")] + public const int WINSTA_READATTRIBUTES = 0x0002; + + [NativeTypeName("#define WINSTA_ACCESSCLIPBOARD 0x0004L")] + public const int WINSTA_ACCESSCLIPBOARD = 0x0004; + + [NativeTypeName("#define WINSTA_CREATEDESKTOP 0x0008L")] + public const int WINSTA_CREATEDESKTOP = 0x0008; + + [NativeTypeName("#define WINSTA_WRITEATTRIBUTES 0x0010L")] + public const int WINSTA_WRITEATTRIBUTES = 0x0010; + + [NativeTypeName("#define WINSTA_ACCESSGLOBALATOMS 0x0020L")] + public const int WINSTA_ACCESSGLOBALATOMS = 0x0020; + + [NativeTypeName("#define WINSTA_EXITWINDOWS 0x0040L")] + public const int WINSTA_EXITWINDOWS = 0x0040; + + [NativeTypeName("#define WINSTA_ENUMERATE 0x0100L")] + public const int WINSTA_ENUMERATE = 0x0100; + + [NativeTypeName("#define WINSTA_READSCREEN 0x0200L")] + public const int WINSTA_READSCREEN = 0x0200; + + [NativeTypeName("#define WINSTA_ALL_ACCESS (WINSTA_ENUMDESKTOPS | WINSTA_READATTRIBUTES | WINSTA_ACCESSCLIPBOARD | \\\r\n WINSTA_CREATEDESKTOP | WINSTA_WRITEATTRIBUTES | WINSTA_ACCESSGLOBALATOMS | \\\r\n WINSTA_EXITWINDOWS | WINSTA_ENUMERATE | WINSTA_READSCREEN)")] + public const int WINSTA_ALL_ACCESS = (0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010 | 0x0020 | 0x0040 | 0x0100 | 0x0200); + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/WTS.cs b/sources/Interop/Windows/Windows/um/WinUser/WTS.cs new file mode 100644 index 0000000000..f942c5d1e2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/WinUser/WTS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/WinUser.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WTS + { + [NativeTypeName("#define WTS_CONSOLE_CONNECT 0x1")] + public const int WTS_CONSOLE_CONNECT = 0x1; + + [NativeTypeName("#define WTS_CONSOLE_DISCONNECT 0x2")] + public const int WTS_CONSOLE_DISCONNECT = 0x2; + + [NativeTypeName("#define WTS_REMOTE_CONNECT 0x3")] + public const int WTS_REMOTE_CONNECT = 0x3; + + [NativeTypeName("#define WTS_REMOTE_DISCONNECT 0x4")] + public const int WTS_REMOTE_DISCONNECT = 0x4; + + [NativeTypeName("#define WTS_SESSION_LOGON 0x5")] + public const int WTS_SESSION_LOGON = 0x5; + + [NativeTypeName("#define WTS_SESSION_LOGOFF 0x6")] + public const int WTS_SESSION_LOGOFF = 0x6; + + [NativeTypeName("#define WTS_SESSION_LOCK 0x7")] + public const int WTS_SESSION_LOCK = 0x7; + + [NativeTypeName("#define WTS_SESSION_UNLOCK 0x8")] + public const int WTS_SESSION_UNLOCK = 0x8; + + [NativeTypeName("#define WTS_SESSION_REMOTE_CONTROL 0x9")] + public const int WTS_SESSION_REMOTE_CONTROL = 0x9; + + [NativeTypeName("#define WTS_SESSION_CREATE 0xa")] + public const int WTS_SESSION_CREATE = 0xa; + + [NativeTypeName("#define WTS_SESSION_TERMINATE 0xb")] + public const int WTS_SESSION_TERMINATE = 0xb; + } +} diff --git a/sources/Interop/Windows/Windows/um/WinUser/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/WinUser/Windows.Manual.cs index c09f929c97..68a8d55143 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/Windows.Manual.cs @@ -6,26 +6,14 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; +using static TerraFX.Interop.Windows.EWX; +using static TerraFX.Interop.Windows.POINTER; +using static TerraFX.Interop.Windows.RIDEV; namespace TerraFX.Interop.Windows { public static unsafe partial class Windows { - public static int CONSOLE_APPLICATION_16BIT - { - get - { - if (sizeof(nint) == 4) - { - return 0x0001; - } - else - { - return 0x0000; - } - } - } - public static int GUI_16BITTASK { get @@ -41,137 +29,6 @@ public static int GUI_16BITTASK } } - public const int WH_HARDWARE = 8; - - public const int OBM_CLOSE = 32754; - - public const int OBM_UPARROW = 32753; - - public const int OBM_DNARROW = 32752; - - public const int OBM_RGARROW = 32751; - - public const int OBM_LFARROW = 32750; - - public const int OBM_REDUCE = 32749; - - public const int OBM_ZOOM = 32748; - - public const int OBM_RESTORE = 32747; - - public const int OBM_REDUCED = 32746; - - public const int OBM_ZOOMD = 32745; - - public const int OBM_RESTORED = 32744; - - public const int OBM_UPARROWD = 32743; - - public const int OBM_DNARROWD = 32742; - - public const int OBM_RGARROWD = 32741; - - public const int OBM_LFARROWD = 32740; - - public const int OBM_MNARROW = 32739; - - public const int OBM_COMBO = 32738; - - public const int OBM_UPARROWI = 32737; - - public const int OBM_DNARROWI = 32736; - - public const int OBM_RGARROWI = 32735; - - public const int OBM_LFARROWI = 32734; - - public const int OBM_OLD_CLOSE = 32767; - - public const int OBM_SIZE = 32766; - - public const int OBM_OLD_UPARROW = 32765; - - public const int OBM_OLD_DNARROW = 32764; - - public const int OBM_OLD_RGARROW = 32763; - - public const int OBM_OLD_LFARROW = 32762; - - public const int OBM_BTSIZE = 32761; - - public const int OBM_CHECK = 32760; - - public const int OBM_CHECKBOXES = 32759; - - public const int OBM_BTNCORNERS = 32758; - - public const int OBM_OLD_REDUCE = 32757; - - public const int OBM_OLD_ZOOM = 32756; - - public const int OBM_OLD_RESTORE = 32755; - - public const int OCR_NORMAL = 32512; - - public const int OCR_IBEAM = 32513; - - public const int OCR_WAIT = 32514; - - public const int OCR_CROSS = 32515; - - public const int OCR_UP = 32516; - - [Obsolete("use OCR_SIZEALL")] - public const int OCR_SIZE = 32640; - - [Obsolete("use OCR_NORMAL")] - public const int OCR_ICON = 32641; - - public const int OCR_SIZENWSE = 32642; - - public const int OCR_SIZENESW = 32643; - - public const int OCR_SIZEWE = 32644; - - public const int OCR_SIZENS = 32645; - - public const int OCR_SIZEALL = 32646; - - [Obsolete("use OIC_WINLOGO")] - public const int OCR_ICOCUR = 32647; - - public const int OCR_NO = 32648; - - public const int OCR_HAND = 32649; - - public const int OCR_APPSTARTING = 32650; - - public const int OIC_SAMPLE = 32512; - - public const int OIC_HAND = 32513; - - public const int OIC_QUES = 32514; - - public const int OIC_BANG = 32515; - - public const int OIC_NOTE = 32516; - - public const int OIC_WINLOGO = 32517; - - public const int OIC_WARNING = OIC_BANG; - - public const int OIC_ERROR = OIC_HAND; - - public const int OIC_INFORMATION = OIC_NOTE; - - public const int OIC_SHIELD = 32518; - - public const int DS_USEPIXELS = 0x8000; - - public const int LB_MULTIPLEADDSTRING = 0x01B1; - - public const int CB_MULTIPLEADDSTRING = 0x0163; - [MethodImpl(MethodImplOptions.AggressiveInlining)] public static bool IS_INTRESOURCE([NativeTypeName("ULONG_PTR")] nuint _r) { diff --git a/sources/Interop/Windows/Windows/um/WinUser/Windows.cs b/sources/Interop/Windows/Windows/um/WinUser/Windows.cs index 467353c89c..a8601cd344 100644 --- a/sources/Interop/Windows/Windows/um/WinUser/Windows.cs +++ b/sources/Interop/Windows/Windows/um/WinUser/Windows.cs @@ -2351,51 +2351,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SETWALLPAPER_DEFAULT ((LPWSTR)-1)")] public static ushort* SETWALLPAPER_DEFAULT => unchecked((ushort*)(-1)); - [NativeTypeName("#define SW_HIDE 0")] - public const int SW_HIDE = 0; - - [NativeTypeName("#define SW_SHOWNORMAL 1")] - public const int SW_SHOWNORMAL = 1; - - [NativeTypeName("#define SW_NORMAL 1")] - public const int SW_NORMAL = 1; - - [NativeTypeName("#define SW_SHOWMINIMIZED 2")] - public const int SW_SHOWMINIMIZED = 2; - - [NativeTypeName("#define SW_SHOWMAXIMIZED 3")] - public const int SW_SHOWMAXIMIZED = 3; - - [NativeTypeName("#define SW_MAXIMIZE 3")] - public const int SW_MAXIMIZE = 3; - - [NativeTypeName("#define SW_SHOWNOACTIVATE 4")] - public const int SW_SHOWNOACTIVATE = 4; - - [NativeTypeName("#define SW_SHOW 5")] - public const int SW_SHOW = 5; - - [NativeTypeName("#define SW_MINIMIZE 6")] - public const int SW_MINIMIZE = 6; - - [NativeTypeName("#define SW_SHOWMINNOACTIVE 7")] - public const int SW_SHOWMINNOACTIVE = 7; - - [NativeTypeName("#define SW_SHOWNA 8")] - public const int SW_SHOWNA = 8; - - [NativeTypeName("#define SW_RESTORE 9")] - public const int SW_RESTORE = 9; - - [NativeTypeName("#define SW_SHOWDEFAULT 10")] - public const int SW_SHOWDEFAULT = 10; - - [NativeTypeName("#define SW_FORCEMINIMIZE 11")] - public const int SW_FORCEMINIMIZE = 11; - - [NativeTypeName("#define SW_MAX 11")] - public const int SW_MAX = 11; - [NativeTypeName("#define HIDE_WINDOW 0")] public const int HIDE_WINDOW = 0; @@ -2411,18 +2366,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SHOW_OPENNOACTIVATE 4")] public const int SHOW_OPENNOACTIVATE = 4; - [NativeTypeName("#define SW_PARENTCLOSING 1")] - public const int SW_PARENTCLOSING = 1; - - [NativeTypeName("#define SW_OTHERZOOM 2")] - public const int SW_OTHERZOOM = 2; - - [NativeTypeName("#define SW_PARENTOPENING 3")] - public const int SW_PARENTOPENING = 3; - - [NativeTypeName("#define SW_OTHERUNZOOM 4")] - public const int SW_OTHERUNZOOM = 4; - [NativeTypeName("#define AW_HOR_POSITIVE 0x00000001")] public const int AW_HOR_POSITIVE = 0x00000001; @@ -2468,63 +2411,6 @@ public static unsafe partial class Windows [NativeTypeName("#define KF_UP 0x8000")] public const int KF_UP = 0x8000; - [NativeTypeName("#define WH_MIN (-1)")] - public const int WH_MIN = (-1); - - [NativeTypeName("#define WH_MSGFILTER (-1)")] - public const int WH_MSGFILTER = (-1); - - [NativeTypeName("#define WH_JOURNALRECORD 0")] - public const int WH_JOURNALRECORD = 0; - - [NativeTypeName("#define WH_JOURNALPLAYBACK 1")] - public const int WH_JOURNALPLAYBACK = 1; - - [NativeTypeName("#define WH_KEYBOARD 2")] - public const int WH_KEYBOARD = 2; - - [NativeTypeName("#define WH_GETMESSAGE 3")] - public const int WH_GETMESSAGE = 3; - - [NativeTypeName("#define WH_CALLWNDPROC 4")] - public const int WH_CALLWNDPROC = 4; - - [NativeTypeName("#define WH_CBT 5")] - public const int WH_CBT = 5; - - [NativeTypeName("#define WH_SYSMSGFILTER 6")] - public const int WH_SYSMSGFILTER = 6; - - [NativeTypeName("#define WH_MOUSE 7")] - public const int WH_MOUSE = 7; - - [NativeTypeName("#define WH_DEBUG 9")] - public const int WH_DEBUG = 9; - - [NativeTypeName("#define WH_SHELL 10")] - public const int WH_SHELL = 10; - - [NativeTypeName("#define WH_FOREGROUNDIDLE 11")] - public const int WH_FOREGROUNDIDLE = 11; - - [NativeTypeName("#define WH_CALLWNDPROCRET 12")] - public const int WH_CALLWNDPROCRET = 12; - - [NativeTypeName("#define WH_KEYBOARD_LL 13")] - public const int WH_KEYBOARD_LL = 13; - - [NativeTypeName("#define WH_MOUSE_LL 14")] - public const int WH_MOUSE_LL = 14; - - [NativeTypeName("#define WH_MAX 14")] - public const int WH_MAX = 14; - - [NativeTypeName("#define WH_MINHOOK WH_MIN")] - public const int WH_MINHOOK = (-1); - - [NativeTypeName("#define WH_MAXHOOK WH_MAX")] - public const int WH_MAXHOOK = 14; - [NativeTypeName("#define HC_ACTION 0")] public const int HC_ACTION = 0; @@ -2546,144 +2432,6 @@ public static unsafe partial class Windows [NativeTypeName("#define HC_SYSMODALOFF 5")] public const int HC_SYSMODALOFF = 5; - [NativeTypeName("#define HCBT_MOVESIZE 0")] - public const int HCBT_MOVESIZE = 0; - - [NativeTypeName("#define HCBT_MINMAX 1")] - public const int HCBT_MINMAX = 1; - - [NativeTypeName("#define HCBT_QS 2")] - public const int HCBT_QS = 2; - - [NativeTypeName("#define HCBT_CREATEWND 3")] - public const int HCBT_CREATEWND = 3; - - [NativeTypeName("#define HCBT_DESTROYWND 4")] - public const int HCBT_DESTROYWND = 4; - - [NativeTypeName("#define HCBT_ACTIVATE 5")] - public const int HCBT_ACTIVATE = 5; - - [NativeTypeName("#define HCBT_CLICKSKIPPED 6")] - public const int HCBT_CLICKSKIPPED = 6; - - [NativeTypeName("#define HCBT_KEYSKIPPED 7")] - public const int HCBT_KEYSKIPPED = 7; - - [NativeTypeName("#define HCBT_SYSCOMMAND 8")] - public const int HCBT_SYSCOMMAND = 8; - - [NativeTypeName("#define HCBT_SETFOCUS 9")] - public const int HCBT_SETFOCUS = 9; - - [NativeTypeName("#define WTS_CONSOLE_CONNECT 0x1")] - public const int WTS_CONSOLE_CONNECT = 0x1; - - [NativeTypeName("#define WTS_CONSOLE_DISCONNECT 0x2")] - public const int WTS_CONSOLE_DISCONNECT = 0x2; - - [NativeTypeName("#define WTS_REMOTE_CONNECT 0x3")] - public const int WTS_REMOTE_CONNECT = 0x3; - - [NativeTypeName("#define WTS_REMOTE_DISCONNECT 0x4")] - public const int WTS_REMOTE_DISCONNECT = 0x4; - - [NativeTypeName("#define WTS_SESSION_LOGON 0x5")] - public const int WTS_SESSION_LOGON = 0x5; - - [NativeTypeName("#define WTS_SESSION_LOGOFF 0x6")] - public const int WTS_SESSION_LOGOFF = 0x6; - - [NativeTypeName("#define WTS_SESSION_LOCK 0x7")] - public const int WTS_SESSION_LOCK = 0x7; - - [NativeTypeName("#define WTS_SESSION_UNLOCK 0x8")] - public const int WTS_SESSION_UNLOCK = 0x8; - - [NativeTypeName("#define WTS_SESSION_REMOTE_CONTROL 0x9")] - public const int WTS_SESSION_REMOTE_CONTROL = 0x9; - - [NativeTypeName("#define WTS_SESSION_CREATE 0xa")] - public const int WTS_SESSION_CREATE = 0xa; - - [NativeTypeName("#define WTS_SESSION_TERMINATE 0xb")] - public const int WTS_SESSION_TERMINATE = 0xb; - - [NativeTypeName("#define MSGF_DIALOGBOX 0")] - public const int MSGF_DIALOGBOX = 0; - - [NativeTypeName("#define MSGF_MESSAGEBOX 1")] - public const int MSGF_MESSAGEBOX = 1; - - [NativeTypeName("#define MSGF_MENU 2")] - public const int MSGF_MENU = 2; - - [NativeTypeName("#define MSGF_SCROLLBAR 5")] - public const int MSGF_SCROLLBAR = 5; - - [NativeTypeName("#define MSGF_NEXTWINDOW 6")] - public const int MSGF_NEXTWINDOW = 6; - - [NativeTypeName("#define MSGF_MAX 8")] - public const int MSGF_MAX = 8; - - [NativeTypeName("#define MSGF_USER 4096")] - public const int MSGF_USER = 4096; - - [NativeTypeName("#define HSHELL_WINDOWCREATED 1")] - public const int HSHELL_WINDOWCREATED = 1; - - [NativeTypeName("#define HSHELL_WINDOWDESTROYED 2")] - public const int HSHELL_WINDOWDESTROYED = 2; - - [NativeTypeName("#define HSHELL_ACTIVATESHELLWINDOW 3")] - public const int HSHELL_ACTIVATESHELLWINDOW = 3; - - [NativeTypeName("#define HSHELL_WINDOWACTIVATED 4")] - public const int HSHELL_WINDOWACTIVATED = 4; - - [NativeTypeName("#define HSHELL_GETMINRECT 5")] - public const int HSHELL_GETMINRECT = 5; - - [NativeTypeName("#define HSHELL_REDRAW 6")] - public const int HSHELL_REDRAW = 6; - - [NativeTypeName("#define HSHELL_TASKMAN 7")] - public const int HSHELL_TASKMAN = 7; - - [NativeTypeName("#define HSHELL_LANGUAGE 8")] - public const int HSHELL_LANGUAGE = 8; - - [NativeTypeName("#define HSHELL_SYSMENU 9")] - public const int HSHELL_SYSMENU = 9; - - [NativeTypeName("#define HSHELL_ENDTASK 10")] - public const int HSHELL_ENDTASK = 10; - - [NativeTypeName("#define HSHELL_ACCESSIBILITYSTATE 11")] - public const int HSHELL_ACCESSIBILITYSTATE = 11; - - [NativeTypeName("#define HSHELL_APPCOMMAND 12")] - public const int HSHELL_APPCOMMAND = 12; - - [NativeTypeName("#define HSHELL_WINDOWREPLACED 13")] - public const int HSHELL_WINDOWREPLACED = 13; - - [NativeTypeName("#define HSHELL_WINDOWREPLACING 14")] - public const int HSHELL_WINDOWREPLACING = 14; - - [NativeTypeName("#define HSHELL_MONITORCHANGED 16")] - public const int HSHELL_MONITORCHANGED = 16; - - [NativeTypeName("#define HSHELL_HIGHBIT 0x8000")] - public const int HSHELL_HIGHBIT = 0x8000; - - [NativeTypeName("#define HSHELL_FLASH (HSHELL_REDRAW|HSHELL_HIGHBIT)")] - public const int HSHELL_FLASH = (6 | 0x8000); - - [NativeTypeName("#define HSHELL_RUDEAPPACTIVATED (HSHELL_WINDOWACTIVATED|HSHELL_HIGHBIT)")] - public const int HSHELL_RUDEAPPACTIVATED = (4 | 0x8000); - [NativeTypeName("#define FAPPCOMMAND_MOUSE 0x8000")] public const int FAPPCOMMAND_MOUSE = 0x8000; @@ -2771,33 +2519,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GMMP_USE_HIGH_RESOLUTION_POINTS 2")] public const int GMMP_USE_HIGH_RESOLUTION_POINTS = 2; - [NativeTypeName("#define DESKTOP_READOBJECTS 0x0001L")] - public const int DESKTOP_READOBJECTS = 0x0001; - - [NativeTypeName("#define DESKTOP_CREATEWINDOW 0x0002L")] - public const int DESKTOP_CREATEWINDOW = 0x0002; - - [NativeTypeName("#define DESKTOP_CREATEMENU 0x0004L")] - public const int DESKTOP_CREATEMENU = 0x0004; - - [NativeTypeName("#define DESKTOP_HOOKCONTROL 0x0008L")] - public const int DESKTOP_HOOKCONTROL = 0x0008; - - [NativeTypeName("#define DESKTOP_JOURNALRECORD 0x0010L")] - public const int DESKTOP_JOURNALRECORD = 0x0010; - - [NativeTypeName("#define DESKTOP_JOURNALPLAYBACK 0x0020L")] - public const int DESKTOP_JOURNALPLAYBACK = 0x0020; - - [NativeTypeName("#define DESKTOP_ENUMERATE 0x0040L")] - public const int DESKTOP_ENUMERATE = 0x0040; - - [NativeTypeName("#define DESKTOP_WRITEOBJECTS 0x0080L")] - public const int DESKTOP_WRITEOBJECTS = 0x0080; - - [NativeTypeName("#define DESKTOP_SWITCHDESKTOP 0x0100L")] - public const int DESKTOP_SWITCHDESKTOP = 0x0100; - [NativeTypeName("#define DF_ALLOWOTHERACCOUNTHOOK 0x0001L")] public const int DF_ALLOWOTHERACCOUNTHOOK = 0x0001; @@ -2813,36 +2534,6 @@ public static unsafe partial class Windows [NativeTypeName("#define EnumDesktops EnumDesktopsW")] public static delegate*, LPARAM, BOOL> EnumDesktops => &EnumDesktopsW; - [NativeTypeName("#define WINSTA_ENUMDESKTOPS 0x0001L")] - public const int WINSTA_ENUMDESKTOPS = 0x0001; - - [NativeTypeName("#define WINSTA_READATTRIBUTES 0x0002L")] - public const int WINSTA_READATTRIBUTES = 0x0002; - - [NativeTypeName("#define WINSTA_ACCESSCLIPBOARD 0x0004L")] - public const int WINSTA_ACCESSCLIPBOARD = 0x0004; - - [NativeTypeName("#define WINSTA_CREATEDESKTOP 0x0008L")] - public const int WINSTA_CREATEDESKTOP = 0x0008; - - [NativeTypeName("#define WINSTA_WRITEATTRIBUTES 0x0010L")] - public const int WINSTA_WRITEATTRIBUTES = 0x0010; - - [NativeTypeName("#define WINSTA_ACCESSGLOBALATOMS 0x0020L")] - public const int WINSTA_ACCESSGLOBALATOMS = 0x0020; - - [NativeTypeName("#define WINSTA_EXITWINDOWS 0x0040L")] - public const int WINSTA_EXITWINDOWS = 0x0040; - - [NativeTypeName("#define WINSTA_ENUMERATE 0x0100L")] - public const int WINSTA_ENUMERATE = 0x0100; - - [NativeTypeName("#define WINSTA_READSCREEN 0x0200L")] - public const int WINSTA_READSCREEN = 0x0200; - - [NativeTypeName("#define WINSTA_ALL_ACCESS (WINSTA_ENUMDESKTOPS | WINSTA_READATTRIBUTES | WINSTA_ACCESSCLIPBOARD | \\\r\n WINSTA_CREATEDESKTOP | WINSTA_WRITEATTRIBUTES | WINSTA_ACCESSGLOBALATOMS | \\\r\n WINSTA_EXITWINDOWS | WINSTA_ENUMERATE | WINSTA_READSCREEN)")] - public const int WINSTA_ALL_ACCESS = (0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010 | 0x0020 | 0x0040 | 0x0100 | 0x0200); - [NativeTypeName("#define CWF_CREATE_ONLY 0x00000001")] public const int CWF_CREATE_ONLY = 0x00000001; @@ -2921,39 +2612,9 @@ public static unsafe partial class Windows [NativeTypeName("#define GWLP_ID (-12)")] public const int GWLP_ID = (-12); - [NativeTypeName("#define GCL_MENUNAME (-8)")] - public const int GCL_MENUNAME = (-8); - - [NativeTypeName("#define GCL_HBRBACKGROUND (-10)")] - public const int GCL_HBRBACKGROUND = (-10); - - [NativeTypeName("#define GCL_HCURSOR (-12)")] - public const int GCL_HCURSOR = (-12); - - [NativeTypeName("#define GCL_HICON (-14)")] - public const int GCL_HICON = (-14); - - [NativeTypeName("#define GCL_HMODULE (-16)")] - public const int GCL_HMODULE = (-16); - - [NativeTypeName("#define GCL_CBWNDEXTRA (-18)")] - public const int GCL_CBWNDEXTRA = (-18); - - [NativeTypeName("#define GCL_CBCLSEXTRA (-20)")] - public const int GCL_CBCLSEXTRA = (-20); - - [NativeTypeName("#define GCL_WNDPROC (-24)")] - public const int GCL_WNDPROC = (-24); - - [NativeTypeName("#define GCL_STYLE (-26)")] - public const int GCL_STYLE = (-26); - [NativeTypeName("#define GCW_ATOM (-32)")] public const int GCW_ATOM = (-32); - [NativeTypeName("#define GCL_HICONSM (-34)")] - public const int GCL_HICONSM = (-34); - [NativeTypeName("#define GCLP_MENUNAME (-8)")] public const int GCLP_MENUNAME = (-8); @@ -3047,54 +2708,9 @@ public static unsafe partial class Windows [NativeTypeName("#define XBUTTON2 0x0002")] public const int XBUTTON2 = 0x0002; - [NativeTypeName("#define PBT_APMQUERYSUSPEND 0x0000")] - public const int PBT_APMQUERYSUSPEND = 0x0000; - - [NativeTypeName("#define PBT_APMQUERYSTANDBY 0x0001")] - public const int PBT_APMQUERYSTANDBY = 0x0001; - - [NativeTypeName("#define PBT_APMQUERYSUSPENDFAILED 0x0002")] - public const int PBT_APMQUERYSUSPENDFAILED = 0x0002; - - [NativeTypeName("#define PBT_APMQUERYSTANDBYFAILED 0x0003")] - public const int PBT_APMQUERYSTANDBYFAILED = 0x0003; - - [NativeTypeName("#define PBT_APMSUSPEND 0x0004")] - public const int PBT_APMSUSPEND = 0x0004; - - [NativeTypeName("#define PBT_APMSTANDBY 0x0005")] - public const int PBT_APMSTANDBY = 0x0005; - - [NativeTypeName("#define PBT_APMRESUMECRITICAL 0x0006")] - public const int PBT_APMRESUMECRITICAL = 0x0006; - - [NativeTypeName("#define PBT_APMRESUMESUSPEND 0x0007")] - public const int PBT_APMRESUMESUSPEND = 0x0007; - - [NativeTypeName("#define PBT_APMRESUMESTANDBY 0x0008")] - public const int PBT_APMRESUMESTANDBY = 0x0008; - [NativeTypeName("#define PBTF_APMRESUMEFROMFAILURE 0x00000001")] public const int PBTF_APMRESUMEFROMFAILURE = 0x00000001; - [NativeTypeName("#define PBT_APMBATTERYLOW 0x0009")] - public const int PBT_APMBATTERYLOW = 0x0009; - - [NativeTypeName("#define PBT_APMPOWERSTATUSCHANGE 0x000A")] - public const int PBT_APMPOWERSTATUSCHANGE = 0x000A; - - [NativeTypeName("#define PBT_APMOEMEVENT 0x000B")] - public const int PBT_APMOEMEVENT = 0x000B; - - [NativeTypeName("#define PBT_APMRESUMEAUTOMATIC 0x0012")] - public const int PBT_APMRESUMEAUTOMATIC = 0x0012; - - [NativeTypeName("#define PBT_POWERSETTINGCHANGE 0x8013")] - public const int PBT_POWERSETTINGCHANGE = 0x8013; - - [NativeTypeName("#define DM_POINTERHITTEST 0x0250")] - public const int DM_POINTERHITTEST = 0x0250; - [NativeTypeName("#define WMSZ_LEFT 1")] public const int WMSZ_LEFT = 1; @@ -3299,27 +2915,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WVR_VALIDRECTS 0x0400")] public const int WVR_VALIDRECTS = 0x0400; - [NativeTypeName("#define MK_LBUTTON 0x0001")] - public const int MK_LBUTTON = 0x0001; - - [NativeTypeName("#define MK_RBUTTON 0x0002")] - public const int MK_RBUTTON = 0x0002; - - [NativeTypeName("#define MK_SHIFT 0x0004")] - public const int MK_SHIFT = 0x0004; - - [NativeTypeName("#define MK_CONTROL 0x0008")] - public const int MK_CONTROL = 0x0008; - - [NativeTypeName("#define MK_MBUTTON 0x0010")] - public const int MK_MBUTTON = 0x0010; - - [NativeTypeName("#define MK_XBUTTON1 0x0020")] - public const int MK_XBUTTON1 = 0x0020; - - [NativeTypeName("#define MK_XBUTTON2 0x0040")] - public const int MK_XBUTTON2 = 0x0040; - [NativeTypeName("#define TME_HOVER 0x00000001")] public const int TME_HOVER = 0x00000001; @@ -3338,63 +2933,6 @@ public static unsafe partial class Windows [NativeTypeName("#define HOVER_DEFAULT 0xFFFFFFFF")] public const uint HOVER_DEFAULT = 0xFFFFFFFF; - [NativeTypeName("#define CS_VREDRAW 0x0001")] - public const int CS_VREDRAW = 0x0001; - - [NativeTypeName("#define CS_HREDRAW 0x0002")] - public const int CS_HREDRAW = 0x0002; - - [NativeTypeName("#define CS_DBLCLKS 0x0008")] - public const int CS_DBLCLKS = 0x0008; - - [NativeTypeName("#define CS_OWNDC 0x0020")] - public const int CS_OWNDC = 0x0020; - - [NativeTypeName("#define CS_CLASSDC 0x0040")] - public const int CS_CLASSDC = 0x0040; - - [NativeTypeName("#define CS_PARENTDC 0x0080")] - public const int CS_PARENTDC = 0x0080; - - [NativeTypeName("#define CS_NOCLOSE 0x0200")] - public const int CS_NOCLOSE = 0x0200; - - [NativeTypeName("#define CS_SAVEBITS 0x0800")] - public const int CS_SAVEBITS = 0x0800; - - [NativeTypeName("#define CS_BYTEALIGNCLIENT 0x1000")] - public const int CS_BYTEALIGNCLIENT = 0x1000; - - [NativeTypeName("#define CS_BYTEALIGNWINDOW 0x2000")] - public const int CS_BYTEALIGNWINDOW = 0x2000; - - [NativeTypeName("#define CS_GLOBALCLASS 0x4000")] - public const int CS_GLOBALCLASS = 0x4000; - - [NativeTypeName("#define CS_IME 0x00010000")] - public const int CS_IME = 0x00010000; - - [NativeTypeName("#define CS_DROPSHADOW 0x00020000")] - public const int CS_DROPSHADOW = 0x00020000; - - [NativeTypeName("#define PRF_CHECKVISIBLE 0x00000001L")] - public const int PRF_CHECKVISIBLE = 0x00000001; - - [NativeTypeName("#define PRF_NONCLIENT 0x00000002L")] - public const int PRF_NONCLIENT = 0x00000002; - - [NativeTypeName("#define PRF_CLIENT 0x00000004L")] - public const int PRF_CLIENT = 0x00000004; - - [NativeTypeName("#define PRF_ERASEBKGND 0x00000008L")] - public const int PRF_ERASEBKGND = 0x00000008; - - [NativeTypeName("#define PRF_CHILDREN 0x00000010L")] - public const int PRF_CHILDREN = 0x00000010; - - [NativeTypeName("#define PRF_OWNED 0x00000020L")] - public const int PRF_OWNED = 0x00000020; - [NativeTypeName("#define BDR_RAISEDOUTER 0x0001")] public const int BDR_RAISEDOUTER = 0x0001; @@ -3431,63 +2969,6 @@ public static unsafe partial class Windows [NativeTypeName("#define EDGE_BUMP (BDR_RAISEDOUTER | BDR_SUNKENINNER)")] public const int EDGE_BUMP = (0x0001 | 0x0008); - [NativeTypeName("#define BF_LEFT 0x0001")] - public const int BF_LEFT = 0x0001; - - [NativeTypeName("#define BF_TOP 0x0002")] - public const int BF_TOP = 0x0002; - - [NativeTypeName("#define BF_RIGHT 0x0004")] - public const int BF_RIGHT = 0x0004; - - [NativeTypeName("#define BF_BOTTOM 0x0008")] - public const int BF_BOTTOM = 0x0008; - - [NativeTypeName("#define BF_TOPLEFT (BF_TOP | BF_LEFT)")] - public const int BF_TOPLEFT = (0x0002 | 0x0001); - - [NativeTypeName("#define BF_TOPRIGHT (BF_TOP | BF_RIGHT)")] - public const int BF_TOPRIGHT = (0x0002 | 0x0004); - - [NativeTypeName("#define BF_BOTTOMLEFT (BF_BOTTOM | BF_LEFT)")] - public const int BF_BOTTOMLEFT = (0x0008 | 0x0001); - - [NativeTypeName("#define BF_BOTTOMRIGHT (BF_BOTTOM | BF_RIGHT)")] - public const int BF_BOTTOMRIGHT = (0x0008 | 0x0004); - - [NativeTypeName("#define BF_RECT (BF_LEFT | BF_TOP | BF_RIGHT | BF_BOTTOM)")] - public const int BF_RECT = (0x0001 | 0x0002 | 0x0004 | 0x0008); - - [NativeTypeName("#define BF_DIAGONAL 0x0010")] - public const int BF_DIAGONAL = 0x0010; - - [NativeTypeName("#define BF_DIAGONAL_ENDTOPRIGHT (BF_DIAGONAL | BF_TOP | BF_RIGHT)")] - public const int BF_DIAGONAL_ENDTOPRIGHT = (0x0010 | 0x0002 | 0x0004); - - [NativeTypeName("#define BF_DIAGONAL_ENDTOPLEFT (BF_DIAGONAL | BF_TOP | BF_LEFT)")] - public const int BF_DIAGONAL_ENDTOPLEFT = (0x0010 | 0x0002 | 0x0001); - - [NativeTypeName("#define BF_DIAGONAL_ENDBOTTOMLEFT (BF_DIAGONAL | BF_BOTTOM | BF_LEFT)")] - public const int BF_DIAGONAL_ENDBOTTOMLEFT = (0x0010 | 0x0008 | 0x0001); - - [NativeTypeName("#define BF_DIAGONAL_ENDBOTTOMRIGHT (BF_DIAGONAL | BF_BOTTOM | BF_RIGHT)")] - public const int BF_DIAGONAL_ENDBOTTOMRIGHT = (0x0010 | 0x0008 | 0x0004); - - [NativeTypeName("#define BF_MIDDLE 0x0800")] - public const int BF_MIDDLE = 0x0800; - - [NativeTypeName("#define BF_SOFT 0x1000")] - public const int BF_SOFT = 0x1000; - - [NativeTypeName("#define BF_ADJUST 0x2000")] - public const int BF_ADJUST = 0x2000; - - [NativeTypeName("#define BF_FLAT 0x4000")] - public const int BF_FLAT = 0x4000; - - [NativeTypeName("#define BF_MONO 0x8000")] - public const int BF_MONO = 0x8000; - [NativeTypeName("#define DFC_CAPTION 1")] public const int DFC_CAPTION = 1; @@ -3503,204 +2984,12 @@ public static unsafe partial class Windows [NativeTypeName("#define DFC_POPUPMENU 5")] public const int DFC_POPUPMENU = 5; - [NativeTypeName("#define DFCS_CAPTIONCLOSE 0x0000")] - public const int DFCS_CAPTIONCLOSE = 0x0000; - - [NativeTypeName("#define DFCS_CAPTIONMIN 0x0001")] - public const int DFCS_CAPTIONMIN = 0x0001; - - [NativeTypeName("#define DFCS_CAPTIONMAX 0x0002")] - public const int DFCS_CAPTIONMAX = 0x0002; - - [NativeTypeName("#define DFCS_CAPTIONRESTORE 0x0003")] - public const int DFCS_CAPTIONRESTORE = 0x0003; - - [NativeTypeName("#define DFCS_CAPTIONHELP 0x0004")] - public const int DFCS_CAPTIONHELP = 0x0004; - - [NativeTypeName("#define DFCS_MENUARROW 0x0000")] - public const int DFCS_MENUARROW = 0x0000; - - [NativeTypeName("#define DFCS_MENUCHECK 0x0001")] - public const int DFCS_MENUCHECK = 0x0001; - - [NativeTypeName("#define DFCS_MENUBULLET 0x0002")] - public const int DFCS_MENUBULLET = 0x0002; - - [NativeTypeName("#define DFCS_MENUARROWRIGHT 0x0004")] - public const int DFCS_MENUARROWRIGHT = 0x0004; - - [NativeTypeName("#define DFCS_SCROLLUP 0x0000")] - public const int DFCS_SCROLLUP = 0x0000; - - [NativeTypeName("#define DFCS_SCROLLDOWN 0x0001")] - public const int DFCS_SCROLLDOWN = 0x0001; - - [NativeTypeName("#define DFCS_SCROLLLEFT 0x0002")] - public const int DFCS_SCROLLLEFT = 0x0002; - - [NativeTypeName("#define DFCS_SCROLLRIGHT 0x0003")] - public const int DFCS_SCROLLRIGHT = 0x0003; - - [NativeTypeName("#define DFCS_SCROLLCOMBOBOX 0x0005")] - public const int DFCS_SCROLLCOMBOBOX = 0x0005; - - [NativeTypeName("#define DFCS_SCROLLSIZEGRIP 0x0008")] - public const int DFCS_SCROLLSIZEGRIP = 0x0008; - - [NativeTypeName("#define DFCS_SCROLLSIZEGRIPRIGHT 0x0010")] - public const int DFCS_SCROLLSIZEGRIPRIGHT = 0x0010; - - [NativeTypeName("#define DFCS_BUTTONCHECK 0x0000")] - public const int DFCS_BUTTONCHECK = 0x0000; - - [NativeTypeName("#define DFCS_BUTTONRADIOIMAGE 0x0001")] - public const int DFCS_BUTTONRADIOIMAGE = 0x0001; - - [NativeTypeName("#define DFCS_BUTTONRADIOMASK 0x0002")] - public const int DFCS_BUTTONRADIOMASK = 0x0002; - - [NativeTypeName("#define DFCS_BUTTONRADIO 0x0004")] - public const int DFCS_BUTTONRADIO = 0x0004; - - [NativeTypeName("#define DFCS_BUTTON3STATE 0x0008")] - public const int DFCS_BUTTON3STATE = 0x0008; - - [NativeTypeName("#define DFCS_BUTTONPUSH 0x0010")] - public const int DFCS_BUTTONPUSH = 0x0010; - - [NativeTypeName("#define DFCS_INACTIVE 0x0100")] - public const int DFCS_INACTIVE = 0x0100; - - [NativeTypeName("#define DFCS_PUSHED 0x0200")] - public const int DFCS_PUSHED = 0x0200; - - [NativeTypeName("#define DFCS_CHECKED 0x0400")] - public const int DFCS_CHECKED = 0x0400; - - [NativeTypeName("#define DFCS_TRANSPARENT 0x0800")] - public const int DFCS_TRANSPARENT = 0x0800; - - [NativeTypeName("#define DFCS_HOT 0x1000")] - public const int DFCS_HOT = 0x1000; - - [NativeTypeName("#define DFCS_ADJUSTRECT 0x2000")] - public const int DFCS_ADJUSTRECT = 0x2000; - - [NativeTypeName("#define DFCS_FLAT 0x4000")] - public const int DFCS_FLAT = 0x4000; - - [NativeTypeName("#define DFCS_MONO 0x8000")] - public const int DFCS_MONO = 0x8000; - - [NativeTypeName("#define DC_ACTIVE 0x0001")] - public const int DC_ACTIVE = 0x0001; - - [NativeTypeName("#define DC_SMALLCAP 0x0002")] - public const int DC_SMALLCAP = 0x0002; - - [NativeTypeName("#define DC_ICON 0x0004")] - public const int DC_ICON = 0x0004; - - [NativeTypeName("#define DC_TEXT 0x0008")] - public const int DC_TEXT = 0x0008; - - [NativeTypeName("#define DC_INBUTTON 0x0010")] - public const int DC_INBUTTON = 0x0010; - - [NativeTypeName("#define DC_GRADIENT 0x0020")] - public const int DC_GRADIENT = 0x0020; - - [NativeTypeName("#define DC_BUTTONS 0x1000")] - public const int DC_BUTTONS = 0x1000; - [NativeTypeName("#define IDANI_OPEN 1")] public const int IDANI_OPEN = 1; [NativeTypeName("#define IDANI_CAPTION 3")] public const int IDANI_CAPTION = 3; - [NativeTypeName("#define CF_TEXT 1")] - public const int CF_TEXT = 1; - - [NativeTypeName("#define CF_BITMAP 2")] - public const int CF_BITMAP = 2; - - [NativeTypeName("#define CF_METAFILEPICT 3")] - public const int CF_METAFILEPICT = 3; - - [NativeTypeName("#define CF_SYLK 4")] - public const int CF_SYLK = 4; - - [NativeTypeName("#define CF_DIF 5")] - public const int CF_DIF = 5; - - [NativeTypeName("#define CF_TIFF 6")] - public const int CF_TIFF = 6; - - [NativeTypeName("#define CF_OEMTEXT 7")] - public const int CF_OEMTEXT = 7; - - [NativeTypeName("#define CF_DIB 8")] - public const int CF_DIB = 8; - - [NativeTypeName("#define CF_PALETTE 9")] - public const int CF_PALETTE = 9; - - [NativeTypeName("#define CF_PENDATA 10")] - public const int CF_PENDATA = 10; - - [NativeTypeName("#define CF_RIFF 11")] - public const int CF_RIFF = 11; - - [NativeTypeName("#define CF_WAVE 12")] - public const int CF_WAVE = 12; - - [NativeTypeName("#define CF_UNICODETEXT 13")] - public const int CF_UNICODETEXT = 13; - - [NativeTypeName("#define CF_ENHMETAFILE 14")] - public const int CF_ENHMETAFILE = 14; - - [NativeTypeName("#define CF_HDROP 15")] - public const int CF_HDROP = 15; - - [NativeTypeName("#define CF_LOCALE 16")] - public const int CF_LOCALE = 16; - - [NativeTypeName("#define CF_DIBV5 17")] - public const int CF_DIBV5 = 17; - - [NativeTypeName("#define CF_MAX 18")] - public const int CF_MAX = 18; - - [NativeTypeName("#define CF_OWNERDISPLAY 0x0080")] - public const int CF_OWNERDISPLAY = 0x0080; - - [NativeTypeName("#define CF_DSPTEXT 0x0081")] - public const int CF_DSPTEXT = 0x0081; - - [NativeTypeName("#define CF_DSPBITMAP 0x0082")] - public const int CF_DSPBITMAP = 0x0082; - - [NativeTypeName("#define CF_DSPMETAFILEPICT 0x0083")] - public const int CF_DSPMETAFILEPICT = 0x0083; - - [NativeTypeName("#define CF_DSPENHMETAFILE 0x008E")] - public const int CF_DSPENHMETAFILE = 0x008E; - - [NativeTypeName("#define CF_PRIVATEFIRST 0x0200")] - public const int CF_PRIVATEFIRST = 0x0200; - - [NativeTypeName("#define CF_PRIVATELAST 0x02FF")] - public const int CF_PRIVATELAST = 0x02FF; - - [NativeTypeName("#define CF_GDIOBJFIRST 0x0300")] - public const int CF_GDIOBJFIRST = 0x0300; - - [NativeTypeName("#define CF_GDIOBJLAST 0x03FF")] - public const int CF_GDIOBJLAST = 0x03FF; - [NativeTypeName("#define FVIRTKEY TRUE")] public const int FVIRTKEY = 1; @@ -3749,39 +3038,6 @@ public static unsafe partial class Windows [NativeTypeName("#define ODA_FOCUS 0x0004")] public const int ODA_FOCUS = 0x0004; - [NativeTypeName("#define ODS_SELECTED 0x0001")] - public const int ODS_SELECTED = 0x0001; - - [NativeTypeName("#define ODS_GRAYED 0x0002")] - public const int ODS_GRAYED = 0x0002; - - [NativeTypeName("#define ODS_DISABLED 0x0004")] - public const int ODS_DISABLED = 0x0004; - - [NativeTypeName("#define ODS_CHECKED 0x0008")] - public const int ODS_CHECKED = 0x0008; - - [NativeTypeName("#define ODS_FOCUS 0x0010")] - public const int ODS_FOCUS = 0x0010; - - [NativeTypeName("#define ODS_DEFAULT 0x0020")] - public const int ODS_DEFAULT = 0x0020; - - [NativeTypeName("#define ODS_COMBOBOXEDIT 0x1000")] - public const int ODS_COMBOBOXEDIT = 0x1000; - - [NativeTypeName("#define ODS_HOTLIGHT 0x0040")] - public const int ODS_HOTLIGHT = 0x0040; - - [NativeTypeName("#define ODS_INACTIVE 0x0080")] - public const int ODS_INACTIVE = 0x0080; - - [NativeTypeName("#define ODS_NOACCEL 0x0100")] - public const int ODS_NOACCEL = 0x0100; - - [NativeTypeName("#define ODS_NOFOCUSRECT 0x0200")] - public const int ODS_NOFOCUSRECT = 0x0200; - [NativeTypeName("#define GetMessage GetMessageW")] public static delegate* GetMessage => &GetMessageW; @@ -3812,21 +3068,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PM_QS_SENDMESSAGE (QS_SENDMESSAGE << 16)")] public const int PM_QS_SENDMESSAGE = (0x0040 << 16); - [NativeTypeName("#define MOD_ALT 0x0001")] - public const int MOD_ALT = 0x0001; - - [NativeTypeName("#define MOD_CONTROL 0x0002")] - public const int MOD_CONTROL = 0x0002; - - [NativeTypeName("#define MOD_SHIFT 0x0004")] - public const int MOD_SHIFT = 0x0004; - - [NativeTypeName("#define MOD_WIN 0x0008")] - public const int MOD_WIN = 0x0008; - - [NativeTypeName("#define MOD_NOREPEAT 0x4000")] - public const int MOD_NOREPEAT = 0x4000; - [NativeTypeName("#define IDHOT_SNAPWINDOW (-1)")] public const int IDHOT_SNAPWINDOW = (-1); @@ -3842,44 +3083,8 @@ public static unsafe partial class Windows [NativeTypeName("#define ENDSESSION_LOGOFF 0x80000000")] public const uint ENDSESSION_LOGOFF = 0x80000000; - [NativeTypeName("#define EWX_LOGOFF 0x00000000")] - public const int EWX_LOGOFF = 0x00000000; - - [NativeTypeName("#define EWX_SHUTDOWN 0x00000001")] - public const int EWX_SHUTDOWN = 0x00000001; - - [NativeTypeName("#define EWX_REBOOT 0x00000002")] - public const int EWX_REBOOT = 0x00000002; - - [NativeTypeName("#define EWX_FORCE 0x00000004")] - public const int EWX_FORCE = 0x00000004; - - [NativeTypeName("#define EWX_POWEROFF 0x00000008")] - public const int EWX_POWEROFF = 0x00000008; - - [NativeTypeName("#define EWX_FORCEIFHUNG 0x00000010")] - public const int EWX_FORCEIFHUNG = 0x00000010; - - [NativeTypeName("#define EWX_QUICKRESOLVE 0x00000020")] - public const int EWX_QUICKRESOLVE = 0x00000020; - - [NativeTypeName("#define EWX_RESTARTAPPS 0x00000040")] - public const int EWX_RESTARTAPPS = 0x00000040; - - [NativeTypeName("#define EWX_HYBRID_SHUTDOWN 0x00400000")] - public const int EWX_HYBRID_SHUTDOWN = 0x00400000; - - [NativeTypeName("#define EWX_BOOTOPTIONS 0x01000000")] - public const int EWX_BOOTOPTIONS = 0x01000000; - - [NativeTypeName("#define EWX_ARSO 0x04000000")] - public const int EWX_ARSO = 0x04000000; - - [NativeTypeName("#define EWX_CHECK_SAFE_FOR_SERVER 0x08000000")] - public const int EWX_CHECK_SAFE_FOR_SERVER = 0x08000000; - - [NativeTypeName("#define SendMessage SendMessageW")] - public static delegate* SendMessage => &SendMessageW; + [NativeTypeName("#define SendMessage SendMessageW")] + public static delegate* SendMessage => &SendMessageW; [NativeTypeName("#define SendMessageTimeout SendMessageTimeoutW")] public static delegate* SendMessageTimeout => &SendMessageTimeoutW; @@ -3914,51 +3119,9 @@ public static unsafe partial class Windows [NativeTypeName("#define BSM_ALLDESKTOPS 0x00000010")] public const int BSM_ALLDESKTOPS = 0x00000010; - [NativeTypeName("#define BSF_QUERY 0x00000001")] - public const int BSF_QUERY = 0x00000001; - - [NativeTypeName("#define BSF_IGNORECURRENTTASK 0x00000002")] - public const int BSF_IGNORECURRENTTASK = 0x00000002; - - [NativeTypeName("#define BSF_FLUSHDISK 0x00000004")] - public const int BSF_FLUSHDISK = 0x00000004; - - [NativeTypeName("#define BSF_NOHANG 0x00000008")] - public const int BSF_NOHANG = 0x00000008; - - [NativeTypeName("#define BSF_POSTMESSAGE 0x00000010")] - public const int BSF_POSTMESSAGE = 0x00000010; - - [NativeTypeName("#define BSF_FORCEIFHUNG 0x00000020")] - public const int BSF_FORCEIFHUNG = 0x00000020; - - [NativeTypeName("#define BSF_NOTIMEOUTIFNOTHUNG 0x00000040")] - public const int BSF_NOTIMEOUTIFNOTHUNG = 0x00000040; - - [NativeTypeName("#define BSF_ALLOWSFW 0x00000080")] - public const int BSF_ALLOWSFW = 0x00000080; - - [NativeTypeName("#define BSF_SENDNOTIFYMESSAGE 0x00000100")] - public const int BSF_SENDNOTIFYMESSAGE = 0x00000100; - - [NativeTypeName("#define BSF_RETURNHDESK 0x00000200")] - public const int BSF_RETURNHDESK = 0x00000200; - - [NativeTypeName("#define BSF_LUID 0x00000400")] - public const int BSF_LUID = 0x00000400; - [NativeTypeName("#define BROADCAST_QUERY_DENY 0x424D5144")] public const int BROADCAST_QUERY_DENY = 0x424D5144; - [NativeTypeName("#define DEVICE_NOTIFY_WINDOW_HANDLE 0x00000000")] - public const int DEVICE_NOTIFY_WINDOW_HANDLE = 0x00000000; - - [NativeTypeName("#define DEVICE_NOTIFY_SERVICE_HANDLE 0x00000001")] - public const int DEVICE_NOTIFY_SERVICE_HANDLE = 0x00000001; - - [NativeTypeName("#define DEVICE_NOTIFY_ALL_INTERFACE_CLASSES 0x00000004")] - public const int DEVICE_NOTIFY_ALL_INTERFACE_CLASSES = 0x00000004; - [NativeTypeName("#define RegisterDeviceNotification RegisterDeviceNotificationW")] public static delegate* RegisterDeviceNotification => &RegisterDeviceNotificationW; @@ -4061,51 +3224,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WDA_EXCLUDEFROMCAPTURE 0x00000011")] public const int WDA_EXCLUDEFROMCAPTURE = 0x00000011; - [NativeTypeName("#define SWP_NOSIZE 0x0001")] - public const int SWP_NOSIZE = 0x0001; - - [NativeTypeName("#define SWP_NOMOVE 0x0002")] - public const int SWP_NOMOVE = 0x0002; - - [NativeTypeName("#define SWP_NOZORDER 0x0004")] - public const int SWP_NOZORDER = 0x0004; - - [NativeTypeName("#define SWP_NOREDRAW 0x0008")] - public const int SWP_NOREDRAW = 0x0008; - - [NativeTypeName("#define SWP_NOACTIVATE 0x0010")] - public const int SWP_NOACTIVATE = 0x0010; - - [NativeTypeName("#define SWP_FRAMECHANGED 0x0020")] - public const int SWP_FRAMECHANGED = 0x0020; - - [NativeTypeName("#define SWP_SHOWWINDOW 0x0040")] - public const int SWP_SHOWWINDOW = 0x0040; - - [NativeTypeName("#define SWP_HIDEWINDOW 0x0080")] - public const int SWP_HIDEWINDOW = 0x0080; - - [NativeTypeName("#define SWP_NOCOPYBITS 0x0100")] - public const int SWP_NOCOPYBITS = 0x0100; - - [NativeTypeName("#define SWP_NOOWNERZORDER 0x0200")] - public const int SWP_NOOWNERZORDER = 0x0200; - - [NativeTypeName("#define SWP_NOSENDCHANGING 0x0400")] - public const int SWP_NOSENDCHANGING = 0x0400; - - [NativeTypeName("#define SWP_DRAWFRAME SWP_FRAMECHANGED")] - public const int SWP_DRAWFRAME = 0x0020; - - [NativeTypeName("#define SWP_NOREPOSITION SWP_NOOWNERZORDER")] - public const int SWP_NOREPOSITION = 0x0200; - - [NativeTypeName("#define SWP_DEFERERASE 0x2000")] - public const int SWP_DEFERERASE = 0x2000; - - [NativeTypeName("#define SWP_ASYNCWINDOWPOS 0x4000")] - public const int SWP_ASYNCWINDOWPOS = 0x4000; - [NativeTypeName("#define CreateDialogParam CreateDialogParamW")] public static delegate*, LPARAM, HWND> CreateDialogParam => &CreateDialogParamW; @@ -4235,48 +3353,6 @@ public static unsafe partial class Windows [NativeTypeName("#define KEYEVENTF_SCANCODE 0x0008")] public const int KEYEVENTF_SCANCODE = 0x0008; - [NativeTypeName("#define MOUSEEVENTF_MOVE 0x0001")] - public const int MOUSEEVENTF_MOVE = 0x0001; - - [NativeTypeName("#define MOUSEEVENTF_LEFTDOWN 0x0002")] - public const int MOUSEEVENTF_LEFTDOWN = 0x0002; - - [NativeTypeName("#define MOUSEEVENTF_LEFTUP 0x0004")] - public const int MOUSEEVENTF_LEFTUP = 0x0004; - - [NativeTypeName("#define MOUSEEVENTF_RIGHTDOWN 0x0008")] - public const int MOUSEEVENTF_RIGHTDOWN = 0x0008; - - [NativeTypeName("#define MOUSEEVENTF_RIGHTUP 0x0010")] - public const int MOUSEEVENTF_RIGHTUP = 0x0010; - - [NativeTypeName("#define MOUSEEVENTF_MIDDLEDOWN 0x0020")] - public const int MOUSEEVENTF_MIDDLEDOWN = 0x0020; - - [NativeTypeName("#define MOUSEEVENTF_MIDDLEUP 0x0040")] - public const int MOUSEEVENTF_MIDDLEUP = 0x0040; - - [NativeTypeName("#define MOUSEEVENTF_XDOWN 0x0080")] - public const int MOUSEEVENTF_XDOWN = 0x0080; - - [NativeTypeName("#define MOUSEEVENTF_XUP 0x0100")] - public const int MOUSEEVENTF_XUP = 0x0100; - - [NativeTypeName("#define MOUSEEVENTF_WHEEL 0x0800")] - public const int MOUSEEVENTF_WHEEL = 0x0800; - - [NativeTypeName("#define MOUSEEVENTF_HWHEEL 0x01000")] - public const int MOUSEEVENTF_HWHEEL = 0x01000; - - [NativeTypeName("#define MOUSEEVENTF_MOVE_NOCOALESCE 0x2000")] - public const int MOUSEEVENTF_MOVE_NOCOALESCE = 0x2000; - - [NativeTypeName("#define MOUSEEVENTF_VIRTUALDESK 0x4000")] - public const int MOUSEEVENTF_VIRTUALDESK = 0x4000; - - [NativeTypeName("#define MOUSEEVENTF_ABSOLUTE 0x8000")] - public const int MOUSEEVENTF_ABSOLUTE = 0x8000; - [NativeTypeName("#define INPUT_MOUSE 0")] public const int INPUT_MOUSE = 0; @@ -4325,84 +3401,6 @@ public static unsafe partial class Windows [NativeTypeName("#define TWF_WANTPALM (0x00000002)")] public const int TWF_WANTPALM = (0x00000002); - [NativeTypeName("#define POINTER_FLAG_NONE 0x00000000")] - public const int POINTER_FLAG_NONE = 0x00000000; - - [NativeTypeName("#define POINTER_FLAG_NEW 0x00000001")] - public const int POINTER_FLAG_NEW = 0x00000001; - - [NativeTypeName("#define POINTER_FLAG_INRANGE 0x00000002")] - public const int POINTER_FLAG_INRANGE = 0x00000002; - - [NativeTypeName("#define POINTER_FLAG_INCONTACT 0x00000004")] - public const int POINTER_FLAG_INCONTACT = 0x00000004; - - [NativeTypeName("#define POINTER_FLAG_FIRSTBUTTON 0x00000010")] - public const int POINTER_FLAG_FIRSTBUTTON = 0x00000010; - - [NativeTypeName("#define POINTER_FLAG_SECONDBUTTON 0x00000020")] - public const int POINTER_FLAG_SECONDBUTTON = 0x00000020; - - [NativeTypeName("#define POINTER_FLAG_THIRDBUTTON 0x00000040")] - public const int POINTER_FLAG_THIRDBUTTON = 0x00000040; - - [NativeTypeName("#define POINTER_FLAG_FOURTHBUTTON 0x00000080")] - public const int POINTER_FLAG_FOURTHBUTTON = 0x00000080; - - [NativeTypeName("#define POINTER_FLAG_FIFTHBUTTON 0x00000100")] - public const int POINTER_FLAG_FIFTHBUTTON = 0x00000100; - - [NativeTypeName("#define POINTER_FLAG_PRIMARY 0x00002000")] - public const int POINTER_FLAG_PRIMARY = 0x00002000; - - [NativeTypeName("#define POINTER_FLAG_CONFIDENCE 0x00004000")] - public const int POINTER_FLAG_CONFIDENCE = 0x00004000; - - [NativeTypeName("#define POINTER_FLAG_CANCELED 0x00008000")] - public const int POINTER_FLAG_CANCELED = 0x00008000; - - [NativeTypeName("#define POINTER_FLAG_DOWN 0x00010000")] - public const int POINTER_FLAG_DOWN = 0x00010000; - - [NativeTypeName("#define POINTER_FLAG_UPDATE 0x00020000")] - public const int POINTER_FLAG_UPDATE = 0x00020000; - - [NativeTypeName("#define POINTER_FLAG_UP 0x00040000")] - public const int POINTER_FLAG_UP = 0x00040000; - - [NativeTypeName("#define POINTER_FLAG_WHEEL 0x00080000")] - public const int POINTER_FLAG_WHEEL = 0x00080000; - - [NativeTypeName("#define POINTER_FLAG_HWHEEL 0x00100000")] - public const int POINTER_FLAG_HWHEEL = 0x00100000; - - [NativeTypeName("#define POINTER_FLAG_CAPTURECHANGED 0x00200000")] - public const int POINTER_FLAG_CAPTURECHANGED = 0x00200000; - - [NativeTypeName("#define POINTER_FLAG_HASTRANSFORM 0x00400000")] - public const int POINTER_FLAG_HASTRANSFORM = 0x00400000; - - [NativeTypeName("#define POINTER_MOD_SHIFT (0x0004)")] - public const int POINTER_MOD_SHIFT = (0x0004); - - [NativeTypeName("#define POINTER_MOD_CTRL (0x0008)")] - public const int POINTER_MOD_CTRL = (0x0008); - - [NativeTypeName("#define TOUCH_FLAG_NONE 0x00000000")] - public const int TOUCH_FLAG_NONE = 0x00000000; - - [NativeTypeName("#define TOUCH_MASK_NONE 0x00000000")] - public const int TOUCH_MASK_NONE = 0x00000000; - - [NativeTypeName("#define TOUCH_MASK_CONTACTAREA 0x00000001")] - public const int TOUCH_MASK_CONTACTAREA = 0x00000001; - - [NativeTypeName("#define TOUCH_MASK_ORIENTATION 0x00000002")] - public const int TOUCH_MASK_ORIENTATION = 0x00000002; - - [NativeTypeName("#define TOUCH_MASK_PRESSURE 0x00000004")] - public const int TOUCH_MASK_PRESSURE = 0x00000004; - [NativeTypeName("#define PEN_FLAG_NONE 0x00000000")] public const int PEN_FLAG_NONE = 0x00000000; @@ -4430,69 +3428,12 @@ public static unsafe partial class Windows [NativeTypeName("#define PEN_MASK_TILT_Y 0x00000008")] public const int PEN_MASK_TILT_Y = 0x00000008; - [NativeTypeName("#define POINTER_MESSAGE_FLAG_NEW 0x00000001")] - public const int POINTER_MESSAGE_FLAG_NEW = 0x00000001; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_INRANGE 0x00000002")] - public const int POINTER_MESSAGE_FLAG_INRANGE = 0x00000002; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_INCONTACT 0x00000004")] - public const int POINTER_MESSAGE_FLAG_INCONTACT = 0x00000004; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_FIRSTBUTTON 0x00000010")] - public const int POINTER_MESSAGE_FLAG_FIRSTBUTTON = 0x00000010; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_SECONDBUTTON 0x00000020")] - public const int POINTER_MESSAGE_FLAG_SECONDBUTTON = 0x00000020; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_THIRDBUTTON 0x00000040")] - public const int POINTER_MESSAGE_FLAG_THIRDBUTTON = 0x00000040; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_FOURTHBUTTON 0x00000080")] - public const int POINTER_MESSAGE_FLAG_FOURTHBUTTON = 0x00000080; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_FIFTHBUTTON 0x00000100")] - public const int POINTER_MESSAGE_FLAG_FIFTHBUTTON = 0x00000100; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_PRIMARY 0x00002000")] - public const int POINTER_MESSAGE_FLAG_PRIMARY = 0x00002000; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_CONFIDENCE 0x00004000")] - public const int POINTER_MESSAGE_FLAG_CONFIDENCE = 0x00004000; - - [NativeTypeName("#define POINTER_MESSAGE_FLAG_CANCELED 0x00008000")] - public const int POINTER_MESSAGE_FLAG_CANCELED = 0x00008000; - [NativeTypeName("#define PA_ACTIVATE MA_ACTIVATE")] public const int PA_ACTIVATE = 1; [NativeTypeName("#define PA_NOACTIVATE MA_NOACTIVATE")] public const int PA_NOACTIVATE = 3; - [NativeTypeName("#define TOUCH_FEEDBACK_DEFAULT 0x1")] - public const int TOUCH_FEEDBACK_DEFAULT = 0x1; - - [NativeTypeName("#define TOUCH_FEEDBACK_INDIRECT 0x2")] - public const int TOUCH_FEEDBACK_INDIRECT = 0x2; - - [NativeTypeName("#define TOUCH_FEEDBACK_NONE 0x3")] - public const int TOUCH_FEEDBACK_NONE = 0x3; - - [NativeTypeName("#define TOUCH_HIT_TESTING_DEFAULT 0x0")] - public const int TOUCH_HIT_TESTING_DEFAULT = 0x0; - - [NativeTypeName("#define TOUCH_HIT_TESTING_CLIENT 0x1")] - public const int TOUCH_HIT_TESTING_CLIENT = 0x1; - - [NativeTypeName("#define TOUCH_HIT_TESTING_NONE 0x2")] - public const int TOUCH_HIT_TESTING_NONE = 0x2; - - [NativeTypeName("#define TOUCH_HIT_TESTING_PROXIMITY_CLOSEST 0x0")] - public const int TOUCH_HIT_TESTING_PROXIMITY_CLOSEST = 0x0; - - [NativeTypeName("#define TOUCH_HIT_TESTING_PROXIMITY_FARTHEST 0xFFF")] - public const int TOUCH_HIT_TESTING_PROXIMITY_FARTHEST = 0xFFF; - [NativeTypeName("#define GWFS_INCLUDE_ANCESTORS 0x00000001")] public const int GWFS_INCLUDE_ANCESTORS = 0x00000001; @@ -4526,54 +3467,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MWMO_INPUTAVAILABLE 0x0004")] public const int MWMO_INPUTAVAILABLE = 0x0004; - [NativeTypeName("#define QS_KEY 0x0001")] - public const int QS_KEY = 0x0001; - - [NativeTypeName("#define QS_MOUSEMOVE 0x0002")] - public const int QS_MOUSEMOVE = 0x0002; - - [NativeTypeName("#define QS_MOUSEBUTTON 0x0004")] - public const int QS_MOUSEBUTTON = 0x0004; - - [NativeTypeName("#define QS_POSTMESSAGE 0x0008")] - public const int QS_POSTMESSAGE = 0x0008; - - [NativeTypeName("#define QS_TIMER 0x0010")] - public const int QS_TIMER = 0x0010; - - [NativeTypeName("#define QS_PAINT 0x0020")] - public const int QS_PAINT = 0x0020; - - [NativeTypeName("#define QS_SENDMESSAGE 0x0040")] - public const int QS_SENDMESSAGE = 0x0040; - - [NativeTypeName("#define QS_HOTKEY 0x0080")] - public const int QS_HOTKEY = 0x0080; - - [NativeTypeName("#define QS_ALLPOSTMESSAGE 0x0100")] - public const int QS_ALLPOSTMESSAGE = 0x0100; - - [NativeTypeName("#define QS_RAWINPUT 0x0400")] - public const int QS_RAWINPUT = 0x0400; - - [NativeTypeName("#define QS_TOUCH 0x0800")] - public const int QS_TOUCH = 0x0800; - - [NativeTypeName("#define QS_POINTER 0x1000")] - public const int QS_POINTER = 0x1000; - - [NativeTypeName("#define QS_MOUSE (QS_MOUSEMOVE | \\\r\n QS_MOUSEBUTTON)")] - public const int QS_MOUSE = (0x0002 | 0x0004); - - [NativeTypeName("#define QS_INPUT (QS_MOUSE | \\\r\n QS_KEY | \\\r\n QS_RAWINPUT | \\\r\n QS_TOUCH | \\\r\n QS_POINTER)")] - public const int QS_INPUT = ((0x0002 | 0x0004) | 0x0001 | 0x0400 | 0x0800 | 0x1000); - - [NativeTypeName("#define QS_ALLEVENTS (QS_INPUT | \\\r\n QS_POSTMESSAGE | \\\r\n QS_TIMER | \\\r\n QS_PAINT | \\\r\n QS_HOTKEY)")] - public const int QS_ALLEVENTS = (((0x0002 | 0x0004) | 0x0001 | 0x0400 | 0x0800 | 0x1000) | 0x0008 | 0x0010 | 0x0020 | 0x0080); - - [NativeTypeName("#define QS_ALLINPUT (QS_INPUT | \\\r\n QS_POSTMESSAGE | \\\r\n QS_TIMER | \\\r\n QS_PAINT | \\\r\n QS_HOTKEY | \\\r\n QS_SENDMESSAGE)")] - public const int QS_ALLINPUT = (((0x0002 | 0x0004) | 0x0001 | 0x0400 | 0x0800 | 0x1000) | 0x0008 | 0x0010 | 0x0020 | 0x0080 | 0x0040); - [NativeTypeName("#define USER_TIMER_MAXIMUM 0x7FFFFFFF")] public const int USER_TIMER_MAXIMUM = 0x7FFFFFFF; @@ -4658,24 +3551,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MNS_CHECKORBMP 0x04000000")] public const int MNS_CHECKORBMP = 0x04000000; - [NativeTypeName("#define MIM_MAXHEIGHT 0x00000001")] - public const int MIM_MAXHEIGHT = 0x00000001; - - [NativeTypeName("#define MIM_BACKGROUND 0x00000002")] - public const int MIM_BACKGROUND = 0x00000002; - - [NativeTypeName("#define MIM_HELPID 0x00000004")] - public const int MIM_HELPID = 0x00000004; - - [NativeTypeName("#define MIM_MENUDATA 0x00000008")] - public const int MIM_MENUDATA = 0x00000008; - - [NativeTypeName("#define MIM_STYLE 0x00000010")] - public const int MIM_STYLE = 0x00000010; - - [NativeTypeName("#define MIM_APPLYTOSUBMENUS 0x80000000")] - public const uint MIM_APPLYTOSUBMENUS = 0x80000000; - [NativeTypeName("#define MND_CONTINUE 0")] public const int MND_CONTINUE = 0; @@ -4760,78 +3635,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DO_PRINTFILE 0x544E5250L")] public const int DO_PRINTFILE = 0x544E5250; - [NativeTypeName("#define DT_TOP 0x00000000")] - public const int DT_TOP = 0x00000000; - - [NativeTypeName("#define DT_LEFT 0x00000000")] - public const int DT_LEFT = 0x00000000; - - [NativeTypeName("#define DT_CENTER 0x00000001")] - public const int DT_CENTER = 0x00000001; - - [NativeTypeName("#define DT_RIGHT 0x00000002")] - public const int DT_RIGHT = 0x00000002; - - [NativeTypeName("#define DT_VCENTER 0x00000004")] - public const int DT_VCENTER = 0x00000004; - - [NativeTypeName("#define DT_BOTTOM 0x00000008")] - public const int DT_BOTTOM = 0x00000008; - - [NativeTypeName("#define DT_WORDBREAK 0x00000010")] - public const int DT_WORDBREAK = 0x00000010; - - [NativeTypeName("#define DT_SINGLELINE 0x00000020")] - public const int DT_SINGLELINE = 0x00000020; - - [NativeTypeName("#define DT_EXPANDTABS 0x00000040")] - public const int DT_EXPANDTABS = 0x00000040; - - [NativeTypeName("#define DT_TABSTOP 0x00000080")] - public const int DT_TABSTOP = 0x00000080; - - [NativeTypeName("#define DT_NOCLIP 0x00000100")] - public const int DT_NOCLIP = 0x00000100; - - [NativeTypeName("#define DT_EXTERNALLEADING 0x00000200")] - public const int DT_EXTERNALLEADING = 0x00000200; - - [NativeTypeName("#define DT_CALCRECT 0x00000400")] - public const int DT_CALCRECT = 0x00000400; - - [NativeTypeName("#define DT_NOPREFIX 0x00000800")] - public const int DT_NOPREFIX = 0x00000800; - - [NativeTypeName("#define DT_INTERNAL 0x00001000")] - public const int DT_INTERNAL = 0x00001000; - - [NativeTypeName("#define DT_EDITCONTROL 0x00002000")] - public const int DT_EDITCONTROL = 0x00002000; - - [NativeTypeName("#define DT_PATH_ELLIPSIS 0x00004000")] - public const int DT_PATH_ELLIPSIS = 0x00004000; - - [NativeTypeName("#define DT_END_ELLIPSIS 0x00008000")] - public const int DT_END_ELLIPSIS = 0x00008000; - - [NativeTypeName("#define DT_MODIFYSTRING 0x00010000")] - public const int DT_MODIFYSTRING = 0x00010000; - - [NativeTypeName("#define DT_RTLREADING 0x00020000")] - public const int DT_RTLREADING = 0x00020000; - - [NativeTypeName("#define DT_WORD_ELLIPSIS 0x00040000")] - public const int DT_WORD_ELLIPSIS = 0x00040000; - - [NativeTypeName("#define DT_NOFULLWIDTHCHARBREAK 0x00080000")] - public const int DT_NOFULLWIDTHCHARBREAK = 0x00080000; - - [NativeTypeName("#define DT_HIDEPREFIX 0x00100000")] - public const int DT_HIDEPREFIX = 0x00100000; - - [NativeTypeName("#define DT_PREFIXONLY 0x00200000")] - public const int DT_PREFIXONLY = 0x00200000; - [NativeTypeName("#define DrawText DrawTextW")] public static delegate* DrawText => &DrawTextW; @@ -4895,90 +3698,6 @@ public static unsafe partial class Windows [NativeTypeName("#define LSFW_UNLOCK 2")] public const int LSFW_UNLOCK = 2; - [NativeTypeName("#define DCX_WINDOW 0x00000001L")] - public const int DCX_WINDOW = 0x00000001; - - [NativeTypeName("#define DCX_CACHE 0x00000002L")] - public const int DCX_CACHE = 0x00000002; - - [NativeTypeName("#define DCX_NORESETATTRS 0x00000004L")] - public const int DCX_NORESETATTRS = 0x00000004; - - [NativeTypeName("#define DCX_CLIPCHILDREN 0x00000008L")] - public const int DCX_CLIPCHILDREN = 0x00000008; - - [NativeTypeName("#define DCX_CLIPSIBLINGS 0x00000010L")] - public const int DCX_CLIPSIBLINGS = 0x00000010; - - [NativeTypeName("#define DCX_PARENTCLIP 0x00000020L")] - public const int DCX_PARENTCLIP = 0x00000020; - - [NativeTypeName("#define DCX_EXCLUDERGN 0x00000040L")] - public const int DCX_EXCLUDERGN = 0x00000040; - - [NativeTypeName("#define DCX_INTERSECTRGN 0x00000080L")] - public const int DCX_INTERSECTRGN = 0x00000080; - - [NativeTypeName("#define DCX_EXCLUDEUPDATE 0x00000100L")] - public const int DCX_EXCLUDEUPDATE = 0x00000100; - - [NativeTypeName("#define DCX_INTERSECTUPDATE 0x00000200L")] - public const int DCX_INTERSECTUPDATE = 0x00000200; - - [NativeTypeName("#define DCX_LOCKWINDOWUPDATE 0x00000400L")] - public const int DCX_LOCKWINDOWUPDATE = 0x00000400; - - [NativeTypeName("#define DCX_VALIDATE 0x00200000L")] - public const int DCX_VALIDATE = 0x00200000; - - [NativeTypeName("#define RDW_INVALIDATE 0x0001")] - public const int RDW_INVALIDATE = 0x0001; - - [NativeTypeName("#define RDW_INTERNALPAINT 0x0002")] - public const int RDW_INTERNALPAINT = 0x0002; - - [NativeTypeName("#define RDW_ERASE 0x0004")] - public const int RDW_ERASE = 0x0004; - - [NativeTypeName("#define RDW_VALIDATE 0x0008")] - public const int RDW_VALIDATE = 0x0008; - - [NativeTypeName("#define RDW_NOINTERNALPAINT 0x0010")] - public const int RDW_NOINTERNALPAINT = 0x0010; - - [NativeTypeName("#define RDW_NOERASE 0x0020")] - public const int RDW_NOERASE = 0x0020; - - [NativeTypeName("#define RDW_NOCHILDREN 0x0040")] - public const int RDW_NOCHILDREN = 0x0040; - - [NativeTypeName("#define RDW_ALLCHILDREN 0x0080")] - public const int RDW_ALLCHILDREN = 0x0080; - - [NativeTypeName("#define RDW_UPDATENOW 0x0100")] - public const int RDW_UPDATENOW = 0x0100; - - [NativeTypeName("#define RDW_ERASENOW 0x0200")] - public const int RDW_ERASENOW = 0x0200; - - [NativeTypeName("#define RDW_FRAME 0x0400")] - public const int RDW_FRAME = 0x0400; - - [NativeTypeName("#define RDW_NOFRAME 0x0800")] - public const int RDW_NOFRAME = 0x0800; - - [NativeTypeName("#define SW_SCROLLCHILDREN 0x0001")] - public const int SW_SCROLLCHILDREN = 0x0001; - - [NativeTypeName("#define SW_INVALIDATE 0x0002")] - public const int SW_INVALIDATE = 0x0002; - - [NativeTypeName("#define SW_ERASE 0x0004")] - public const int SW_ERASE = 0x0004; - - [NativeTypeName("#define SW_SMOOTHSCROLL 0x0010")] - public const int SW_SMOOTHSCROLL = 0x0010; - [NativeTypeName("#define ESB_ENABLE_BOTH 0x0000")] public const int ESB_ENABLE_BOTH = 0x0000; @@ -5033,117 +3752,6 @@ public static unsafe partial class Windows [NativeTypeName("#define HELPINFO_MENUITEM 0x0002")] public const int HELPINFO_MENUITEM = 0x0002; - [NativeTypeName("#define MB_OK 0x00000000L")] - public const int MB_OK = 0x00000000; - - [NativeTypeName("#define MB_OKCANCEL 0x00000001L")] - public const int MB_OKCANCEL = 0x00000001; - - [NativeTypeName("#define MB_ABORTRETRYIGNORE 0x00000002L")] - public const int MB_ABORTRETRYIGNORE = 0x00000002; - - [NativeTypeName("#define MB_YESNOCANCEL 0x00000003L")] - public const int MB_YESNOCANCEL = 0x00000003; - - [NativeTypeName("#define MB_YESNO 0x00000004L")] - public const int MB_YESNO = 0x00000004; - - [NativeTypeName("#define MB_RETRYCANCEL 0x00000005L")] - public const int MB_RETRYCANCEL = 0x00000005; - - [NativeTypeName("#define MB_CANCELTRYCONTINUE 0x00000006L")] - public const int MB_CANCELTRYCONTINUE = 0x00000006; - - [NativeTypeName("#define MB_ICONHAND 0x00000010L")] - public const int MB_ICONHAND = 0x00000010; - - [NativeTypeName("#define MB_ICONQUESTION 0x00000020L")] - public const int MB_ICONQUESTION = 0x00000020; - - [NativeTypeName("#define MB_ICONEXCLAMATION 0x00000030L")] - public const int MB_ICONEXCLAMATION = 0x00000030; - - [NativeTypeName("#define MB_ICONASTERISK 0x00000040L")] - public const int MB_ICONASTERISK = 0x00000040; - - [NativeTypeName("#define MB_USERICON 0x00000080L")] - public const int MB_USERICON = 0x00000080; - - [NativeTypeName("#define MB_ICONWARNING MB_ICONEXCLAMATION")] - public const int MB_ICONWARNING = 0x00000030; - - [NativeTypeName("#define MB_ICONERROR MB_ICONHAND")] - public const int MB_ICONERROR = 0x00000010; - - [NativeTypeName("#define MB_ICONINFORMATION MB_ICONASTERISK")] - public const int MB_ICONINFORMATION = 0x00000040; - - [NativeTypeName("#define MB_ICONSTOP MB_ICONHAND")] - public const int MB_ICONSTOP = 0x00000010; - - [NativeTypeName("#define MB_DEFBUTTON1 0x00000000L")] - public const int MB_DEFBUTTON1 = 0x00000000; - - [NativeTypeName("#define MB_DEFBUTTON2 0x00000100L")] - public const int MB_DEFBUTTON2 = 0x00000100; - - [NativeTypeName("#define MB_DEFBUTTON3 0x00000200L")] - public const int MB_DEFBUTTON3 = 0x00000200; - - [NativeTypeName("#define MB_DEFBUTTON4 0x00000300L")] - public const int MB_DEFBUTTON4 = 0x00000300; - - [NativeTypeName("#define MB_APPLMODAL 0x00000000L")] - public const int MB_APPLMODAL = 0x00000000; - - [NativeTypeName("#define MB_SYSTEMMODAL 0x00001000L")] - public const int MB_SYSTEMMODAL = 0x00001000; - - [NativeTypeName("#define MB_TASKMODAL 0x00002000L")] - public const int MB_TASKMODAL = 0x00002000; - - [NativeTypeName("#define MB_HELP 0x00004000L")] - public const int MB_HELP = 0x00004000; - - [NativeTypeName("#define MB_NOFOCUS 0x00008000L")] - public const int MB_NOFOCUS = 0x00008000; - - [NativeTypeName("#define MB_SETFOREGROUND 0x00010000L")] - public const int MB_SETFOREGROUND = 0x00010000; - - [NativeTypeName("#define MB_DEFAULT_DESKTOP_ONLY 0x00020000L")] - public const int MB_DEFAULT_DESKTOP_ONLY = 0x00020000; - - [NativeTypeName("#define MB_TOPMOST 0x00040000L")] - public const int MB_TOPMOST = 0x00040000; - - [NativeTypeName("#define MB_RIGHT 0x00080000L")] - public const int MB_RIGHT = 0x00080000; - - [NativeTypeName("#define MB_RTLREADING 0x00100000L")] - public const int MB_RTLREADING = 0x00100000; - - [NativeTypeName("#define MB_SERVICE_NOTIFICATION 0x00200000L")] - public const int MB_SERVICE_NOTIFICATION = 0x00200000; - - [NativeTypeName("#define MB_SERVICE_NOTIFICATION_NT3X 0x00040000L")] - public const int MB_SERVICE_NOTIFICATION_NT3X = 0x00040000; - - [NativeTypeName("#define MB_TYPEMASK 0x0000000FL")] - public const int MB_TYPEMASK = 0x0000000F; - - [NativeTypeName("#define MB_ICONMASK 0x000000F0L")] - public const int MB_ICONMASK = 0x000000F0; - - [NativeTypeName("#define MB_DEFMASK 0x00000F00L")] - public const int MB_DEFMASK = 0x00000F00; - - [NativeTypeName("#define MB_MODEMASK 0x00003000L")] - public const int MB_MODEMASK = 0x00003000; - - [NativeTypeName("#define MB_MISCMASK 0x0000C000L")] - public const int MB_MISCMASK = 0x0000C000; - [NativeTypeName("#define MessageBox MessageBoxW")] public static delegate* MessageBox => &MessageBoxW; @@ -5189,114 +3797,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CTLCOLOR_MAX 7")] public const int CTLCOLOR_MAX = 7; - [NativeTypeName("#define COLOR_SCROLLBAR 0")] - public const int COLOR_SCROLLBAR = 0; - - [NativeTypeName("#define COLOR_BACKGROUND 1")] - public const int COLOR_BACKGROUND = 1; - - [NativeTypeName("#define COLOR_ACTIVECAPTION 2")] - public const int COLOR_ACTIVECAPTION = 2; - - [NativeTypeName("#define COLOR_INACTIVECAPTION 3")] - public const int COLOR_INACTIVECAPTION = 3; - - [NativeTypeName("#define COLOR_MENU 4")] - public const int COLOR_MENU = 4; - - [NativeTypeName("#define COLOR_WINDOW 5")] - public const int COLOR_WINDOW = 5; - - [NativeTypeName("#define COLOR_WINDOWFRAME 6")] - public const int COLOR_WINDOWFRAME = 6; - - [NativeTypeName("#define COLOR_MENUTEXT 7")] - public const int COLOR_MENUTEXT = 7; - - [NativeTypeName("#define COLOR_WINDOWTEXT 8")] - public const int COLOR_WINDOWTEXT = 8; - - [NativeTypeName("#define COLOR_CAPTIONTEXT 9")] - public const int COLOR_CAPTIONTEXT = 9; - - [NativeTypeName("#define COLOR_ACTIVEBORDER 10")] - public const int COLOR_ACTIVEBORDER = 10; - - [NativeTypeName("#define COLOR_INACTIVEBORDER 11")] - public const int COLOR_INACTIVEBORDER = 11; - - [NativeTypeName("#define COLOR_APPWORKSPACE 12")] - public const int COLOR_APPWORKSPACE = 12; - - [NativeTypeName("#define COLOR_HIGHLIGHT 13")] - public const int COLOR_HIGHLIGHT = 13; - - [NativeTypeName("#define COLOR_HIGHLIGHTTEXT 14")] - public const int COLOR_HIGHLIGHTTEXT = 14; - - [NativeTypeName("#define COLOR_BTNFACE 15")] - public const int COLOR_BTNFACE = 15; - - [NativeTypeName("#define COLOR_BTNSHADOW 16")] - public const int COLOR_BTNSHADOW = 16; - - [NativeTypeName("#define COLOR_GRAYTEXT 17")] - public const int COLOR_GRAYTEXT = 17; - - [NativeTypeName("#define COLOR_BTNTEXT 18")] - public const int COLOR_BTNTEXT = 18; - - [NativeTypeName("#define COLOR_INACTIVECAPTIONTEXT 19")] - public const int COLOR_INACTIVECAPTIONTEXT = 19; - - [NativeTypeName("#define COLOR_BTNHIGHLIGHT 20")] - public const int COLOR_BTNHIGHLIGHT = 20; - - [NativeTypeName("#define COLOR_3DDKSHADOW 21")] - public const int COLOR_3DDKSHADOW = 21; - - [NativeTypeName("#define COLOR_3DLIGHT 22")] - public const int COLOR_3DLIGHT = 22; - - [NativeTypeName("#define COLOR_INFOTEXT 23")] - public const int COLOR_INFOTEXT = 23; - - [NativeTypeName("#define COLOR_INFOBK 24")] - public const int COLOR_INFOBK = 24; - - [NativeTypeName("#define COLOR_HOTLIGHT 26")] - public const int COLOR_HOTLIGHT = 26; - - [NativeTypeName("#define COLOR_GRADIENTACTIVECAPTION 27")] - public const int COLOR_GRADIENTACTIVECAPTION = 27; - - [NativeTypeName("#define COLOR_GRADIENTINACTIVECAPTION 28")] - public const int COLOR_GRADIENTINACTIVECAPTION = 28; - - [NativeTypeName("#define COLOR_MENUHILIGHT 29")] - public const int COLOR_MENUHILIGHT = 29; - - [NativeTypeName("#define COLOR_MENUBAR 30")] - public const int COLOR_MENUBAR = 30; - - [NativeTypeName("#define COLOR_DESKTOP COLOR_BACKGROUND")] - public const int COLOR_DESKTOP = 1; - - [NativeTypeName("#define COLOR_3DFACE COLOR_BTNFACE")] - public const int COLOR_3DFACE = 15; - - [NativeTypeName("#define COLOR_3DSHADOW COLOR_BTNSHADOW")] - public const int COLOR_3DSHADOW = 16; - - [NativeTypeName("#define COLOR_3DHIGHLIGHT COLOR_BTNHIGHLIGHT")] - public const int COLOR_3DHIGHLIGHT = 20; - - [NativeTypeName("#define COLOR_3DHILIGHT COLOR_BTNHIGHLIGHT")] - public const int COLOR_3DHILIGHT = 20; - - [NativeTypeName("#define COLOR_BTNHILIGHT COLOR_BTNHIGHLIGHT")] - public const int COLOR_BTNHILIGHT = 20; - [NativeTypeName("#define GetWindowLong GetWindowLongW")] public static delegate* GetWindowLong => &GetWindowLongW; @@ -5348,44 +3848,17 @@ public static unsafe partial class Windows [NativeTypeName("#define SetWindowsHookEx SetWindowsHookExW")] public static delegate*, HINSTANCE, uint, HHOOK> SetWindowsHookEx => &SetWindowsHookExW; - [NativeTypeName("#define MFT_STRING MF_STRING")] - public const int MFT_STRING = 0x00000000; + [NativeTypeName("#define MFS_GRAYED 0x00000003L")] + public const int MFS_GRAYED = 0x00000003; - [NativeTypeName("#define MFT_BITMAP MF_BITMAP")] - public const int MFT_BITMAP = 0x00000004; + [NativeTypeName("#define MFS_DISABLED MFS_GRAYED")] + public const int MFS_DISABLED = 0x00000003; - [NativeTypeName("#define MFT_MENUBARBREAK MF_MENUBARBREAK")] - public const int MFT_MENUBARBREAK = 0x00000020; + [NativeTypeName("#define MFS_CHECKED MF_CHECKED")] + public const int MFS_CHECKED = 0x00000008; - [NativeTypeName("#define MFT_MENUBREAK MF_MENUBREAK")] - public const int MFT_MENUBREAK = 0x00000040; - - [NativeTypeName("#define MFT_OWNERDRAW MF_OWNERDRAW")] - public const int MFT_OWNERDRAW = 0x00000100; - - [NativeTypeName("#define MFT_RADIOCHECK 0x00000200L")] - public const int MFT_RADIOCHECK = 0x00000200; - - [NativeTypeName("#define MFT_SEPARATOR MF_SEPARATOR")] - public const int MFT_SEPARATOR = 0x00000800; - - [NativeTypeName("#define MFT_RIGHTORDER 0x00002000L")] - public const int MFT_RIGHTORDER = 0x00002000; - - [NativeTypeName("#define MFT_RIGHTJUSTIFY MF_RIGHTJUSTIFY")] - public const int MFT_RIGHTJUSTIFY = 0x00004000; - - [NativeTypeName("#define MFS_GRAYED 0x00000003L")] - public const int MFS_GRAYED = 0x00000003; - - [NativeTypeName("#define MFS_DISABLED MFS_GRAYED")] - public const int MFS_DISABLED = 0x00000003; - - [NativeTypeName("#define MFS_CHECKED MF_CHECKED")] - public const int MFS_CHECKED = 0x00000008; - - [NativeTypeName("#define MFS_HILITE MF_HILITE")] - public const int MFS_HILITE = 0x00000080; + [NativeTypeName("#define MFS_HILITE MF_HILITE")] + public const int MFS_HILITE = 0x00000080; [NativeTypeName("#define MFS_ENABLED MF_ENABLED")] public const int MFS_ENABLED = 0x00000000; @@ -5399,75 +3872,9 @@ public static unsafe partial class Windows [NativeTypeName("#define MFS_DEFAULT MF_DEFAULT")] public const int MFS_DEFAULT = 0x00001000; - [NativeTypeName("#define SC_SIZE 0xF000")] - public const int SC_SIZE = 0xF000; - - [NativeTypeName("#define SC_MOVE 0xF010")] - public const int SC_MOVE = 0xF010; - - [NativeTypeName("#define SC_MINIMIZE 0xF020")] - public const int SC_MINIMIZE = 0xF020; - - [NativeTypeName("#define SC_MAXIMIZE 0xF030")] - public const int SC_MAXIMIZE = 0xF030; - - [NativeTypeName("#define SC_NEXTWINDOW 0xF040")] - public const int SC_NEXTWINDOW = 0xF040; - - [NativeTypeName("#define SC_PREVWINDOW 0xF050")] - public const int SC_PREVWINDOW = 0xF050; - - [NativeTypeName("#define SC_CLOSE 0xF060")] - public const int SC_CLOSE = 0xF060; - - [NativeTypeName("#define SC_VSCROLL 0xF070")] - public const int SC_VSCROLL = 0xF070; - - [NativeTypeName("#define SC_HSCROLL 0xF080")] - public const int SC_HSCROLL = 0xF080; - - [NativeTypeName("#define SC_MOUSEMENU 0xF090")] - public const int SC_MOUSEMENU = 0xF090; - - [NativeTypeName("#define SC_KEYMENU 0xF100")] - public const int SC_KEYMENU = 0xF100; - - [NativeTypeName("#define SC_ARRANGE 0xF110")] - public const int SC_ARRANGE = 0xF110; - - [NativeTypeName("#define SC_RESTORE 0xF120")] - public const int SC_RESTORE = 0xF120; - - [NativeTypeName("#define SC_TASKLIST 0xF130")] - public const int SC_TASKLIST = 0xF130; - - [NativeTypeName("#define SC_SCREENSAVE 0xF140")] - public const int SC_SCREENSAVE = 0xF140; - - [NativeTypeName("#define SC_HOTKEY 0xF150")] - public const int SC_HOTKEY = 0xF150; - - [NativeTypeName("#define SC_DEFAULT 0xF160")] - public const int SC_DEFAULT = 0xF160; - - [NativeTypeName("#define SC_MONITORPOWER 0xF170")] - public const int SC_MONITORPOWER = 0xF170; - - [NativeTypeName("#define SC_CONTEXTHELP 0xF180")] - public const int SC_CONTEXTHELP = 0xF180; - - [NativeTypeName("#define SC_SEPARATOR 0xF00F")] - public const int SC_SEPARATOR = 0xF00F; - [NativeTypeName("#define SCF_ISSECURE 0x00000001")] public const int SCF_ISSECURE = 0x00000001; - [NativeTypeName("#define SC_ICON SC_MINIMIZE")] - public const int SC_ICON = 0xF020; - - [NativeTypeName("#define SC_ZOOM SC_MAXIMIZE")] - public const int SC_ZOOM = 0xF030; - [NativeTypeName("#define LoadBitmap LoadBitmapW")] public static delegate* LoadBitmap => &LoadBitmapW; @@ -5537,45 +3944,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PrivateExtractIcons PrivateExtractIconsW")] public static delegate* PrivateExtractIcons => &PrivateExtractIconsW; - [NativeTypeName("#define LR_DEFAULTCOLOR 0x00000000")] - public const int LR_DEFAULTCOLOR = 0x00000000; - - [NativeTypeName("#define LR_MONOCHROME 0x00000001")] - public const int LR_MONOCHROME = 0x00000001; - - [NativeTypeName("#define LR_COLOR 0x00000002")] - public const int LR_COLOR = 0x00000002; - - [NativeTypeName("#define LR_COPYRETURNORG 0x00000004")] - public const int LR_COPYRETURNORG = 0x00000004; - - [NativeTypeName("#define LR_COPYDELETEORG 0x00000008")] - public const int LR_COPYDELETEORG = 0x00000008; - - [NativeTypeName("#define LR_LOADFROMFILE 0x00000010")] - public const int LR_LOADFROMFILE = 0x00000010; - - [NativeTypeName("#define LR_LOADTRANSPARENT 0x00000020")] - public const int LR_LOADTRANSPARENT = 0x00000020; - - [NativeTypeName("#define LR_DEFAULTSIZE 0x00000040")] - public const int LR_DEFAULTSIZE = 0x00000040; - - [NativeTypeName("#define LR_VGACOLOR 0x00000080")] - public const int LR_VGACOLOR = 0x00000080; - - [NativeTypeName("#define LR_LOADMAP3DCOLORS 0x00001000")] - public const int LR_LOADMAP3DCOLORS = 0x00001000; - - [NativeTypeName("#define LR_CREATEDIBSECTION 0x00002000")] - public const int LR_CREATEDIBSECTION = 0x00002000; - - [NativeTypeName("#define LR_COPYFROMRESOURCE 0x00004000")] - public const int LR_COPYFROMRESOURCE = 0x00004000; - - [NativeTypeName("#define LR_SHARED 0x00008000")] - public const int LR_SHARED = 0x00008000; - [NativeTypeName("#define LoadImage LoadImageW")] public static delegate* LoadImage => &LoadImageW; @@ -5591,36 +3959,6 @@ public static unsafe partial class Windows [NativeTypeName("#define ORD_LANGDRIVER 1")] public const int ORD_LANGDRIVER = 1; - [NativeTypeName("#define IDI_APPLICATION MAKEINTRESOURCE(32512)")] - public static ushort* IDI_APPLICATION => ((ushort*)((nuint)((ushort)(32512)))); - - [NativeTypeName("#define IDI_HAND MAKEINTRESOURCE(32513)")] - public static ushort* IDI_HAND => ((ushort*)((nuint)((ushort)(32513)))); - - [NativeTypeName("#define IDI_QUESTION MAKEINTRESOURCE(32514)")] - public static ushort* IDI_QUESTION => ((ushort*)((nuint)((ushort)(32514)))); - - [NativeTypeName("#define IDI_EXCLAMATION MAKEINTRESOURCE(32515)")] - public static ushort* IDI_EXCLAMATION => ((ushort*)((nuint)((ushort)(32515)))); - - [NativeTypeName("#define IDI_ASTERISK MAKEINTRESOURCE(32516)")] - public static ushort* IDI_ASTERISK => ((ushort*)((nuint)((ushort)(32516)))); - - [NativeTypeName("#define IDI_WINLOGO MAKEINTRESOURCE(32517)")] - public static ushort* IDI_WINLOGO => ((ushort*)((nuint)((ushort)(32517)))); - - [NativeTypeName("#define IDI_SHIELD MAKEINTRESOURCE(32518)")] - public static ushort* IDI_SHIELD => ((ushort*)((nuint)((ushort)(32518)))); - - [NativeTypeName("#define IDI_WARNING IDI_EXCLAMATION")] - public static ushort* IDI_WARNING => ((ushort*)((nuint)((ushort)(32515)))); - - [NativeTypeName("#define IDI_ERROR IDI_HAND")] - public static ushort* IDI_ERROR => ((ushort*)((nuint)((ushort)(32513)))); - - [NativeTypeName("#define IDI_INFORMATION IDI_ASTERISK")] - public static ushort* IDI_INFORMATION => ((ushort*)((nuint)((ushort)(32516)))); - [NativeTypeName("#define IDOK 1")] public const int IDOK = 1; @@ -5657,93 +3995,6 @@ public static unsafe partial class Windows [NativeTypeName("#define IDTIMEOUT 32000")] public const int IDTIMEOUT = 32000; - [NativeTypeName("#define ES_LEFT 0x0000L")] - public const int ES_LEFT = 0x0000; - - [NativeTypeName("#define ES_CENTER 0x0001L")] - public const int ES_CENTER = 0x0001; - - [NativeTypeName("#define ES_RIGHT 0x0002L")] - public const int ES_RIGHT = 0x0002; - - [NativeTypeName("#define ES_MULTILINE 0x0004L")] - public const int ES_MULTILINE = 0x0004; - - [NativeTypeName("#define ES_UPPERCASE 0x0008L")] - public const int ES_UPPERCASE = 0x0008; - - [NativeTypeName("#define ES_LOWERCASE 0x0010L")] - public const int ES_LOWERCASE = 0x0010; - - [NativeTypeName("#define ES_PASSWORD 0x0020L")] - public const int ES_PASSWORD = 0x0020; - - [NativeTypeName("#define ES_AUTOVSCROLL 0x0040L")] - public const int ES_AUTOVSCROLL = 0x0040; - - [NativeTypeName("#define ES_AUTOHSCROLL 0x0080L")] - public const int ES_AUTOHSCROLL = 0x0080; - - [NativeTypeName("#define ES_NOHIDESEL 0x0100L")] - public const int ES_NOHIDESEL = 0x0100; - - [NativeTypeName("#define ES_OEMCONVERT 0x0400L")] - public const int ES_OEMCONVERT = 0x0400; - - [NativeTypeName("#define ES_READONLY 0x0800L")] - public const int ES_READONLY = 0x0800; - - [NativeTypeName("#define ES_WANTRETURN 0x1000L")] - public const int ES_WANTRETURN = 0x1000; - - [NativeTypeName("#define ES_NUMBER 0x2000L")] - public const int ES_NUMBER = 0x2000; - - [NativeTypeName("#define EN_SETFOCUS 0x0100")] - public const int EN_SETFOCUS = 0x0100; - - [NativeTypeName("#define EN_KILLFOCUS 0x0200")] - public const int EN_KILLFOCUS = 0x0200; - - [NativeTypeName("#define EN_CHANGE 0x0300")] - public const int EN_CHANGE = 0x0300; - - [NativeTypeName("#define EN_UPDATE 0x0400")] - public const int EN_UPDATE = 0x0400; - - [NativeTypeName("#define EN_ERRSPACE 0x0500")] - public const int EN_ERRSPACE = 0x0500; - - [NativeTypeName("#define EN_MAXTEXT 0x0501")] - public const int EN_MAXTEXT = 0x0501; - - [NativeTypeName("#define EN_HSCROLL 0x0601")] - public const int EN_HSCROLL = 0x0601; - - [NativeTypeName("#define EN_VSCROLL 0x0602")] - public const int EN_VSCROLL = 0x0602; - - [NativeTypeName("#define EN_ALIGN_LTR_EC 0x0700")] - public const int EN_ALIGN_LTR_EC = 0x0700; - - [NativeTypeName("#define EN_ALIGN_RTL_EC 0x0701")] - public const int EN_ALIGN_RTL_EC = 0x0701; - - [NativeTypeName("#define EN_BEFORE_PASTE 0x0800")] - public const int EN_BEFORE_PASTE = 0x0800; - - [NativeTypeName("#define EN_AFTER_PASTE 0x0801")] - public const int EN_AFTER_PASTE = 0x0801; - - [NativeTypeName("#define EC_LEFTMARGIN 0x0001")] - public const int EC_LEFTMARGIN = 0x0001; - - [NativeTypeName("#define EC_RIGHTMARGIN 0x0002")] - public const int EC_RIGHTMARGIN = 0x0002; - - [NativeTypeName("#define EC_USEFONTINFO 0xffff")] - public const int EC_USEFONTINFO = 0xffff; - [NativeTypeName("#define EMSIS_COMPOSITIONSTRING 0x0001")] public const int EMSIS_COMPOSITIONSTRING = 0x0001; @@ -5765,123 +4016,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WB_ISDELIMITER 2")] public const int WB_ISDELIMITER = 2; - [NativeTypeName("#define BS_PUSHBUTTON 0x00000000L")] - public const int BS_PUSHBUTTON = 0x00000000; - - [NativeTypeName("#define BS_DEFPUSHBUTTON 0x00000001L")] - public const int BS_DEFPUSHBUTTON = 0x00000001; - - [NativeTypeName("#define BS_CHECKBOX 0x00000002L")] - public const int BS_CHECKBOX = 0x00000002; - - [NativeTypeName("#define BS_AUTOCHECKBOX 0x00000003L")] - public const int BS_AUTOCHECKBOX = 0x00000003; - - [NativeTypeName("#define BS_RADIOBUTTON 0x00000004L")] - public const int BS_RADIOBUTTON = 0x00000004; - - [NativeTypeName("#define BS_3STATE 0x00000005L")] - public const int BS_3STATE = 0x00000005; - - [NativeTypeName("#define BS_AUTO3STATE 0x00000006L")] - public const int BS_AUTO3STATE = 0x00000006; - - [NativeTypeName("#define BS_GROUPBOX 0x00000007L")] - public const int BS_GROUPBOX = 0x00000007; - - [NativeTypeName("#define BS_USERBUTTON 0x00000008L")] - public const int BS_USERBUTTON = 0x00000008; - - [NativeTypeName("#define BS_AUTORADIOBUTTON 0x00000009L")] - public const int BS_AUTORADIOBUTTON = 0x00000009; - - [NativeTypeName("#define BS_PUSHBOX 0x0000000AL")] - public const int BS_PUSHBOX = 0x0000000A; - - [NativeTypeName("#define BS_OWNERDRAW 0x0000000BL")] - public const int BS_OWNERDRAW = 0x0000000B; - - [NativeTypeName("#define BS_TYPEMASK 0x0000000FL")] - public const int BS_TYPEMASK = 0x0000000F; - - [NativeTypeName("#define BS_LEFTTEXT 0x00000020L")] - public const int BS_LEFTTEXT = 0x00000020; - - [NativeTypeName("#define BS_TEXT 0x00000000L")] - public const int BS_TEXT = 0x00000000; - - [NativeTypeName("#define BS_ICON 0x00000040L")] - public const int BS_ICON = 0x00000040; - - [NativeTypeName("#define BS_BITMAP 0x00000080L")] - public const int BS_BITMAP = 0x00000080; - - [NativeTypeName("#define BS_LEFT 0x00000100L")] - public const int BS_LEFT = 0x00000100; - - [NativeTypeName("#define BS_RIGHT 0x00000200L")] - public const int BS_RIGHT = 0x00000200; - - [NativeTypeName("#define BS_CENTER 0x00000300L")] - public const int BS_CENTER = 0x00000300; - - [NativeTypeName("#define BS_TOP 0x00000400L")] - public const int BS_TOP = 0x00000400; - - [NativeTypeName("#define BS_BOTTOM 0x00000800L")] - public const int BS_BOTTOM = 0x00000800; - - [NativeTypeName("#define BS_VCENTER 0x00000C00L")] - public const int BS_VCENTER = 0x00000C00; - - [NativeTypeName("#define BS_PUSHLIKE 0x00001000L")] - public const int BS_PUSHLIKE = 0x00001000; - - [NativeTypeName("#define BS_MULTILINE 0x00002000L")] - public const int BS_MULTILINE = 0x00002000; - - [NativeTypeName("#define BS_NOTIFY 0x00004000L")] - public const int BS_NOTIFY = 0x00004000; - - [NativeTypeName("#define BS_FLAT 0x00008000L")] - public const int BS_FLAT = 0x00008000; - - [NativeTypeName("#define BS_RIGHTBUTTON BS_LEFTTEXT")] - public const int BS_RIGHTBUTTON = 0x00000020; - - [NativeTypeName("#define BN_CLICKED 0")] - public const int BN_CLICKED = 0; - - [NativeTypeName("#define BN_PAINT 1")] - public const int BN_PAINT = 1; - - [NativeTypeName("#define BN_HILITE 2")] - public const int BN_HILITE = 2; - - [NativeTypeName("#define BN_UNHILITE 3")] - public const int BN_UNHILITE = 3; - - [NativeTypeName("#define BN_DISABLE 4")] - public const int BN_DISABLE = 4; - - [NativeTypeName("#define BN_DOUBLECLICKED 5")] - public const int BN_DOUBLECLICKED = 5; - - [NativeTypeName("#define BN_PUSHED BN_HILITE")] - public const int BN_PUSHED = 2; - - [NativeTypeName("#define BN_UNPUSHED BN_UNHILITE")] - public const int BN_UNPUSHED = 3; - - [NativeTypeName("#define BN_DBLCLK BN_DOUBLECLICKED")] - public const int BN_DBLCLK = 5; - - [NativeTypeName("#define BN_SETFOCUS 6")] - public const int BN_SETFOCUS = 6; - - [NativeTypeName("#define BN_KILLFOCUS 7")] - public const int BN_KILLFOCUS = 7; - [NativeTypeName("#define BM_GETCHECK 0x00F0")] public const int BM_GETCHECK = 0x00F0; @@ -5924,102 +4058,6 @@ public static unsafe partial class Windows [NativeTypeName("#define BST_FOCUS 0x0008")] public const int BST_FOCUS = 0x0008; - [NativeTypeName("#define SS_LEFT 0x00000000L")] - public const int SS_LEFT = 0x00000000; - - [NativeTypeName("#define SS_CENTER 0x00000001L")] - public const int SS_CENTER = 0x00000001; - - [NativeTypeName("#define SS_RIGHT 0x00000002L")] - public const int SS_RIGHT = 0x00000002; - - [NativeTypeName("#define SS_ICON 0x00000003L")] - public const int SS_ICON = 0x00000003; - - [NativeTypeName("#define SS_BLACKRECT 0x00000004L")] - public const int SS_BLACKRECT = 0x00000004; - - [NativeTypeName("#define SS_GRAYRECT 0x00000005L")] - public const int SS_GRAYRECT = 0x00000005; - - [NativeTypeName("#define SS_WHITERECT 0x00000006L")] - public const int SS_WHITERECT = 0x00000006; - - [NativeTypeName("#define SS_BLACKFRAME 0x00000007L")] - public const int SS_BLACKFRAME = 0x00000007; - - [NativeTypeName("#define SS_GRAYFRAME 0x00000008L")] - public const int SS_GRAYFRAME = 0x00000008; - - [NativeTypeName("#define SS_WHITEFRAME 0x00000009L")] - public const int SS_WHITEFRAME = 0x00000009; - - [NativeTypeName("#define SS_USERITEM 0x0000000AL")] - public const int SS_USERITEM = 0x0000000A; - - [NativeTypeName("#define SS_SIMPLE 0x0000000BL")] - public const int SS_SIMPLE = 0x0000000B; - - [NativeTypeName("#define SS_LEFTNOWORDWRAP 0x0000000CL")] - public const int SS_LEFTNOWORDWRAP = 0x0000000C; - - [NativeTypeName("#define SS_OWNERDRAW 0x0000000DL")] - public const int SS_OWNERDRAW = 0x0000000D; - - [NativeTypeName("#define SS_BITMAP 0x0000000EL")] - public const int SS_BITMAP = 0x0000000E; - - [NativeTypeName("#define SS_ENHMETAFILE 0x0000000FL")] - public const int SS_ENHMETAFILE = 0x0000000F; - - [NativeTypeName("#define SS_ETCHEDHORZ 0x00000010L")] - public const int SS_ETCHEDHORZ = 0x00000010; - - [NativeTypeName("#define SS_ETCHEDVERT 0x00000011L")] - public const int SS_ETCHEDVERT = 0x00000011; - - [NativeTypeName("#define SS_ETCHEDFRAME 0x00000012L")] - public const int SS_ETCHEDFRAME = 0x00000012; - - [NativeTypeName("#define SS_TYPEMASK 0x0000001FL")] - public const int SS_TYPEMASK = 0x0000001F; - - [NativeTypeName("#define SS_REALSIZECONTROL 0x00000040L")] - public const int SS_REALSIZECONTROL = 0x00000040; - - [NativeTypeName("#define SS_NOPREFIX 0x00000080L")] - public const int SS_NOPREFIX = 0x00000080; - - [NativeTypeName("#define SS_NOTIFY 0x00000100L")] - public const int SS_NOTIFY = 0x00000100; - - [NativeTypeName("#define SS_CENTERIMAGE 0x00000200L")] - public const int SS_CENTERIMAGE = 0x00000200; - - [NativeTypeName("#define SS_RIGHTJUST 0x00000400L")] - public const int SS_RIGHTJUST = 0x00000400; - - [NativeTypeName("#define SS_REALSIZEIMAGE 0x00000800L")] - public const int SS_REALSIZEIMAGE = 0x00000800; - - [NativeTypeName("#define SS_SUNKEN 0x00001000L")] - public const int SS_SUNKEN = 0x00001000; - - [NativeTypeName("#define SS_EDITCONTROL 0x00002000L")] - public const int SS_EDITCONTROL = 0x00002000; - - [NativeTypeName("#define SS_ENDELLIPSIS 0x00004000L")] - public const int SS_ENDELLIPSIS = 0x00004000; - - [NativeTypeName("#define SS_PATHELLIPSIS 0x00008000L")] - public const int SS_PATHELLIPSIS = 0x00008000; - - [NativeTypeName("#define SS_WORDELLIPSIS 0x0000C000L")] - public const int SS_WORDELLIPSIS = 0x0000C000; - - [NativeTypeName("#define SS_ELLIPSISMASK 0x0000C000L")] - public const int SS_ELLIPSISMASK = 0x0000C000; - [NativeTypeName("#define STM_SETICON 0x0170")] public const int STM_SETICON = 0x0170; @@ -6047,9 +4085,6 @@ public static unsafe partial class Windows [NativeTypeName("#define STM_MSGMAX 0x0174")] public const int STM_MSGMAX = 0x0174; - [NativeTypeName("#define WC_DIALOG (MAKEINTATOM(0x8002))")] - public static ushort* WC_DIALOG => ((ushort*)((nuint)((ushort)(0x8002)))); - [NativeTypeName("#define DWL_MSGRESULT 0")] public const int DWL_MSGRESULT = 0; @@ -6066,565 +4101,67 @@ public static unsafe partial class Windows public static uint DWLP_DLGPROC => unchecked(0 + (uint)(sizeof(LRESULT))); [NativeTypeName("#define DWLP_USER DWLP_DLGPROC + sizeof(DLGPROC)")] - public static uint DWLP_USER => unchecked(0 + (uint)(sizeof(LRESULT)) + (uint)(sizeof(delegate* unmanaged))); - - [NativeTypeName("#define IsDialogMessage IsDialogMessageW")] - public static delegate* IsDialogMessage => &IsDialogMessageW; - - [NativeTypeName("#define DlgDirList DlgDirListW")] - public static delegate* DlgDirList => &DlgDirListW; - - [NativeTypeName("#define DDL_READWRITE 0x0000")] - public const int DDL_READWRITE = 0x0000; - - [NativeTypeName("#define DDL_READONLY 0x0001")] - public const int DDL_READONLY = 0x0001; - - [NativeTypeName("#define DDL_HIDDEN 0x0002")] - public const int DDL_HIDDEN = 0x0002; - - [NativeTypeName("#define DDL_SYSTEM 0x0004")] - public const int DDL_SYSTEM = 0x0004; - - [NativeTypeName("#define DDL_DIRECTORY 0x0010")] - public const int DDL_DIRECTORY = 0x0010; - - [NativeTypeName("#define DDL_ARCHIVE 0x0020")] - public const int DDL_ARCHIVE = 0x0020; - - [NativeTypeName("#define DDL_POSTMSGS 0x2000")] - public const int DDL_POSTMSGS = 0x2000; - - [NativeTypeName("#define DDL_DRIVES 0x4000")] - public const int DDL_DRIVES = 0x4000; - - [NativeTypeName("#define DDL_EXCLUSIVE 0x8000")] - public const int DDL_EXCLUSIVE = 0x8000; - - [NativeTypeName("#define DlgDirSelectEx DlgDirSelectExW")] - public static delegate* DlgDirSelectEx => &DlgDirSelectExW; - - [NativeTypeName("#define DlgDirListComboBox DlgDirListComboBoxW")] - public static delegate* DlgDirListComboBox => &DlgDirListComboBoxW; - - [NativeTypeName("#define DlgDirSelectComboBoxEx DlgDirSelectComboBoxExW")] - public static delegate* DlgDirSelectComboBoxEx => &DlgDirSelectComboBoxExW; - - [NativeTypeName("#define DS_ABSALIGN 0x01L")] - public const int DS_ABSALIGN = 0x01; - - [NativeTypeName("#define DS_SYSMODAL 0x02L")] - public const int DS_SYSMODAL = 0x02; - - [NativeTypeName("#define DS_LOCALEDIT 0x20L")] - public const int DS_LOCALEDIT = 0x20; - - [NativeTypeName("#define DS_SETFONT 0x40L")] - public const int DS_SETFONT = 0x40; - - [NativeTypeName("#define DS_MODALFRAME 0x80L")] - public const int DS_MODALFRAME = 0x80; - - [NativeTypeName("#define DS_NOIDLEMSG 0x100L")] - public const int DS_NOIDLEMSG = 0x100; - - [NativeTypeName("#define DS_SETFOREGROUND 0x200L")] - public const int DS_SETFOREGROUND = 0x200; - - [NativeTypeName("#define DS_3DLOOK 0x0004L")] - public const int DS_3DLOOK = 0x0004; - - [NativeTypeName("#define DS_FIXEDSYS 0x0008L")] - public const int DS_FIXEDSYS = 0x0008; - - [NativeTypeName("#define DS_NOFAILCREATE 0x0010L")] - public const int DS_NOFAILCREATE = 0x0010; - - [NativeTypeName("#define DS_CONTROL 0x0400L")] - public const int DS_CONTROL = 0x0400; - - [NativeTypeName("#define DS_CENTER 0x0800L")] - public const int DS_CENTER = 0x0800; - - [NativeTypeName("#define DS_CENTERMOUSE 0x1000L")] - public const int DS_CENTERMOUSE = 0x1000; - - [NativeTypeName("#define DS_CONTEXTHELP 0x2000L")] - public const int DS_CONTEXTHELP = 0x2000; - - [NativeTypeName("#define DS_SHELLFONT (DS_SETFONT | DS_FIXEDSYS)")] - public const int DS_SHELLFONT = (0x40 | 0x0008); - - [NativeTypeName("#define DM_GETDEFID (WM_USER+0)")] - public const int DM_GETDEFID = (0x0400 + 0); - - [NativeTypeName("#define DM_SETDEFID (WM_USER+1)")] - public const int DM_SETDEFID = (0x0400 + 1); - - [NativeTypeName("#define DM_REPOSITION (WM_USER+2)")] - public const int DM_REPOSITION = (0x0400 + 2); - - [NativeTypeName("#define DC_HASDEFID 0x534B")] - public const int DC_HASDEFID = 0x534B; - - [NativeTypeName("#define DLGC_WANTARROWS 0x0001")] - public const int DLGC_WANTARROWS = 0x0001; - - [NativeTypeName("#define DLGC_WANTTAB 0x0002")] - public const int DLGC_WANTTAB = 0x0002; - - [NativeTypeName("#define DLGC_WANTALLKEYS 0x0004")] - public const int DLGC_WANTALLKEYS = 0x0004; - - [NativeTypeName("#define DLGC_WANTMESSAGE 0x0004")] - public const int DLGC_WANTMESSAGE = 0x0004; - - [NativeTypeName("#define DLGC_HASSETSEL 0x0008")] - public const int DLGC_HASSETSEL = 0x0008; - - [NativeTypeName("#define DLGC_DEFPUSHBUTTON 0x0010")] - public const int DLGC_DEFPUSHBUTTON = 0x0010; - - [NativeTypeName("#define DLGC_UNDEFPUSHBUTTON 0x0020")] - public const int DLGC_UNDEFPUSHBUTTON = 0x0020; - - [NativeTypeName("#define DLGC_RADIOBUTTON 0x0040")] - public const int DLGC_RADIOBUTTON = 0x0040; - - [NativeTypeName("#define DLGC_WANTCHARS 0x0080")] - public const int DLGC_WANTCHARS = 0x0080; - - [NativeTypeName("#define DLGC_STATIC 0x0100")] - public const int DLGC_STATIC = 0x0100; - - [NativeTypeName("#define DLGC_BUTTON 0x2000")] - public const int DLGC_BUTTON = 0x2000; - - [NativeTypeName("#define LB_CTLCODE 0L")] - public const int LB_CTLCODE = 0; - - [NativeTypeName("#define LB_OKAY 0")] - public const int LB_OKAY = 0; - - [NativeTypeName("#define LB_ERR (-1)")] - public const int LB_ERR = (-1); - - [NativeTypeName("#define LB_ERRSPACE (-2)")] - public const int LB_ERRSPACE = (-2); - - [NativeTypeName("#define LBN_ERRSPACE (-2)")] - public const int LBN_ERRSPACE = (-2); - - [NativeTypeName("#define LBN_SELCHANGE 1")] - public const int LBN_SELCHANGE = 1; - - [NativeTypeName("#define LBN_DBLCLK 2")] - public const int LBN_DBLCLK = 2; - - [NativeTypeName("#define LBN_SELCANCEL 3")] - public const int LBN_SELCANCEL = 3; - - [NativeTypeName("#define LBN_SETFOCUS 4")] - public const int LBN_SETFOCUS = 4; - - [NativeTypeName("#define LBN_KILLFOCUS 5")] - public const int LBN_KILLFOCUS = 5; - - [NativeTypeName("#define LB_ADDSTRING 0x0180")] - public const int LB_ADDSTRING = 0x0180; - - [NativeTypeName("#define LB_INSERTSTRING 0x0181")] - public const int LB_INSERTSTRING = 0x0181; - - [NativeTypeName("#define LB_DELETESTRING 0x0182")] - public const int LB_DELETESTRING = 0x0182; - - [NativeTypeName("#define LB_SELITEMRANGEEX 0x0183")] - public const int LB_SELITEMRANGEEX = 0x0183; - - [NativeTypeName("#define LB_RESETCONTENT 0x0184")] - public const int LB_RESETCONTENT = 0x0184; - - [NativeTypeName("#define LB_SETSEL 0x0185")] - public const int LB_SETSEL = 0x0185; - - [NativeTypeName("#define LB_SETCURSEL 0x0186")] - public const int LB_SETCURSEL = 0x0186; - - [NativeTypeName("#define LB_GETSEL 0x0187")] - public const int LB_GETSEL = 0x0187; - - [NativeTypeName("#define LB_GETCURSEL 0x0188")] - public const int LB_GETCURSEL = 0x0188; - - [NativeTypeName("#define LB_GETTEXT 0x0189")] - public const int LB_GETTEXT = 0x0189; - - [NativeTypeName("#define LB_GETTEXTLEN 0x018A")] - public const int LB_GETTEXTLEN = 0x018A; - - [NativeTypeName("#define LB_GETCOUNT 0x018B")] - public const int LB_GETCOUNT = 0x018B; - - [NativeTypeName("#define LB_SELECTSTRING 0x018C")] - public const int LB_SELECTSTRING = 0x018C; - - [NativeTypeName("#define LB_DIR 0x018D")] - public const int LB_DIR = 0x018D; - - [NativeTypeName("#define LB_GETTOPINDEX 0x018E")] - public const int LB_GETTOPINDEX = 0x018E; - - [NativeTypeName("#define LB_FINDSTRING 0x018F")] - public const int LB_FINDSTRING = 0x018F; - - [NativeTypeName("#define LB_GETSELCOUNT 0x0190")] - public const int LB_GETSELCOUNT = 0x0190; - - [NativeTypeName("#define LB_GETSELITEMS 0x0191")] - public const int LB_GETSELITEMS = 0x0191; - - [NativeTypeName("#define LB_SETTABSTOPS 0x0192")] - public const int LB_SETTABSTOPS = 0x0192; - - [NativeTypeName("#define LB_GETHORIZONTALEXTENT 0x0193")] - public const int LB_GETHORIZONTALEXTENT = 0x0193; - - [NativeTypeName("#define LB_SETHORIZONTALEXTENT 0x0194")] - public const int LB_SETHORIZONTALEXTENT = 0x0194; - - [NativeTypeName("#define LB_SETCOLUMNWIDTH 0x0195")] - public const int LB_SETCOLUMNWIDTH = 0x0195; - - [NativeTypeName("#define LB_ADDFILE 0x0196")] - public const int LB_ADDFILE = 0x0196; - - [NativeTypeName("#define LB_SETTOPINDEX 0x0197")] - public const int LB_SETTOPINDEX = 0x0197; - - [NativeTypeName("#define LB_GETITEMRECT 0x0198")] - public const int LB_GETITEMRECT = 0x0198; - - [NativeTypeName("#define LB_GETITEMDATA 0x0199")] - public const int LB_GETITEMDATA = 0x0199; - - [NativeTypeName("#define LB_SETITEMDATA 0x019A")] - public const int LB_SETITEMDATA = 0x019A; - - [NativeTypeName("#define LB_SELITEMRANGE 0x019B")] - public const int LB_SELITEMRANGE = 0x019B; - - [NativeTypeName("#define LB_SETANCHORINDEX 0x019C")] - public const int LB_SETANCHORINDEX = 0x019C; - - [NativeTypeName("#define LB_GETANCHORINDEX 0x019D")] - public const int LB_GETANCHORINDEX = 0x019D; - - [NativeTypeName("#define LB_SETCARETINDEX 0x019E")] - public const int LB_SETCARETINDEX = 0x019E; - - [NativeTypeName("#define LB_GETCARETINDEX 0x019F")] - public const int LB_GETCARETINDEX = 0x019F; - - [NativeTypeName("#define LB_SETITEMHEIGHT 0x01A0")] - public const int LB_SETITEMHEIGHT = 0x01A0; - - [NativeTypeName("#define LB_GETITEMHEIGHT 0x01A1")] - public const int LB_GETITEMHEIGHT = 0x01A1; - - [NativeTypeName("#define LB_FINDSTRINGEXACT 0x01A2")] - public const int LB_FINDSTRINGEXACT = 0x01A2; - - [NativeTypeName("#define LB_SETLOCALE 0x01A5")] - public const int LB_SETLOCALE = 0x01A5; - - [NativeTypeName("#define LB_GETLOCALE 0x01A6")] - public const int LB_GETLOCALE = 0x01A6; - - [NativeTypeName("#define LB_SETCOUNT 0x01A7")] - public const int LB_SETCOUNT = 0x01A7; - - [NativeTypeName("#define LB_INITSTORAGE 0x01A8")] - public const int LB_INITSTORAGE = 0x01A8; - - [NativeTypeName("#define LB_ITEMFROMPOINT 0x01A9")] - public const int LB_ITEMFROMPOINT = 0x01A9; - - [NativeTypeName("#define LB_GETLISTBOXINFO 0x01B2")] - public const int LB_GETLISTBOXINFO = 0x01B2; - - [NativeTypeName("#define LB_MSGMAX 0x01B3")] - public const int LB_MSGMAX = 0x01B3; - - [NativeTypeName("#define LBS_NOTIFY 0x0001L")] - public const int LBS_NOTIFY = 0x0001; - - [NativeTypeName("#define LBS_SORT 0x0002L")] - public const int LBS_SORT = 0x0002; - - [NativeTypeName("#define LBS_NOREDRAW 0x0004L")] - public const int LBS_NOREDRAW = 0x0004; - - [NativeTypeName("#define LBS_MULTIPLESEL 0x0008L")] - public const int LBS_MULTIPLESEL = 0x0008; - - [NativeTypeName("#define LBS_OWNERDRAWFIXED 0x0010L")] - public const int LBS_OWNERDRAWFIXED = 0x0010; - - [NativeTypeName("#define LBS_OWNERDRAWVARIABLE 0x0020L")] - public const int LBS_OWNERDRAWVARIABLE = 0x0020; - - [NativeTypeName("#define LBS_HASSTRINGS 0x0040L")] - public const int LBS_HASSTRINGS = 0x0040; - - [NativeTypeName("#define LBS_USETABSTOPS 0x0080L")] - public const int LBS_USETABSTOPS = 0x0080; - - [NativeTypeName("#define LBS_NOINTEGRALHEIGHT 0x0100L")] - public const int LBS_NOINTEGRALHEIGHT = 0x0100; - - [NativeTypeName("#define LBS_MULTICOLUMN 0x0200L")] - public const int LBS_MULTICOLUMN = 0x0200; - - [NativeTypeName("#define LBS_WANTKEYBOARDINPUT 0x0400L")] - public const int LBS_WANTKEYBOARDINPUT = 0x0400; - - [NativeTypeName("#define LBS_EXTENDEDSEL 0x0800L")] - public const int LBS_EXTENDEDSEL = 0x0800; - - [NativeTypeName("#define LBS_DISABLENOSCROLL 0x1000L")] - public const int LBS_DISABLENOSCROLL = 0x1000; - - [NativeTypeName("#define LBS_NODATA 0x2000L")] - public const int LBS_NODATA = 0x2000; - - [NativeTypeName("#define LBS_NOSEL 0x4000L")] - public const int LBS_NOSEL = 0x4000; - - [NativeTypeName("#define LBS_COMBOBOX 0x8000L")] - public const int LBS_COMBOBOX = 0x8000; - - [NativeTypeName("#define LBS_STANDARD (LBS_NOTIFY | LBS_SORT | WS_VSCROLL | WS_BORDER)")] - public const int LBS_STANDARD = (0x0001 | 0x0002 | 0x00200000 | 0x00800000); - - [NativeTypeName("#define CB_OKAY 0")] - public const int CB_OKAY = 0; - - [NativeTypeName("#define CB_ERR (-1)")] - public const int CB_ERR = (-1); - - [NativeTypeName("#define CB_ERRSPACE (-2)")] - public const int CB_ERRSPACE = (-2); - - [NativeTypeName("#define CBN_ERRSPACE (-1)")] - public const int CBN_ERRSPACE = (-1); - - [NativeTypeName("#define CBN_SELCHANGE 1")] - public const int CBN_SELCHANGE = 1; - - [NativeTypeName("#define CBN_DBLCLK 2")] - public const int CBN_DBLCLK = 2; - - [NativeTypeName("#define CBN_SETFOCUS 3")] - public const int CBN_SETFOCUS = 3; - - [NativeTypeName("#define CBN_KILLFOCUS 4")] - public const int CBN_KILLFOCUS = 4; - - [NativeTypeName("#define CBN_EDITCHANGE 5")] - public const int CBN_EDITCHANGE = 5; - - [NativeTypeName("#define CBN_EDITUPDATE 6")] - public const int CBN_EDITUPDATE = 6; - - [NativeTypeName("#define CBN_DROPDOWN 7")] - public const int CBN_DROPDOWN = 7; - - [NativeTypeName("#define CBN_CLOSEUP 8")] - public const int CBN_CLOSEUP = 8; - - [NativeTypeName("#define CBN_SELENDOK 9")] - public const int CBN_SELENDOK = 9; - - [NativeTypeName("#define CBN_SELENDCANCEL 10")] - public const int CBN_SELENDCANCEL = 10; - - [NativeTypeName("#define CBS_SIMPLE 0x0001L")] - public const int CBS_SIMPLE = 0x0001; - - [NativeTypeName("#define CBS_DROPDOWN 0x0002L")] - public const int CBS_DROPDOWN = 0x0002; - - [NativeTypeName("#define CBS_DROPDOWNLIST 0x0003L")] - public const int CBS_DROPDOWNLIST = 0x0003; - - [NativeTypeName("#define CBS_OWNERDRAWFIXED 0x0010L")] - public const int CBS_OWNERDRAWFIXED = 0x0010; - - [NativeTypeName("#define CBS_OWNERDRAWVARIABLE 0x0020L")] - public const int CBS_OWNERDRAWVARIABLE = 0x0020; - - [NativeTypeName("#define CBS_AUTOHSCROLL 0x0040L")] - public const int CBS_AUTOHSCROLL = 0x0040; - - [NativeTypeName("#define CBS_OEMCONVERT 0x0080L")] - public const int CBS_OEMCONVERT = 0x0080; - - [NativeTypeName("#define CBS_SORT 0x0100L")] - public const int CBS_SORT = 0x0100; - - [NativeTypeName("#define CBS_HASSTRINGS 0x0200L")] - public const int CBS_HASSTRINGS = 0x0200; - - [NativeTypeName("#define CBS_NOINTEGRALHEIGHT 0x0400L")] - public const int CBS_NOINTEGRALHEIGHT = 0x0400; - - [NativeTypeName("#define CBS_DISABLENOSCROLL 0x0800L")] - public const int CBS_DISABLENOSCROLL = 0x0800; - - [NativeTypeName("#define CBS_UPPERCASE 0x2000L")] - public const int CBS_UPPERCASE = 0x2000; - - [NativeTypeName("#define CBS_LOWERCASE 0x4000L")] - public const int CBS_LOWERCASE = 0x4000; - - [NativeTypeName("#define CB_GETEDITSEL 0x0140")] - public const int CB_GETEDITSEL = 0x0140; - - [NativeTypeName("#define CB_LIMITTEXT 0x0141")] - public const int CB_LIMITTEXT = 0x0141; - - [NativeTypeName("#define CB_SETEDITSEL 0x0142")] - public const int CB_SETEDITSEL = 0x0142; - - [NativeTypeName("#define CB_ADDSTRING 0x0143")] - public const int CB_ADDSTRING = 0x0143; - - [NativeTypeName("#define CB_DELETESTRING 0x0144")] - public const int CB_DELETESTRING = 0x0144; - - [NativeTypeName("#define CB_DIR 0x0145")] - public const int CB_DIR = 0x0145; - - [NativeTypeName("#define CB_GETCOUNT 0x0146")] - public const int CB_GETCOUNT = 0x0146; - - [NativeTypeName("#define CB_GETCURSEL 0x0147")] - public const int CB_GETCURSEL = 0x0147; - - [NativeTypeName("#define CB_GETLBTEXT 0x0148")] - public const int CB_GETLBTEXT = 0x0148; - - [NativeTypeName("#define CB_GETLBTEXTLEN 0x0149")] - public const int CB_GETLBTEXTLEN = 0x0149; - - [NativeTypeName("#define CB_INSERTSTRING 0x014A")] - public const int CB_INSERTSTRING = 0x014A; - - [NativeTypeName("#define CB_RESETCONTENT 0x014B")] - public const int CB_RESETCONTENT = 0x014B; - - [NativeTypeName("#define CB_FINDSTRING 0x014C")] - public const int CB_FINDSTRING = 0x014C; - - [NativeTypeName("#define CB_SELECTSTRING 0x014D")] - public const int CB_SELECTSTRING = 0x014D; - - [NativeTypeName("#define CB_SETCURSEL 0x014E")] - public const int CB_SETCURSEL = 0x014E; - - [NativeTypeName("#define CB_SHOWDROPDOWN 0x014F")] - public const int CB_SHOWDROPDOWN = 0x014F; - - [NativeTypeName("#define CB_GETITEMDATA 0x0150")] - public const int CB_GETITEMDATA = 0x0150; - - [NativeTypeName("#define CB_SETITEMDATA 0x0151")] - public const int CB_SETITEMDATA = 0x0151; - - [NativeTypeName("#define CB_GETDROPPEDCONTROLRECT 0x0152")] - public const int CB_GETDROPPEDCONTROLRECT = 0x0152; - - [NativeTypeName("#define CB_SETITEMHEIGHT 0x0153")] - public const int CB_SETITEMHEIGHT = 0x0153; - - [NativeTypeName("#define CB_GETITEMHEIGHT 0x0154")] - public const int CB_GETITEMHEIGHT = 0x0154; - - [NativeTypeName("#define CB_SETEXTENDEDUI 0x0155")] - public const int CB_SETEXTENDEDUI = 0x0155; - - [NativeTypeName("#define CB_GETEXTENDEDUI 0x0156")] - public const int CB_GETEXTENDEDUI = 0x0156; - - [NativeTypeName("#define CB_GETDROPPEDSTATE 0x0157")] - public const int CB_GETDROPPEDSTATE = 0x0157; - - [NativeTypeName("#define CB_FINDSTRINGEXACT 0x0158")] - public const int CB_FINDSTRINGEXACT = 0x0158; - - [NativeTypeName("#define CB_SETLOCALE 0x0159")] - public const int CB_SETLOCALE = 0x0159; + public static uint DWLP_USER => unchecked(0 + (uint)(sizeof(LRESULT)) + (uint)(sizeof(delegate* unmanaged))); - [NativeTypeName("#define CB_GETLOCALE 0x015A")] - public const int CB_GETLOCALE = 0x015A; + [NativeTypeName("#define IsDialogMessage IsDialogMessageW")] + public static delegate* IsDialogMessage => &IsDialogMessageW; - [NativeTypeName("#define CB_GETTOPINDEX 0x015b")] - public const int CB_GETTOPINDEX = 0x015b; + [NativeTypeName("#define DlgDirList DlgDirListW")] + public static delegate* DlgDirList => &DlgDirListW; - [NativeTypeName("#define CB_SETTOPINDEX 0x015c")] - public const int CB_SETTOPINDEX = 0x015c; + [NativeTypeName("#define DDL_READWRITE 0x0000")] + public const int DDL_READWRITE = 0x0000; - [NativeTypeName("#define CB_GETHORIZONTALEXTENT 0x015d")] - public const int CB_GETHORIZONTALEXTENT = 0x015d; + [NativeTypeName("#define DDL_READONLY 0x0001")] + public const int DDL_READONLY = 0x0001; - [NativeTypeName("#define CB_SETHORIZONTALEXTENT 0x015e")] - public const int CB_SETHORIZONTALEXTENT = 0x015e; + [NativeTypeName("#define DDL_HIDDEN 0x0002")] + public const int DDL_HIDDEN = 0x0002; - [NativeTypeName("#define CB_GETDROPPEDWIDTH 0x015f")] - public const int CB_GETDROPPEDWIDTH = 0x015f; + [NativeTypeName("#define DDL_SYSTEM 0x0004")] + public const int DDL_SYSTEM = 0x0004; - [NativeTypeName("#define CB_SETDROPPEDWIDTH 0x0160")] - public const int CB_SETDROPPEDWIDTH = 0x0160; + [NativeTypeName("#define DDL_DIRECTORY 0x0010")] + public const int DDL_DIRECTORY = 0x0010; - [NativeTypeName("#define CB_INITSTORAGE 0x0161")] - public const int CB_INITSTORAGE = 0x0161; + [NativeTypeName("#define DDL_ARCHIVE 0x0020")] + public const int DDL_ARCHIVE = 0x0020; - [NativeTypeName("#define CB_GETCOMBOBOXINFO 0x0164")] - public const int CB_GETCOMBOBOXINFO = 0x0164; + [NativeTypeName("#define DDL_POSTMSGS 0x2000")] + public const int DDL_POSTMSGS = 0x2000; - [NativeTypeName("#define CB_MSGMAX 0x0165")] - public const int CB_MSGMAX = 0x0165; + [NativeTypeName("#define DDL_DRIVES 0x4000")] + public const int DDL_DRIVES = 0x4000; - [NativeTypeName("#define SBS_HORZ 0x0000L")] - public const int SBS_HORZ = 0x0000; + [NativeTypeName("#define DDL_EXCLUSIVE 0x8000")] + public const int DDL_EXCLUSIVE = 0x8000; - [NativeTypeName("#define SBS_VERT 0x0001L")] - public const int SBS_VERT = 0x0001; + [NativeTypeName("#define DlgDirSelectEx DlgDirSelectExW")] + public static delegate* DlgDirSelectEx => &DlgDirSelectExW; - [NativeTypeName("#define SBS_TOPALIGN 0x0002L")] - public const int SBS_TOPALIGN = 0x0002; + [NativeTypeName("#define DlgDirListComboBox DlgDirListComboBoxW")] + public static delegate* DlgDirListComboBox => &DlgDirListComboBoxW; - [NativeTypeName("#define SBS_LEFTALIGN 0x0002L")] - public const int SBS_LEFTALIGN = 0x0002; + [NativeTypeName("#define DlgDirSelectComboBoxEx DlgDirSelectComboBoxExW")] + public static delegate* DlgDirSelectComboBoxEx => &DlgDirSelectComboBoxExW; - [NativeTypeName("#define SBS_BOTTOMALIGN 0x0004L")] - public const int SBS_BOTTOMALIGN = 0x0004; + [NativeTypeName("#define LBN_ERRSPACE (-2)")] + public const int LBN_ERRSPACE = (-2); - [NativeTypeName("#define SBS_RIGHTALIGN 0x0004L")] - public const int SBS_RIGHTALIGN = 0x0004; + [NativeTypeName("#define LBN_SELCHANGE 1")] + public const int LBN_SELCHANGE = 1; - [NativeTypeName("#define SBS_SIZEBOXTOPLEFTALIGN 0x0002L")] - public const int SBS_SIZEBOXTOPLEFTALIGN = 0x0002; + [NativeTypeName("#define LBN_DBLCLK 2")] + public const int LBN_DBLCLK = 2; - [NativeTypeName("#define SBS_SIZEBOXBOTTOMRIGHTALIGN 0x0004L")] - public const int SBS_SIZEBOXBOTTOMRIGHTALIGN = 0x0004; + [NativeTypeName("#define LBN_SELCANCEL 3")] + public const int LBN_SELCANCEL = 3; - [NativeTypeName("#define SBS_SIZEBOX 0x0008L")] - public const int SBS_SIZEBOX = 0x0008; + [NativeTypeName("#define LBN_SETFOCUS 4")] + public const int LBN_SETFOCUS = 4; - [NativeTypeName("#define SBS_SIZEGRIP 0x0010L")] - public const int SBS_SIZEGRIP = 0x0010; + [NativeTypeName("#define LBN_KILLFOCUS 5")] + public const int LBN_KILLFOCUS = 5; [NativeTypeName("#define SBM_SETPOS 0x00E0")] public const int SBM_SETPOS = 0x00E0; @@ -6695,69 +4232,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CreateMDIWindow CreateMDIWindowW")] public static delegate* CreateMDIWindow => &CreateMDIWindowW; - [NativeTypeName("#define HELP_CONTEXT 0x0001L")] - public const int HELP_CONTEXT = 0x0001; - - [NativeTypeName("#define HELP_QUIT 0x0002L")] - public const int HELP_QUIT = 0x0002; - - [NativeTypeName("#define HELP_INDEX 0x0003L")] - public const int HELP_INDEX = 0x0003; - - [NativeTypeName("#define HELP_CONTENTS 0x0003L")] - public const int HELP_CONTENTS = 0x0003; - - [NativeTypeName("#define HELP_HELPONHELP 0x0004L")] - public const int HELP_HELPONHELP = 0x0004; - - [NativeTypeName("#define HELP_SETINDEX 0x0005L")] - public const int HELP_SETINDEX = 0x0005; - - [NativeTypeName("#define HELP_SETCONTENTS 0x0005L")] - public const int HELP_SETCONTENTS = 0x0005; - - [NativeTypeName("#define HELP_CONTEXTPOPUP 0x0008L")] - public const int HELP_CONTEXTPOPUP = 0x0008; - - [NativeTypeName("#define HELP_FORCEFILE 0x0009L")] - public const int HELP_FORCEFILE = 0x0009; - - [NativeTypeName("#define HELP_KEY 0x0101L")] - public const int HELP_KEY = 0x0101; - - [NativeTypeName("#define HELP_COMMAND 0x0102L")] - public const int HELP_COMMAND = 0x0102; - - [NativeTypeName("#define HELP_PARTIALKEY 0x0105L")] - public const int HELP_PARTIALKEY = 0x0105; - - [NativeTypeName("#define HELP_MULTIKEY 0x0201L")] - public const int HELP_MULTIKEY = 0x0201; - - [NativeTypeName("#define HELP_SETWINPOS 0x0203L")] - public const int HELP_SETWINPOS = 0x0203; - - [NativeTypeName("#define HELP_CONTEXTMENU 0x000a")] - public const int HELP_CONTEXTMENU = 0x000a; - - [NativeTypeName("#define HELP_FINDER 0x000b")] - public const int HELP_FINDER = 0x000b; - - [NativeTypeName("#define HELP_WM_HELP 0x000c")] - public const int HELP_WM_HELP = 0x000c; - - [NativeTypeName("#define HELP_SETPOPUP_POS 0x000d")] - public const int HELP_SETPOPUP_POS = 0x000d; - - [NativeTypeName("#define HELP_TCARD 0x8000")] - public const int HELP_TCARD = 0x8000; - - [NativeTypeName("#define HELP_TCARD_DATA 0x0010")] - public const int HELP_TCARD_DATA = 0x0010; - - [NativeTypeName("#define HELP_TCARD_OTHER_CALLER 0x0011")] - public const int HELP_TCARD_OTHER_CALLER = 0x0011; - [NativeTypeName("#define IDH_NO_HELP 28440")] public const int IDH_NO_HELP = 28440; @@ -6911,42 +4385,6 @@ public static unsafe partial class Windows [NativeTypeName("#define METRICS_USEDEFAULT -1")] public const int METRICS_USEDEFAULT = -1; - [NativeTypeName("#define ARW_BOTTOMLEFT 0x0000L")] - public const int ARW_BOTTOMLEFT = 0x0000; - - [NativeTypeName("#define ARW_BOTTOMRIGHT 0x0001L")] - public const int ARW_BOTTOMRIGHT = 0x0001; - - [NativeTypeName("#define ARW_TOPLEFT 0x0002L")] - public const int ARW_TOPLEFT = 0x0002; - - [NativeTypeName("#define ARW_TOPRIGHT 0x0003L")] - public const int ARW_TOPRIGHT = 0x0003; - - [NativeTypeName("#define ARW_STARTMASK 0x0003L")] - public const int ARW_STARTMASK = 0x0003; - - [NativeTypeName("#define ARW_STARTRIGHT 0x0001L")] - public const int ARW_STARTRIGHT = 0x0001; - - [NativeTypeName("#define ARW_STARTTOP 0x0002L")] - public const int ARW_STARTTOP = 0x0002; - - [NativeTypeName("#define ARW_LEFT 0x0000L")] - public const int ARW_LEFT = 0x0000; - - [NativeTypeName("#define ARW_RIGHT 0x0000L")] - public const int ARW_RIGHT = 0x0000; - - [NativeTypeName("#define ARW_UP 0x0004L")] - public const int ARW_UP = 0x0004; - - [NativeTypeName("#define ARW_DOWN 0x0004L")] - public const int ARW_DOWN = 0x0004; - - [NativeTypeName("#define ARW_HIDE 0x0008L")] - public const int ARW_HIDE = 0x0008; - [NativeTypeName("#define SERKF_SERIALKEYSON 0x00000001")] public const int SERKF_SERIALKEYSON = 0x00000001; @@ -6956,93 +4394,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SERKF_INDICATOR 0x00000004")] public const int SERKF_INDICATOR = 0x00000004; - [NativeTypeName("#define HCF_HIGHCONTRASTON 0x00000001")] - public const int HCF_HIGHCONTRASTON = 0x00000001; - - [NativeTypeName("#define HCF_AVAILABLE 0x00000002")] - public const int HCF_AVAILABLE = 0x00000002; - - [NativeTypeName("#define HCF_HOTKEYACTIVE 0x00000004")] - public const int HCF_HOTKEYACTIVE = 0x00000004; - - [NativeTypeName("#define HCF_CONFIRMHOTKEY 0x00000008")] - public const int HCF_CONFIRMHOTKEY = 0x00000008; - - [NativeTypeName("#define HCF_HOTKEYSOUND 0x00000010")] - public const int HCF_HOTKEYSOUND = 0x00000010; - - [NativeTypeName("#define HCF_INDICATOR 0x00000020")] - public const int HCF_INDICATOR = 0x00000020; - - [NativeTypeName("#define HCF_HOTKEYAVAILABLE 0x00000040")] - public const int HCF_HOTKEYAVAILABLE = 0x00000040; - - [NativeTypeName("#define HCF_LOGONDESKTOP 0x00000100")] - public const int HCF_LOGONDESKTOP = 0x00000100; - - [NativeTypeName("#define HCF_DEFAULTDESKTOP 0x00000200")] - public const int HCF_DEFAULTDESKTOP = 0x00000200; - - [NativeTypeName("#define HCF_OPTION_NOTHEMECHANGE 0x00001000")] - public const int HCF_OPTION_NOTHEMECHANGE = 0x00001000; - - [NativeTypeName("#define CDS_UPDATEREGISTRY 0x00000001")] - public const int CDS_UPDATEREGISTRY = 0x00000001; - - [NativeTypeName("#define CDS_TEST 0x00000002")] - public const int CDS_TEST = 0x00000002; - - [NativeTypeName("#define CDS_FULLSCREEN 0x00000004")] - public const int CDS_FULLSCREEN = 0x00000004; - - [NativeTypeName("#define CDS_GLOBAL 0x00000008")] - public const int CDS_GLOBAL = 0x00000008; - - [NativeTypeName("#define CDS_SET_PRIMARY 0x00000010")] - public const int CDS_SET_PRIMARY = 0x00000010; - - [NativeTypeName("#define CDS_VIDEOPARAMETERS 0x00000020")] - public const int CDS_VIDEOPARAMETERS = 0x00000020; - - [NativeTypeName("#define CDS_ENABLE_UNSAFE_MODES 0x00000100")] - public const int CDS_ENABLE_UNSAFE_MODES = 0x00000100; - - [NativeTypeName("#define CDS_DISABLE_UNSAFE_MODES 0x00000200")] - public const int CDS_DISABLE_UNSAFE_MODES = 0x00000200; - - [NativeTypeName("#define CDS_RESET 0x40000000")] - public const int CDS_RESET = 0x40000000; - - [NativeTypeName("#define CDS_RESET_EX 0x20000000")] - public const int CDS_RESET_EX = 0x20000000; - - [NativeTypeName("#define CDS_NORESET 0x10000000")] - public const int CDS_NORESET = 0x10000000; - - [NativeTypeName("#define DISP_CHANGE_SUCCESSFUL 0")] - public const int DISP_CHANGE_SUCCESSFUL = 0; - - [NativeTypeName("#define DISP_CHANGE_RESTART 1")] - public const int DISP_CHANGE_RESTART = 1; - - [NativeTypeName("#define DISP_CHANGE_FAILED -1")] - public const int DISP_CHANGE_FAILED = -1; - - [NativeTypeName("#define DISP_CHANGE_BADMODE -2")] - public const int DISP_CHANGE_BADMODE = -2; - - [NativeTypeName("#define DISP_CHANGE_NOTUPDATED -3")] - public const int DISP_CHANGE_NOTUPDATED = -3; - - [NativeTypeName("#define DISP_CHANGE_BADFLAGS -4")] - public const int DISP_CHANGE_BADFLAGS = -4; - - [NativeTypeName("#define DISP_CHANGE_BADPARAM -5")] - public const int DISP_CHANGE_BADPARAM = -5; - - [NativeTypeName("#define DISP_CHANGE_BADDUALVIEW -6")] - public const int DISP_CHANGE_BADDUALVIEW = -6; - [NativeTypeName("#define ChangeDisplaySettings ChangeDisplaySettingsW")] public static delegate* ChangeDisplaySettings => &ChangeDisplaySettingsW; @@ -7097,120 +4448,6 @@ public static unsafe partial class Windows [NativeTypeName("#define FKF_CLICKON 0x00000040")] public const int FKF_CLICKON = 0x00000040; - [NativeTypeName("#define SKF_STICKYKEYSON 0x00000001")] - public const int SKF_STICKYKEYSON = 0x00000001; - - [NativeTypeName("#define SKF_AVAILABLE 0x00000002")] - public const int SKF_AVAILABLE = 0x00000002; - - [NativeTypeName("#define SKF_HOTKEYACTIVE 0x00000004")] - public const int SKF_HOTKEYACTIVE = 0x00000004; - - [NativeTypeName("#define SKF_CONFIRMHOTKEY 0x00000008")] - public const int SKF_CONFIRMHOTKEY = 0x00000008; - - [NativeTypeName("#define SKF_HOTKEYSOUND 0x00000010")] - public const int SKF_HOTKEYSOUND = 0x00000010; - - [NativeTypeName("#define SKF_INDICATOR 0x00000020")] - public const int SKF_INDICATOR = 0x00000020; - - [NativeTypeName("#define SKF_AUDIBLEFEEDBACK 0x00000040")] - public const int SKF_AUDIBLEFEEDBACK = 0x00000040; - - [NativeTypeName("#define SKF_TRISTATE 0x00000080")] - public const int SKF_TRISTATE = 0x00000080; - - [NativeTypeName("#define SKF_TWOKEYSOFF 0x00000100")] - public const int SKF_TWOKEYSOFF = 0x00000100; - - [NativeTypeName("#define SKF_LALTLATCHED 0x10000000")] - public const int SKF_LALTLATCHED = 0x10000000; - - [NativeTypeName("#define SKF_LCTLLATCHED 0x04000000")] - public const int SKF_LCTLLATCHED = 0x04000000; - - [NativeTypeName("#define SKF_LSHIFTLATCHED 0x01000000")] - public const int SKF_LSHIFTLATCHED = 0x01000000; - - [NativeTypeName("#define SKF_RALTLATCHED 0x20000000")] - public const int SKF_RALTLATCHED = 0x20000000; - - [NativeTypeName("#define SKF_RCTLLATCHED 0x08000000")] - public const int SKF_RCTLLATCHED = 0x08000000; - - [NativeTypeName("#define SKF_RSHIFTLATCHED 0x02000000")] - public const int SKF_RSHIFTLATCHED = 0x02000000; - - [NativeTypeName("#define SKF_LWINLATCHED 0x40000000")] - public const int SKF_LWINLATCHED = 0x40000000; - - [NativeTypeName("#define SKF_RWINLATCHED 0x80000000")] - public const uint SKF_RWINLATCHED = 0x80000000; - - [NativeTypeName("#define SKF_LALTLOCKED 0x00100000")] - public const int SKF_LALTLOCKED = 0x00100000; - - [NativeTypeName("#define SKF_LCTLLOCKED 0x00040000")] - public const int SKF_LCTLLOCKED = 0x00040000; - - [NativeTypeName("#define SKF_LSHIFTLOCKED 0x00010000")] - public const int SKF_LSHIFTLOCKED = 0x00010000; - - [NativeTypeName("#define SKF_RALTLOCKED 0x00200000")] - public const int SKF_RALTLOCKED = 0x00200000; - - [NativeTypeName("#define SKF_RCTLLOCKED 0x00080000")] - public const int SKF_RCTLLOCKED = 0x00080000; - - [NativeTypeName("#define SKF_RSHIFTLOCKED 0x00020000")] - public const int SKF_RSHIFTLOCKED = 0x00020000; - - [NativeTypeName("#define SKF_LWINLOCKED 0x00400000")] - public const int SKF_LWINLOCKED = 0x00400000; - - [NativeTypeName("#define SKF_RWINLOCKED 0x00800000")] - public const int SKF_RWINLOCKED = 0x00800000; - - [NativeTypeName("#define MKF_MOUSEKEYSON 0x00000001")] - public const int MKF_MOUSEKEYSON = 0x00000001; - - [NativeTypeName("#define MKF_AVAILABLE 0x00000002")] - public const int MKF_AVAILABLE = 0x00000002; - - [NativeTypeName("#define MKF_HOTKEYACTIVE 0x00000004")] - public const int MKF_HOTKEYACTIVE = 0x00000004; - - [NativeTypeName("#define MKF_CONFIRMHOTKEY 0x00000008")] - public const int MKF_CONFIRMHOTKEY = 0x00000008; - - [NativeTypeName("#define MKF_HOTKEYSOUND 0x00000010")] - public const int MKF_HOTKEYSOUND = 0x00000010; - - [NativeTypeName("#define MKF_INDICATOR 0x00000020")] - public const int MKF_INDICATOR = 0x00000020; - - [NativeTypeName("#define MKF_MODIFIERS 0x00000040")] - public const int MKF_MODIFIERS = 0x00000040; - - [NativeTypeName("#define MKF_REPLACENUMBERS 0x00000080")] - public const int MKF_REPLACENUMBERS = 0x00000080; - - [NativeTypeName("#define MKF_LEFTBUTTONSEL 0x10000000")] - public const int MKF_LEFTBUTTONSEL = 0x10000000; - - [NativeTypeName("#define MKF_RIGHTBUTTONSEL 0x20000000")] - public const int MKF_RIGHTBUTTONSEL = 0x20000000; - - [NativeTypeName("#define MKF_LEFTBUTTONDOWN 0x01000000")] - public const int MKF_LEFTBUTTONDOWN = 0x01000000; - - [NativeTypeName("#define MKF_RIGHTBUTTONDOWN 0x02000000")] - public const int MKF_RIGHTBUTTONDOWN = 0x02000000; - - [NativeTypeName("#define MKF_MOUSEMODE 0x80000000")] - public const uint MKF_MOUSEMODE = 0x80000000; - [NativeTypeName("#define ATF_TIMEOUTON 0x00000001")] public const int ATF_TIMEOUTON = 0x00000001; @@ -7250,15 +4487,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SSWF_CUSTOM 4")] public const int SSWF_CUSTOM = 4; - [NativeTypeName("#define SSF_SOUNDSENTRYON 0x00000001")] - public const int SSF_SOUNDSENTRYON = 0x00000001; - - [NativeTypeName("#define SSF_AVAILABLE 0x00000002")] - public const int SSF_AVAILABLE = 0x00000002; - - [NativeTypeName("#define SSF_INDICATOR 0x00000004")] - public const int SSF_INDICATOR = 0x00000004; - [NativeTypeName("#define TKF_TOGGLEKEYSON 0x00000001")] public const int TKF_TOGGLEKEYSON = 0x00000001; @@ -7322,102 +4550,6 @@ public static unsafe partial class Windows [NativeTypeName("#define INDEXID_CONTAINER 0")] public const int INDEXID_CONTAINER = 0; - [NativeTypeName("#define OBJID_WINDOW ((LONG)0x00000000)")] - public const int OBJID_WINDOW = ((int)(0x00000000)); - - [NativeTypeName("#define OBJID_SYSMENU ((LONG)0xFFFFFFFF)")] - public const int OBJID_SYSMENU = unchecked((int)(0xFFFFFFFF)); - - [NativeTypeName("#define OBJID_TITLEBAR ((LONG)0xFFFFFFFE)")] - public const int OBJID_TITLEBAR = unchecked((int)(0xFFFFFFFE)); - - [NativeTypeName("#define OBJID_MENU ((LONG)0xFFFFFFFD)")] - public const int OBJID_MENU = unchecked((int)(0xFFFFFFFD)); - - [NativeTypeName("#define OBJID_CLIENT ((LONG)0xFFFFFFFC)")] - public const int OBJID_CLIENT = unchecked((int)(0xFFFFFFFC)); - - [NativeTypeName("#define OBJID_VSCROLL ((LONG)0xFFFFFFFB)")] - public const int OBJID_VSCROLL = unchecked((int)(0xFFFFFFFB)); - - [NativeTypeName("#define OBJID_HSCROLL ((LONG)0xFFFFFFFA)")] - public const int OBJID_HSCROLL = unchecked((int)(0xFFFFFFFA)); - - [NativeTypeName("#define OBJID_SIZEGRIP ((LONG)0xFFFFFFF9)")] - public const int OBJID_SIZEGRIP = unchecked((int)(0xFFFFFFF9)); - - [NativeTypeName("#define OBJID_CARET ((LONG)0xFFFFFFF8)")] - public const int OBJID_CARET = unchecked((int)(0xFFFFFFF8)); - - [NativeTypeName("#define OBJID_CURSOR ((LONG)0xFFFFFFF7)")] - public const int OBJID_CURSOR = unchecked((int)(0xFFFFFFF7)); - - [NativeTypeName("#define OBJID_ALERT ((LONG)0xFFFFFFF6)")] - public const int OBJID_ALERT = unchecked((int)(0xFFFFFFF6)); - - [NativeTypeName("#define OBJID_SOUND ((LONG)0xFFFFFFF5)")] - public const int OBJID_SOUND = unchecked((int)(0xFFFFFFF5)); - - [NativeTypeName("#define OBJID_QUERYCLASSNAMEIDX ((LONG)0xFFFFFFF4)")] - public const int OBJID_QUERYCLASSNAMEIDX = unchecked((int)(0xFFFFFFF4)); - - [NativeTypeName("#define OBJID_NATIVEOM ((LONG)0xFFFFFFF0)")] - public const int OBJID_NATIVEOM = unchecked((int)(0xFFFFFFF0)); - - [NativeTypeName("#define CONSOLE_CARET_SELECTION 0x0001")] - public const int CONSOLE_CARET_SELECTION = 0x0001; - - [NativeTypeName("#define CONSOLE_CARET_VISIBLE 0x0002")] - public const int CONSOLE_CARET_VISIBLE = 0x0002; - - [NativeTypeName("#define SOUND_SYSTEM_STARTUP 1")] - public const int SOUND_SYSTEM_STARTUP = 1; - - [NativeTypeName("#define SOUND_SYSTEM_SHUTDOWN 2")] - public const int SOUND_SYSTEM_SHUTDOWN = 2; - - [NativeTypeName("#define SOUND_SYSTEM_BEEP 3")] - public const int SOUND_SYSTEM_BEEP = 3; - - [NativeTypeName("#define SOUND_SYSTEM_ERROR 4")] - public const int SOUND_SYSTEM_ERROR = 4; - - [NativeTypeName("#define SOUND_SYSTEM_QUESTION 5")] - public const int SOUND_SYSTEM_QUESTION = 5; - - [NativeTypeName("#define SOUND_SYSTEM_WARNING 6")] - public const int SOUND_SYSTEM_WARNING = 6; - - [NativeTypeName("#define SOUND_SYSTEM_INFORMATION 7")] - public const int SOUND_SYSTEM_INFORMATION = 7; - - [NativeTypeName("#define SOUND_SYSTEM_MAXIMIZE 8")] - public const int SOUND_SYSTEM_MAXIMIZE = 8; - - [NativeTypeName("#define SOUND_SYSTEM_MINIMIZE 9")] - public const int SOUND_SYSTEM_MINIMIZE = 9; - - [NativeTypeName("#define SOUND_SYSTEM_RESTOREUP 10")] - public const int SOUND_SYSTEM_RESTOREUP = 10; - - [NativeTypeName("#define SOUND_SYSTEM_RESTOREDOWN 11")] - public const int SOUND_SYSTEM_RESTOREDOWN = 11; - - [NativeTypeName("#define SOUND_SYSTEM_APPSTART 12")] - public const int SOUND_SYSTEM_APPSTART = 12; - - [NativeTypeName("#define SOUND_SYSTEM_FAULT 13")] - public const int SOUND_SYSTEM_FAULT = 13; - - [NativeTypeName("#define SOUND_SYSTEM_APPEND 14")] - public const int SOUND_SYSTEM_APPEND = 14; - - [NativeTypeName("#define SOUND_SYSTEM_MENUCOMMAND 15")] - public const int SOUND_SYSTEM_MENUCOMMAND = 15; - - [NativeTypeName("#define SOUND_SYSTEM_MENUPOPUP 16")] - public const int SOUND_SYSTEM_MENUPOPUP = 16; - [NativeTypeName("#define CSOUND_SYSTEM 16")] public const int CSOUND_SYSTEM = 16; @@ -7460,102 +4592,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GetWindowModuleFileName GetWindowModuleFileNameW")] public static delegate* GetWindowModuleFileName => &GetWindowModuleFileNameW; - [NativeTypeName("#define STATE_SYSTEM_UNAVAILABLE 0x00000001")] - public const int STATE_SYSTEM_UNAVAILABLE = 0x00000001; - - [NativeTypeName("#define STATE_SYSTEM_SELECTED 0x00000002")] - public const int STATE_SYSTEM_SELECTED = 0x00000002; - - [NativeTypeName("#define STATE_SYSTEM_FOCUSED 0x00000004")] - public const int STATE_SYSTEM_FOCUSED = 0x00000004; - - [NativeTypeName("#define STATE_SYSTEM_PRESSED 0x00000008")] - public const int STATE_SYSTEM_PRESSED = 0x00000008; - - [NativeTypeName("#define STATE_SYSTEM_CHECKED 0x00000010")] - public const int STATE_SYSTEM_CHECKED = 0x00000010; - - [NativeTypeName("#define STATE_SYSTEM_MIXED 0x00000020")] - public const int STATE_SYSTEM_MIXED = 0x00000020; - - [NativeTypeName("#define STATE_SYSTEM_INDETERMINATE STATE_SYSTEM_MIXED")] - public const int STATE_SYSTEM_INDETERMINATE = 0x00000020; - - [NativeTypeName("#define STATE_SYSTEM_READONLY 0x00000040")] - public const int STATE_SYSTEM_READONLY = 0x00000040; - - [NativeTypeName("#define STATE_SYSTEM_HOTTRACKED 0x00000080")] - public const int STATE_SYSTEM_HOTTRACKED = 0x00000080; - - [NativeTypeName("#define STATE_SYSTEM_DEFAULT 0x00000100")] - public const int STATE_SYSTEM_DEFAULT = 0x00000100; - - [NativeTypeName("#define STATE_SYSTEM_EXPANDED 0x00000200")] - public const int STATE_SYSTEM_EXPANDED = 0x00000200; - - [NativeTypeName("#define STATE_SYSTEM_COLLAPSED 0x00000400")] - public const int STATE_SYSTEM_COLLAPSED = 0x00000400; - - [NativeTypeName("#define STATE_SYSTEM_BUSY 0x00000800")] - public const int STATE_SYSTEM_BUSY = 0x00000800; - - [NativeTypeName("#define STATE_SYSTEM_FLOATING 0x00001000")] - public const int STATE_SYSTEM_FLOATING = 0x00001000; - - [NativeTypeName("#define STATE_SYSTEM_MARQUEED 0x00002000")] - public const int STATE_SYSTEM_MARQUEED = 0x00002000; - - [NativeTypeName("#define STATE_SYSTEM_ANIMATED 0x00004000")] - public const int STATE_SYSTEM_ANIMATED = 0x00004000; - - [NativeTypeName("#define STATE_SYSTEM_INVISIBLE 0x00008000")] - public const int STATE_SYSTEM_INVISIBLE = 0x00008000; - - [NativeTypeName("#define STATE_SYSTEM_OFFSCREEN 0x00010000")] - public const int STATE_SYSTEM_OFFSCREEN = 0x00010000; - - [NativeTypeName("#define STATE_SYSTEM_SIZEABLE 0x00020000")] - public const int STATE_SYSTEM_SIZEABLE = 0x00020000; - - [NativeTypeName("#define STATE_SYSTEM_MOVEABLE 0x00040000")] - public const int STATE_SYSTEM_MOVEABLE = 0x00040000; - - [NativeTypeName("#define STATE_SYSTEM_SELFVOICING 0x00080000")] - public const int STATE_SYSTEM_SELFVOICING = 0x00080000; - - [NativeTypeName("#define STATE_SYSTEM_FOCUSABLE 0x00100000")] - public const int STATE_SYSTEM_FOCUSABLE = 0x00100000; - - [NativeTypeName("#define STATE_SYSTEM_SELECTABLE 0x00200000")] - public const int STATE_SYSTEM_SELECTABLE = 0x00200000; - - [NativeTypeName("#define STATE_SYSTEM_LINKED 0x00400000")] - public const int STATE_SYSTEM_LINKED = 0x00400000; - - [NativeTypeName("#define STATE_SYSTEM_TRAVERSED 0x00800000")] - public const int STATE_SYSTEM_TRAVERSED = 0x00800000; - - [NativeTypeName("#define STATE_SYSTEM_MULTISELECTABLE 0x01000000")] - public const int STATE_SYSTEM_MULTISELECTABLE = 0x01000000; - - [NativeTypeName("#define STATE_SYSTEM_EXTSELECTABLE 0x02000000")] - public const int STATE_SYSTEM_EXTSELECTABLE = 0x02000000; - - [NativeTypeName("#define STATE_SYSTEM_ALERT_LOW 0x04000000")] - public const int STATE_SYSTEM_ALERT_LOW = 0x04000000; - - [NativeTypeName("#define STATE_SYSTEM_ALERT_MEDIUM 0x08000000")] - public const int STATE_SYSTEM_ALERT_MEDIUM = 0x08000000; - - [NativeTypeName("#define STATE_SYSTEM_ALERT_HIGH 0x10000000")] - public const int STATE_SYSTEM_ALERT_HIGH = 0x10000000; - - [NativeTypeName("#define STATE_SYSTEM_PROTECTED 0x20000000")] - public const int STATE_SYSTEM_PROTECTED = 0x20000000; - - [NativeTypeName("#define STATE_SYSTEM_VALID 0x3FFFFFFF")] - public const int STATE_SYSTEM_VALID = 0x3FFFFFFF; - [NativeTypeName("#define CCHILDREN_TITLEBAR 5")] public const int CCHILDREN_TITLEBAR = 5; @@ -7601,60 +4637,6 @@ public static unsafe partial class Windows [NativeTypeName("#define RIM_TYPEMAX 2")] public const int RIM_TYPEMAX = 2; - [NativeTypeName("#define RI_MOUSE_LEFT_BUTTON_DOWN 0x0001")] - public const int RI_MOUSE_LEFT_BUTTON_DOWN = 0x0001; - - [NativeTypeName("#define RI_MOUSE_LEFT_BUTTON_UP 0x0002")] - public const int RI_MOUSE_LEFT_BUTTON_UP = 0x0002; - - [NativeTypeName("#define RI_MOUSE_RIGHT_BUTTON_DOWN 0x0004")] - public const int RI_MOUSE_RIGHT_BUTTON_DOWN = 0x0004; - - [NativeTypeName("#define RI_MOUSE_RIGHT_BUTTON_UP 0x0008")] - public const int RI_MOUSE_RIGHT_BUTTON_UP = 0x0008; - - [NativeTypeName("#define RI_MOUSE_MIDDLE_BUTTON_DOWN 0x0010")] - public const int RI_MOUSE_MIDDLE_BUTTON_DOWN = 0x0010; - - [NativeTypeName("#define RI_MOUSE_MIDDLE_BUTTON_UP 0x0020")] - public const int RI_MOUSE_MIDDLE_BUTTON_UP = 0x0020; - - [NativeTypeName("#define RI_MOUSE_BUTTON_1_DOWN RI_MOUSE_LEFT_BUTTON_DOWN")] - public const int RI_MOUSE_BUTTON_1_DOWN = 0x0001; - - [NativeTypeName("#define RI_MOUSE_BUTTON_1_UP RI_MOUSE_LEFT_BUTTON_UP")] - public const int RI_MOUSE_BUTTON_1_UP = 0x0002; - - [NativeTypeName("#define RI_MOUSE_BUTTON_2_DOWN RI_MOUSE_RIGHT_BUTTON_DOWN")] - public const int RI_MOUSE_BUTTON_2_DOWN = 0x0004; - - [NativeTypeName("#define RI_MOUSE_BUTTON_2_UP RI_MOUSE_RIGHT_BUTTON_UP")] - public const int RI_MOUSE_BUTTON_2_UP = 0x0008; - - [NativeTypeName("#define RI_MOUSE_BUTTON_3_DOWN RI_MOUSE_MIDDLE_BUTTON_DOWN")] - public const int RI_MOUSE_BUTTON_3_DOWN = 0x0010; - - [NativeTypeName("#define RI_MOUSE_BUTTON_3_UP RI_MOUSE_MIDDLE_BUTTON_UP")] - public const int RI_MOUSE_BUTTON_3_UP = 0x0020; - - [NativeTypeName("#define RI_MOUSE_BUTTON_4_DOWN 0x0040")] - public const int RI_MOUSE_BUTTON_4_DOWN = 0x0040; - - [NativeTypeName("#define RI_MOUSE_BUTTON_4_UP 0x0080")] - public const int RI_MOUSE_BUTTON_4_UP = 0x0080; - - [NativeTypeName("#define RI_MOUSE_BUTTON_5_DOWN 0x0100")] - public const int RI_MOUSE_BUTTON_5_DOWN = 0x0100; - - [NativeTypeName("#define RI_MOUSE_BUTTON_5_UP 0x0200")] - public const int RI_MOUSE_BUTTON_5_UP = 0x0200; - - [NativeTypeName("#define RI_MOUSE_WHEEL 0x0400")] - public const int RI_MOUSE_WHEEL = 0x0400; - - [NativeTypeName("#define RI_MOUSE_HWHEEL 0x0800")] - public const int RI_MOUSE_HWHEEL = 0x0800; - [NativeTypeName("#define MOUSE_MOVE_RELATIVE 0")] public const int MOUSE_MOVE_RELATIVE = 0; @@ -7673,24 +4655,6 @@ public static unsafe partial class Windows [NativeTypeName("#define KEYBOARD_OVERRUN_MAKE_CODE 0xFF")] public const int KEYBOARD_OVERRUN_MAKE_CODE = 0xFF; - [NativeTypeName("#define RI_KEY_MAKE 0")] - public const int RI_KEY_MAKE = 0; - - [NativeTypeName("#define RI_KEY_BREAK 1")] - public const int RI_KEY_BREAK = 1; - - [NativeTypeName("#define RI_KEY_E0 2")] - public const int RI_KEY_E0 = 2; - - [NativeTypeName("#define RI_KEY_E1 4")] - public const int RI_KEY_E1 = 4; - - [NativeTypeName("#define RI_KEY_TERMSRV_SET_LED 8")] - public const int RI_KEY_TERMSRV_SET_LED = 8; - - [NativeTypeName("#define RI_KEY_TERMSRV_SHADOW 0x10")] - public const int RI_KEY_TERMSRV_SHADOW = 0x10; - [NativeTypeName("#define RID_INPUT 0x10000003")] public const int RID_INPUT = 0x10000003; @@ -7709,84 +4673,12 @@ public static unsafe partial class Windows [NativeTypeName("#define GetRawInputDeviceInfo GetRawInputDeviceInfoW")] public static delegate* GetRawInputDeviceInfo => &GetRawInputDeviceInfoW; - [NativeTypeName("#define RIDEV_REMOVE 0x00000001")] - public const int RIDEV_REMOVE = 0x00000001; - - [NativeTypeName("#define RIDEV_EXCLUDE 0x00000010")] - public const int RIDEV_EXCLUDE = 0x00000010; - - [NativeTypeName("#define RIDEV_PAGEONLY 0x00000020")] - public const int RIDEV_PAGEONLY = 0x00000020; - - [NativeTypeName("#define RIDEV_NOLEGACY 0x00000030")] - public const int RIDEV_NOLEGACY = 0x00000030; - - [NativeTypeName("#define RIDEV_INPUTSINK 0x00000100")] - public const int RIDEV_INPUTSINK = 0x00000100; - - [NativeTypeName("#define RIDEV_CAPTUREMOUSE 0x00000200")] - public const int RIDEV_CAPTUREMOUSE = 0x00000200; - - [NativeTypeName("#define RIDEV_NOHOTKEYS 0x00000200")] - public const int RIDEV_NOHOTKEYS = 0x00000200; - - [NativeTypeName("#define RIDEV_APPKEYS 0x00000400")] - public const int RIDEV_APPKEYS = 0x00000400; - - [NativeTypeName("#define RIDEV_EXINPUTSINK 0x00001000")] - public const int RIDEV_EXINPUTSINK = 0x00001000; - - [NativeTypeName("#define RIDEV_DEVNOTIFY 0x00002000")] - public const int RIDEV_DEVNOTIFY = 0x00002000; - - [NativeTypeName("#define RIDEV_EXMODEMASK 0x000000F0")] - public const int RIDEV_EXMODEMASK = 0x000000F0; - [NativeTypeName("#define GIDC_ARRIVAL 1")] public const int GIDC_ARRIVAL = 1; [NativeTypeName("#define GIDC_REMOVAL 2")] public const int GIDC_REMOVAL = 2; - [NativeTypeName("#define POINTER_DEVICE_PRODUCT_STRING_MAX 520")] - public const int POINTER_DEVICE_PRODUCT_STRING_MAX = 520; - - [NativeTypeName("#define PDC_ARRIVAL 0x001")] - public const int PDC_ARRIVAL = 0x001; - - [NativeTypeName("#define PDC_REMOVAL 0x002")] - public const int PDC_REMOVAL = 0x002; - - [NativeTypeName("#define PDC_ORIENTATION_0 0x004")] - public const int PDC_ORIENTATION_0 = 0x004; - - [NativeTypeName("#define PDC_ORIENTATION_90 0x008")] - public const int PDC_ORIENTATION_90 = 0x008; - - [NativeTypeName("#define PDC_ORIENTATION_180 0x010")] - public const int PDC_ORIENTATION_180 = 0x010; - - [NativeTypeName("#define PDC_ORIENTATION_270 0x020")] - public const int PDC_ORIENTATION_270 = 0x020; - - [NativeTypeName("#define PDC_MODE_DEFAULT 0x040")] - public const int PDC_MODE_DEFAULT = 0x040; - - [NativeTypeName("#define PDC_MODE_CENTERED 0x080")] - public const int PDC_MODE_CENTERED = 0x080; - - [NativeTypeName("#define PDC_MAPPING_CHANGE 0x100")] - public const int PDC_MAPPING_CHANGE = 0x100; - - [NativeTypeName("#define PDC_RESOLUTION 0x200")] - public const int PDC_RESOLUTION = 0x200; - - [NativeTypeName("#define PDC_ORIGIN 0x400")] - public const int PDC_ORIGIN = 0x400; - - [NativeTypeName("#define PDC_MODE_ASPECTRATIOPRESERVED 0x800")] - public const int PDC_MODE_ASPECTRATIOPRESERVED = 0x800; - [NativeTypeName("#define MSGFLT_ADD 1")] public const int MSGFLT_ADD = 1; diff --git a/sources/Interop/Windows/Windows/um/amvideo/AMDDS.cs b/sources/Interop/Windows/Windows/um/amvideo/AMDDS.cs new file mode 100644 index 0000000000..5f8b263e01 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/amvideo/AMDDS.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/amvideo.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AMDDS + { + [NativeTypeName("#define AMDDS_NONE 0x00")] + public const int AMDDS_NONE = 0x00; + + [NativeTypeName("#define AMDDS_DCIPS 0x01")] + public const int AMDDS_DCIPS = 0x01; + + [NativeTypeName("#define AMDDS_PS 0x02")] + public const int AMDDS_PS = 0x02; + + [NativeTypeName("#define AMDDS_RGBOVR 0x04")] + public const int AMDDS_RGBOVR = 0x04; + + [NativeTypeName("#define AMDDS_YUVOVR 0x08")] + public const int AMDDS_YUVOVR = 0x08; + + [NativeTypeName("#define AMDDS_RGBOFF 0x10")] + public const int AMDDS_RGBOFF = 0x10; + + [NativeTypeName("#define AMDDS_YUVOFF 0x20")] + public const int AMDDS_YUVOFF = 0x20; + + [NativeTypeName("#define AMDDS_RGBFLP 0x40")] + public const int AMDDS_RGBFLP = 0x40; + + [NativeTypeName("#define AMDDS_YUVFLP 0x80")] + public const int AMDDS_YUVFLP = 0x80; + + [NativeTypeName("#define AMDDS_ALL 0xFF")] + public const int AMDDS_ALL = 0xFF; + + [NativeTypeName("#define AMDDS_DEFAULT AMDDS_ALL")] + public const int AMDDS_DEFAULT = 0xFF; + + [NativeTypeName("#define AMDDS_YUV (AMDDS_YUVOFF | AMDDS_YUVOVR | AMDDS_YUVFLP)")] + public const int AMDDS_YUV = (0x20 | 0x08 | 0x80); + + [NativeTypeName("#define AMDDS_RGB (AMDDS_RGBOFF | AMDDS_RGBOVR | AMDDS_RGBFLP)")] + public const int AMDDS_RGB = (0x10 | 0x04 | 0x40); + + [NativeTypeName("#define AMDDS_PRIMARY (AMDDS_DCIPS | AMDDS_PS)")] + public const int AMDDS_PRIMARY = (0x01 | 0x02); + } +} diff --git a/sources/Interop/Windows/Windows/um/amvideo/Windows.cs b/sources/Interop/Windows/Windows/um/amvideo/Windows.cs index c06ed3c676..21cc97c184 100644 --- a/sources/Interop/Windows/Windows/um/amvideo/Windows.cs +++ b/sources/Interop/Windows/Windows/um/amvideo/Windows.cs @@ -7,48 +7,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define AMDDS_NONE 0x00")] - public const int AMDDS_NONE = 0x00; - - [NativeTypeName("#define AMDDS_DCIPS 0x01")] - public const int AMDDS_DCIPS = 0x01; - - [NativeTypeName("#define AMDDS_PS 0x02")] - public const int AMDDS_PS = 0x02; - - [NativeTypeName("#define AMDDS_RGBOVR 0x04")] - public const int AMDDS_RGBOVR = 0x04; - - [NativeTypeName("#define AMDDS_YUVOVR 0x08")] - public const int AMDDS_YUVOVR = 0x08; - - [NativeTypeName("#define AMDDS_RGBOFF 0x10")] - public const int AMDDS_RGBOFF = 0x10; - - [NativeTypeName("#define AMDDS_YUVOFF 0x20")] - public const int AMDDS_YUVOFF = 0x20; - - [NativeTypeName("#define AMDDS_RGBFLP 0x40")] - public const int AMDDS_RGBFLP = 0x40; - - [NativeTypeName("#define AMDDS_YUVFLP 0x80")] - public const int AMDDS_YUVFLP = 0x80; - - [NativeTypeName("#define AMDDS_ALL 0xFF")] - public const int AMDDS_ALL = 0xFF; - - [NativeTypeName("#define AMDDS_DEFAULT AMDDS_ALL")] - public const int AMDDS_DEFAULT = 0xFF; - - [NativeTypeName("#define AMDDS_YUV (AMDDS_YUVOFF | AMDDS_YUVOVR | AMDDS_YUVFLP)")] - public const int AMDDS_YUV = (0x20 | 0x08 | 0x80); - - [NativeTypeName("#define AMDDS_RGB (AMDDS_RGBOFF | AMDDS_RGBOVR | AMDDS_RGBFLP)")] - public const int AMDDS_RGB = (0x10 | 0x04 | 0x40); - - [NativeTypeName("#define AMDDS_PRIMARY (AMDDS_DCIPS | AMDDS_PS)")] - public const int AMDDS_PRIMARY = (0x01 | 0x02); - [NativeTypeName("#define iPALETTE_COLORS 256")] public const int iPALETTE_COLORS = 256; diff --git a/sources/Interop/Windows/Windows/um/appmodel/PACKAGE.cs b/sources/Interop/Windows/Windows/um/appmodel/PACKAGE.cs new file mode 100644 index 0000000000..a31ad36eca --- /dev/null +++ b/sources/Interop/Windows/Windows/um/appmodel/PACKAGE.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/appmodel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PACKAGE + { + [NativeTypeName("#define PACKAGE_PROPERTY_FRAMEWORK 0x00000001")] + public const int PACKAGE_PROPERTY_FRAMEWORK = 0x00000001; + + [NativeTypeName("#define PACKAGE_PROPERTY_RESOURCE 0x00000002")] + public const int PACKAGE_PROPERTY_RESOURCE = 0x00000002; + + [NativeTypeName("#define PACKAGE_PROPERTY_BUNDLE 0x00000004")] + public const int PACKAGE_PROPERTY_BUNDLE = 0x00000004; + + [NativeTypeName("#define PACKAGE_PROPERTY_OPTIONAL 0x00000008")] + public const int PACKAGE_PROPERTY_OPTIONAL = 0x00000008; + + [NativeTypeName("#define PACKAGE_FILTER_HEAD 0x00000010")] + public const int PACKAGE_FILTER_HEAD = 0x00000010; + + [NativeTypeName("#define PACKAGE_FILTER_DIRECT 0x00000020")] + public const int PACKAGE_FILTER_DIRECT = 0x00000020; + + [NativeTypeName("#define PACKAGE_FILTER_RESOURCE 0x00000040")] + public const int PACKAGE_FILTER_RESOURCE = 0x00000040; + + [NativeTypeName("#define PACKAGE_FILTER_BUNDLE 0x00000080")] + public const int PACKAGE_FILTER_BUNDLE = 0x00000080; + + [NativeTypeName("#define PACKAGE_INFORMATION_BASIC 0x00000000")] + public const int PACKAGE_INFORMATION_BASIC = 0x00000000; + + [NativeTypeName("#define PACKAGE_INFORMATION_FULL 0x00000100")] + public const int PACKAGE_INFORMATION_FULL = 0x00000100; + + [NativeTypeName("#define PACKAGE_PROPERTY_DEVELOPMENT_MODE 0x00010000")] + public const int PACKAGE_PROPERTY_DEVELOPMENT_MODE = 0x00010000; + + [NativeTypeName("#define PACKAGE_FILTER_OPTIONAL 0x00020000")] + public const int PACKAGE_FILTER_OPTIONAL = 0x00020000; + + [NativeTypeName("#define PACKAGE_PROPERTY_IS_IN_RELATED_SET 0x00040000")] + public const int PACKAGE_PROPERTY_IS_IN_RELATED_SET = 0x00040000; + + [NativeTypeName("#define PACKAGE_FILTER_IS_IN_RELATED_SET PACKAGE_PROPERTY_IS_IN_RELATED_SET")] + public const int PACKAGE_FILTER_IS_IN_RELATED_SET = 0x00040000; + + [NativeTypeName("#define PACKAGE_PROPERTY_STATIC 0x00080000")] + public const int PACKAGE_PROPERTY_STATIC = 0x00080000; + + [NativeTypeName("#define PACKAGE_FILTER_STATIC PACKAGE_PROPERTY_STATIC")] + public const int PACKAGE_FILTER_STATIC = 0x00080000; + + [NativeTypeName("#define PACKAGE_PROPERTY_DYNAMIC 0x00100000")] + public const int PACKAGE_PROPERTY_DYNAMIC = 0x00100000; + + [NativeTypeName("#define PACKAGE_FILTER_DYNAMIC PACKAGE_PROPERTY_DYNAMIC")] + public const int PACKAGE_FILTER_DYNAMIC = 0x00100000; + + [NativeTypeName("#define PACKAGE_PROPERTY_HOSTRUNTIME 0x00200000")] + public const int PACKAGE_PROPERTY_HOSTRUNTIME = 0x00200000; + + [NativeTypeName("#define PACKAGE_FILTER_HOSTRUNTIME PACKAGE_PROPERTY_HOSTRUNTIME")] + public const int PACKAGE_FILTER_HOSTRUNTIME = 0x00200000; + + [NativeTypeName("#define PACKAGE_FILTER_ALL_LOADED 0")] + public const int PACKAGE_FILTER_ALL_LOADED = 0; + } +} diff --git a/sources/Interop/Windows/Windows/um/appmodel/Windows.cs b/sources/Interop/Windows/Windows/um/appmodel/Windows.cs index 9bdfe042e1..9f15538132 100644 --- a/sources/Interop/Windows/Windows/um/appmodel/Windows.cs +++ b/sources/Interop/Windows/Windows/um/appmodel/Windows.cs @@ -188,68 +188,5 @@ public static unsafe partial class Windows [DllImport("api-ms-win-appmodel-runtime-l1-1-2", ExactSpelling = true)] [return: NativeTypeName("LONG")] public static extern int AppPolicyGetCreateFileAccess(HANDLE processToken, AppPolicyCreateFileAccess* policy); - - [NativeTypeName("#define PACKAGE_PROPERTY_FRAMEWORK 0x00000001")] - public const int PACKAGE_PROPERTY_FRAMEWORK = 0x00000001; - - [NativeTypeName("#define PACKAGE_PROPERTY_RESOURCE 0x00000002")] - public const int PACKAGE_PROPERTY_RESOURCE = 0x00000002; - - [NativeTypeName("#define PACKAGE_PROPERTY_BUNDLE 0x00000004")] - public const int PACKAGE_PROPERTY_BUNDLE = 0x00000004; - - [NativeTypeName("#define PACKAGE_PROPERTY_OPTIONAL 0x00000008")] - public const int PACKAGE_PROPERTY_OPTIONAL = 0x00000008; - - [NativeTypeName("#define PACKAGE_FILTER_HEAD 0x00000010")] - public const int PACKAGE_FILTER_HEAD = 0x00000010; - - [NativeTypeName("#define PACKAGE_FILTER_DIRECT 0x00000020")] - public const int PACKAGE_FILTER_DIRECT = 0x00000020; - - [NativeTypeName("#define PACKAGE_FILTER_RESOURCE 0x00000040")] - public const int PACKAGE_FILTER_RESOURCE = 0x00000040; - - [NativeTypeName("#define PACKAGE_FILTER_BUNDLE 0x00000080")] - public const int PACKAGE_FILTER_BUNDLE = 0x00000080; - - [NativeTypeName("#define PACKAGE_INFORMATION_BASIC 0x00000000")] - public const int PACKAGE_INFORMATION_BASIC = 0x00000000; - - [NativeTypeName("#define PACKAGE_INFORMATION_FULL 0x00000100")] - public const int PACKAGE_INFORMATION_FULL = 0x00000100; - - [NativeTypeName("#define PACKAGE_PROPERTY_DEVELOPMENT_MODE 0x00010000")] - public const int PACKAGE_PROPERTY_DEVELOPMENT_MODE = 0x00010000; - - [NativeTypeName("#define PACKAGE_FILTER_OPTIONAL 0x00020000")] - public const int PACKAGE_FILTER_OPTIONAL = 0x00020000; - - [NativeTypeName("#define PACKAGE_PROPERTY_IS_IN_RELATED_SET 0x00040000")] - public const int PACKAGE_PROPERTY_IS_IN_RELATED_SET = 0x00040000; - - [NativeTypeName("#define PACKAGE_FILTER_IS_IN_RELATED_SET PACKAGE_PROPERTY_IS_IN_RELATED_SET")] - public const int PACKAGE_FILTER_IS_IN_RELATED_SET = 0x00040000; - - [NativeTypeName("#define PACKAGE_PROPERTY_STATIC 0x00080000")] - public const int PACKAGE_PROPERTY_STATIC = 0x00080000; - - [NativeTypeName("#define PACKAGE_FILTER_STATIC PACKAGE_PROPERTY_STATIC")] - public const int PACKAGE_FILTER_STATIC = 0x00080000; - - [NativeTypeName("#define PACKAGE_PROPERTY_DYNAMIC 0x00100000")] - public const int PACKAGE_PROPERTY_DYNAMIC = 0x00100000; - - [NativeTypeName("#define PACKAGE_FILTER_DYNAMIC PACKAGE_PROPERTY_DYNAMIC")] - public const int PACKAGE_FILTER_DYNAMIC = 0x00100000; - - [NativeTypeName("#define PACKAGE_PROPERTY_HOSTRUNTIME 0x00200000")] - public const int PACKAGE_PROPERTY_HOSTRUNTIME = 0x00200000; - - [NativeTypeName("#define PACKAGE_FILTER_HOSTRUNTIME PACKAGE_PROPERTY_HOSTRUNTIME")] - public const int PACKAGE_FILTER_HOSTRUNTIME = 0x00200000; - - [NativeTypeName("#define PACKAGE_FILTER_ALL_LOADED 0")] - public const int PACKAGE_FILTER_ALL_LOADED = 0; } } diff --git a/sources/Interop/Windows/Windows/um/comcat/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/comcat/CLSID.Manual.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/comcat/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/comcat/CLSID.Manual.cs index d433579fec..7908db1456 100644 --- a/sources/Interop/Windows/Windows/um/comcat/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/comcat/CLSID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class CLSID { public static ref readonly Guid CLSID_StdComponentCategoriesMgr { diff --git a/sources/Interop/Windows/Windows/um/consoleapi/ENABLE.cs b/sources/Interop/Windows/Windows/um/consoleapi/ENABLE.cs new file mode 100644 index 0000000000..02a95f3a00 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/consoleapi/ENABLE.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/consoleapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ENABLE + { + [NativeTypeName("#define ENABLE_PROCESSED_INPUT 0x0001")] + public const int ENABLE_PROCESSED_INPUT = 0x0001; + + [NativeTypeName("#define ENABLE_LINE_INPUT 0x0002")] + public const int ENABLE_LINE_INPUT = 0x0002; + + [NativeTypeName("#define ENABLE_ECHO_INPUT 0x0004")] + public const int ENABLE_ECHO_INPUT = 0x0004; + + [NativeTypeName("#define ENABLE_WINDOW_INPUT 0x0008")] + public const int ENABLE_WINDOW_INPUT = 0x0008; + + [NativeTypeName("#define ENABLE_MOUSE_INPUT 0x0010")] + public const int ENABLE_MOUSE_INPUT = 0x0010; + + [NativeTypeName("#define ENABLE_INSERT_MODE 0x0020")] + public const int ENABLE_INSERT_MODE = 0x0020; + + [NativeTypeName("#define ENABLE_QUICK_EDIT_MODE 0x0040")] + public const int ENABLE_QUICK_EDIT_MODE = 0x0040; + + [NativeTypeName("#define ENABLE_EXTENDED_FLAGS 0x0080")] + public const int ENABLE_EXTENDED_FLAGS = 0x0080; + + [NativeTypeName("#define ENABLE_AUTO_POSITION 0x0100")] + public const int ENABLE_AUTO_POSITION = 0x0100; + + [NativeTypeName("#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200")] + public const int ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200; + + [NativeTypeName("#define ENABLE_PROCESSED_OUTPUT 0x0001")] + public const int ENABLE_PROCESSED_OUTPUT = 0x0001; + + [NativeTypeName("#define ENABLE_WRAP_AT_EOL_OUTPUT 0x0002")] + public const int ENABLE_WRAP_AT_EOL_OUTPUT = 0x0002; + + [NativeTypeName("#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004")] + public const int ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004; + + [NativeTypeName("#define ENABLE_LVB_GRID_WORLDWIDE 0x0010")] + public const int ENABLE_LVB_GRID_WORLDWIDE = 0x0010; + } +} diff --git a/sources/Interop/Windows/Windows/um/consoleapi/Windows.cs b/sources/Interop/Windows/Windows/um/consoleapi/Windows.cs index 1a0a203723..99734a3d5e 100644 --- a/sources/Interop/Windows/Windows/um/consoleapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/consoleapi/Windows.cs @@ -72,51 +72,9 @@ public static unsafe partial class Windows [NativeTypeName("#define ATTACH_PARENT_PROCESS ((DWORD)-1)")] public const uint ATTACH_PARENT_PROCESS = unchecked((uint)(-1)); - [NativeTypeName("#define ENABLE_PROCESSED_INPUT 0x0001")] - public const int ENABLE_PROCESSED_INPUT = 0x0001; - - [NativeTypeName("#define ENABLE_LINE_INPUT 0x0002")] - public const int ENABLE_LINE_INPUT = 0x0002; - - [NativeTypeName("#define ENABLE_ECHO_INPUT 0x0004")] - public const int ENABLE_ECHO_INPUT = 0x0004; - - [NativeTypeName("#define ENABLE_WINDOW_INPUT 0x0008")] - public const int ENABLE_WINDOW_INPUT = 0x0008; - - [NativeTypeName("#define ENABLE_MOUSE_INPUT 0x0010")] - public const int ENABLE_MOUSE_INPUT = 0x0010; - - [NativeTypeName("#define ENABLE_INSERT_MODE 0x0020")] - public const int ENABLE_INSERT_MODE = 0x0020; - - [NativeTypeName("#define ENABLE_QUICK_EDIT_MODE 0x0040")] - public const int ENABLE_QUICK_EDIT_MODE = 0x0040; - - [NativeTypeName("#define ENABLE_EXTENDED_FLAGS 0x0080")] - public const int ENABLE_EXTENDED_FLAGS = 0x0080; - - [NativeTypeName("#define ENABLE_AUTO_POSITION 0x0100")] - public const int ENABLE_AUTO_POSITION = 0x0100; - - [NativeTypeName("#define ENABLE_VIRTUAL_TERMINAL_INPUT 0x0200")] - public const int ENABLE_VIRTUAL_TERMINAL_INPUT = 0x0200; - - [NativeTypeName("#define ENABLE_PROCESSED_OUTPUT 0x0001")] - public const int ENABLE_PROCESSED_OUTPUT = 0x0001; - - [NativeTypeName("#define ENABLE_WRAP_AT_EOL_OUTPUT 0x0002")] - public const int ENABLE_WRAP_AT_EOL_OUTPUT = 0x0002; - - [NativeTypeName("#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004")] - public const int ENABLE_VIRTUAL_TERMINAL_PROCESSING = 0x0004; - [NativeTypeName("#define DISABLE_NEWLINE_AUTO_RETURN 0x0008")] public const int DISABLE_NEWLINE_AUTO_RETURN = 0x0008; - [NativeTypeName("#define ENABLE_LVB_GRID_WORLDWIDE 0x0010")] - public const int ENABLE_LVB_GRID_WORLDWIDE = 0x0010; - [NativeTypeName("#define ReadConsoleInput ReadConsoleInputW")] public static delegate* ReadConsoleInput => &ReadConsoleInputW; diff --git a/sources/Interop/Windows/Windows/um/consoleapi3/CONSOLE.cs b/sources/Interop/Windows/Windows/um/consoleapi3/CONSOLE.cs new file mode 100644 index 0000000000..29b403e10d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/consoleapi3/CONSOLE.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/consoleapi3.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CONSOLE + { + [NativeTypeName("#define CONSOLE_NO_SELECTION 0x0000")] + public const int CONSOLE_NO_SELECTION = 0x0000; + + [NativeTypeName("#define CONSOLE_SELECTION_IN_PROGRESS 0x0001")] + public const int CONSOLE_SELECTION_IN_PROGRESS = 0x0001; + + [NativeTypeName("#define CONSOLE_SELECTION_NOT_EMPTY 0x0002")] + public const int CONSOLE_SELECTION_NOT_EMPTY = 0x0002; + + [NativeTypeName("#define CONSOLE_MOUSE_SELECTION 0x0004")] + public const int CONSOLE_MOUSE_SELECTION = 0x0004; + + [NativeTypeName("#define CONSOLE_MOUSE_DOWN 0x0008")] + public const int CONSOLE_MOUSE_DOWN = 0x0008; + + [NativeTypeName("#define CONSOLE_FULLSCREEN 1")] + public const int CONSOLE_FULLSCREEN = 1; + + [NativeTypeName("#define CONSOLE_FULLSCREEN_HARDWARE 2")] + public const int CONSOLE_FULLSCREEN_HARDWARE = 2; + + [NativeTypeName("#define CONSOLE_FULLSCREEN_MODE 1")] + public const int CONSOLE_FULLSCREEN_MODE = 1; + + [NativeTypeName("#define CONSOLE_WINDOWED_MODE 2")] + public const int CONSOLE_WINDOWED_MODE = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/consoleapi3/Windows.cs b/sources/Interop/Windows/Windows/um/consoleapi3/Windows.cs index 3a8a73d981..8d91025f1d 100644 --- a/sources/Interop/Windows/Windows/um/consoleapi3/Windows.cs +++ b/sources/Interop/Windows/Windows/um/consoleapi3/Windows.cs @@ -120,36 +120,9 @@ public static unsafe partial class Windows [return: NativeTypeName("DWORD")] public static extern uint GetConsoleProcessList([NativeTypeName("LPDWORD")] uint* lpdwProcessList, [NativeTypeName("DWORD")] uint dwProcessCount); - [NativeTypeName("#define CONSOLE_NO_SELECTION 0x0000")] - public const int CONSOLE_NO_SELECTION = 0x0000; - - [NativeTypeName("#define CONSOLE_SELECTION_IN_PROGRESS 0x0001")] - public const int CONSOLE_SELECTION_IN_PROGRESS = 0x0001; - - [NativeTypeName("#define CONSOLE_SELECTION_NOT_EMPTY 0x0002")] - public const int CONSOLE_SELECTION_NOT_EMPTY = 0x0002; - - [NativeTypeName("#define CONSOLE_MOUSE_SELECTION 0x0004")] - public const int CONSOLE_MOUSE_SELECTION = 0x0004; - - [NativeTypeName("#define CONSOLE_MOUSE_DOWN 0x0008")] - public const int CONSOLE_MOUSE_DOWN = 0x0008; - [NativeTypeName("#define HISTORY_NO_DUP_FLAG 0x1")] public const int HISTORY_NO_DUP_FLAG = 0x1; - [NativeTypeName("#define CONSOLE_FULLSCREEN 1")] - public const int CONSOLE_FULLSCREEN = 1; - - [NativeTypeName("#define CONSOLE_FULLSCREEN_HARDWARE 2")] - public const int CONSOLE_FULLSCREEN_HARDWARE = 2; - - [NativeTypeName("#define CONSOLE_FULLSCREEN_MODE 1")] - public const int CONSOLE_FULLSCREEN_MODE = 1; - - [NativeTypeName("#define CONSOLE_WINDOWED_MODE 2")] - public const int CONSOLE_WINDOWED_MODE = 2; - [NativeTypeName("#define AddConsoleAlias AddConsoleAliasW")] public static delegate* AddConsoleAlias => &AddConsoleAliasW; diff --git a/sources/Interop/Windows/Windows/um/control/Windows.cs b/sources/Interop/Windows/Windows/um/control/LIBID.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/control/Windows.cs rename to sources/Interop/Windows/Windows/um/control/LIBID.cs index 8a3caa9f94..46e58f62cb 100644 --- a/sources/Interop/Windows/Windows/um/control/Windows.cs +++ b/sources/Interop/Windows/Windows/um/control/LIBID.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class LIBID { [NativeTypeName("const GUID")] public static ref readonly Guid LIBID_QuartzTypeLib diff --git a/sources/Interop/Windows/Windows/um/ctffunc/GUID.cs b/sources/Interop/Windows/Windows/um/ctffunc/GUID.cs new file mode 100644 index 0000000000..74a7c31b38 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/ctffunc/GUID.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/ctffunc.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_INTEGRATIONSTYLE_SEARCHBOX + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0xBD, 0xD1, 0xE6, + 0xF7, 0x82, + 0x03, 0x49, + 0xAE, + 0x21, + 0x1A, + 0x63, + 0x97, + 0xCD, + 0xE2, + 0xEB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/ctffunc/Windows.cs b/sources/Interop/Windows/Windows/um/ctffunc/Windows.cs index e1bf3f6d7d..ef02b36cc8 100644 --- a/sources/Interop/Windows/Windows/um/ctffunc/Windows.cs +++ b/sources/Interop/Windows/Windows/um/ctffunc/Windows.cs @@ -3,40 +3,10 @@ // Ported from um/ctffunc.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_INTEGRATIONSTYLE_SEARCHBOX - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x11, 0xBD, 0xD1, 0xE6, - 0xF7, 0x82, - 0x03, 0x49, - 0xAE, - 0x21, - 0x1A, - 0x63, - 0x97, - 0xCD, - 0xE2, - 0xEB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("#define TKBL_UNDEFINED 0")] public const int TKBL_UNDEFINED = 0; diff --git a/sources/Interop/Windows/Windows/um/devicetopology/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/devicetopology/CLSID.Manual.cs similarity index 60% rename from sources/Interop/Windows/Windows/um/devicetopology/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/devicetopology/CLSID.Manual.cs index cbc4c6f994..f4a88673df 100644 --- a/sources/Interop/Windows/Windows/um/devicetopology/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/devicetopology/CLSID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class CLSID { public static ref readonly Guid CLSID_DeviceTopology { @@ -33,28 +33,5 @@ public static ref readonly Guid CLSID_DeviceTopology return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); } } - - public static ref readonly Guid LIBID_DevTopologyLib - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1D, 0xA0, 0xB9, 0x51, - 0x81, 0x81, - 0x63, 0x43, - 0xB5, - 0x9C, - 0xE6, - 0x78, - 0xF4, - 0x76, - 0xDD, - 0x0E - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } } } diff --git a/sources/Interop/Windows/Windows/um/devicetopology/LIBID.Manual.cs b/sources/Interop/Windows/Windows/um/devicetopology/LIBID.Manual.cs new file mode 100644 index 0000000000..8c46cc7530 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/devicetopology/LIBID.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/devicetopology.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class LIBID + { + public static ref readonly Guid LIBID_DevTopologyLib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1D, 0xA0, 0xB9, 0x51, + 0x81, 0x81, + 0x63, 0x43, + 0xB5, + 0x9C, + 0xE6, + 0x78, + 0xF4, + 0x76, + 0xDD, + 0x0E + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/dvdmedia/AM.cs b/sources/Interop/Windows/Windows/um/dvdmedia/AM.cs new file mode 100644 index 0000000000..56e9edaa9e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/dvdmedia/AM.cs @@ -0,0 +1,118 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dvdmedia.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AM + { + [NativeTypeName("#define AM_AC3_ALTERNATE_AUDIO_1 1")] + public const int AM_AC3_ALTERNATE_AUDIO_1 = 1; + + [NativeTypeName("#define AM_AC3_ALTERNATE_AUDIO_2 2")] + public const int AM_AC3_ALTERNATE_AUDIO_2 = 2; + + [NativeTypeName("#define AM_AC3_ALTERNATE_AUDIO_BOTH 3")] + public const int AM_AC3_ALTERNATE_AUDIO_BOTH = 3; + + [NativeTypeName("#define AM_AC3_SERVICE_MAIN_AUDIO 0")] + public const int AM_AC3_SERVICE_MAIN_AUDIO = 0; + + [NativeTypeName("#define AM_AC3_SERVICE_NO_DIALOG 1")] + public const int AM_AC3_SERVICE_NO_DIALOG = 1; + + [NativeTypeName("#define AM_AC3_SERVICE_VISUALLY_IMPAIRED 2")] + public const int AM_AC3_SERVICE_VISUALLY_IMPAIRED = 2; + + [NativeTypeName("#define AM_AC3_SERVICE_HEARING_IMPAIRED 3")] + public const int AM_AC3_SERVICE_HEARING_IMPAIRED = 3; + + [NativeTypeName("#define AM_AC3_SERVICE_DIALOG_ONLY 4")] + public const int AM_AC3_SERVICE_DIALOG_ONLY = 4; + + [NativeTypeName("#define AM_AC3_SERVICE_COMMENTARY 5")] + public const int AM_AC3_SERVICE_COMMENTARY = 5; + + [NativeTypeName("#define AM_AC3_SERVICE_EMERGENCY_FLASH 6")] + public const int AM_AC3_SERVICE_EMERGENCY_FLASH = 6; + + [NativeTypeName("#define AM_AC3_SERVICE_VOICE_OVER 7")] + public const int AM_AC3_SERVICE_VOICE_OVER = 7; + + [NativeTypeName("#define AM_UseNewCSSKey 0x1")] + public const int AM_UseNewCSSKey = 0x1; + + [NativeTypeName("#define AM_ReverseBlockStart 0x2")] + public const int AM_ReverseBlockStart = 0x2; + + [NativeTypeName("#define AM_ReverseBlockEnd 0x4")] + public const int AM_ReverseBlockEnd = 0x4; + + [NativeTypeName("#define AM_DVD_CGMS_RESERVED_MASK 0x00000078")] + public const int AM_DVD_CGMS_RESERVED_MASK = 0x00000078; + + [NativeTypeName("#define AM_DVD_CGMS_COPY_PROTECT_MASK 0x00000018")] + public const int AM_DVD_CGMS_COPY_PROTECT_MASK = 0x00000018; + + [NativeTypeName("#define AM_DVD_CGMS_COPY_PERMITTED 0x00000000")] + public const int AM_DVD_CGMS_COPY_PERMITTED = 0x00000000; + + [NativeTypeName("#define AM_DVD_CGMS_COPY_ONCE 0x00000010")] + public const int AM_DVD_CGMS_COPY_ONCE = 0x00000010; + + [NativeTypeName("#define AM_DVD_CGMS_NO_COPY 0x00000018")] + public const int AM_DVD_CGMS_NO_COPY = 0x00000018; + + [NativeTypeName("#define AM_DVD_COPYRIGHT_MASK 0x00000040")] + public const int AM_DVD_COPYRIGHT_MASK = 0x00000040; + + [NativeTypeName("#define AM_DVD_NOT_COPYRIGHTED 0x00000000")] + public const int AM_DVD_NOT_COPYRIGHTED = 0x00000000; + + [NativeTypeName("#define AM_DVD_COPYRIGHTED 0x00000040")] + public const int AM_DVD_COPYRIGHTED = 0x00000040; + + [NativeTypeName("#define AM_DVD_SECTOR_PROTECT_MASK 0x00000020")] + public const int AM_DVD_SECTOR_PROTECT_MASK = 0x00000020; + + [NativeTypeName("#define AM_DVD_SECTOR_NOT_PROTECTED 0x00000000")] + public const int AM_DVD_SECTOR_NOT_PROTECTED = 0x00000000; + + [NativeTypeName("#define AM_DVD_SECTOR_PROTECTED 0x00000020")] + public const int AM_DVD_SECTOR_PROTECTED = 0x00000020; + + [NativeTypeName("#define AM_VIDEO_FLAG_FIELD_MASK 0x0003L")] + public const int AM_VIDEO_FLAG_FIELD_MASK = 0x0003; + + [NativeTypeName("#define AM_VIDEO_FLAG_INTERLEAVED_FRAME 0x0000L")] + public const int AM_VIDEO_FLAG_INTERLEAVED_FRAME = 0x0000; + + [NativeTypeName("#define AM_VIDEO_FLAG_FIELD1 0x0001L")] + public const int AM_VIDEO_FLAG_FIELD1 = 0x0001; + + [NativeTypeName("#define AM_VIDEO_FLAG_FIELD2 0x0002L")] + public const int AM_VIDEO_FLAG_FIELD2 = 0x0002; + + [NativeTypeName("#define AM_VIDEO_FLAG_FIELD1FIRST 0x0004L")] + public const int AM_VIDEO_FLAG_FIELD1FIRST = 0x0004; + + [NativeTypeName("#define AM_VIDEO_FLAG_WEAVE 0x0008L")] + public const int AM_VIDEO_FLAG_WEAVE = 0x0008; + + [NativeTypeName("#define AM_VIDEO_FLAG_IPB_MASK 0x0030L")] + public const int AM_VIDEO_FLAG_IPB_MASK = 0x0030; + + [NativeTypeName("#define AM_VIDEO_FLAG_I_SAMPLE 0x0000L")] + public const int AM_VIDEO_FLAG_I_SAMPLE = 0x0000; + + [NativeTypeName("#define AM_VIDEO_FLAG_P_SAMPLE 0x0010L")] + public const int AM_VIDEO_FLAG_P_SAMPLE = 0x0010; + + [NativeTypeName("#define AM_VIDEO_FLAG_B_SAMPLE 0x0020L")] + public const int AM_VIDEO_FLAG_B_SAMPLE = 0x0020; + + [NativeTypeName("#define AM_VIDEO_FLAG_REPEAT_FIELD 0x0040L")] + public const int AM_VIDEO_FLAG_REPEAT_FIELD = 0x0040; + } +} diff --git a/sources/Interop/Windows/Windows/um/dvdmedia/AMINTERLACE.cs b/sources/Interop/Windows/Windows/um/dvdmedia/AMINTERLACE.cs new file mode 100644 index 0000000000..412eadbca2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/dvdmedia/AMINTERLACE.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dvdmedia.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AMINTERLACE + { + [NativeTypeName("#define AMINTERLACE_IsInterlaced 0x00000001")] + public const int AMINTERLACE_IsInterlaced = 0x00000001; + + [NativeTypeName("#define AMINTERLACE_1FieldPerSample 0x00000002")] + public const int AMINTERLACE_1FieldPerSample = 0x00000002; + + [NativeTypeName("#define AMINTERLACE_Field1First 0x00000004")] + public const int AMINTERLACE_Field1First = 0x00000004; + + [NativeTypeName("#define AMINTERLACE_UNUSED 0x00000008")] + public const int AMINTERLACE_UNUSED = 0x00000008; + + [NativeTypeName("#define AMINTERLACE_FieldPatternMask 0x00000030")] + public const int AMINTERLACE_FieldPatternMask = 0x00000030; + + [NativeTypeName("#define AMINTERLACE_FieldPatField1Only 0x00000000")] + public const int AMINTERLACE_FieldPatField1Only = 0x00000000; + + [NativeTypeName("#define AMINTERLACE_FieldPatField2Only 0x00000010")] + public const int AMINTERLACE_FieldPatField2Only = 0x00000010; + + [NativeTypeName("#define AMINTERLACE_FieldPatBothRegular 0x00000020")] + public const int AMINTERLACE_FieldPatBothRegular = 0x00000020; + + [NativeTypeName("#define AMINTERLACE_FieldPatBothIrregular 0x00000030")] + public const int AMINTERLACE_FieldPatBothIrregular = 0x00000030; + + [NativeTypeName("#define AMINTERLACE_DisplayModeMask 0x000000c0")] + public const int AMINTERLACE_DisplayModeMask = 0x000000c0; + + [NativeTypeName("#define AMINTERLACE_DisplayModeBobOnly 0x00000000")] + public const int AMINTERLACE_DisplayModeBobOnly = 0x00000000; + + [NativeTypeName("#define AMINTERLACE_DisplayModeWeaveOnly 0x00000040")] + public const int AMINTERLACE_DisplayModeWeaveOnly = 0x00000040; + + [NativeTypeName("#define AMINTERLACE_DisplayModeBobOrWeave 0x00000080")] + public const int AMINTERLACE_DisplayModeBobOrWeave = 0x00000080; + } +} diff --git a/sources/Interop/Windows/Windows/um/dvdmedia/AMMPEG2.cs b/sources/Interop/Windows/Windows/um/dvdmedia/AMMPEG2.cs new file mode 100644 index 0000000000..26b29a41f5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/dvdmedia/AMMPEG2.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dvdmedia.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AMMPEG2 + { + [NativeTypeName("#define AMMPEG2_DoPanScan 0x00000001")] + public const int AMMPEG2_DoPanScan = 0x00000001; + + [NativeTypeName("#define AMMPEG2_DVDLine21Field1 0x00000002")] + public const int AMMPEG2_DVDLine21Field1 = 0x00000002; + + [NativeTypeName("#define AMMPEG2_DVDLine21Field2 0x00000004")] + public const int AMMPEG2_DVDLine21Field2 = 0x00000004; + + [NativeTypeName("#define AMMPEG2_SourceIsLetterboxed 0x00000008")] + public const int AMMPEG2_SourceIsLetterboxed = 0x00000008; + + [NativeTypeName("#define AMMPEG2_FilmCameraMode 0x00000010")] + public const int AMMPEG2_FilmCameraMode = 0x00000010; + + [NativeTypeName("#define AMMPEG2_LetterboxAnalogOut 0x00000020")] + public const int AMMPEG2_LetterboxAnalogOut = 0x00000020; + + [NativeTypeName("#define AMMPEG2_DSS_UserData 0x00000040")] + public const int AMMPEG2_DSS_UserData = 0x00000040; + + [NativeTypeName("#define AMMPEG2_DVB_UserData 0x00000080")] + public const int AMMPEG2_DVB_UserData = 0x00000080; + + [NativeTypeName("#define AMMPEG2_27MhzTimebase 0x00000100")] + public const int AMMPEG2_27MhzTimebase = 0x00000100; + + [NativeTypeName("#define AMMPEG2_WidescreenAnalogOut 0x00000200")] + public const int AMMPEG2_WidescreenAnalogOut = 0x00000200; + } +} diff --git a/sources/Interop/Windows/Windows/um/dvdmedia/Windows.cs b/sources/Interop/Windows/Windows/um/dvdmedia/Windows.cs index 5f637f6adc..1381c584e2 100644 --- a/sources/Interop/Windows/Windows/um/dvdmedia/Windows.cs +++ b/sources/Interop/Windows/Windows/um/dvdmedia/Windows.cs @@ -7,153 +7,9 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define AM_AC3_ALTERNATE_AUDIO_1 1")] - public const int AM_AC3_ALTERNATE_AUDIO_1 = 1; - - [NativeTypeName("#define AM_AC3_ALTERNATE_AUDIO_2 2")] - public const int AM_AC3_ALTERNATE_AUDIO_2 = 2; - - [NativeTypeName("#define AM_AC3_ALTERNATE_AUDIO_BOTH 3")] - public const int AM_AC3_ALTERNATE_AUDIO_BOTH = 3; - - [NativeTypeName("#define AM_AC3_SERVICE_MAIN_AUDIO 0")] - public const int AM_AC3_SERVICE_MAIN_AUDIO = 0; - - [NativeTypeName("#define AM_AC3_SERVICE_NO_DIALOG 1")] - public const int AM_AC3_SERVICE_NO_DIALOG = 1; - - [NativeTypeName("#define AM_AC3_SERVICE_VISUALLY_IMPAIRED 2")] - public const int AM_AC3_SERVICE_VISUALLY_IMPAIRED = 2; - - [NativeTypeName("#define AM_AC3_SERVICE_HEARING_IMPAIRED 3")] - public const int AM_AC3_SERVICE_HEARING_IMPAIRED = 3; - - [NativeTypeName("#define AM_AC3_SERVICE_DIALOG_ONLY 4")] - public const int AM_AC3_SERVICE_DIALOG_ONLY = 4; - - [NativeTypeName("#define AM_AC3_SERVICE_COMMENTARY 5")] - public const int AM_AC3_SERVICE_COMMENTARY = 5; - - [NativeTypeName("#define AM_AC3_SERVICE_EMERGENCY_FLASH 6")] - public const int AM_AC3_SERVICE_EMERGENCY_FLASH = 6; - - [NativeTypeName("#define AM_AC3_SERVICE_VOICE_OVER 7")] - public const int AM_AC3_SERVICE_VOICE_OVER = 7; - - [NativeTypeName("#define AM_UseNewCSSKey 0x1")] - public const int AM_UseNewCSSKey = 0x1; - - [NativeTypeName("#define AM_ReverseBlockStart 0x2")] - public const int AM_ReverseBlockStart = 0x2; - - [NativeTypeName("#define AM_ReverseBlockEnd 0x4")] - public const int AM_ReverseBlockEnd = 0x4; - - [NativeTypeName("#define AM_DVD_CGMS_RESERVED_MASK 0x00000078")] - public const int AM_DVD_CGMS_RESERVED_MASK = 0x00000078; - - [NativeTypeName("#define AM_DVD_CGMS_COPY_PROTECT_MASK 0x00000018")] - public const int AM_DVD_CGMS_COPY_PROTECT_MASK = 0x00000018; - - [NativeTypeName("#define AM_DVD_CGMS_COPY_PERMITTED 0x00000000")] - public const int AM_DVD_CGMS_COPY_PERMITTED = 0x00000000; - - [NativeTypeName("#define AM_DVD_CGMS_COPY_ONCE 0x00000010")] - public const int AM_DVD_CGMS_COPY_ONCE = 0x00000010; - - [NativeTypeName("#define AM_DVD_CGMS_NO_COPY 0x00000018")] - public const int AM_DVD_CGMS_NO_COPY = 0x00000018; - - [NativeTypeName("#define AM_DVD_COPYRIGHT_MASK 0x00000040")] - public const int AM_DVD_COPYRIGHT_MASK = 0x00000040; - - [NativeTypeName("#define AM_DVD_NOT_COPYRIGHTED 0x00000000")] - public const int AM_DVD_NOT_COPYRIGHTED = 0x00000000; - - [NativeTypeName("#define AM_DVD_COPYRIGHTED 0x00000040")] - public const int AM_DVD_COPYRIGHTED = 0x00000040; - - [NativeTypeName("#define AM_DVD_SECTOR_PROTECT_MASK 0x00000020")] - public const int AM_DVD_SECTOR_PROTECT_MASK = 0x00000020; - - [NativeTypeName("#define AM_DVD_SECTOR_NOT_PROTECTED 0x00000000")] - public const int AM_DVD_SECTOR_NOT_PROTECTED = 0x00000000; - - [NativeTypeName("#define AM_DVD_SECTOR_PROTECTED 0x00000020")] - public const int AM_DVD_SECTOR_PROTECTED = 0x00000020; - - [NativeTypeName("#define AMINTERLACE_IsInterlaced 0x00000001")] - public const int AMINTERLACE_IsInterlaced = 0x00000001; - - [NativeTypeName("#define AMINTERLACE_1FieldPerSample 0x00000002")] - public const int AMINTERLACE_1FieldPerSample = 0x00000002; - - [NativeTypeName("#define AMINTERLACE_Field1First 0x00000004")] - public const int AMINTERLACE_Field1First = 0x00000004; - - [NativeTypeName("#define AMINTERLACE_UNUSED 0x00000008")] - public const int AMINTERLACE_UNUSED = 0x00000008; - - [NativeTypeName("#define AMINTERLACE_FieldPatternMask 0x00000030")] - public const int AMINTERLACE_FieldPatternMask = 0x00000030; - - [NativeTypeName("#define AMINTERLACE_FieldPatField1Only 0x00000000")] - public const int AMINTERLACE_FieldPatField1Only = 0x00000000; - - [NativeTypeName("#define AMINTERLACE_FieldPatField2Only 0x00000010")] - public const int AMINTERLACE_FieldPatField2Only = 0x00000010; - - [NativeTypeName("#define AMINTERLACE_FieldPatBothRegular 0x00000020")] - public const int AMINTERLACE_FieldPatBothRegular = 0x00000020; - - [NativeTypeName("#define AMINTERLACE_FieldPatBothIrregular 0x00000030")] - public const int AMINTERLACE_FieldPatBothIrregular = 0x00000030; - - [NativeTypeName("#define AMINTERLACE_DisplayModeMask 0x000000c0")] - public const int AMINTERLACE_DisplayModeMask = 0x000000c0; - - [NativeTypeName("#define AMINTERLACE_DisplayModeBobOnly 0x00000000")] - public const int AMINTERLACE_DisplayModeBobOnly = 0x00000000; - - [NativeTypeName("#define AMINTERLACE_DisplayModeWeaveOnly 0x00000040")] - public const int AMINTERLACE_DisplayModeWeaveOnly = 0x00000040; - - [NativeTypeName("#define AMINTERLACE_DisplayModeBobOrWeave 0x00000080")] - public const int AMINTERLACE_DisplayModeBobOrWeave = 0x00000080; - [NativeTypeName("#define AMCOPYPROTECT_RestrictDuplication 0x00000001")] public const int AMCOPYPROTECT_RestrictDuplication = 0x00000001; - [NativeTypeName("#define AMMPEG2_DoPanScan 0x00000001")] - public const int AMMPEG2_DoPanScan = 0x00000001; - - [NativeTypeName("#define AMMPEG2_DVDLine21Field1 0x00000002")] - public const int AMMPEG2_DVDLine21Field1 = 0x00000002; - - [NativeTypeName("#define AMMPEG2_DVDLine21Field2 0x00000004")] - public const int AMMPEG2_DVDLine21Field2 = 0x00000004; - - [NativeTypeName("#define AMMPEG2_SourceIsLetterboxed 0x00000008")] - public const int AMMPEG2_SourceIsLetterboxed = 0x00000008; - - [NativeTypeName("#define AMMPEG2_FilmCameraMode 0x00000010")] - public const int AMMPEG2_FilmCameraMode = 0x00000010; - - [NativeTypeName("#define AMMPEG2_LetterboxAnalogOut 0x00000020")] - public const int AMMPEG2_LetterboxAnalogOut = 0x00000020; - - [NativeTypeName("#define AMMPEG2_DSS_UserData 0x00000040")] - public const int AMMPEG2_DSS_UserData = 0x00000040; - - [NativeTypeName("#define AMMPEG2_DVB_UserData 0x00000080")] - public const int AMMPEG2_DVB_UserData = 0x00000080; - - [NativeTypeName("#define AMMPEG2_27MhzTimebase 0x00000100")] - public const int AMMPEG2_27MhzTimebase = 0x00000100; - - [NativeTypeName("#define AMMPEG2_WidescreenAnalogOut 0x00000200")] - public const int AMMPEG2_WidescreenAnalogOut = 0x00000200; - [NativeTypeName("#define AMCONTROL_USED 0x00000001")] public const int AMCONTROL_USED = 0x00000001; @@ -165,38 +21,5 @@ public static partial class Windows [NativeTypeName("#define AMCONTROL_COLORINFO_PRESENT 0x00000080")] public const int AMCONTROL_COLORINFO_PRESENT = 0x00000080; - - [NativeTypeName("#define AM_VIDEO_FLAG_FIELD_MASK 0x0003L")] - public const int AM_VIDEO_FLAG_FIELD_MASK = 0x0003; - - [NativeTypeName("#define AM_VIDEO_FLAG_INTERLEAVED_FRAME 0x0000L")] - public const int AM_VIDEO_FLAG_INTERLEAVED_FRAME = 0x0000; - - [NativeTypeName("#define AM_VIDEO_FLAG_FIELD1 0x0001L")] - public const int AM_VIDEO_FLAG_FIELD1 = 0x0001; - - [NativeTypeName("#define AM_VIDEO_FLAG_FIELD2 0x0002L")] - public const int AM_VIDEO_FLAG_FIELD2 = 0x0002; - - [NativeTypeName("#define AM_VIDEO_FLAG_FIELD1FIRST 0x0004L")] - public const int AM_VIDEO_FLAG_FIELD1FIRST = 0x0004; - - [NativeTypeName("#define AM_VIDEO_FLAG_WEAVE 0x0008L")] - public const int AM_VIDEO_FLAG_WEAVE = 0x0008; - - [NativeTypeName("#define AM_VIDEO_FLAG_IPB_MASK 0x0030L")] - public const int AM_VIDEO_FLAG_IPB_MASK = 0x0030; - - [NativeTypeName("#define AM_VIDEO_FLAG_I_SAMPLE 0x0000L")] - public const int AM_VIDEO_FLAG_I_SAMPLE = 0x0000; - - [NativeTypeName("#define AM_VIDEO_FLAG_P_SAMPLE 0x0010L")] - public const int AM_VIDEO_FLAG_P_SAMPLE = 0x0010; - - [NativeTypeName("#define AM_VIDEO_FLAG_B_SAMPLE 0x0020L")] - public const int AM_VIDEO_FLAG_B_SAMPLE = 0x0020; - - [NativeTypeName("#define AM_VIDEO_FLAG_REPEAT_FIELD 0x0040L")] - public const int AM_VIDEO_FLAG_REPEAT_FIELD = 0x0040; } } diff --git a/sources/Interop/Windows/Windows/um/dwmapi/DWM.cs b/sources/Interop/Windows/Windows/um/dwmapi/DWM.cs new file mode 100644 index 0000000000..8d29379076 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/dwmapi/DWM.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/dwmapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DWM + { + [NativeTypeName("#define DWM_BB_ENABLE 0x00000001")] + public const int DWM_BB_ENABLE = 0x00000001; + + [NativeTypeName("#define DWM_BB_BLURREGION 0x00000002")] + public const int DWM_BB_BLURREGION = 0x00000002; + + [NativeTypeName("#define DWM_BB_TRANSITIONONMAXIMIZED 0x00000004")] + public const int DWM_BB_TRANSITIONONMAXIMIZED = 0x00000004; + + [NativeTypeName("#define DWM_CLOAKED_APP 0x00000001")] + public const int DWM_CLOAKED_APP = 0x00000001; + + [NativeTypeName("#define DWM_CLOAKED_SHELL 0x00000002")] + public const int DWM_CLOAKED_SHELL = 0x00000002; + + [NativeTypeName("#define DWM_CLOAKED_INHERITED 0x00000004")] + public const int DWM_CLOAKED_INHERITED = 0x00000004; + + [NativeTypeName("#define DWM_TNP_RECTDESTINATION 0x00000001")] + public const int DWM_TNP_RECTDESTINATION = 0x00000001; + + [NativeTypeName("#define DWM_TNP_RECTSOURCE 0x00000002")] + public const int DWM_TNP_RECTSOURCE = 0x00000002; + + [NativeTypeName("#define DWM_TNP_OPACITY 0x00000004")] + public const int DWM_TNP_OPACITY = 0x00000004; + + [NativeTypeName("#define DWM_TNP_VISIBLE 0x00000008")] + public const int DWM_TNP_VISIBLE = 0x00000008; + + [NativeTypeName("#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010")] + public const int DWM_TNP_SOURCECLIENTAREAONLY = 0x00000010; + + [NativeTypeName("#define DWM_FRAME_DURATION_DEFAULT -1")] + public const int DWM_FRAME_DURATION_DEFAULT = -1; + + [NativeTypeName("#define DWM_EC_DISABLECOMPOSITION 0")] + public const int DWM_EC_DISABLECOMPOSITION = 0; + + [NativeTypeName("#define DWM_EC_ENABLECOMPOSITION 1")] + public const int DWM_EC_ENABLECOMPOSITION = 1; + + [NativeTypeName("#define DWM_SIT_DISPLAYFRAME 0x00000001")] + public const int DWM_SIT_DISPLAYFRAME = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/dwmapi/Windows.cs b/sources/Interop/Windows/Windows/um/dwmapi/Windows.cs index dfb1a1e7ee..ec09117e2b 100644 --- a/sources/Interop/Windows/Windows/um/dwmapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/dwmapi/Windows.cs @@ -117,50 +117,5 @@ public static unsafe partial class Windows [SupportedOSPlatform("windows10.0.17134.0")] [DllImport("dwmapi", ExactSpelling = true)] public static extern HRESULT DwmGetUnmetTabRequirements(HWND appWindow, [NativeTypeName("enum DWM_TAB_WINDOW_REQUIREMENTS *")] DWM_TAB_WINDOW_REQUIREMENTS* value); - - [NativeTypeName("#define DWM_BB_ENABLE 0x00000001")] - public const int DWM_BB_ENABLE = 0x00000001; - - [NativeTypeName("#define DWM_BB_BLURREGION 0x00000002")] - public const int DWM_BB_BLURREGION = 0x00000002; - - [NativeTypeName("#define DWM_BB_TRANSITIONONMAXIMIZED 0x00000004")] - public const int DWM_BB_TRANSITIONONMAXIMIZED = 0x00000004; - - [NativeTypeName("#define DWM_CLOAKED_APP 0x00000001")] - public const int DWM_CLOAKED_APP = 0x00000001; - - [NativeTypeName("#define DWM_CLOAKED_SHELL 0x00000002")] - public const int DWM_CLOAKED_SHELL = 0x00000002; - - [NativeTypeName("#define DWM_CLOAKED_INHERITED 0x00000004")] - public const int DWM_CLOAKED_INHERITED = 0x00000004; - - [NativeTypeName("#define DWM_TNP_RECTDESTINATION 0x00000001")] - public const int DWM_TNP_RECTDESTINATION = 0x00000001; - - [NativeTypeName("#define DWM_TNP_RECTSOURCE 0x00000002")] - public const int DWM_TNP_RECTSOURCE = 0x00000002; - - [NativeTypeName("#define DWM_TNP_OPACITY 0x00000004")] - public const int DWM_TNP_OPACITY = 0x00000004; - - [NativeTypeName("#define DWM_TNP_VISIBLE 0x00000008")] - public const int DWM_TNP_VISIBLE = 0x00000008; - - [NativeTypeName("#define DWM_TNP_SOURCECLIENTAREAONLY 0x00000010")] - public const int DWM_TNP_SOURCECLIENTAREAONLY = 0x00000010; - - [NativeTypeName("#define DWM_FRAME_DURATION_DEFAULT -1")] - public const int DWM_FRAME_DURATION_DEFAULT = -1; - - [NativeTypeName("#define DWM_EC_DISABLECOMPOSITION 0")] - public const int DWM_EC_DISABLECOMPOSITION = 0; - - [NativeTypeName("#define DWM_EC_ENABLECOMPOSITION 1")] - public const int DWM_EC_ENABLECOMPOSITION = 1; - - [NativeTypeName("#define DWM_SIT_DISPLAYFRAME 0x00000001")] - public const int DWM_SIT_DISPLAYFRAME = 0x00000001; } } diff --git a/sources/Interop/Windows/Windows/um/fileapi/CREATE.cs b/sources/Interop/Windows/Windows/um/fileapi/CREATE.cs new file mode 100644 index 0000000000..6f34017b0a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/fileapi/CREATE.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/fileapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CREATE + { + [NativeTypeName("#define CREATE_NEW 1")] + public const int CREATE_NEW = 1; + + [NativeTypeName("#define CREATE_ALWAYS 2")] + public const int CREATE_ALWAYS = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/fileapi/Windows.cs b/sources/Interop/Windows/Windows/um/fileapi/Windows.cs index 77e6ba5d19..e27022041e 100644 --- a/sources/Interop/Windows/Windows/um/fileapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/fileapi/Windows.cs @@ -326,12 +326,6 @@ public static unsafe partial class Windows [return: NativeTypeName("DWORD")] public static extern uint GetTempPath2A([NativeTypeName("DWORD")] uint BufferLength, [NativeTypeName("LPSTR")] sbyte* Buffer); - [NativeTypeName("#define CREATE_NEW 1")] - public const int CREATE_NEW = 1; - - [NativeTypeName("#define CREATE_ALWAYS 2")] - public const int CREATE_ALWAYS = 2; - [NativeTypeName("#define OPEN_EXISTING 3")] public const int OPEN_EXISTING = 3; diff --git a/sources/Interop/Windows/Windows/um/imm/CS.cs b/sources/Interop/Windows/Windows/um/imm/CS.cs new file mode 100644 index 0000000000..8d44501b4b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/CS.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CS + { + [NativeTypeName("#define CS_INSERTCHAR 0x2000")] + public const int CS_INSERTCHAR = 0x2000; + + [NativeTypeName("#define CS_NOMOVECARET 0x4000")] + public const int CS_NOMOVECARET = 0x4000; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/GCL.cs b/sources/Interop/Windows/Windows/um/imm/GCL.cs new file mode 100644 index 0000000000..9391f50fee --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/GCL.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GCL + { + [NativeTypeName("#define GCL_CONVERSION 0x0001")] + public const int GCL_CONVERSION = 0x0001; + + [NativeTypeName("#define GCL_REVERSECONVERSION 0x0002")] + public const int GCL_REVERSECONVERSION = 0x0002; + + [NativeTypeName("#define GCL_REVERSE_LENGTH 0x0003")] + public const int GCL_REVERSE_LENGTH = 0x0003; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/GCS.cs b/sources/Interop/Windows/Windows/um/imm/GCS.cs new file mode 100644 index 0000000000..28c81d2317 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/GCS.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GCS + { + [NativeTypeName("#define GCS_COMPREADSTR 0x0001")] + public const int GCS_COMPREADSTR = 0x0001; + + [NativeTypeName("#define GCS_COMPREADATTR 0x0002")] + public const int GCS_COMPREADATTR = 0x0002; + + [NativeTypeName("#define GCS_COMPREADCLAUSE 0x0004")] + public const int GCS_COMPREADCLAUSE = 0x0004; + + [NativeTypeName("#define GCS_COMPSTR 0x0008")] + public const int GCS_COMPSTR = 0x0008; + + [NativeTypeName("#define GCS_COMPATTR 0x0010")] + public const int GCS_COMPATTR = 0x0010; + + [NativeTypeName("#define GCS_COMPCLAUSE 0x0020")] + public const int GCS_COMPCLAUSE = 0x0020; + + [NativeTypeName("#define GCS_CURSORPOS 0x0080")] + public const int GCS_CURSORPOS = 0x0080; + + [NativeTypeName("#define GCS_DELTASTART 0x0100")] + public const int GCS_DELTASTART = 0x0100; + + [NativeTypeName("#define GCS_RESULTREADSTR 0x0200")] + public const int GCS_RESULTREADSTR = 0x0200; + + [NativeTypeName("#define GCS_RESULTREADCLAUSE 0x0400")] + public const int GCS_RESULTREADCLAUSE = 0x0400; + + [NativeTypeName("#define GCS_RESULTSTR 0x0800")] + public const int GCS_RESULTSTR = 0x0800; + + [NativeTypeName("#define GCS_RESULTCLAUSE 0x1000")] + public const int GCS_RESULTCLAUSE = 0x1000; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/GL.cs b/sources/Interop/Windows/Windows/um/imm/GL.cs new file mode 100644 index 0000000000..1d9308ad92 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/GL.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GL + { + [NativeTypeName("#define GL_LEVEL_NOGUIDELINE 0x00000000")] + public const int GL_LEVEL_NOGUIDELINE = 0x00000000; + + [NativeTypeName("#define GL_LEVEL_FATAL 0x00000001")] + public const int GL_LEVEL_FATAL = 0x00000001; + + [NativeTypeName("#define GL_LEVEL_ERROR 0x00000002")] + public const int GL_LEVEL_ERROR = 0x00000002; + + [NativeTypeName("#define GL_LEVEL_WARNING 0x00000003")] + public const int GL_LEVEL_WARNING = 0x00000003; + + [NativeTypeName("#define GL_LEVEL_INFORMATION 0x00000004")] + public const int GL_LEVEL_INFORMATION = 0x00000004; + + [NativeTypeName("#define GL_ID_UNKNOWN 0x00000000")] + public const int GL_ID_UNKNOWN = 0x00000000; + + [NativeTypeName("#define GL_ID_NOMODULE 0x00000001")] + public const int GL_ID_NOMODULE = 0x00000001; + + [NativeTypeName("#define GL_ID_NODICTIONARY 0x00000010")] + public const int GL_ID_NODICTIONARY = 0x00000010; + + [NativeTypeName("#define GL_ID_CANNOTSAVE 0x00000011")] + public const int GL_ID_CANNOTSAVE = 0x00000011; + + [NativeTypeName("#define GL_ID_NOCONVERT 0x00000020")] + public const int GL_ID_NOCONVERT = 0x00000020; + + [NativeTypeName("#define GL_ID_TYPINGERROR 0x00000021")] + public const int GL_ID_TYPINGERROR = 0x00000021; + + [NativeTypeName("#define GL_ID_TOOMANYSTROKE 0x00000022")] + public const int GL_ID_TOOMANYSTROKE = 0x00000022; + + [NativeTypeName("#define GL_ID_READINGCONFLICT 0x00000023")] + public const int GL_ID_READINGCONFLICT = 0x00000023; + + [NativeTypeName("#define GL_ID_INPUTREADING 0x00000024")] + public const int GL_ID_INPUTREADING = 0x00000024; + + [NativeTypeName("#define GL_ID_INPUTRADICAL 0x00000025")] + public const int GL_ID_INPUTRADICAL = 0x00000025; + + [NativeTypeName("#define GL_ID_INPUTCODE 0x00000026")] + public const int GL_ID_INPUTCODE = 0x00000026; + + [NativeTypeName("#define GL_ID_INPUTSYMBOL 0x00000027")] + public const int GL_ID_INPUTSYMBOL = 0x00000027; + + [NativeTypeName("#define GL_ID_CHOOSECANDIDATE 0x00000028")] + public const int GL_ID_CHOOSECANDIDATE = 0x00000028; + + [NativeTypeName("#define GL_ID_REVERSECONVERSION 0x00000029")] + public const int GL_ID_REVERSECONVERSION = 0x00000029; + + [NativeTypeName("#define GL_ID_PRIVATE_FIRST 0x00008000")] + public const int GL_ID_PRIVATE_FIRST = 0x00008000; + + [NativeTypeName("#define GL_ID_PRIVATE_LAST 0x0000FFFF")] + public const int GL_ID_PRIVATE_LAST = 0x0000FFFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/IMC.cs b/sources/Interop/Windows/Windows/um/imm/IMC.cs new file mode 100644 index 0000000000..0bf1b04dc2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/IMC.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IMC + { + [NativeTypeName("#define IMC_GETCANDIDATEPOS 0x0007")] + public const int IMC_GETCANDIDATEPOS = 0x0007; + + [NativeTypeName("#define IMC_SETCANDIDATEPOS 0x0008")] + public const int IMC_SETCANDIDATEPOS = 0x0008; + + [NativeTypeName("#define IMC_GETCOMPOSITIONFONT 0x0009")] + public const int IMC_GETCOMPOSITIONFONT = 0x0009; + + [NativeTypeName("#define IMC_SETCOMPOSITIONFONT 0x000A")] + public const int IMC_SETCOMPOSITIONFONT = 0x000A; + + [NativeTypeName("#define IMC_GETCOMPOSITIONWINDOW 0x000B")] + public const int IMC_GETCOMPOSITIONWINDOW = 0x000B; + + [NativeTypeName("#define IMC_SETCOMPOSITIONWINDOW 0x000C")] + public const int IMC_SETCOMPOSITIONWINDOW = 0x000C; + + [NativeTypeName("#define IMC_GETSTATUSWINDOWPOS 0x000F")] + public const int IMC_GETSTATUSWINDOWPOS = 0x000F; + + [NativeTypeName("#define IMC_SETSTATUSWINDOWPOS 0x0010")] + public const int IMC_SETSTATUSWINDOWPOS = 0x0010; + + [NativeTypeName("#define IMC_CLOSESTATUSWINDOW 0x0021")] + public const int IMC_CLOSESTATUSWINDOW = 0x0021; + + [NativeTypeName("#define IMC_OPENSTATUSWINDOW 0x0022")] + public const int IMC_OPENSTATUSWINDOW = 0x0022; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/IMN.cs b/sources/Interop/Windows/Windows/um/imm/IMN.cs new file mode 100644 index 0000000000..cd68daeac0 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/IMN.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IMN + { + [NativeTypeName("#define IMN_CLOSESTATUSWINDOW 0x0001")] + public const int IMN_CLOSESTATUSWINDOW = 0x0001; + + [NativeTypeName("#define IMN_OPENSTATUSWINDOW 0x0002")] + public const int IMN_OPENSTATUSWINDOW = 0x0002; + + [NativeTypeName("#define IMN_CHANGECANDIDATE 0x0003")] + public const int IMN_CHANGECANDIDATE = 0x0003; + + [NativeTypeName("#define IMN_CLOSECANDIDATE 0x0004")] + public const int IMN_CLOSECANDIDATE = 0x0004; + + [NativeTypeName("#define IMN_OPENCANDIDATE 0x0005")] + public const int IMN_OPENCANDIDATE = 0x0005; + + [NativeTypeName("#define IMN_SETCONVERSIONMODE 0x0006")] + public const int IMN_SETCONVERSIONMODE = 0x0006; + + [NativeTypeName("#define IMN_SETSENTENCEMODE 0x0007")] + public const int IMN_SETSENTENCEMODE = 0x0007; + + [NativeTypeName("#define IMN_SETOPENSTATUS 0x0008")] + public const int IMN_SETOPENSTATUS = 0x0008; + + [NativeTypeName("#define IMN_SETCANDIDATEPOS 0x0009")] + public const int IMN_SETCANDIDATEPOS = 0x0009; + + [NativeTypeName("#define IMN_SETCOMPOSITIONFONT 0x000A")] + public const int IMN_SETCOMPOSITIONFONT = 0x000A; + + [NativeTypeName("#define IMN_SETCOMPOSITIONWINDOW 0x000B")] + public const int IMN_SETCOMPOSITIONWINDOW = 0x000B; + + [NativeTypeName("#define IMN_SETSTATUSWINDOWPOS 0x000C")] + public const int IMN_SETSTATUSWINDOWPOS = 0x000C; + + [NativeTypeName("#define IMN_GUIDELINE 0x000D")] + public const int IMN_GUIDELINE = 0x000D; + + [NativeTypeName("#define IMN_PRIVATE 0x000E")] + public const int IMN_PRIVATE = 0x000E; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/MOD.cs b/sources/Interop/Windows/Windows/um/imm/MOD.cs new file mode 100644 index 0000000000..5e556d77b8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/MOD.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MOD + { + [NativeTypeName("#define MOD_LEFT 0x8000")] + public const int MOD_LEFT = 0x8000; + + [NativeTypeName("#define MOD_RIGHT 0x4000")] + public const int MOD_RIGHT = 0x4000; + + [NativeTypeName("#define MOD_ON_KEYUP 0x0800")] + public const int MOD_ON_KEYUP = 0x0800; + + [NativeTypeName("#define MOD_IGNORE_ALL_MODIFIER 0x0400")] + public const int MOD_IGNORE_ALL_MODIFIER = 0x0400; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/NI.cs b/sources/Interop/Windows/Windows/um/imm/NI.cs new file mode 100644 index 0000000000..6a1d4d1a0a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/NI.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NI + { + [NativeTypeName("#define NI_OPENCANDIDATE 0x0010")] + public const int NI_OPENCANDIDATE = 0x0010; + + [NativeTypeName("#define NI_CLOSECANDIDATE 0x0011")] + public const int NI_CLOSECANDIDATE = 0x0011; + + [NativeTypeName("#define NI_SELECTCANDIDATESTR 0x0012")] + public const int NI_SELECTCANDIDATESTR = 0x0012; + + [NativeTypeName("#define NI_CHANGECANDIDATELIST 0x0013")] + public const int NI_CHANGECANDIDATELIST = 0x0013; + + [NativeTypeName("#define NI_FINALIZECONVERSIONRESULT 0x0014")] + public const int NI_FINALIZECONVERSIONRESULT = 0x0014; + + [NativeTypeName("#define NI_COMPOSITIONSTR 0x0015")] + public const int NI_COMPOSITIONSTR = 0x0015; + + [NativeTypeName("#define NI_SETCANDIDATE_PAGESTART 0x0016")] + public const int NI_SETCANDIDATE_PAGESTART = 0x0016; + + [NativeTypeName("#define NI_SETCANDIDATE_PAGESIZE 0x0017")] + public const int NI_SETCANDIDATE_PAGESIZE = 0x0017; + + [NativeTypeName("#define NI_IMEMENUSELECTED 0x0018")] + public const int NI_IMEMENUSELECTED = 0x0018; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/SCS.cs b/sources/Interop/Windows/Windows/um/imm/SCS.cs new file mode 100644 index 0000000000..d834d65c50 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/SCS.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SCS + { + [NativeTypeName("#define SCS_CAP_COMPSTR 0x00000001")] + public const int SCS_CAP_COMPSTR = 0x00000001; + + [NativeTypeName("#define SCS_CAP_MAKEREAD 0x00000002")] + public const int SCS_CAP_MAKEREAD = 0x00000002; + + [NativeTypeName("#define SCS_CAP_SETRECONVERTSTRING 0x00000004")] + public const int SCS_CAP_SETRECONVERTSTRING = 0x00000004; + + [NativeTypeName("#define SCS_SETSTR (GCS_COMPREADSTR|GCS_COMPSTR)")] + public const int SCS_SETSTR = (0x0001 | 0x0008); + + [NativeTypeName("#define SCS_CHANGEATTR (GCS_COMPREADATTR|GCS_COMPATTR)")] + public const int SCS_CHANGEATTR = (0x0002 | 0x0010); + + [NativeTypeName("#define SCS_CHANGECLAUSE (GCS_COMPREADCLAUSE|GCS_COMPCLAUSE)")] + public const int SCS_CHANGECLAUSE = (0x0004 | 0x0020); + + [NativeTypeName("#define SCS_SETRECONVERTSTRING 0x00010000")] + public const int SCS_SETRECONVERTSTRING = 0x00010000; + + [NativeTypeName("#define SCS_QUERYRECONVERTSTRING 0x00020000")] + public const int SCS_QUERYRECONVERTSTRING = 0x00020000; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/UI.cs b/sources/Interop/Windows/Windows/um/imm/UI.cs new file mode 100644 index 0000000000..dcc8939b3d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/imm/UI.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/imm.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class UI + { + [NativeTypeName("#define UI_CAP_2700 0x00000001")] + public const int UI_CAP_2700 = 0x00000001; + + [NativeTypeName("#define UI_CAP_ROT90 0x00000002")] + public const int UI_CAP_ROT90 = 0x00000002; + + [NativeTypeName("#define UI_CAP_ROTANY 0x00000004")] + public const int UI_CAP_ROTANY = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/imm/Windows.cs b/sources/Interop/Windows/Windows/um/imm/Windows.cs index b1f89a5aaf..42f6a85463 100644 --- a/sources/Interop/Windows/Windows/um/imm/Windows.cs +++ b/sources/Interop/Windows/Windows/um/imm/Windows.cs @@ -277,63 +277,6 @@ public static unsafe partial class Windows [NativeTypeName("#define ImmGetImeMenuItems ImmGetImeMenuItemsW")] public static delegate* ImmGetImeMenuItems => &ImmGetImeMenuItemsW; - [NativeTypeName("#define IMC_GETCANDIDATEPOS 0x0007")] - public const int IMC_GETCANDIDATEPOS = 0x0007; - - [NativeTypeName("#define IMC_SETCANDIDATEPOS 0x0008")] - public const int IMC_SETCANDIDATEPOS = 0x0008; - - [NativeTypeName("#define IMC_GETCOMPOSITIONFONT 0x0009")] - public const int IMC_GETCOMPOSITIONFONT = 0x0009; - - [NativeTypeName("#define IMC_SETCOMPOSITIONFONT 0x000A")] - public const int IMC_SETCOMPOSITIONFONT = 0x000A; - - [NativeTypeName("#define IMC_GETCOMPOSITIONWINDOW 0x000B")] - public const int IMC_GETCOMPOSITIONWINDOW = 0x000B; - - [NativeTypeName("#define IMC_SETCOMPOSITIONWINDOW 0x000C")] - public const int IMC_SETCOMPOSITIONWINDOW = 0x000C; - - [NativeTypeName("#define IMC_GETSTATUSWINDOWPOS 0x000F")] - public const int IMC_GETSTATUSWINDOWPOS = 0x000F; - - [NativeTypeName("#define IMC_SETSTATUSWINDOWPOS 0x0010")] - public const int IMC_SETSTATUSWINDOWPOS = 0x0010; - - [NativeTypeName("#define IMC_CLOSESTATUSWINDOW 0x0021")] - public const int IMC_CLOSESTATUSWINDOW = 0x0021; - - [NativeTypeName("#define IMC_OPENSTATUSWINDOW 0x0022")] - public const int IMC_OPENSTATUSWINDOW = 0x0022; - - [NativeTypeName("#define NI_OPENCANDIDATE 0x0010")] - public const int NI_OPENCANDIDATE = 0x0010; - - [NativeTypeName("#define NI_CLOSECANDIDATE 0x0011")] - public const int NI_CLOSECANDIDATE = 0x0011; - - [NativeTypeName("#define NI_SELECTCANDIDATESTR 0x0012")] - public const int NI_SELECTCANDIDATESTR = 0x0012; - - [NativeTypeName("#define NI_CHANGECANDIDATELIST 0x0013")] - public const int NI_CHANGECANDIDATELIST = 0x0013; - - [NativeTypeName("#define NI_FINALIZECONVERSIONRESULT 0x0014")] - public const int NI_FINALIZECONVERSIONRESULT = 0x0014; - - [NativeTypeName("#define NI_COMPOSITIONSTR 0x0015")] - public const int NI_COMPOSITIONSTR = 0x0015; - - [NativeTypeName("#define NI_SETCANDIDATE_PAGESTART 0x0016")] - public const int NI_SETCANDIDATE_PAGESTART = 0x0016; - - [NativeTypeName("#define NI_SETCANDIDATE_PAGESIZE 0x0017")] - public const int NI_SETCANDIDATE_PAGESIZE = 0x0017; - - [NativeTypeName("#define NI_IMEMENUSELECTED 0x0018")] - public const int NI_IMEMENUSELECTED = 0x0018; - [NativeTypeName("#define ISC_SHOWUICANDIDATEWINDOW 0x00000001")] public const int ISC_SHOWUICANDIDATEWINDOW = 0x00000001; @@ -361,84 +304,12 @@ public static unsafe partial class Windows [NativeTypeName("#define CPS_CANCEL 0x0004")] public const int CPS_CANCEL = 0x0004; - [NativeTypeName("#define MOD_LEFT 0x8000")] - public const int MOD_LEFT = 0x8000; - - [NativeTypeName("#define MOD_RIGHT 0x4000")] - public const int MOD_RIGHT = 0x4000; - - [NativeTypeName("#define MOD_ON_KEYUP 0x0800")] - public const int MOD_ON_KEYUP = 0x0800; - - [NativeTypeName("#define MOD_IGNORE_ALL_MODIFIER 0x0400")] - public const int MOD_IGNORE_ALL_MODIFIER = 0x0400; - - [NativeTypeName("#define GCS_COMPREADSTR 0x0001")] - public const int GCS_COMPREADSTR = 0x0001; - - [NativeTypeName("#define GCS_COMPREADATTR 0x0002")] - public const int GCS_COMPREADATTR = 0x0002; - - [NativeTypeName("#define GCS_COMPREADCLAUSE 0x0004")] - public const int GCS_COMPREADCLAUSE = 0x0004; - - [NativeTypeName("#define GCS_COMPSTR 0x0008")] - public const int GCS_COMPSTR = 0x0008; - - [NativeTypeName("#define GCS_COMPATTR 0x0010")] - public const int GCS_COMPATTR = 0x0010; - - [NativeTypeName("#define GCS_COMPCLAUSE 0x0020")] - public const int GCS_COMPCLAUSE = 0x0020; - - [NativeTypeName("#define GCS_CURSORPOS 0x0080")] - public const int GCS_CURSORPOS = 0x0080; - - [NativeTypeName("#define GCS_DELTASTART 0x0100")] - public const int GCS_DELTASTART = 0x0100; - - [NativeTypeName("#define GCS_RESULTREADSTR 0x0200")] - public const int GCS_RESULTREADSTR = 0x0200; - - [NativeTypeName("#define GCS_RESULTREADCLAUSE 0x0400")] - public const int GCS_RESULTREADCLAUSE = 0x0400; - - [NativeTypeName("#define GCS_RESULTSTR 0x0800")] - public const int GCS_RESULTSTR = 0x0800; - - [NativeTypeName("#define GCS_RESULTCLAUSE 0x1000")] - public const int GCS_RESULTCLAUSE = 0x1000; - - [NativeTypeName("#define CS_INSERTCHAR 0x2000")] - public const int CS_INSERTCHAR = 0x2000; - - [NativeTypeName("#define CS_NOMOVECARET 0x4000")] - public const int CS_NOMOVECARET = 0x4000; - [NativeTypeName("#define IMEVER_0310 0x0003000A")] public const int IMEVER_0310 = 0x0003000A; [NativeTypeName("#define IMEVER_0400 0x00040000")] public const int IMEVER_0400 = 0x00040000; - [NativeTypeName("#define UI_CAP_2700 0x00000001")] - public const int UI_CAP_2700 = 0x00000001; - - [NativeTypeName("#define UI_CAP_ROT90 0x00000002")] - public const int UI_CAP_ROT90 = 0x00000002; - - [NativeTypeName("#define UI_CAP_ROTANY 0x00000004")] - public const int UI_CAP_ROTANY = 0x00000004; - - [NativeTypeName("#define SCS_CAP_COMPSTR 0x00000001")] - public const int SCS_CAP_COMPSTR = 0x00000001; - - [NativeTypeName("#define SCS_CAP_MAKEREAD 0x00000002")] - public const int SCS_CAP_MAKEREAD = 0x00000002; - - [NativeTypeName("#define SCS_CAP_SETRECONVERTSTRING 0x00000004")] - public const int SCS_CAP_SETRECONVERTSTRING = 0x00000004; - [NativeTypeName("#define SELECT_CAP_CONVERSION 0x00000001")] public const int SELECT_CAP_CONVERSION = 0x00000001; @@ -457,69 +328,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GGL_PRIVATE 0x00000004")] public const int GGL_PRIVATE = 0x00000004; - [NativeTypeName("#define GL_LEVEL_NOGUIDELINE 0x00000000")] - public const int GL_LEVEL_NOGUIDELINE = 0x00000000; - - [NativeTypeName("#define GL_LEVEL_FATAL 0x00000001")] - public const int GL_LEVEL_FATAL = 0x00000001; - - [NativeTypeName("#define GL_LEVEL_ERROR 0x00000002")] - public const int GL_LEVEL_ERROR = 0x00000002; - - [NativeTypeName("#define GL_LEVEL_WARNING 0x00000003")] - public const int GL_LEVEL_WARNING = 0x00000003; - - [NativeTypeName("#define GL_LEVEL_INFORMATION 0x00000004")] - public const int GL_LEVEL_INFORMATION = 0x00000004; - - [NativeTypeName("#define GL_ID_UNKNOWN 0x00000000")] - public const int GL_ID_UNKNOWN = 0x00000000; - - [NativeTypeName("#define GL_ID_NOMODULE 0x00000001")] - public const int GL_ID_NOMODULE = 0x00000001; - - [NativeTypeName("#define GL_ID_NODICTIONARY 0x00000010")] - public const int GL_ID_NODICTIONARY = 0x00000010; - - [NativeTypeName("#define GL_ID_CANNOTSAVE 0x00000011")] - public const int GL_ID_CANNOTSAVE = 0x00000011; - - [NativeTypeName("#define GL_ID_NOCONVERT 0x00000020")] - public const int GL_ID_NOCONVERT = 0x00000020; - - [NativeTypeName("#define GL_ID_TYPINGERROR 0x00000021")] - public const int GL_ID_TYPINGERROR = 0x00000021; - - [NativeTypeName("#define GL_ID_TOOMANYSTROKE 0x00000022")] - public const int GL_ID_TOOMANYSTROKE = 0x00000022; - - [NativeTypeName("#define GL_ID_READINGCONFLICT 0x00000023")] - public const int GL_ID_READINGCONFLICT = 0x00000023; - - [NativeTypeName("#define GL_ID_INPUTREADING 0x00000024")] - public const int GL_ID_INPUTREADING = 0x00000024; - - [NativeTypeName("#define GL_ID_INPUTRADICAL 0x00000025")] - public const int GL_ID_INPUTRADICAL = 0x00000025; - - [NativeTypeName("#define GL_ID_INPUTCODE 0x00000026")] - public const int GL_ID_INPUTCODE = 0x00000026; - - [NativeTypeName("#define GL_ID_INPUTSYMBOL 0x00000027")] - public const int GL_ID_INPUTSYMBOL = 0x00000027; - - [NativeTypeName("#define GL_ID_CHOOSECANDIDATE 0x00000028")] - public const int GL_ID_CHOOSECANDIDATE = 0x00000028; - - [NativeTypeName("#define GL_ID_REVERSECONVERSION 0x00000029")] - public const int GL_ID_REVERSECONVERSION = 0x00000029; - - [NativeTypeName("#define GL_ID_PRIVATE_FIRST 0x00008000")] - public const int GL_ID_PRIVATE_FIRST = 0x00008000; - - [NativeTypeName("#define GL_ID_PRIVATE_LAST 0x0000FFFF")] - public const int GL_ID_PRIVATE_LAST = 0x0000FFFF; - [NativeTypeName("#define IGP_GETIMEVERSION (DWORD)(-4)")] public const uint IGP_GETIMEVERSION = unchecked((uint)(-4)); @@ -541,21 +349,6 @@ public static unsafe partial class Windows [NativeTypeName("#define IGP_SELECT 0x00000018")] public const int IGP_SELECT = 0x00000018; - [NativeTypeName("#define SCS_SETSTR (GCS_COMPREADSTR|GCS_COMPSTR)")] - public const int SCS_SETSTR = (0x0001 | 0x0008); - - [NativeTypeName("#define SCS_CHANGEATTR (GCS_COMPREADATTR|GCS_COMPATTR)")] - public const int SCS_CHANGEATTR = (0x0002 | 0x0010); - - [NativeTypeName("#define SCS_CHANGECLAUSE (GCS_COMPREADCLAUSE|GCS_COMPCLAUSE)")] - public const int SCS_CHANGECLAUSE = (0x0004 | 0x0020); - - [NativeTypeName("#define SCS_SETRECONVERTSTRING 0x00010000")] - public const int SCS_SETRECONVERTSTRING = 0x00010000; - - [NativeTypeName("#define SCS_QUERYRECONVERTSTRING 0x00020000")] - public const int SCS_QUERYRECONVERTSTRING = 0x00020000; - [NativeTypeName("#define ATTR_INPUT 0x00")] public const int ATTR_INPUT = 0x00; @@ -592,57 +385,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CFS_EXCLUDE 0x0080")] public const int CFS_EXCLUDE = 0x0080; - [NativeTypeName("#define GCL_CONVERSION 0x0001")] - public const int GCL_CONVERSION = 0x0001; - - [NativeTypeName("#define GCL_REVERSECONVERSION 0x0002")] - public const int GCL_REVERSECONVERSION = 0x0002; - - [NativeTypeName("#define GCL_REVERSE_LENGTH 0x0003")] - public const int GCL_REVERSE_LENGTH = 0x0003; - - [NativeTypeName("#define IMN_CLOSESTATUSWINDOW 0x0001")] - public const int IMN_CLOSESTATUSWINDOW = 0x0001; - - [NativeTypeName("#define IMN_OPENSTATUSWINDOW 0x0002")] - public const int IMN_OPENSTATUSWINDOW = 0x0002; - - [NativeTypeName("#define IMN_CHANGECANDIDATE 0x0003")] - public const int IMN_CHANGECANDIDATE = 0x0003; - - [NativeTypeName("#define IMN_CLOSECANDIDATE 0x0004")] - public const int IMN_CLOSECANDIDATE = 0x0004; - - [NativeTypeName("#define IMN_OPENCANDIDATE 0x0005")] - public const int IMN_OPENCANDIDATE = 0x0005; - - [NativeTypeName("#define IMN_SETCONVERSIONMODE 0x0006")] - public const int IMN_SETCONVERSIONMODE = 0x0006; - - [NativeTypeName("#define IMN_SETSENTENCEMODE 0x0007")] - public const int IMN_SETSENTENCEMODE = 0x0007; - - [NativeTypeName("#define IMN_SETOPENSTATUS 0x0008")] - public const int IMN_SETOPENSTATUS = 0x0008; - - [NativeTypeName("#define IMN_SETCANDIDATEPOS 0x0009")] - public const int IMN_SETCANDIDATEPOS = 0x0009; - - [NativeTypeName("#define IMN_SETCOMPOSITIONFONT 0x000A")] - public const int IMN_SETCOMPOSITIONFONT = 0x000A; - - [NativeTypeName("#define IMN_SETCOMPOSITIONWINDOW 0x000B")] - public const int IMN_SETCOMPOSITIONWINDOW = 0x000B; - - [NativeTypeName("#define IMN_SETSTATUSWINDOWPOS 0x000C")] - public const int IMN_SETSTATUSWINDOWPOS = 0x000C; - - [NativeTypeName("#define IMN_GUIDELINE 0x000D")] - public const int IMN_GUIDELINE = 0x000D; - - [NativeTypeName("#define IMN_PRIVATE 0x000E")] - public const int IMN_PRIVATE = 0x000E; - [NativeTypeName("#define IMR_COMPOSITIONWINDOW 0x0001")] public const int IMR_COMPOSITIONWINDOW = 0x0001; diff --git a/sources/Interop/Windows/Windows/um/immdev/GCS.cs b/sources/Interop/Windows/Windows/um/immdev/GCS.cs new file mode 100644 index 0000000000..b3ad093e57 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/immdev/GCS.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/immdev.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GCS + { + [NativeTypeName("#define GCS_COMP (GCS_COMPSTR|GCS_COMPATTR|GCS_COMPCLAUSE)")] + public const int GCS_COMP = (0x0008 | 0x0010 | 0x0020); + + [NativeTypeName("#define GCS_COMPREAD (GCS_COMPREADSTR|GCS_COMPREADATTR |GCS_COMPREADCLAUSE)")] + public const int GCS_COMPREAD = (0x0001 | 0x0002 | 0x0004); + + [NativeTypeName("#define GCS_RESULT (GCS_RESULTSTR|GCS_RESULTCLAUSE)")] + public const int GCS_RESULT = (0x0800 | 0x1000); + + [NativeTypeName("#define GCS_RESULTREAD (GCS_RESULTREADSTR|GCS_RESULTREADCLAUSE)")] + public const int GCS_RESULTREAD = (0x0200 | 0x0400); + } +} diff --git a/sources/Interop/Windows/Windows/um/immdev/IMC.cs b/sources/Interop/Windows/Windows/um/immdev/IMC.cs new file mode 100644 index 0000000000..4cfd55b2a9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/immdev/IMC.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/immdev.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IMC + { + [NativeTypeName("#define IMC_SETCONVERSIONMODE 0x0002")] + public const int IMC_SETCONVERSIONMODE = 0x0002; + + [NativeTypeName("#define IMC_SETSENTENCEMODE 0x0004")] + public const int IMC_SETSENTENCEMODE = 0x0004; + + [NativeTypeName("#define IMC_SETOPENSTATUS 0x0006")] + public const int IMC_SETOPENSTATUS = 0x0006; + + [NativeTypeName("#define IMC_GETSOFTKBDFONT 0x0011")] + public const int IMC_GETSOFTKBDFONT = 0x0011; + + [NativeTypeName("#define IMC_SETSOFTKBDFONT 0x0012")] + public const int IMC_SETSOFTKBDFONT = 0x0012; + + [NativeTypeName("#define IMC_GETSOFTKBDPOS 0x0013")] + public const int IMC_GETSOFTKBDPOS = 0x0013; + + [NativeTypeName("#define IMC_SETSOFTKBDPOS 0x0014")] + public const int IMC_SETSOFTKBDPOS = 0x0014; + + [NativeTypeName("#define IMC_GETSOFTKBDSUBTYPE 0x0015")] + public const int IMC_GETSOFTKBDSUBTYPE = 0x0015; + + [NativeTypeName("#define IMC_SETSOFTKBDSUBTYPE 0x0016")] + public const int IMC_SETSOFTKBDSUBTYPE = 0x0016; + + [NativeTypeName("#define IMC_SETSOFTKBDDATA 0x0018")] + public const int IMC_SETSOFTKBDDATA = 0x0018; + } +} diff --git a/sources/Interop/Windows/Windows/um/immdev/IMN.cs b/sources/Interop/Windows/Windows/um/immdev/IMN.cs new file mode 100644 index 0000000000..e35e0c934c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/immdev/IMN.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/immdev.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IMN + { + [NativeTypeName("#define IMN_SOFTKBDDESTROYED 0x0011")] + public const int IMN_SOFTKBDDESTROYED = 0x0011; + } +} diff --git a/sources/Interop/Windows/Windows/um/immdev/INIT.cs b/sources/Interop/Windows/Windows/um/immdev/INIT.cs new file mode 100644 index 0000000000..fcf0d48e93 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/immdev/INIT.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/immdev.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class INIT + { + [NativeTypeName("#define INIT_STATUSWNDPOS 0x00000001")] + public const int INIT_STATUSWNDPOS = 0x00000001; + + [NativeTypeName("#define INIT_CONVERSION 0x00000002")] + public const int INIT_CONVERSION = 0x00000002; + + [NativeTypeName("#define INIT_SENTENCE 0x00000004")] + public const int INIT_SENTENCE = 0x00000004; + + [NativeTypeName("#define INIT_LOGFONT 0x00000008")] + public const int INIT_LOGFONT = 0x00000008; + + [NativeTypeName("#define INIT_COMPFORM 0x00000010")] + public const int INIT_COMPFORM = 0x00000010; + + [NativeTypeName("#define INIT_SOFTKBDPOS 0x00000020")] + public const int INIT_SOFTKBDPOS = 0x00000020; + } +} diff --git a/sources/Interop/Windows/Windows/um/immdev/NI.cs b/sources/Interop/Windows/Windows/um/immdev/NI.cs new file mode 100644 index 0000000000..2046d22567 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/immdev/NI.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/immdev.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NI + { + [NativeTypeName("#define NI_CONTEXTUPDATED 0x0003")] + public const int NI_CONTEXTUPDATED = 0x0003; + } +} diff --git a/sources/Interop/Windows/Windows/um/immdev/UI.cs b/sources/Interop/Windows/Windows/um/immdev/UI.cs new file mode 100644 index 0000000000..6c483589cc --- /dev/null +++ b/sources/Interop/Windows/Windows/um/immdev/UI.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/immdev.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class UI + { + [NativeTypeName("#define UI_CAP_SOFTKBD 0x00010000")] + public const int UI_CAP_SOFTKBD = 0x00010000; + } +} diff --git a/sources/Interop/Windows/Windows/um/immdev/Windows.cs b/sources/Interop/Windows/Windows/um/immdev/Windows.cs index 3eee56efa1..85641fe44e 100644 --- a/sources/Interop/Windows/Windows/um/immdev/Windows.cs +++ b/sources/Interop/Windows/Windows/um/immdev/Windows.cs @@ -82,74 +82,5 @@ public static unsafe partial class Windows [NativeTypeName("#define IMMGWLP_PRIVATE (sizeof(LONG_PTR))")] public static uint IMMGWLP_PRIVATE => unchecked((uint)(sizeof(nint))); - - [NativeTypeName("#define IMC_SETCONVERSIONMODE 0x0002")] - public const int IMC_SETCONVERSIONMODE = 0x0002; - - [NativeTypeName("#define IMC_SETSENTENCEMODE 0x0004")] - public const int IMC_SETSENTENCEMODE = 0x0004; - - [NativeTypeName("#define IMC_SETOPENSTATUS 0x0006")] - public const int IMC_SETOPENSTATUS = 0x0006; - - [NativeTypeName("#define IMC_GETSOFTKBDFONT 0x0011")] - public const int IMC_GETSOFTKBDFONT = 0x0011; - - [NativeTypeName("#define IMC_SETSOFTKBDFONT 0x0012")] - public const int IMC_SETSOFTKBDFONT = 0x0012; - - [NativeTypeName("#define IMC_GETSOFTKBDPOS 0x0013")] - public const int IMC_GETSOFTKBDPOS = 0x0013; - - [NativeTypeName("#define IMC_SETSOFTKBDPOS 0x0014")] - public const int IMC_SETSOFTKBDPOS = 0x0014; - - [NativeTypeName("#define IMC_GETSOFTKBDSUBTYPE 0x0015")] - public const int IMC_GETSOFTKBDSUBTYPE = 0x0015; - - [NativeTypeName("#define IMC_SETSOFTKBDSUBTYPE 0x0016")] - public const int IMC_SETSOFTKBDSUBTYPE = 0x0016; - - [NativeTypeName("#define IMC_SETSOFTKBDDATA 0x0018")] - public const int IMC_SETSOFTKBDDATA = 0x0018; - - [NativeTypeName("#define NI_CONTEXTUPDATED 0x0003")] - public const int NI_CONTEXTUPDATED = 0x0003; - - [NativeTypeName("#define GCS_COMP (GCS_COMPSTR|GCS_COMPATTR|GCS_COMPCLAUSE)")] - public const int GCS_COMP = (0x0008 | 0x0010 | 0x0020); - - [NativeTypeName("#define GCS_COMPREAD (GCS_COMPREADSTR|GCS_COMPREADATTR |GCS_COMPREADCLAUSE)")] - public const int GCS_COMPREAD = (0x0001 | 0x0002 | 0x0004); - - [NativeTypeName("#define GCS_RESULT (GCS_RESULTSTR|GCS_RESULTCLAUSE)")] - public const int GCS_RESULT = (0x0800 | 0x1000); - - [NativeTypeName("#define GCS_RESULTREAD (GCS_RESULTREADSTR|GCS_RESULTREADCLAUSE)")] - public const int GCS_RESULTREAD = (0x0200 | 0x0400); - - [NativeTypeName("#define INIT_STATUSWNDPOS 0x00000001")] - public const int INIT_STATUSWNDPOS = 0x00000001; - - [NativeTypeName("#define INIT_CONVERSION 0x00000002")] - public const int INIT_CONVERSION = 0x00000002; - - [NativeTypeName("#define INIT_SENTENCE 0x00000004")] - public const int INIT_SENTENCE = 0x00000004; - - [NativeTypeName("#define INIT_LOGFONT 0x00000008")] - public const int INIT_LOGFONT = 0x00000008; - - [NativeTypeName("#define INIT_COMPFORM 0x00000010")] - public const int INIT_COMPFORM = 0x00000010; - - [NativeTypeName("#define INIT_SOFTKBDPOS 0x00000020")] - public const int INIT_SOFTKBDPOS = 0x00000020; - - [NativeTypeName("#define UI_CAP_SOFTKBD 0x00010000")] - public const int UI_CAP_SOFTKBD = 0x00010000; - - [NativeTypeName("#define IMN_SOFTKBDDESTROYED 0x0011")] - public const int IMN_SOFTKBDDESTROYED = 0x0011; } } diff --git a/sources/Interop/Windows/Windows/um/inkrenderer/Windows.cs b/sources/Interop/Windows/Windows/um/inkrenderer/LIBID.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/inkrenderer/Windows.cs rename to sources/Interop/Windows/Windows/um/inkrenderer/LIBID.cs index ddac2a1991..75f2112dac 100644 --- a/sources/Interop/Windows/Windows/um/inkrenderer/Windows.cs +++ b/sources/Interop/Windows/Windows/um/inkrenderer/LIBID.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class LIBID { [NativeTypeName("const IID")] public static ref readonly Guid LIBID_InkD2DRendererLib diff --git a/sources/Interop/Windows/Windows/um/iphlpapi/NET.cs b/sources/Interop/Windows/Windows/um/iphlpapi/NET.cs new file mode 100644 index 0000000000..912139527d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/iphlpapi/NET.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/iphlpapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NET + { + [NativeTypeName("#define NET_STRING_IPV4_ADDRESS 0x00000001")] + public const int NET_STRING_IPV4_ADDRESS = 0x00000001; + + [NativeTypeName("#define NET_STRING_IPV4_SERVICE 0x00000002")] + public const int NET_STRING_IPV4_SERVICE = 0x00000002; + + [NativeTypeName("#define NET_STRING_IPV4_NETWORK 0x00000004")] + public const int NET_STRING_IPV4_NETWORK = 0x00000004; + + [NativeTypeName("#define NET_STRING_IPV6_ADDRESS 0x00000008")] + public const int NET_STRING_IPV6_ADDRESS = 0x00000008; + + [NativeTypeName("#define NET_STRING_IPV6_ADDRESS_NO_SCOPE 0x00000010")] + public const int NET_STRING_IPV6_ADDRESS_NO_SCOPE = 0x00000010; + + [NativeTypeName("#define NET_STRING_IPV6_SERVICE 0x00000020")] + public const int NET_STRING_IPV6_SERVICE = 0x00000020; + + [NativeTypeName("#define NET_STRING_IPV6_SERVICE_NO_SCOPE 0x00000040")] + public const int NET_STRING_IPV6_SERVICE_NO_SCOPE = 0x00000040; + + [NativeTypeName("#define NET_STRING_IPV6_NETWORK 0x00000080")] + public const int NET_STRING_IPV6_NETWORK = 0x00000080; + + [NativeTypeName("#define NET_STRING_NAMED_ADDRESS 0x00000100")] + public const int NET_STRING_NAMED_ADDRESS = 0x00000100; + + [NativeTypeName("#define NET_STRING_NAMED_SERVICE 0x00000200")] + public const int NET_STRING_NAMED_SERVICE = 0x00000200; + + [NativeTypeName("#define NET_STRING_IP_ADDRESS (NET_STRING_IPV4_ADDRESS | \\\r\n NET_STRING_IPV6_ADDRESS)")] + public const int NET_STRING_IP_ADDRESS = (0x00000001 | 0x00000008); + + [NativeTypeName("#define NET_STRING_IP_ADDRESS_NO_SCOPE (NET_STRING_IPV4_ADDRESS | \\\r\n NET_STRING_IPV6_ADDRESS_NO_SCOPE)")] + public const int NET_STRING_IP_ADDRESS_NO_SCOPE = (0x00000001 | 0x00000010); + + [NativeTypeName("#define NET_STRING_IP_SERVICE (NET_STRING_IPV4_SERVICE | \\\r\n NET_STRING_IPV6_SERVICE)")] + public const int NET_STRING_IP_SERVICE = (0x00000002 | 0x00000020); + + [NativeTypeName("#define NET_STRING_IP_SERVICE_NO_SCOPE (NET_STRING_IPV4_SERVICE | \\\r\n NET_STRING_IPV6_SERVICE_NO_SCOPE)")] + public const int NET_STRING_IP_SERVICE_NO_SCOPE = (0x00000002 | 0x00000040); + + [NativeTypeName("#define NET_STRING_IP_NETWORK (NET_STRING_IPV4_NETWORK | \\\r\n NET_STRING_IPV6_NETWORK)")] + public const int NET_STRING_IP_NETWORK = (0x00000004 | 0x00000080); + + [NativeTypeName("#define NET_STRING_ANY_ADDRESS (NET_STRING_NAMED_ADDRESS | \\\r\n NET_STRING_IP_ADDRESS)")] + public const int NET_STRING_ANY_ADDRESS = (0x00000100 | (0x00000001 | 0x00000008)); + + [NativeTypeName("#define NET_STRING_ANY_ADDRESS_NO_SCOPE (NET_STRING_NAMED_ADDRESS | \\\r\n NET_STRING_IP_ADDRESS_NO_SCOPE)")] + public const int NET_STRING_ANY_ADDRESS_NO_SCOPE = (0x00000100 | (0x00000001 | 0x00000010)); + + [NativeTypeName("#define NET_STRING_ANY_SERVICE (NET_STRING_NAMED_SERVICE | \\\r\n NET_STRING_IP_SERVICE)")] + public const int NET_STRING_ANY_SERVICE = (0x00000200 | (0x00000002 | 0x00000020)); + + [NativeTypeName("#define NET_STRING_ANY_SERVICE_NO_SCOPE (NET_STRING_NAMED_SERVICE | \\\r\n NET_STRING_IP_SERVICE_NO_SCOPE)")] + public const int NET_STRING_ANY_SERVICE_NO_SCOPE = (0x00000200 | (0x00000002 | 0x00000040)); + } +} diff --git a/sources/Interop/Windows/Windows/um/iphlpapi/Windows.cs b/sources/Interop/Windows/Windows/um/iphlpapi/Windows.cs index 16a217ff71..01314a2b12 100644 --- a/sources/Interop/Windows/Windows/um/iphlpapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/iphlpapi/Windows.cs @@ -361,62 +361,5 @@ public static unsafe partial class Windows [DllImport("iphlpapi", ExactSpelling = true)] [return: NativeTypeName("DWORD")] public static extern uint ParseNetworkString([NativeTypeName("const WCHAR *")] ushort* NetworkString, [NativeTypeName("DWORD")] uint Types, [NativeTypeName("PNET_ADDRESS_INFO")] NET_ADDRESS_INFO* AddressInfo, ushort* PortNumber, byte* PrefixLength); - - [NativeTypeName("#define NET_STRING_IPV4_ADDRESS 0x00000001")] - public const int NET_STRING_IPV4_ADDRESS = 0x00000001; - - [NativeTypeName("#define NET_STRING_IPV4_SERVICE 0x00000002")] - public const int NET_STRING_IPV4_SERVICE = 0x00000002; - - [NativeTypeName("#define NET_STRING_IPV4_NETWORK 0x00000004")] - public const int NET_STRING_IPV4_NETWORK = 0x00000004; - - [NativeTypeName("#define NET_STRING_IPV6_ADDRESS 0x00000008")] - public const int NET_STRING_IPV6_ADDRESS = 0x00000008; - - [NativeTypeName("#define NET_STRING_IPV6_ADDRESS_NO_SCOPE 0x00000010")] - public const int NET_STRING_IPV6_ADDRESS_NO_SCOPE = 0x00000010; - - [NativeTypeName("#define NET_STRING_IPV6_SERVICE 0x00000020")] - public const int NET_STRING_IPV6_SERVICE = 0x00000020; - - [NativeTypeName("#define NET_STRING_IPV6_SERVICE_NO_SCOPE 0x00000040")] - public const int NET_STRING_IPV6_SERVICE_NO_SCOPE = 0x00000040; - - [NativeTypeName("#define NET_STRING_IPV6_NETWORK 0x00000080")] - public const int NET_STRING_IPV6_NETWORK = 0x00000080; - - [NativeTypeName("#define NET_STRING_NAMED_ADDRESS 0x00000100")] - public const int NET_STRING_NAMED_ADDRESS = 0x00000100; - - [NativeTypeName("#define NET_STRING_NAMED_SERVICE 0x00000200")] - public const int NET_STRING_NAMED_SERVICE = 0x00000200; - - [NativeTypeName("#define NET_STRING_IP_ADDRESS (NET_STRING_IPV4_ADDRESS | \\\r\n NET_STRING_IPV6_ADDRESS)")] - public const int NET_STRING_IP_ADDRESS = (0x00000001 | 0x00000008); - - [NativeTypeName("#define NET_STRING_IP_ADDRESS_NO_SCOPE (NET_STRING_IPV4_ADDRESS | \\\r\n NET_STRING_IPV6_ADDRESS_NO_SCOPE)")] - public const int NET_STRING_IP_ADDRESS_NO_SCOPE = (0x00000001 | 0x00000010); - - [NativeTypeName("#define NET_STRING_IP_SERVICE (NET_STRING_IPV4_SERVICE | \\\r\n NET_STRING_IPV6_SERVICE)")] - public const int NET_STRING_IP_SERVICE = (0x00000002 | 0x00000020); - - [NativeTypeName("#define NET_STRING_IP_SERVICE_NO_SCOPE (NET_STRING_IPV4_SERVICE | \\\r\n NET_STRING_IPV6_SERVICE_NO_SCOPE)")] - public const int NET_STRING_IP_SERVICE_NO_SCOPE = (0x00000002 | 0x00000040); - - [NativeTypeName("#define NET_STRING_IP_NETWORK (NET_STRING_IPV4_NETWORK | \\\r\n NET_STRING_IPV6_NETWORK)")] - public const int NET_STRING_IP_NETWORK = (0x00000004 | 0x00000080); - - [NativeTypeName("#define NET_STRING_ANY_ADDRESS (NET_STRING_NAMED_ADDRESS | \\\r\n NET_STRING_IP_ADDRESS)")] - public const int NET_STRING_ANY_ADDRESS = (0x00000100 | (0x00000001 | 0x00000008)); - - [NativeTypeName("#define NET_STRING_ANY_ADDRESS_NO_SCOPE (NET_STRING_NAMED_ADDRESS | \\\r\n NET_STRING_IP_ADDRESS_NO_SCOPE)")] - public const int NET_STRING_ANY_ADDRESS_NO_SCOPE = (0x00000100 | (0x00000001 | 0x00000010)); - - [NativeTypeName("#define NET_STRING_ANY_SERVICE (NET_STRING_NAMED_SERVICE | \\\r\n NET_STRING_IP_SERVICE)")] - public const int NET_STRING_ANY_SERVICE = (0x00000200 | (0x00000002 | 0x00000020)); - - [NativeTypeName("#define NET_STRING_ANY_SERVICE_NO_SCOPE (NET_STRING_NAMED_SERVICE | \\\r\n NET_STRING_IP_SERVICE_NO_SCOPE)")] - public const int NET_STRING_ANY_SERVICE_NO_SCOPE = (0x00000200 | (0x00000002 | 0x00000040)); } } diff --git a/sources/Interop/Windows/Windows/um/libloaderapi/GET.cs b/sources/Interop/Windows/Windows/um/libloaderapi/GET.cs new file mode 100644 index 0000000000..f413183912 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/libloaderapi/GET.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/libloaderapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GET + { + [NativeTypeName("#define GET_MODULE_HANDLE_EX_FLAG_PIN (0x00000001)")] + public const int GET_MODULE_HANDLE_EX_FLAG_PIN = (0x00000001); + + [NativeTypeName("#define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT (0x00000002)")] + public const int GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = (0x00000002); + + [NativeTypeName("#define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS (0x00000004)")] + public const int GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS = (0x00000004); + } +} diff --git a/sources/Interop/Windows/Windows/um/libloaderapi/LOAD.cs b/sources/Interop/Windows/Windows/um/libloaderapi/LOAD.cs new file mode 100644 index 0000000000..5fda58dbdd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/libloaderapi/LOAD.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/libloaderapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LOAD + { + [NativeTypeName("#define LOAD_LIBRARY_AS_DATAFILE 0x00000002")] + public const int LOAD_LIBRARY_AS_DATAFILE = 0x00000002; + + [NativeTypeName("#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008")] + public const int LOAD_WITH_ALTERED_SEARCH_PATH = 0x00000008; + + [NativeTypeName("#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x00000010")] + public const int LOAD_IGNORE_CODE_AUTHZ_LEVEL = 0x00000010; + + [NativeTypeName("#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x00000020")] + public const int LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020; + + [NativeTypeName("#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x00000040")] + public const int LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 0x00000040; + + [NativeTypeName("#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x00000080")] + public const int LOAD_LIBRARY_REQUIRE_SIGNED_TARGET = 0x00000080; + + [NativeTypeName("#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 0x00000100")] + public const int LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x00000100; + + [NativeTypeName("#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x00000200")] + public const int LOAD_LIBRARY_SEARCH_APPLICATION_DIR = 0x00000200; + + [NativeTypeName("#define LOAD_LIBRARY_SEARCH_USER_DIRS 0x00000400")] + public const int LOAD_LIBRARY_SEARCH_USER_DIRS = 0x00000400; + + [NativeTypeName("#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800")] + public const int LOAD_LIBRARY_SEARCH_SYSTEM32 = 0x00000800; + + [NativeTypeName("#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x00001000")] + public const int LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000; + + [NativeTypeName("#define LOAD_LIBRARY_SAFE_CURRENT_DIRS 0x00002000")] + public const int LOAD_LIBRARY_SAFE_CURRENT_DIRS = 0x00002000; + + [NativeTypeName("#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER 0x00004000")] + public const int LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER = 0x00004000; + + [NativeTypeName("#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY 0x00008000")] + public const int LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY = 0x00008000; + } +} diff --git a/sources/Interop/Windows/Windows/um/libloaderapi/RESOURCE.cs b/sources/Interop/Windows/Windows/um/libloaderapi/RESOURCE.cs new file mode 100644 index 0000000000..5ae615213f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/libloaderapi/RESOURCE.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/libloaderapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RESOURCE + { + [NativeTypeName("#define RESOURCE_ENUM_LN (0x0001)")] + public const int RESOURCE_ENUM_LN = (0x0001); + + [NativeTypeName("#define RESOURCE_ENUM_MUI (0x0002)")] + public const int RESOURCE_ENUM_MUI = (0x0002); + + [NativeTypeName("#define RESOURCE_ENUM_MUI_SYSTEM (0x0004)")] + public const int RESOURCE_ENUM_MUI_SYSTEM = (0x0004); + + [NativeTypeName("#define RESOURCE_ENUM_VALIDATE (0x0008)")] + public const int RESOURCE_ENUM_VALIDATE = (0x0008); + + [NativeTypeName("#define RESOURCE_ENUM_MODULE_EXACT (0x0010)")] + public const int RESOURCE_ENUM_MODULE_EXACT = (0x0010); + } +} diff --git a/sources/Interop/Windows/Windows/um/libloaderapi/Windows.cs b/sources/Interop/Windows/Windows/um/libloaderapi/Windows.cs index ea094db57a..e45d8f2116 100644 --- a/sources/Interop/Windows/Windows/um/libloaderapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/libloaderapi/Windows.cs @@ -121,21 +121,6 @@ public static unsafe partial class Windows [NativeTypeName("#define FIND_RESOURCE_DIRECTORY_LANGUAGES (0x0400)")] public const int FIND_RESOURCE_DIRECTORY_LANGUAGES = (0x0400); - [NativeTypeName("#define RESOURCE_ENUM_LN (0x0001)")] - public const int RESOURCE_ENUM_LN = (0x0001); - - [NativeTypeName("#define RESOURCE_ENUM_MUI (0x0002)")] - public const int RESOURCE_ENUM_MUI = (0x0002); - - [NativeTypeName("#define RESOURCE_ENUM_MUI_SYSTEM (0x0004)")] - public const int RESOURCE_ENUM_MUI_SYSTEM = (0x0004); - - [NativeTypeName("#define RESOURCE_ENUM_VALIDATE (0x0008)")] - public const int RESOURCE_ENUM_VALIDATE = (0x0008); - - [NativeTypeName("#define RESOURCE_ENUM_MODULE_EXACT (0x0010)")] - public const int RESOURCE_ENUM_MODULE_EXACT = (0x0010); - [NativeTypeName("#define SUPPORT_LANG_NUMBER 32")] public const int SUPPORT_LANG_NUMBER = 32; @@ -148,15 +133,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GetModuleHandle GetModuleHandleW")] public static delegate* GetModuleHandle => &GetModuleHandleW; - [NativeTypeName("#define GET_MODULE_HANDLE_EX_FLAG_PIN (0x00000001)")] - public const int GET_MODULE_HANDLE_EX_FLAG_PIN = (0x00000001); - - [NativeTypeName("#define GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT (0x00000002)")] - public const int GET_MODULE_HANDLE_EX_FLAG_UNCHANGED_REFCOUNT = (0x00000002); - - [NativeTypeName("#define GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS (0x00000004)")] - public const int GET_MODULE_HANDLE_EX_FLAG_FROM_ADDRESS = (0x00000004); - [NativeTypeName("#define GetModuleHandleEx GetModuleHandleExW")] public static delegate* GetModuleHandleEx => &GetModuleHandleExW; @@ -169,48 +145,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DONT_RESOLVE_DLL_REFERENCES 0x00000001")] public const int DONT_RESOLVE_DLL_REFERENCES = 0x00000001; - [NativeTypeName("#define LOAD_LIBRARY_AS_DATAFILE 0x00000002")] - public const int LOAD_LIBRARY_AS_DATAFILE = 0x00000002; - - [NativeTypeName("#define LOAD_WITH_ALTERED_SEARCH_PATH 0x00000008")] - public const int LOAD_WITH_ALTERED_SEARCH_PATH = 0x00000008; - - [NativeTypeName("#define LOAD_IGNORE_CODE_AUTHZ_LEVEL 0x00000010")] - public const int LOAD_IGNORE_CODE_AUTHZ_LEVEL = 0x00000010; - - [NativeTypeName("#define LOAD_LIBRARY_AS_IMAGE_RESOURCE 0x00000020")] - public const int LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020; - - [NativeTypeName("#define LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE 0x00000040")] - public const int LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE = 0x00000040; - - [NativeTypeName("#define LOAD_LIBRARY_REQUIRE_SIGNED_TARGET 0x00000080")] - public const int LOAD_LIBRARY_REQUIRE_SIGNED_TARGET = 0x00000080; - - [NativeTypeName("#define LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR 0x00000100")] - public const int LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR = 0x00000100; - - [NativeTypeName("#define LOAD_LIBRARY_SEARCH_APPLICATION_DIR 0x00000200")] - public const int LOAD_LIBRARY_SEARCH_APPLICATION_DIR = 0x00000200; - - [NativeTypeName("#define LOAD_LIBRARY_SEARCH_USER_DIRS 0x00000400")] - public const int LOAD_LIBRARY_SEARCH_USER_DIRS = 0x00000400; - - [NativeTypeName("#define LOAD_LIBRARY_SEARCH_SYSTEM32 0x00000800")] - public const int LOAD_LIBRARY_SEARCH_SYSTEM32 = 0x00000800; - - [NativeTypeName("#define LOAD_LIBRARY_SEARCH_DEFAULT_DIRS 0x00001000")] - public const int LOAD_LIBRARY_SEARCH_DEFAULT_DIRS = 0x00001000; - - [NativeTypeName("#define LOAD_LIBRARY_SAFE_CURRENT_DIRS 0x00002000")] - public const int LOAD_LIBRARY_SAFE_CURRENT_DIRS = 0x00002000; - - [NativeTypeName("#define LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER 0x00004000")] - public const int LOAD_LIBRARY_SEARCH_SYSTEM32_NO_FORWARDER = 0x00004000; - - [NativeTypeName("#define LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY 0x00008000")] - public const int LOAD_LIBRARY_OS_INTEGRITY_CONTINUITY = 0x00008000; - [NativeTypeName("#define EnumResourceLanguagesEx EnumResourceLanguagesExW")] public static delegate*, nint, uint, ushort, BOOL> EnumResourceLanguagesEx => &EnumResourceLanguagesExW; diff --git a/sources/Interop/Windows/Windows/um/manipulations/LIBID.cs b/sources/Interop/Windows/Windows/um/manipulations/LIBID.cs new file mode 100644 index 0000000000..ea249142ca --- /dev/null +++ b/sources/Interop/Windows/Windows/um/manipulations/LIBID.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/manipulations.h and um/manipulations_i.c in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class LIBID + { + [NativeTypeName("const IID")] + public static ref readonly Guid LIBID_ManipulationsLib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB3, 0x10, 0x56, 0x93, + 0x81, 0x6F, + 0x0F, 0x45, + 0x85, + 0xD5, + 0x42, + 0xD3, + 0xD2, + 0x6C, + 0x5C, + 0x11 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/manipulations/Windows.cs b/sources/Interop/Windows/Windows/um/manipulations/Windows.cs index 35537fb5ad..2930f4f772 100644 --- a/sources/Interop/Windows/Windows/um/manipulations/Windows.cs +++ b/sources/Interop/Windows/Windows/um/manipulations/Windows.cs @@ -3,11 +3,6 @@ // Ported from um/manipulations.h and um/manipulations_i.c in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - namespace TerraFX.Interop.Windows { public static partial class Windows @@ -20,30 +15,5 @@ public static partial class Windows [NativeTypeName("const float")] public const float NaN = ((float)((1e308 * 10) * 0.0)); - - [NativeTypeName("const IID")] - public static ref readonly Guid LIBID_ManipulationsLib - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB3, 0x10, 0x56, 0x93, - 0x81, 0x6F, - 0x0F, 0x45, - 0x85, - 0xD5, - 0x42, - 0xD3, - 0xD2, - 0x6C, - 0x5C, - 0x11 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } } } diff --git a/sources/Interop/Windows/Windows/um/mfapi/AM.cs b/sources/Interop/Windows/Windows/um/mfapi/AM.cs new file mode 100644 index 0000000000..fc712281a7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfapi/AM.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class AM + { + [NativeTypeName("const GUID")] + public static ref readonly Guid AM_MEDIA_TYPE_REPRESENTATION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD2, 0x2A, 0xE4, 0xE2, + 0x2C, 0x13, + 0x1E, 0x49, + 0xA2, + 0x68, + 0x3C, + 0x7C, + 0x2D, + 0xCA, + 0x18, + 0x1F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/mfapi/D3DFMT.cs b/sources/Interop/Windows/Windows/um/mfapi/D3DFMT.cs new file mode 100644 index 0000000000..4dcb0c5306 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfapi/D3DFMT.cs @@ -0,0 +1,45 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using TerraFX.Interop.Windows; + +namespace TerraFX.Interop.DirectX +{ + public static partial class D3DFMT + { + [NativeTypeName("#define D3DFMT_R8G8B8 20")] + public const int D3DFMT_R8G8B8 = 20; + + [NativeTypeName("#define D3DFMT_A8R8G8B8 21")] + public const int D3DFMT_A8R8G8B8 = 21; + + [NativeTypeName("#define D3DFMT_X8R8G8B8 22")] + public const int D3DFMT_X8R8G8B8 = 22; + + [NativeTypeName("#define D3DFMT_R5G6B5 23")] + public const int D3DFMT_R5G6B5 = 23; + + [NativeTypeName("#define D3DFMT_X1R5G5B5 24")] + public const int D3DFMT_X1R5G5B5 = 24; + + [NativeTypeName("#define D3DFMT_A2B10G10R10 31")] + public const int D3DFMT_A2B10G10R10 = 31; + + [NativeTypeName("#define D3DFMT_P8 41")] + public const int D3DFMT_P8 = 41; + + [NativeTypeName("#define D3DFMT_L8 50")] + public const int D3DFMT_L8 = 50; + + [NativeTypeName("#define D3DFMT_D16 80")] + public const int D3DFMT_D16 = 80; + + [NativeTypeName("#define D3DFMT_L16 81")] + public const int D3DFMT_L16 = 81; + + [NativeTypeName("#define D3DFMT_A16B16G16R16F 113")] + public const int D3DFMT_A16B16G16R16F = 113; + } +} diff --git a/sources/Interop/Windows/Windows/um/mfapi/MFAudioFormat.cs b/sources/Interop/Windows/Windows/um/mfapi/MFAudioFormat.cs new file mode 100644 index 0000000000..f873979c98 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfapi/MFAudioFormat.cs @@ -0,0 +1,1065 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class MFAudioFormat + { + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Base + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_PCM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Float + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x03, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DTS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x08, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC3_SPDIF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x92, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DRM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_WMAudioV8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0x01, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_WMAudioV9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0x01, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_WMAudio_Lossless + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x63, 0x01, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_WMASPDIF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x01, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_MSP1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0A, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_MP3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x55, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_MPEG + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_AAC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x10, 0x16, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_ADTS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x16, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_AMR_NB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0x73, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_AMR_WB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0x73, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_AMR_WP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x63, 0x73, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_FLAC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAC, 0xF1, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_ALAC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0x6C, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Opus + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0x70, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC4 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0xAC, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2C, 0x80, 0x6D, 0xE0, + 0x46, 0xDB, + 0xCF, 0x11, + 0xB4, + 0xD1, + 0x00, + 0x80, + 0x5F, + 0x6C, + 0xBB, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_DDPlus + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAF, 0x87, 0xFB, 0xA7, + 0x02, 0x2D, + 0xFB, 0x42, + 0xA4, + 0xD4, + 0x05, + 0xCD, + 0x93, + 0x84, + 0x3B, + 0xDD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC4_V1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7C, 0x92, 0xB7, 0x36, + 0x87, 0x3D, + 0x2A, 0x4A, + 0x91, + 0x96, + 0xA2, + 0x1A, + 0xD9, + 0xE9, + 0x35, + 0xE6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC4_V2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA0, 0xB2, 0x98, 0x79, + 0xDD, 0x17, + 0xB6, 0x49, + 0x8D, + 0xFA, + 0x9B, + 0x27, + 0x85, + 0x52, + 0xA2, + 0xAC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC4_V1_ES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC6, 0xCC, 0x8D, 0x9D, + 0x56, 0xD1, + 0xB8, 0x4F, + 0x97, + 0x9C, + 0xA8, + 0x5B, + 0xE7, + 0xD2, + 0x1D, + 0xFA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC4_V2_ES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF9, 0xC9, 0x58, 0x7E, + 0x70, 0xB0, + 0xF4, 0x45, + 0x8C, + 0xCD, + 0xA9, + 0x9A, + 0x04, + 0x17, + 0xC1, + 0xAC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Vorbis + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0B, 0xD1, 0x2F, 0x8D, + 0x41, 0x58, + 0x6B, 0x4A, + 0x89, + 0x05, + 0x58, + 0x8F, + 0xEC, + 0x1A, + 0xDE, + 0xD9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DTS_RAW + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x33, 0x80, 0x6D, 0xE0, + 0x46, 0xDB, + 0xCF, 0x11, + 0xB4, + 0xD1, + 0x00, + 0x80, + 0x5F, + 0x6C, + 0xBB, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DTS_HD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB7, 0x8E, 0xE5, 0xA2, + 0xA9, 0x0F, + 0xBB, 0x48, + 0xA4, + 0x0C, + 0xFA, + 0x0E, + 0x15, + 0x6D, + 0x06, + 0x45 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DTS_XLL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1B, 0x7C, 0xB3, 0x45, + 0x70, 0x8C, + 0x59, 0x4E, + 0xA7, + 0xBE, + 0xA1, + 0xE4, + 0x2C, + 0x81, + 0xC8, + 0x0D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DTS_LBR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0A, 0x6F, 0xFE, 0xC2, + 0x3C, 0x4E, + 0xF1, 0x4D, + 0x9B, + 0x60, + 0x50, + 0x86, + 0x30, + 0x91, + 0xE4, + 0xB9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DTS_UHD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x17, 0x01, 0x02, 0x87, + 0xE3, 0xAC, + 0xDE, 0x42, + 0xB7, + 0x3E, + 0xC6, + 0x56, + 0x70, + 0x62, + 0x63, + 0xF8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_DTS_UHDY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0xCA, 0x9C, 0x9B, + 0xB9, 0x91, + 0xCC, 0x4C, + 0x88, + 0x3A, + 0x8F, + 0x78, + 0x7A, + 0xC3, + 0xCC, + 0x86 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Float_SpatialObjects + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x94, 0xCD, 0x39, 0xFA, + 0x64, 0xBC, + 0xB1, 0x4A, + 0x9B, + 0x71, + 0xDC, + 0xD0, + 0x9D, + 0x5A, + 0x7E, + 0x7A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_LPCM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x32, 0x80, 0x6D, 0xE0, + 0x46, 0xDB, + 0xCF, 0x11, + 0xB4, + 0xD1, + 0x00, + 0x80, + 0x5F, + 0x6C, + 0xBB, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_PCM_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0xFF, 0xE7, 0xA5, + 0x11, 0x84, + 0xCC, 0x4A, + 0xA8, + 0x65, + 0x5F, + 0x49, + 0x41, + 0x28, + 0x8D, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Dolby_AC3_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0x3A, 0x66, 0x97, + 0xFB, 0x8F, + 0x45, 0x44, + 0xA6, + 0xBA, + 0x79, + 0x2D, + 0x90, + 0x8F, + 0x49, + 0x7F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_AAC_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x76, 0xCE, 0x9B, 0x41, + 0x72, 0x8B, + 0x0F, 0x40, + 0xAD, + 0xEB, + 0x84, + 0xB5, + 0x7D, + 0x63, + 0x48, + 0x4D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_ADTS_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0x63, 0x49, 0xDA, + 0xD8, 0x14, + 0xCF, 0x4D, + 0x92, + 0xB7, + 0x19, + 0x3E, + 0xB8, + 0x43, + 0x63, + 0xDB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFAudioFormat_Base_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBC, 0xB5, 0x84, 0x38, + 0x77, 0xE2, + 0xFD, 0x43, + 0x98, + 0x3D, + 0x03, + 0x8A, + 0xA8, + 0xD9, + 0xB6, + 0x05 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/mfapi/MFT.cs b/sources/Interop/Windows/Windows/um/mfapi/MFT.cs new file mode 100644 index 0000000000..5a00edbdb7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfapi/MFT.cs @@ -0,0 +1,440 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class MFT + { + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_ENCODER_ERROR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0xED, 0xD1, 0xC8, + 0xE4, 0x98, + 0xD5, 0x41, + 0x92, + 0x97, + 0x44, + 0xF5, + 0x38, + 0x52, + 0xF9, + 0x0E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_GFX_DRIVER_VERSION_ID_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x93, 0x90, 0x4B, 0xF3, + 0xE0, 0x05, + 0x16, 0x4B, + 0x99, + 0x3D, + 0x3E, + 0x2A, + 0x2C, + 0xDE, + 0x6A, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_VIDEO_DECODER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4B, 0x2D, 0xC0, 0xD6, + 0x33, 0x68, + 0xB4, 0x45, + 0x97, + 0x1A, + 0x05, + 0xA4, + 0xB0, + 0x4B, + 0xAB, + 0x91 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_VIDEO_ENCODER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0xAC, 0x9E, 0xF7, + 0x45, 0xE5, + 0x87, 0x43, + 0xBD, + 0xEE, + 0xD6, + 0x47, + 0xD7, + 0xBD, + 0xE4, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_VIDEO_EFFECT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x21, 0x7C, 0xE1, 0x12, + 0x2C, 0x53, + 0x6E, 0x4A, + 0x8A, + 0x1C, + 0x40, + 0x82, + 0x5A, + 0x73, + 0x63, + 0x97 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_MULTIPLEXER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1E, 0x56, 0x9C, 0x05, + 0xAE, 0x05, + 0x61, 0x4B, + 0xB6, + 0x9D, + 0x55, + 0xB6, + 0x1E, + 0xE5, + 0x4A, + 0x7B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_DEMULTIPLEXER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7A, 0x0A, 0x70, 0xA8, + 0x9B, 0x93, + 0xC5, 0x44, + 0x99, + 0xD7, + 0x76, + 0x22, + 0x6B, + 0x23, + 0xB3, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_AUDIO_DECODER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB4, 0x3F, 0xA7, 0x9E, + 0x7A, 0xEF, + 0x59, 0x45, + 0x8D, + 0x5D, + 0x71, + 0x9D, + 0x8F, + 0x04, + 0x26, + 0xC7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_AUDIO_ENCODER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD0, 0x4B, 0xC6, 0x91, + 0x1E, 0xF9, + 0x8C, 0x4D, + 0x92, + 0x76, + 0xDB, + 0x24, + 0x82, + 0x79, + 0xD9, + 0x75 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_AUDIO_EFFECT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x4C, 0x06, 0x11, + 0x48, 0x36, + 0xD0, 0x4E, + 0x93, + 0x2E, + 0x05, + 0xCE, + 0x8A, + 0xC8, + 0x11, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_VIDEO_PROCESSOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFC, 0xA3, 0x2E, 0x30, + 0x5F, 0xAA, + 0xF9, 0x47, + 0x9F, + 0x7A, + 0xC2, + 0x18, + 0x8B, + 0xB1, + 0x63, + 0x02 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_OTHER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x57, 0x5D, 0x17, 0x90, + 0xEA, 0xB7, + 0x01, 0x49, + 0xAE, + 0xB3, + 0x93, + 0x3A, + 0x87, + 0x47, + 0x75, + 0x6F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_ENCRYPTOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBE, 0x87, 0xC6, 0xB0, + 0xCD, 0x01, + 0xB5, 0x44, + 0xB8, + 0xB2, + 0x7C, + 0x1D, + 0x7E, + 0x05, + 0x8B, + 0x1F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CATEGORY_VIDEO_RENDERER_EFFECT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB4, 0xD8, 0x5C, 0x14, + 0xF4, 0x92, + 0x23, 0x4B, + 0x8A, + 0xE7, + 0xE0, + 0xDF, + 0x06, + 0xC2, + 0xDA, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_ENUM_VIDEO_RENDERER_EXTENSION_PROFILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x28, 0x69, 0xC5, 0x62, + 0x4E, 0x9A, + 0x3B, 0x44, + 0xB9, + 0xDC, + 0xCA, + 0xC8, + 0x30, + 0xC2, + 0x41, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_ENUM_ADAPTER_LUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8C, 0x51, 0x39, 0x1D, + 0x20, 0xE2, + 0xA8, 0x4D, + 0xA0, + 0x7F, + 0xBA, + 0x17, + 0x25, + 0x52, + 0xD6, + 0xB1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0x6A, 0x47, 0x53, + 0x13, 0x3F, + 0xFB, 0x49, + 0xAC, + 0x42, + 0xEE, + 0x27, + 0x33, + 0xC9, + 0x67, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/mfapi/MFVideoFormat.cs b/sources/Interop/Windows/Windows/um/mfapi/MFVideoFormat.cs new file mode 100644 index 0000000000..ce753b1ca6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfapi/MFVideoFormat.cs @@ -0,0 +1,1843 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class MFVideoFormat + { + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Base + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x00, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_RGB32 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x16, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_ARGB32 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_RGB24 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x14, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_RGB555 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x18, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_RGB565 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x17, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_RGB8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x29, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_L8 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x32, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_L16 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_D16 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_AI44 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x49, 0x34, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_AYUV + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x59, 0x55, 0x56, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_YUY2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x55, 0x59, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_YVYU + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x56, 0x59, 0x55, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_YVU9 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x56, 0x55, 0x39, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_UYVY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x55, 0x59, 0x56, 0x59, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_NV11 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x56, 0x31, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_NV12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x56, 0x31, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_YV12 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x56, 0x31, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_I420 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x34, 0x32, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_IYUV + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0x59, 0x55, 0x56, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Y210 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x32, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Y216 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x32, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Y410 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x34, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Y416 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x34, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Y41P + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x34, 0x31, 0x50, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Y41T + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x34, 0x31, 0x54, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Y42T + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x34, 0x32, 0x54, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_P210 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x32, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_P216 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x32, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_P010 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x30, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_P016 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x30, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_v210 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x76, 0x32, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_v216 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x76, 0x32, 0x31, 0x36, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_v410 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x76, 0x34, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MP43 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x50, 0x34, 0x33, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MP4S + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x50, 0x34, 0x53, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_M4S2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x34, 0x53, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MP4V + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x50, 0x34, 0x56, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_WMV1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x57, 0x4D, 0x56, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_WMV2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x57, 0x4D, 0x56, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_WMV3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x57, 0x4D, 0x56, 0x33, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_WVC1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x57, 0x56, 0x43, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MSS1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x53, 0x53, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MSS2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x53, 0x53, 0x32, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MPG1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x50, 0x47, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_DVSL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x73, 0x6C, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_DVSD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x73, 0x64, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_DVHD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x68, 0x64, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_DV25 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x32, 0x35, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_DV50 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x35, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_DVH1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x68, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_DVC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x76, 0x63, 0x20, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_H264 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x32, 0x36, 0x34, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_H265 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x32, 0x36, 0x35, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MJPG + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x4A, 0x50, 0x47, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_420O + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x34, 0x32, 0x30, 0x4F, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_HEVC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x45, 0x56, 0x43, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_HEVC_ES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x45, 0x56, 0x53, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_VP80 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x56, 0x50, 0x38, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_VP90 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x56, 0x50, 0x39, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_ORAW + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0x52, 0x41, 0x57, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_H263 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x32, 0x36, 0x33, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_A2R10G10B10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1F, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_A16B16G16R16F + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x71, 0x00, 0x00, 0x00, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_VP10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x56, 0x50, 0x31, 0x30, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_AV1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x56, 0x30, 0x31, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Theora + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x74, 0x68, 0x65, 0x6F, + 0x00, 0x00, + 0x10, 0x00, + 0x80, + 0x00, + 0x00, + 0xAA, + 0x00, + 0x38, + 0x9B, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_H264_ES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF0, 0xF4, 0x40, 0x3F, + 0x22, 0x56, + 0xF8, 0x4F, + 0xB6, + 0xD8, + 0xA1, + 0x7A, + 0x58, + 0x4B, + 0xEE, + 0x5E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_MPEG2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x26, 0x80, 0x6D, 0xE0, + 0x46, 0xDB, + 0xCF, 0x11, + 0xB4, + 0xD1, + 0x00, + 0x80, + 0x5F, + 0x6C, + 0xBB, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_H264_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0xE9, 0x0C, 0x5D, + 0x17, 0x98, + 0xDA, 0x49, + 0xBD, + 0xFD, + 0xF5, + 0xF5, + 0xB9, + 0x8F, + 0x18, + 0xA6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_HEVC_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE6, 0x0F, 0xFE, 0x3C, + 0xC4, 0x05, + 0xDC, 0x47, + 0x9D, + 0x70, + 0x4B, + 0xDB, + 0x29, + 0x59, + 0x72, + 0x0F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFVideoFormat_Base_HDCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD5, 0xB9, 0xC3, 0xEA, + 0x14, 0xBD, + 0x37, 0x42, + 0x8F, + 0x1F, + 0xBA, + 0xB4, + 0x28, + 0xE4, + 0x93, + 0x12 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define MFVideoFormat_MPG2 MFVideoFormat_MPEG2")] + public static ref readonly Guid MFVideoFormat_MPG2 => ref MFVideoFormat_MPEG2; + } +} diff --git a/sources/Interop/Windows/Windows/um/mfapi/Windows.cs b/sources/Interop/Windows/Windows/um/mfapi/Windows.cs index 70c97bdf42..3b31f76f78 100644 --- a/sources/Interop/Windows/Windows/um/mfapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mfapi/Windows.cs @@ -995,56 +995,6 @@ public static ref readonly Guid MFSampleExtension_RepeatFrame } } - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_ENCODER_ERROR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA4, 0xED, 0xD1, 0xC8, - 0xE4, 0x98, - 0xD5, 0x41, - 0x92, - 0x97, - 0x44, - 0xF5, - 0x38, - 0x52, - 0xF9, - 0x0E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_GFX_DRIVER_VERSION_ID_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x93, 0x90, 0x4B, 0xF3, - 0xE0, 0x05, - 0x16, 0x4B, - 0x99, - 0x3D, - 0x3E, - 0x2A, - 0x2C, - 0xDE, - 0x6A, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("const GUID")] public static ref readonly Guid MFSampleExtension_DescrambleData { @@ -1483,3326 +1433,11 @@ public static ref readonly Guid MFSampleExtension_LastSlice 0xB8, 0xC8, 0xB4, - 0xA3, - 0xA9, - 0xA1, - 0xDA, - 0xAC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_FeatureMap - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x65, 0xD1, 0x32, 0xA0, - 0xFC, 0x46, - 0x0A, 0x40, - 0xB4, - 0x49, - 0x49, - 0xDE, - 0x53, - 0xE6, - 0x2A, - 0x6E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_ChromaOnly - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9C, 0x17, 0xB9, 0x1E, - 0x1F, 0xA0, - 0x45, 0x48, - 0x8C, - 0x04, - 0x0E, - 0x65, - 0xA2, - 0x6E, - 0xB0, - 0x4F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_PhotoThumbnail - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5C, 0xC8, 0xBB, 0x74, - 0xBB, 0xC8, - 0xDC, 0x42, - 0xB5, - 0x86, - 0xDA, - 0x17, - 0xFF, - 0xD3, - 0x5D, - 0xCC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_PhotoThumbnailMediaType - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x20, 0x54, 0xAD, 0x61, - 0xF8, 0xEB, - 0x43, 0x41, - 0x89, - 0xAF, - 0x6B, - 0xF2, - 0x5F, - 0x67, - 0x2D, - 0xEF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_CaptureMetadata - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA8, 0x23, 0xBE, 0x2E, - 0xF5, 0xFA, - 0x4A, 0x44, - 0xA6, - 0xA2, - 0xEB, - 0x81, - 0x08, - 0x80, - 0xAB, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_MDLCacheCookie - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF9, 0x2A, 0x00, 0x5F, - 0xF9, 0xD8, - 0xA3, 0x41, - 0xB6, - 0xC3, - 0xA2, - 0xAD, - 0x43, - 0xF6, - 0x47, - 0xAD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_Depth_MinReliableDepth - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB2, 0x82, 0x85, 0x5F, - 0x6B, 0xE3, - 0xC8, 0x47, - 0x9B, - 0x87, - 0xFE, - 0xE1, - 0xCA, - 0x72, - 0xC5, - 0xB0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFSampleExtension_Depth_MaxReliableDepth - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD1, 0x45, 0x55, 0xE4, - 0x0F, 0x1F, - 0x32, 0x4A, - 0xA8, - 0xA7, - 0x61, - 0x01, - 0xA2, - 0x4E, - 0xA8, - 0xBE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFCreateAttributes(IMFAttributes** ppMFAttributes, [NativeTypeName("UINT32")] uint cInitialSize); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFInitAttributesFromBlob(IMFAttributes* pAttributes, [NativeTypeName("const UINT8 *")] byte* pBuf, uint cbBufSize); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFGetAttributesAsBlobSize(IMFAttributes* pAttributes, [NativeTypeName("UINT32 *")] uint* pcbBufSize); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFGetAttributesAsBlob(IMFAttributes* pAttributes, [NativeTypeName("UINT8 *")] byte* pBuf, uint cbBufSize); - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_VIDEO_DECODER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4B, 0x2D, 0xC0, 0xD6, - 0x33, 0x68, - 0xB4, 0x45, - 0x97, - 0x1A, - 0x05, - 0xA4, - 0xB0, - 0x4B, - 0xAB, - 0x91 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_VIDEO_ENCODER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0xAC, 0x9E, 0xF7, - 0x45, 0xE5, - 0x87, 0x43, - 0xBD, - 0xEE, - 0xD6, - 0x47, - 0xD7, - 0xBD, - 0xE4, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_VIDEO_EFFECT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x21, 0x7C, 0xE1, 0x12, - 0x2C, 0x53, - 0x6E, 0x4A, - 0x8A, - 0x1C, - 0x40, - 0x82, - 0x5A, - 0x73, - 0x63, - 0x97 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_MULTIPLEXER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1E, 0x56, 0x9C, 0x05, - 0xAE, 0x05, - 0x61, 0x4B, - 0xB6, - 0x9D, - 0x55, - 0xB6, - 0x1E, - 0xE5, - 0x4A, - 0x7B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_DEMULTIPLEXER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7A, 0x0A, 0x70, 0xA8, - 0x9B, 0x93, - 0xC5, 0x44, - 0x99, - 0xD7, - 0x76, - 0x22, - 0x6B, - 0x23, - 0xB3, - 0xF1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_AUDIO_DECODER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB4, 0x3F, 0xA7, 0x9E, - 0x7A, 0xEF, - 0x59, 0x45, - 0x8D, - 0x5D, - 0x71, - 0x9D, - 0x8F, - 0x04, - 0x26, - 0xC7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_AUDIO_ENCODER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD0, 0x4B, 0xC6, 0x91, - 0x1E, 0xF9, - 0x8C, 0x4D, - 0x92, - 0x76, - 0xDB, - 0x24, - 0x82, - 0x79, - 0xD9, - 0x75 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_AUDIO_EFFECT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x4C, 0x06, 0x11, - 0x48, 0x36, - 0xD0, 0x4E, - 0x93, - 0x2E, - 0x05, - 0xCE, - 0x8A, - 0xC8, - 0x11, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_VIDEO_PROCESSOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFC, 0xA3, 0x2E, 0x30, - 0x5F, 0xAA, - 0xF9, 0x47, - 0x9F, - 0x7A, - 0xC2, - 0x18, - 0x8B, - 0xB1, - 0x63, - 0x02 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_OTHER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x57, 0x5D, 0x17, 0x90, - 0xEA, 0xB7, - 0x01, 0x49, - 0xAE, - 0xB3, - 0x93, - 0x3A, - 0x87, - 0x47, - 0x75, - 0x6F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_ENCRYPTOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBE, 0x87, 0xC6, 0xB0, - 0xCD, 0x01, - 0xB5, 0x44, - 0xB8, - 0xB2, - 0x7C, - 0x1D, - 0x7E, - 0x05, - 0x8B, - 0x1F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CATEGORY_VIDEO_RENDERER_EFFECT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB4, 0xD8, 0x5C, 0x14, - 0xF4, 0x92, - 0x23, 0x4B, - 0x8A, - 0xE7, - 0xE0, - 0xDF, - 0x06, - 0xC2, - 0xDA, - 0x95 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTRegister([NativeTypeName("CLSID")] Guid clsidMFT, Guid guidCategory, [NativeTypeName("LPWSTR")] ushort* pszName, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("UINT32")] uint cInputTypes, MFT_REGISTER_TYPE_INFO* pInputTypes, [NativeTypeName("UINT32")] uint cOutputTypes, MFT_REGISTER_TYPE_INFO* pOutputTypes, IMFAttributes* pAttributes); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTUnregister([NativeTypeName("CLSID")] Guid clsidMFT); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTRegisterLocal(IClassFactory* pClassFactory, [NativeTypeName("const GUID &")] Guid* guidCategory, [NativeTypeName("LPCWSTR")] ushort* pszName, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("UINT32")] uint cInputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputTypes, [NativeTypeName("UINT32")] uint cOutputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputTypes); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTUnregisterLocal(IClassFactory* pClassFactory); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTRegisterLocalByCLSID([NativeTypeName("const IID &")] Guid* clisdMFT, [NativeTypeName("const GUID &")] Guid* guidCategory, [NativeTypeName("LPCWSTR")] ushort* pszName, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("UINT32")] uint cInputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputTypes, [NativeTypeName("UINT32")] uint cOutputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputTypes); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTUnregisterLocalByCLSID([NativeTypeName("CLSID")] Guid clsidMFT); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTEnum(Guid guidCategory, [NativeTypeName("UINT32")] uint Flags, MFT_REGISTER_TYPE_INFO* pInputType, MFT_REGISTER_TYPE_INFO* pOutputType, IMFAttributes* pAttributes, [NativeTypeName("CLSID **")] Guid** ppclsidMFT, [NativeTypeName("UINT32 *")] uint* pcMFTs); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTEnumEx(Guid guidCategory, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputType, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputType, IMFActivate*** pppMFTActivate, [NativeTypeName("UINT32 *")] uint* pnumMFTActivate); - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_ENUM_VIDEO_RENDERER_EXTENSION_PROFILE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x28, 0x69, 0xC5, 0x62, - 0x4E, 0x9A, - 0x3B, 0x44, - 0xB9, - 0xDC, - 0xCA, - 0xC8, - 0x30, - 0xC2, - 0x41, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_ENUM_ADAPTER_LUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8C, 0x51, 0x39, 0x1D, - 0x20, 0xE2, - 0xA8, 0x4D, - 0xA0, - 0x7F, - 0xBA, - 0x17, - 0x25, - 0x52, - 0xD6, - 0xB1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [SupportedOSPlatform("windows10.0")] - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTEnum2(Guid guidCategory, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputType, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputType, IMFAttributes* pAttributes, IMFActivate*** pppMFTActivate, [NativeTypeName("UINT32 *")] uint* pnumMFTActivate); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFTGetInfo([NativeTypeName("CLSID")] Guid clsidMFT, [NativeTypeName("LPWSTR *")] ushort** pszName, MFT_REGISTER_TYPE_INFO** ppInputTypes, [NativeTypeName("UINT32 *")] uint* pcInputTypes, MFT_REGISTER_TYPE_INFO** ppOutputTypes, [NativeTypeName("UINT32 *")] uint* pcOutputTypes, IMFAttributes** ppAttributes); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFGetPluginControl(IMFPluginControl** ppPluginControl); - - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFGetMFTMerit(IUnknown* pMFT, [NativeTypeName("UINT32")] uint cbVerifier, [NativeTypeName("const BYTE *")] byte* verifier, [NativeTypeName("DWORD *")] uint* merit); - - [SupportedOSPlatform("windows8.0")] - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFRegisterLocalSchemeHandler([NativeTypeName("PCWSTR")] ushort* szScheme, IMFActivate* pActivate); - - [SupportedOSPlatform("windows8.0")] - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFRegisterLocalByteStreamHandler([NativeTypeName("PCWSTR")] ushort* szFileExtension, [NativeTypeName("PCWSTR")] ushort* szMimeType, IMFActivate* pActivate); - - [SupportedOSPlatform("windows8.0")] - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFCreateMFByteStreamWrapper(IMFByteStream* pStream, IMFByteStream** ppStreamWrapper); - - [SupportedOSPlatform("windows8.0")] - [DllImport("mfplat", ExactSpelling = true)] - public static extern HRESULT MFCreateMediaExtensionActivate([NativeTypeName("PCWSTR")] ushort* szActivatableClassId, IUnknown* pConfiguration, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppvObject); - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x11, 0x6A, 0x47, 0x53, - 0x13, 0x3F, - 0xFB, 0x49, - 0xAC, - 0x42, - 0xEE, - 0x27, - 0x33, - 0xC9, - 0x67, - 0x41 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Base - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_RGB32 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x16, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_ARGB32 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x15, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_RGB24 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x14, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_RGB555 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x18, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_RGB565 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x17, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_RGB8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x29, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_L8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x32, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_L16 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_D16 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_AI44 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x49, 0x34, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_AYUV - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x59, 0x55, 0x56, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_YUY2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x55, 0x59, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_YVYU - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x56, 0x59, 0x55, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_YVU9 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x56, 0x55, 0x39, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_UYVY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x55, 0x59, 0x56, 0x59, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_NV11 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x56, 0x31, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_NV12 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x56, 0x31, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_YV12 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x56, 0x31, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_I420 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x34, 0x32, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_IYUV - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0x59, 0x55, 0x56, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Y210 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x32, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Y216 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x32, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Y410 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x34, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Y416 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x34, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Y41P - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x34, 0x31, 0x50, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Y41T - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x34, 0x31, 0x54, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Y42T - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x34, 0x32, 0x54, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_P210 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x32, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_P216 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x32, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_P010 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x30, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_P016 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x30, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_v210 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x76, 0x32, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_v216 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x76, 0x32, 0x31, 0x36, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_v410 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x76, 0x34, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MP43 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x50, 0x34, 0x33, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MP4S - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x50, 0x34, 0x53, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_M4S2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x34, 0x53, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MP4V - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x50, 0x34, 0x56, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_WMV1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x57, 0x4D, 0x56, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_WMV2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x57, 0x4D, 0x56, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_WMV3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x57, 0x4D, 0x56, 0x33, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_WVC1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x57, 0x56, 0x43, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MSS1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x53, 0x53, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MSS2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x53, 0x53, 0x32, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MPG1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x50, 0x47, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_DVSL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x73, 0x6C, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_DVSD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x73, 0x64, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_DVHD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x68, 0x64, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_DV25 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x32, 0x35, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_DV50 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x35, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_DVH1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x68, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_DVC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x76, 0x63, 0x20, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_H264 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x32, 0x36, 0x34, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_H265 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x32, 0x36, 0x35, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MJPG - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x4A, 0x50, 0x47, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_420O - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x34, 0x32, 0x30, 0x4F, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_HEVC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x45, 0x56, 0x43, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_HEVC_ES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x45, 0x56, 0x53, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_VP80 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x56, 0x50, 0x38, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_VP90 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x56, 0x50, 0x39, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_ORAW - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4F, 0x52, 0x41, 0x57, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_H263 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x32, 0x36, 0x33, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_A2R10G10B10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1F, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_A16B16G16R16F - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x71, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_VP10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x56, 0x50, 0x31, 0x30, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_AV1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x56, 0x30, 0x31, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Theora - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x74, 0x68, 0x65, 0x6F, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_H264_ES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF0, 0xF4, 0x40, 0x3F, - 0x22, 0x56, - 0xF8, 0x4F, - 0xB6, - 0xD8, - 0xA1, - 0x7A, - 0x58, - 0x4B, - 0xEE, - 0x5E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_MPEG2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x26, 0x80, 0x6D, 0xE0, - 0x46, 0xDB, - 0xCF, 0x11, - 0xB4, - 0xD1, - 0x00, - 0x80, - 0x5F, - 0x6C, - 0xBB, - 0xEA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Base - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_PCM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Float - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x03, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DTS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x08, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC3_SPDIF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x92, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DRM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x09, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_WMAudioV8 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x61, 0x01, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_WMAudioV9 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x62, 0x01, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_WMAudio_Lossless - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x63, 0x01, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_WMASPDIF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x01, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_MSP1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0A, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_MP3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x55, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_MPEG - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x00, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_AAC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x10, 0x16, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_ADTS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0x16, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_AMR_NB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x61, 0x73, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_AMR_WB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x62, 0x73, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_AMR_WP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x63, 0x73, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_FLAC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAC, 0xF1, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_ALAC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x61, 0x6C, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Opus - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4F, 0x70, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC4 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0xAC, 0x00, 0x00, - 0x00, 0x00, - 0x10, 0x00, - 0x80, - 0x00, - 0x00, - 0xAA, - 0x00, - 0x38, - 0x9B, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2C, 0x80, 0x6D, 0xE0, - 0x46, 0xDB, - 0xCF, 0x11, - 0xB4, - 0xD1, - 0x00, - 0x80, - 0x5F, - 0x6C, - 0xBB, - 0xEA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_DDPlus - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAF, 0x87, 0xFB, 0xA7, - 0x02, 0x2D, - 0xFB, 0x42, - 0xA4, - 0xD4, - 0x05, - 0xCD, - 0x93, - 0x84, - 0x3B, - 0xDD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC4_V1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7C, 0x92, 0xB7, 0x36, - 0x87, 0x3D, - 0x2A, 0x4A, - 0x91, - 0x96, - 0xA2, - 0x1A, - 0xD9, - 0xE9, - 0x35, - 0xE6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC4_V2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA0, 0xB2, 0x98, 0x79, - 0xDD, 0x17, - 0xB6, 0x49, - 0x8D, - 0xFA, - 0x9B, - 0x27, - 0x85, - 0x52, - 0xA2, - 0xAC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC4_V1_ES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC6, 0xCC, 0x8D, 0x9D, - 0x56, 0xD1, - 0xB8, 0x4F, - 0x97, - 0x9C, - 0xA8, - 0x5B, - 0xE7, - 0xD2, - 0x1D, - 0xFA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC4_V2_ES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF9, 0xC9, 0x58, 0x7E, - 0x70, 0xB0, - 0xF4, 0x45, - 0x8C, - 0xCD, - 0xA9, - 0x9A, - 0x04, - 0x17, - 0xC1, - 0xAC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Vorbis - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0B, 0xD1, 0x2F, 0x8D, - 0x41, 0x58, - 0x6B, 0x4A, - 0x89, - 0x05, - 0x58, - 0x8F, - 0xEC, - 0x1A, - 0xDE, - 0xD9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DTS_RAW - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x33, 0x80, 0x6D, 0xE0, - 0x46, 0xDB, - 0xCF, 0x11, - 0xB4, - 0xD1, - 0x00, - 0x80, - 0x5F, - 0x6C, - 0xBB, - 0xEA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DTS_HD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB7, 0x8E, 0xE5, 0xA2, - 0xA9, 0x0F, - 0xBB, 0x48, - 0xA4, - 0x0C, - 0xFA, - 0x0E, - 0x15, - 0x6D, - 0x06, - 0x45 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DTS_XLL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1B, 0x7C, 0xB3, 0x45, - 0x70, 0x8C, - 0x59, 0x4E, - 0xA7, - 0xBE, - 0xA1, - 0xE4, - 0x2C, - 0x81, - 0xC8, - 0x0D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DTS_LBR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0A, 0x6F, 0xFE, 0xC2, - 0x3C, 0x4E, - 0xF1, 0x4D, - 0x9B, - 0x60, - 0x50, - 0x86, - 0x30, - 0x91, - 0xE4, - 0xB9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DTS_UHD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x17, 0x01, 0x02, 0x87, - 0xE3, 0xAC, - 0xDE, 0x42, - 0xB7, - 0x3E, - 0xC6, - 0x56, - 0x70, - 0x62, - 0x63, - 0xF8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_DTS_UHDY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x00, 0xCA, 0x9C, 0x9B, - 0xB9, 0x91, - 0xCC, 0x4C, - 0x88, - 0x3A, - 0x8F, - 0x78, - 0x7A, - 0xC3, - 0xCC, - 0x86 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Float_SpatialObjects - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x94, 0xCD, 0x39, 0xFA, - 0x64, 0xBC, - 0xB1, 0x4A, - 0x9B, - 0x71, - 0xDC, - 0xD0, - 0x9D, - 0x5A, - 0x7E, - 0x7A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_LPCM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x32, 0x80, 0x6D, 0xE0, - 0x46, 0xDB, - 0xCF, 0x11, - 0xB4, - 0xD1, - 0x00, - 0x80, - 0x5F, - 0x6C, - 0xBB, - 0xEA + 0xA3, + 0xA9, + 0xA1, + 0xDA, + 0xAC }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4811,23 +1446,23 @@ public static ref readonly Guid MFAudioFormat_LPCM } [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_PCM_HDCP + public static ref readonly Guid MFSampleExtension_FeatureMap { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x01, 0xFF, 0xE7, 0xA5, - 0x11, 0x84, - 0xCC, 0x4A, - 0xA8, - 0x65, - 0x5F, + 0x65, 0xD1, 0x32, 0xA0, + 0xFC, 0x46, + 0x0A, 0x40, + 0xB4, 0x49, - 0x41, - 0x28, - 0x8D, - 0x80 + 0x49, + 0xDE, + 0x53, + 0xE6, + 0x2A, + 0x6E }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4836,23 +1471,23 @@ public static ref readonly Guid MFAudioFormat_PCM_HDCP } [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Dolby_AC3_HDCP + public static ref readonly Guid MFSampleExtension_ChromaOnly { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x80, 0x3A, 0x66, 0x97, - 0xFB, 0x8F, - 0x45, 0x44, - 0xA6, - 0xBA, - 0x79, - 0x2D, - 0x90, - 0x8F, - 0x49, - 0x7F + 0x9C, 0x17, 0xB9, 0x1E, + 0x1F, 0xA0, + 0x45, 0x48, + 0x8C, + 0x04, + 0x0E, + 0x65, + 0xA2, + 0x6E, + 0xB0, + 0x4F }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4861,23 +1496,23 @@ public static ref readonly Guid MFAudioFormat_Dolby_AC3_HDCP } [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_AAC_HDCP + public static ref readonly Guid MFSampleExtension_PhotoThumbnail { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0x76, 0xCE, 0x9B, 0x41, - 0x72, 0x8B, - 0x0F, 0x40, - 0xAD, - 0xEB, - 0x84, + 0x5C, 0xC8, 0xBB, 0x74, + 0xBB, 0xC8, + 0xDC, 0x42, 0xB5, - 0x7D, - 0x63, - 0x48, - 0x4D + 0x86, + 0xDA, + 0x17, + 0xFF, + 0xD3, + 0x5D, + 0xCC }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4886,23 +1521,23 @@ public static ref readonly Guid MFAudioFormat_AAC_HDCP } [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_ADTS_HDCP + public static ref readonly Guid MFSampleExtension_PhotoThumbnailMediaType { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0xA3, 0x63, 0x49, 0xDA, - 0xD8, 0x14, - 0xCF, 0x4D, - 0x92, - 0xB7, - 0x19, - 0x3E, - 0xB8, - 0x43, - 0x63, - 0xDB + 0x20, 0x54, 0xAD, 0x61, + 0xF8, 0xEB, + 0x43, 0x41, + 0x89, + 0xAF, + 0x6B, + 0xF2, + 0x5F, + 0x67, + 0x2D, + 0xEF }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4911,23 +1546,23 @@ public static ref readonly Guid MFAudioFormat_ADTS_HDCP } [NativeTypeName("const GUID")] - public static ref readonly Guid MFAudioFormat_Base_HDCP + public static ref readonly Guid MFSampleExtension_CaptureMetadata { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0xBC, 0xB5, 0x84, 0x38, - 0x77, 0xE2, - 0xFD, 0x43, - 0x98, - 0x3D, - 0x03, - 0x8A, - 0xA8, - 0xD9, - 0xB6, - 0x05 + 0xA8, 0x23, 0xBE, 0x2E, + 0xF5, 0xFA, + 0x4A, 0x44, + 0xA6, + 0xA2, + 0xEB, + 0x81, + 0x08, + 0x80, + 0xAB, + 0x5D }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4936,23 +1571,23 @@ public static ref readonly Guid MFAudioFormat_Base_HDCP } [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_H264_HDCP + public static ref readonly Guid MFSampleExtension_MDLCacheCookie { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0xDD, 0xE9, 0x0C, 0x5D, - 0x17, 0x98, - 0xDA, 0x49, - 0xBD, - 0xFD, - 0xF5, - 0xF5, - 0xB9, - 0x8F, - 0x18, - 0xA6 + 0xF9, 0x2A, 0x00, 0x5F, + 0xF9, 0xD8, + 0xA3, 0x41, + 0xB6, + 0xC3, + 0xA2, + 0xAD, + 0x43, + 0xF6, + 0x47, + 0xAD }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4961,23 +1596,23 @@ public static ref readonly Guid MFVideoFormat_H264_HDCP } [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_HEVC_HDCP + public static ref readonly Guid MFSampleExtension_Depth_MinReliableDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0xE6, 0x0F, 0xFE, 0x3C, - 0xC4, 0x05, - 0xDC, 0x47, - 0x9D, - 0x70, - 0x4B, - 0xDB, - 0x29, - 0x59, + 0xB2, 0x82, 0x85, 0x5F, + 0x6B, 0xE3, + 0xC8, 0x47, + 0x9B, + 0x87, + 0xFE, + 0xE1, + 0xCA, 0x72, - 0x0F + 0xC5, + 0xB0 }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -4986,23 +1621,23 @@ public static ref readonly Guid MFVideoFormat_HEVC_HDCP } [NativeTypeName("const GUID")] - public static ref readonly Guid MFVideoFormat_Base_HDCP + public static ref readonly Guid MFSampleExtension_Depth_MaxReliableDepth { [MethodImpl(MethodImplOptions.AggressiveInlining)] get { ReadOnlySpan data = new byte[] { - 0xD5, 0xB9, 0xC3, 0xEA, - 0x14, 0xBD, - 0x37, 0x42, - 0x8F, - 0x1F, - 0xBA, - 0xB4, - 0x28, - 0xE4, - 0x93, - 0x12 + 0xD1, 0x45, 0x55, 0xE4, + 0x0F, 0x1F, + 0x32, 0x4A, + 0xA8, + 0xA7, + 0x61, + 0x01, + 0xA2, + 0x4E, + 0xA8, + 0xBE }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -5010,6 +1645,71 @@ public static ref readonly Guid MFVideoFormat_Base_HDCP } } + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFCreateAttributes(IMFAttributes** ppMFAttributes, [NativeTypeName("UINT32")] uint cInitialSize); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFInitAttributesFromBlob(IMFAttributes* pAttributes, [NativeTypeName("const UINT8 *")] byte* pBuf, uint cbBufSize); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFGetAttributesAsBlobSize(IMFAttributes* pAttributes, [NativeTypeName("UINT32 *")] uint* pcbBufSize); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFGetAttributesAsBlob(IMFAttributes* pAttributes, [NativeTypeName("UINT8 *")] byte* pBuf, uint cbBufSize); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTRegister([NativeTypeName("CLSID")] Guid clsidMFT, Guid guidCategory, [NativeTypeName("LPWSTR")] ushort* pszName, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("UINT32")] uint cInputTypes, MFT_REGISTER_TYPE_INFO* pInputTypes, [NativeTypeName("UINT32")] uint cOutputTypes, MFT_REGISTER_TYPE_INFO* pOutputTypes, IMFAttributes* pAttributes); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTUnregister([NativeTypeName("CLSID")] Guid clsidMFT); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTRegisterLocal(IClassFactory* pClassFactory, [NativeTypeName("const GUID &")] Guid* guidCategory, [NativeTypeName("LPCWSTR")] ushort* pszName, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("UINT32")] uint cInputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputTypes, [NativeTypeName("UINT32")] uint cOutputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputTypes); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTUnregisterLocal(IClassFactory* pClassFactory); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTRegisterLocalByCLSID([NativeTypeName("const IID &")] Guid* clisdMFT, [NativeTypeName("const GUID &")] Guid* guidCategory, [NativeTypeName("LPCWSTR")] ushort* pszName, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("UINT32")] uint cInputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputTypes, [NativeTypeName("UINT32")] uint cOutputTypes, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputTypes); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTUnregisterLocalByCLSID([NativeTypeName("CLSID")] Guid clsidMFT); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTEnum(Guid guidCategory, [NativeTypeName("UINT32")] uint Flags, MFT_REGISTER_TYPE_INFO* pInputType, MFT_REGISTER_TYPE_INFO* pOutputType, IMFAttributes* pAttributes, [NativeTypeName("CLSID **")] Guid** ppclsidMFT, [NativeTypeName("UINT32 *")] uint* pcMFTs); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTEnumEx(Guid guidCategory, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputType, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputType, IMFActivate*** pppMFTActivate, [NativeTypeName("UINT32 *")] uint* pnumMFTActivate); + + [SupportedOSPlatform("windows10.0")] + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTEnum2(Guid guidCategory, [NativeTypeName("UINT32")] uint Flags, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pInputType, [NativeTypeName("const MFT_REGISTER_TYPE_INFO *")] MFT_REGISTER_TYPE_INFO* pOutputType, IMFAttributes* pAttributes, IMFActivate*** pppMFTActivate, [NativeTypeName("UINT32 *")] uint* pnumMFTActivate); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFTGetInfo([NativeTypeName("CLSID")] Guid clsidMFT, [NativeTypeName("LPWSTR *")] ushort** pszName, MFT_REGISTER_TYPE_INFO** ppInputTypes, [NativeTypeName("UINT32 *")] uint* pcInputTypes, MFT_REGISTER_TYPE_INFO** ppOutputTypes, [NativeTypeName("UINT32 *")] uint* pcOutputTypes, IMFAttributes** ppAttributes); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFGetPluginControl(IMFPluginControl** ppPluginControl); + + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFGetMFTMerit(IUnknown* pMFT, [NativeTypeName("UINT32")] uint cbVerifier, [NativeTypeName("const BYTE *")] byte* verifier, [NativeTypeName("DWORD *")] uint* merit); + + [SupportedOSPlatform("windows8.0")] + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFRegisterLocalSchemeHandler([NativeTypeName("PCWSTR")] ushort* szScheme, IMFActivate* pActivate); + + [SupportedOSPlatform("windows8.0")] + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFRegisterLocalByteStreamHandler([NativeTypeName("PCWSTR")] ushort* szFileExtension, [NativeTypeName("PCWSTR")] ushort* szMimeType, IMFActivate* pActivate); + + [SupportedOSPlatform("windows8.0")] + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFCreateMFByteStreamWrapper(IMFByteStream* pStream, IMFByteStream** ppStreamWrapper); + + [SupportedOSPlatform("windows8.0")] + [DllImport("mfplat", ExactSpelling = true)] + public static extern HRESULT MFCreateMediaExtensionActivate([NativeTypeName("PCWSTR")] ushort* szActivatableClassId, IUnknown* pConfiguration, [NativeTypeName("const IID &")] Guid* riid, [NativeTypeName("LPVOID *")] void** ppvObject); + [NativeTypeName("const GUID")] public static ref readonly Guid MFMPEG4Format_Base { @@ -6022,31 +2722,6 @@ public static ref readonly Guid MFStreamFormat_MPEG2Program } } - [NativeTypeName("const GUID")] - public static ref readonly Guid AM_MEDIA_TYPE_REPRESENTATION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD2, 0x2A, 0xE4, 0xE2, - 0x2C, 0x13, - 0x1E, 0x49, - 0xA2, - 0x68, - 0x3C, - 0x7C, - 0x2D, - 0xCA, - 0x18, - 0x1F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("const GUID")] public static ref readonly Guid FORMAT_MFVideoFormat { @@ -6426,43 +3101,7 @@ public static HRESULT MFSetAttributeSize(IMFAttributes* pAttributes, [NativeType [NativeTypeName("#define MFCAPTURE_METADATA_SCANLINE_VERTICAL 0x00000004")] public const int MFCAPTURE_METADATA_SCANLINE_VERTICAL = 0x00000004; - [NativeTypeName("#define D3DFMT_R8G8B8 20")] - public const int D3DFMT_R8G8B8 = 20; - - [NativeTypeName("#define D3DFMT_A8R8G8B8 21")] - public const int D3DFMT_A8R8G8B8 = 21; - - [NativeTypeName("#define D3DFMT_X8R8G8B8 22")] - public const int D3DFMT_X8R8G8B8 = 22; - - [NativeTypeName("#define D3DFMT_R5G6B5 23")] - public const int D3DFMT_R5G6B5 = 23; - - [NativeTypeName("#define D3DFMT_X1R5G5B5 24")] - public const int D3DFMT_X1R5G5B5 = 24; - - [NativeTypeName("#define D3DFMT_A2B10G10R10 31")] - public const int D3DFMT_A2B10G10R10 = 31; - - [NativeTypeName("#define D3DFMT_P8 41")] - public const int D3DFMT_P8 = 41; - - [NativeTypeName("#define D3DFMT_L8 50")] - public const int D3DFMT_L8 = 50; - - [NativeTypeName("#define D3DFMT_D16 80")] - public const int D3DFMT_D16 = 80; - - [NativeTypeName("#define D3DFMT_L16 81")] - public const int D3DFMT_L16 = 81; - - [NativeTypeName("#define D3DFMT_A16B16G16R16F 113")] - public const int D3DFMT_A16B16G16R16F = 113; - [NativeTypeName("#define LOCAL_D3DFMT_DEFINES 1")] public const int LOCAL_D3DFMT_DEFINES = 1; - - [NativeTypeName("#define MFVideoFormat_MPG2 MFVideoFormat_MPEG2")] - public static ref readonly Guid MFVideoFormat_MPG2 => ref MFVideoFormat_MPEG2; } } diff --git a/sources/Interop/Windows/Windows/um/mfcaptureengine/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/mfcaptureengine/MF.Manual.cs similarity index 95% rename from sources/Interop/Windows/Windows/um/mfcaptureengine/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/mfcaptureengine/MF.Manual.cs index 5271dfff1a..7355f2a4d5 100644 --- a/sources/Interop/Windows/Windows/um/mfcaptureengine/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/mfcaptureengine/MF.Manual.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class MF { public const int MF_CAPTURE_ENGINE_PREFERRED_SOURCE_STREAM_FOR_VIDEO_PREVIEW = unchecked((int)0xFFFFFFFA); diff --git a/sources/Interop/Windows/Windows/um/mfidl/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/mfidl/MF.Manual.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/mfidl/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/mfidl/MF.Manual.cs index 3a2b3d1e46..8ca916e4c4 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/MF.Manual.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class MF { public const int MF_RESOLUTION_MEDIASOURCE = 0x1; diff --git a/sources/Interop/Windows/Windows/um/mfidl/STR.cs b/sources/Interop/Windows/Windows/um/mfidl/STR.cs new file mode 100644 index 0000000000..1c80992769 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfidl/STR.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfidl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STR + { + [NativeTypeName("#define STR_HASH_LEN (SHA_HASH_LEN*2 + 3)")] + public const int STR_HASH_LEN = (20 * 2 + 3); + } +} diff --git a/sources/Interop/Windows/Windows/um/mfidl/Windows.cs b/sources/Interop/Windows/Windows/um/mfidl/Windows.cs index de4348c377..8c955646e6 100644 --- a/sources/Interop/Windows/Windows/um/mfidl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mfidl/Windows.cs @@ -3943,9 +3943,6 @@ public static ref readonly Guid MFSampleExtension_ExtendedCameraIntrinsics [NativeTypeName("#define SHA_HASH_LEN 20")] public const int SHA_HASH_LEN = 20; - [NativeTypeName("#define STR_HASH_LEN (SHA_HASH_LEN*2 + 3)")] - public const int STR_HASH_LEN = (20 * 2 + 3); - [NativeTypeName("#define MFSEQUENCER_INVALID_ELEMENT_ID ( 0xffffffff )")] public const uint MFSEQUENCER_INVALID_ELEMENT_ID = (0xffffffff); diff --git a/sources/Interop/Windows/Windows/um/mfobjects/MFASYNC.cs b/sources/Interop/Windows/Windows/um/mfobjects/MFASYNC.cs new file mode 100644 index 0000000000..309f947787 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfobjects/MFASYNC.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfobjects.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MFASYNC + { + [NativeTypeName("#define MFASYNC_FAST_IO_PROCESSING_CALLBACK 0x00000001")] + public const int MFASYNC_FAST_IO_PROCESSING_CALLBACK = 0x00000001; + + [NativeTypeName("#define MFASYNC_SIGNAL_CALLBACK 0x00000002")] + public const int MFASYNC_SIGNAL_CALLBACK = 0x00000002; + + [NativeTypeName("#define MFASYNC_BLOCKING_CALLBACK 0x00000004")] + public const int MFASYNC_BLOCKING_CALLBACK = 0x00000004; + + [NativeTypeName("#define MFASYNC_REPLY_CALLBACK 0x00000008")] + public const int MFASYNC_REPLY_CALLBACK = 0x00000008; + + [NativeTypeName("#define MFASYNC_LOCALIZE_REMOTE_CALLBACK 0x00000010")] + public const int MFASYNC_LOCALIZE_REMOTE_CALLBACK = 0x00000010; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_UNDEFINED 0x00000000")] + public const int MFASYNC_CALLBACK_QUEUE_UNDEFINED = 0x00000000; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_STANDARD 0x00000001")] + public const int MFASYNC_CALLBACK_QUEUE_STANDARD = 0x00000001; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_RT 0x00000002")] + public const int MFASYNC_CALLBACK_QUEUE_RT = 0x00000002; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_IO 0x00000003")] + public const int MFASYNC_CALLBACK_QUEUE_IO = 0x00000003; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_TIMER 0x00000004")] + public const int MFASYNC_CALLBACK_QUEUE_TIMER = 0x00000004; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_MULTITHREADED 0x00000005")] + public const int MFASYNC_CALLBACK_QUEUE_MULTITHREADED = 0x00000005; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_LONG_FUNCTION 0x00000007")] + public const int MFASYNC_CALLBACK_QUEUE_LONG_FUNCTION = 0x00000007; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_PRIVATE_MASK 0xFFFF0000")] + public const uint MFASYNC_CALLBACK_QUEUE_PRIVATE_MASK = 0xFFFF0000; + + [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_ALL 0xFFFFFFFF")] + public const uint MFASYNC_CALLBACK_QUEUE_ALL = 0xFFFFFFFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/mfobjects/MFBYTESTREAM.cs b/sources/Interop/Windows/Windows/um/mfobjects/MFBYTESTREAM.cs new file mode 100644 index 0000000000..e7ec758998 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mfobjects/MFBYTESTREAM.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfobjects.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MFBYTESTREAM + { + [NativeTypeName("#define MFBYTESTREAM_IS_READABLE 0x00000001")] + public const int MFBYTESTREAM_IS_READABLE = 0x00000001; + + [NativeTypeName("#define MFBYTESTREAM_IS_WRITABLE 0x00000002")] + public const int MFBYTESTREAM_IS_WRITABLE = 0x00000002; + + [NativeTypeName("#define MFBYTESTREAM_IS_SEEKABLE 0x00000004")] + public const int MFBYTESTREAM_IS_SEEKABLE = 0x00000004; + + [NativeTypeName("#define MFBYTESTREAM_IS_REMOTE 0x00000008")] + public const int MFBYTESTREAM_IS_REMOTE = 0x00000008; + + [NativeTypeName("#define MFBYTESTREAM_IS_DIRECTORY 0x00000080")] + public const int MFBYTESTREAM_IS_DIRECTORY = 0x00000080; + + [NativeTypeName("#define MFBYTESTREAM_HAS_SLOW_SEEK 0x00000100")] + public const int MFBYTESTREAM_HAS_SLOW_SEEK = 0x00000100; + + [NativeTypeName("#define MFBYTESTREAM_IS_PARTIALLY_DOWNLOADED 0x00000200")] + public const int MFBYTESTREAM_IS_PARTIALLY_DOWNLOADED = 0x00000200; + + [NativeTypeName("#define MFBYTESTREAM_SHARE_WRITE 0x00000400")] + public const int MFBYTESTREAM_SHARE_WRITE = 0x00000400; + + [NativeTypeName("#define MFBYTESTREAM_DOES_NOT_USE_NETWORK 0x00000800")] + public const int MFBYTESTREAM_DOES_NOT_USE_NETWORK = 0x00000800; + + [NativeTypeName("#define MFBYTESTREAM_SEEK_FLAG_CANCEL_PENDING_IO 0x00000001")] + public const int MFBYTESTREAM_SEEK_FLAG_CANCEL_PENDING_IO = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/mfobjects/Windows.cs b/sources/Interop/Windows/Windows/um/mfobjects/Windows.cs index b24bbc909e..5594fcf4bb 100644 --- a/sources/Interop/Windows/Windows/um/mfobjects/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mfobjects/Windows.cs @@ -21,77 +21,5 @@ public static unsafe partial class Windows [NativeTypeName("#define MFVideoInterlace_FieldSingleLowerFirst MFVideoInterlace_FieldSingleLower")] public const MFVideoInterlaceMode MFVideoInterlace_FieldSingleLowerFirst = MFVideoInterlace_FieldSingleLower; - - [NativeTypeName("#define MFASYNC_FAST_IO_PROCESSING_CALLBACK 0x00000001")] - public const int MFASYNC_FAST_IO_PROCESSING_CALLBACK = 0x00000001; - - [NativeTypeName("#define MFASYNC_SIGNAL_CALLBACK 0x00000002")] - public const int MFASYNC_SIGNAL_CALLBACK = 0x00000002; - - [NativeTypeName("#define MFASYNC_BLOCKING_CALLBACK 0x00000004")] - public const int MFASYNC_BLOCKING_CALLBACK = 0x00000004; - - [NativeTypeName("#define MFASYNC_REPLY_CALLBACK 0x00000008")] - public const int MFASYNC_REPLY_CALLBACK = 0x00000008; - - [NativeTypeName("#define MFASYNC_LOCALIZE_REMOTE_CALLBACK 0x00000010")] - public const int MFASYNC_LOCALIZE_REMOTE_CALLBACK = 0x00000010; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_UNDEFINED 0x00000000")] - public const int MFASYNC_CALLBACK_QUEUE_UNDEFINED = 0x00000000; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_STANDARD 0x00000001")] - public const int MFASYNC_CALLBACK_QUEUE_STANDARD = 0x00000001; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_RT 0x00000002")] - public const int MFASYNC_CALLBACK_QUEUE_RT = 0x00000002; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_IO 0x00000003")] - public const int MFASYNC_CALLBACK_QUEUE_IO = 0x00000003; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_TIMER 0x00000004")] - public const int MFASYNC_CALLBACK_QUEUE_TIMER = 0x00000004; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_MULTITHREADED 0x00000005")] - public const int MFASYNC_CALLBACK_QUEUE_MULTITHREADED = 0x00000005; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_LONG_FUNCTION 0x00000007")] - public const int MFASYNC_CALLBACK_QUEUE_LONG_FUNCTION = 0x00000007; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_PRIVATE_MASK 0xFFFF0000")] - public const uint MFASYNC_CALLBACK_QUEUE_PRIVATE_MASK = 0xFFFF0000; - - [NativeTypeName("#define MFASYNC_CALLBACK_QUEUE_ALL 0xFFFFFFFF")] - public const uint MFASYNC_CALLBACK_QUEUE_ALL = 0xFFFFFFFF; - - [NativeTypeName("#define MFBYTESTREAM_IS_READABLE 0x00000001")] - public const int MFBYTESTREAM_IS_READABLE = 0x00000001; - - [NativeTypeName("#define MFBYTESTREAM_IS_WRITABLE 0x00000002")] - public const int MFBYTESTREAM_IS_WRITABLE = 0x00000002; - - [NativeTypeName("#define MFBYTESTREAM_IS_SEEKABLE 0x00000004")] - public const int MFBYTESTREAM_IS_SEEKABLE = 0x00000004; - - [NativeTypeName("#define MFBYTESTREAM_IS_REMOTE 0x00000008")] - public const int MFBYTESTREAM_IS_REMOTE = 0x00000008; - - [NativeTypeName("#define MFBYTESTREAM_IS_DIRECTORY 0x00000080")] - public const int MFBYTESTREAM_IS_DIRECTORY = 0x00000080; - - [NativeTypeName("#define MFBYTESTREAM_HAS_SLOW_SEEK 0x00000100")] - public const int MFBYTESTREAM_HAS_SLOW_SEEK = 0x00000100; - - [NativeTypeName("#define MFBYTESTREAM_IS_PARTIALLY_DOWNLOADED 0x00000200")] - public const int MFBYTESTREAM_IS_PARTIALLY_DOWNLOADED = 0x00000200; - - [NativeTypeName("#define MFBYTESTREAM_SHARE_WRITE 0x00000400")] - public const int MFBYTESTREAM_SHARE_WRITE = 0x00000400; - - [NativeTypeName("#define MFBYTESTREAM_DOES_NOT_USE_NETWORK 0x00000800")] - public const int MFBYTESTREAM_DOES_NOT_USE_NETWORK = 0x00000800; - - [NativeTypeName("#define MFBYTESTREAM_SEEK_FLAG_CANCEL_PENDING_IO 0x00000001")] - public const int MFBYTESTREAM_SEEK_FLAG_CANCEL_PENDING_IO = 0x00000001; } } diff --git a/sources/Interop/Windows/Windows/um/mfreadwrite/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/mfreadwrite/MF.Manual.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/mfreadwrite/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/mfreadwrite/MF.Manual.cs index 3266f16937..64ce81121c 100644 --- a/sources/Interop/Windows/Windows/um/mfreadwrite/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/mfreadwrite/MF.Manual.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class MF { public const int MF_SOURCE_READER_INVALID_STREAM_INDEX = unchecked((int)0xFFFFFFFF); diff --git a/sources/Interop/Windows/Windows/um/mfsharingengine/Windows.cs b/sources/Interop/Windows/Windows/um/mfsharingengine/GUID.cs similarity index 98% rename from sources/Interop/Windows/Windows/um/mfsharingengine/Windows.cs rename to sources/Interop/Windows/Windows/um/mfsharingengine/GUID.cs index 349428f60f..84bf34a454 100644 --- a/sources/Interop/Windows/Windows/um/mfsharingengine/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mfsharingengine/GUID.cs @@ -10,7 +10,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class GUID { [NativeTypeName("const IID")] public static ref readonly Guid GUID_PlayToService diff --git a/sources/Interop/Windows/Windows/um/mftransform/MFT.cs b/sources/Interop/Windows/Windows/um/mftransform/MFT.cs new file mode 100644 index 0000000000..6b5ce20886 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mftransform/MFT.cs @@ -0,0 +1,724 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mftransform.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class MFT + { + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_END_STREAMING_AWARE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x45, 0xC8, 0xFB, 0x70, + 0x7E, 0xB0, + 0x89, 0x40, + 0xB0, + 0x64, + 0x39, + 0x9D, + 0xC6, + 0x11, + 0x0F, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_AUDIO_DECODER_AUDIO_ENDPOINT_ID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0xDD, 0xCC, 0xC7, + 0x98, 0x53, + 0x95, 0x46, + 0x8B, + 0xE7, + 0x51, + 0xB3, + 0xE9, + 0x51, + 0x11, + 0xBD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_AUDIO_DECODER_SPATIAL_METADATA_CLIENT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0x7D, 0x98, 0x05, + 0x70, 0x12, + 0x99, 0x49, + 0x92, + 0x5F, + 0x8E, + 0x93, + 0x9A, + 0x7C, + 0x0A, + 0xF7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_SUPPORT_3DVIDEO + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB1, 0x81, 0x3F, 0x09, + 0x2E, 0x4F, + 0x31, 0x46, + 0x81, + 0x68, + 0x79, + 0x34, + 0x03, + 0x2A, + 0x01, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3F, 0x83, 0x80, 0xEF, + 0xFA, 0xF8, + 0xD9, 0x44, + 0x80, + 0xD8, + 0x41, + 0xED, + 0x62, + 0x32, + 0x67, + 0x0C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_DECODER_QUALITY_MANAGEMENT_CUSTOM_CONTROL + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD7, 0x30, 0x4E, 0xA2, + 0x25, 0xDE, + 0x58, 0x45, + 0xBB, + 0xFB, + 0x71, + 0x07, + 0x0A, + 0x2D, + 0x33, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_DECODER_QUALITY_MANAGEMENT_RECOVERY_WITHOUT_ARTIFACTS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEB, 0x0D, 0x98, 0xD8, + 0x48, 0x0A, + 0x5F, 0x42, + 0x86, + 0x23, + 0x61, + 0x1D, + 0xB4, + 0x1D, + 0x38, + 0x10 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x85, 0x8F, 0x4E, 0x36, + 0x2E, 0x3F, + 0x6C, 0x43, + 0xB2, + 0xA2, + 0x44, + 0x40, + 0xA0, + 0x12, + 0xA9, + 0xE8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x96, 0x84, 0x2F, 0xDC, + 0xC4, 0x15, + 0x7A, 0x40, + 0xB6, + 0xF0, + 0x1B, + 0x66, + 0xAB, + 0x5F, + 0xBF, + 0x53 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_ENCODER_SUPPORTS_CONFIG_EVENT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAE, 0x55, 0xA3, 0x86, + 0x77, 0x3A, + 0xC4, 0x4E, + 0x9F, + 0x31, + 0x01, + 0x14, + 0x9A, + 0x4E, + 0x92, + 0xDE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_ENUM_HARDWARE_VENDOR_ID_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCC, 0xB0, 0xEC, 0x3A, + 0x5B, 0x03, + 0xCC, 0x4B, + 0x81, + 0x85, + 0x2B, + 0x8D, + 0x55, + 0x1E, + 0xF3, + 0xAF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_TRANSFORM_CLSID_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2B, 0xC4, 0x21, 0x68, + 0xA4, 0x65, + 0x82, 0x4E, + 0x99, + 0xBC, + 0x9A, + 0x88, + 0x20, + 0x5E, + 0xCD, + 0x0C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_INPUT_TYPES_Attributes + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB1, 0xC9, 0x76, 0x42, + 0x9D, 0x75, + 0xF3, 0x4B, + 0x9C, + 0xD0, + 0x0D, + 0x72, + 0x3D, + 0x13, + 0x8F, + 0x96 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_OUTPUT_TYPES_Attributes + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF3, 0x8C, 0xAE, 0x8E, + 0x4F, 0xA4, + 0x06, 0x43, + 0xBA, + 0x5C, + 0xBF, + 0x5D, + 0xDA, + 0x24, + 0x28, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_ENUM_HARDWARE_URL_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAC, 0x66, 0xB8, 0x2F, + 0x78, 0xB0, + 0x42, 0x49, + 0xAB, + 0x6C, + 0x00, + 0x3D, + 0x05, + 0xCD, + 0xA6, + 0x74 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_FRIENDLY_NAME_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAE, 0xFB, 0x4F, 0x31, + 0x41, 0x5B, + 0x95, 0x4C, + 0x9C, + 0x19, + 0x4E, + 0x7D, + 0x58, + 0x6F, + 0xAC, + 0xE3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CONNECTED_STREAM_ATTRIBUTE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x20, 0xB8, 0xEE, 0x71, + 0x9F, 0xA5, + 0xE2, 0x4D, + 0xBC, + 0xEC, + 0x38, + 0xDB, + 0x1D, + 0xD6, + 0x11, + 0xA4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CONNECTED_TO_HW_STREAM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x28, 0xE7, 0xE6, 0x34, + 0xD6, 0x06, + 0x91, 0x44, + 0xA5, + 0x53, + 0x47, + 0x95, + 0x65, + 0x0D, + 0xB9, + 0x12 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_PREFERRED_OUTPUTTYPE_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x99, 0x04, 0x70, 0x7E, + 0x6A, 0x39, + 0xEE, 0x49, + 0xB1, + 0xB4, + 0xF6, + 0x28, + 0x02, + 0x1E, + 0x8C, + 0x9D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_PROCESS_LOCAL_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE4, 0x86, 0x31, 0x54, + 0x49, 0x46, + 0x65, 0x4E, + 0xB5, + 0x88, + 0x4A, + 0xA3, + 0x52, + 0xAF, + 0xF3, + 0x79 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_PREFERRED_ENCODER_PROFILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x09, 0x49, 0x00, 0x53, + 0xF5, 0x1E, + 0xD7, 0x46, + 0xA1, + 0x8E, + 0x5A, + 0x75, + 0xF8, + 0xB5, + 0x90, + 0x5F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_HW_TIMESTAMP_WITH_QPC_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB8, 0x0F, 0x03, 0x8D, + 0x43, 0xCC, + 0x58, 0x42, + 0xA2, + 0x2E, + 0x92, + 0x10, + 0xBE, + 0xF8, + 0x9B, + 0xE4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_FIELDOFUSE_UNLOCK_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFD, 0xE9, 0xC2, 0x8E, + 0x48, 0x91, + 0x0D, 0x41, + 0x83, + 0x1E, + 0x70, + 0x24, + 0x39, + 0x46, + 0x1A, + 0x8E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_CODEC_MERIT_Attribute + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0xCB, 0xA7, 0x88, + 0x07, 0x7B, + 0x34, 0x4A, + 0x91, + 0x28, + 0xE6, + 0x4C, + 0x67, + 0x03, + 0xC4, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCD, 0xA8, 0x1E, 0x11, + 0x2A, 0xB6, + 0xDB, 0x4B, + 0x89, + 0xF6, + 0x67, + 0xFF, + 0xCD, + 0xC2, + 0x45, + 0x8B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const IID")] + public static ref readonly Guid MFT_AUDIO_DECODER_DEGRADATION_INFO_ATTRIBUTE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAD, 0x86, 0x33, 0x6C, + 0x20, 0xEC, + 0x0D, 0x43, + 0xB2, + 0xA5, + 0x50, + 0x5C, + 0x71, + 0x78, + 0xD9, + 0xC4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_POLICY_SET_AWARE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x3B, 0x63, 0x5A, + 0x39, 0xCC, + 0xA8, 0x4F, + 0x8C, + 0xA5, + 0x59, + 0x98, + 0x1B, + 0x7A, + 0x00, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid MFT_USING_HARDWARE_DRM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0xA7, 0xFA, 0x34, + 0x9E, 0xD7, + 0x57, 0x49, + 0xB8, + 0xCE, + 0x36, + 0x2B, + 0x26, + 0x84, + 0x99, + 0x6C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define MFT_STREAMS_UNLIMITED 0xFFFFFFFF")] + public const uint MFT_STREAMS_UNLIMITED = 0xFFFFFFFF; + + [NativeTypeName("#define MFT_OUTPUT_BOUND_LOWER_UNBOUNDED MINLONGLONG")] + public const long MFT_OUTPUT_BOUND_LOWER_UNBOUNDED = ((long)(~(0x7fffffffffffffff))); + + [NativeTypeName("#define MFT_OUTPUT_BOUND_UPPER_UNBOUNDED MAXLONGLONG")] + public const long MFT_OUTPUT_BOUND_UPPER_UNBOUNDED = (0x7fffffffffffffff); + } +} diff --git a/sources/Interop/Windows/Windows/um/mftransform/Windows.cs b/sources/Interop/Windows/Windows/um/mftransform/Windows.cs index cc4a161681..d572cafdea 100644 --- a/sources/Interop/Windows/Windows/um/mftransform/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mftransform/Windows.cs @@ -141,716 +141,7 @@ public static ref readonly PROPERTYKEY MFPKEY_MULTICHANNEL_CHANNEL_MASK } } - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_END_STREAMING_AWARE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x45, 0xC8, 0xFB, 0x70, - 0x7E, 0xB0, - 0x89, 0x40, - 0xB0, - 0x64, - 0x39, - 0x9D, - 0xC6, - 0x11, - 0x0F, - 0x29 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_AUDIO_DECODER_AUDIO_ENDPOINT_ID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6E, 0xDD, 0xCC, 0xC7, - 0x98, 0x53, - 0x95, 0x46, - 0x8B, - 0xE7, - 0x51, - 0xB3, - 0xE9, - 0x51, - 0x11, - 0xBD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_AUDIO_DECODER_SPATIAL_METADATA_CLIENT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF4, 0x7D, 0x98, 0x05, - 0x70, 0x12, - 0x99, 0x49, - 0x92, - 0x5F, - 0x8E, - 0x93, - 0x9A, - 0x7C, - 0x0A, - 0xF7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_SUPPORT_3DVIDEO - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB1, 0x81, 0x3F, 0x09, - 0x2E, 0x4F, - 0x31, 0x46, - 0x81, - 0x68, - 0x79, - 0x34, - 0x03, - 0x2A, - 0x01, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3F, 0x83, 0x80, 0xEF, - 0xFA, 0xF8, - 0xD9, 0x44, - 0x80, - 0xD8, - 0x41, - 0xED, - 0x62, - 0x32, - 0x67, - 0x0C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_DECODER_QUALITY_MANAGEMENT_CUSTOM_CONTROL - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD7, 0x30, 0x4E, 0xA2, - 0x25, 0xDE, - 0x58, 0x45, - 0xBB, - 0xFB, - 0x71, - 0x07, - 0x0A, - 0x2D, - 0x33, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_DECODER_QUALITY_MANAGEMENT_RECOVERY_WITHOUT_ARTIFACTS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEB, 0x0D, 0x98, 0xD8, - 0x48, 0x0A, - 0x5F, 0x42, - 0x86, - 0x23, - 0x61, - 0x1D, - 0xB4, - 0x1D, - 0x38, - 0x10 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x85, 0x8F, 0x4E, 0x36, - 0x2E, 0x3F, - 0x6C, 0x43, - 0xB2, - 0xA2, - 0x44, - 0x40, - 0xA0, - 0x12, - 0xA9, - 0xE8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x96, 0x84, 0x2F, 0xDC, - 0xC4, 0x15, - 0x7A, 0x40, - 0xB6, - 0xF0, - 0x1B, - 0x66, - 0xAB, - 0x5F, - 0xBF, - 0x53 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_ENCODER_SUPPORTS_CONFIG_EVENT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAE, 0x55, 0xA3, 0x86, - 0x77, 0x3A, - 0xC4, 0x4E, - 0x9F, - 0x31, - 0x01, - 0x14, - 0x9A, - 0x4E, - 0x92, - 0xDE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_ENUM_HARDWARE_VENDOR_ID_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCC, 0xB0, 0xEC, 0x3A, - 0x5B, 0x03, - 0xCC, 0x4B, - 0x81, - 0x85, - 0x2B, - 0x8D, - 0x55, - 0x1E, - 0xF3, - 0xAF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_TRANSFORM_CLSID_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2B, 0xC4, 0x21, 0x68, - 0xA4, 0x65, - 0x82, 0x4E, - 0x99, - 0xBC, - 0x9A, - 0x88, - 0x20, - 0x5E, - 0xCD, - 0x0C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_INPUT_TYPES_Attributes - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB1, 0xC9, 0x76, 0x42, - 0x9D, 0x75, - 0xF3, 0x4B, - 0x9C, - 0xD0, - 0x0D, - 0x72, - 0x3D, - 0x13, - 0x8F, - 0x96 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_OUTPUT_TYPES_Attributes - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF3, 0x8C, 0xAE, 0x8E, - 0x4F, 0xA4, - 0x06, 0x43, - 0xBA, - 0x5C, - 0xBF, - 0x5D, - 0xDA, - 0x24, - 0x28, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_ENUM_HARDWARE_URL_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAC, 0x66, 0xB8, 0x2F, - 0x78, 0xB0, - 0x42, 0x49, - 0xAB, - 0x6C, - 0x00, - 0x3D, - 0x05, - 0xCD, - 0xA6, - 0x74 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_FRIENDLY_NAME_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAE, 0xFB, 0x4F, 0x31, - 0x41, 0x5B, - 0x95, 0x4C, - 0x9C, - 0x19, - 0x4E, - 0x7D, - 0x58, - 0x6F, - 0xAC, - 0xE3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CONNECTED_STREAM_ATTRIBUTE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x20, 0xB8, 0xEE, 0x71, - 0x9F, 0xA5, - 0xE2, 0x4D, - 0xBC, - 0xEC, - 0x38, - 0xDB, - 0x1D, - 0xD6, - 0x11, - 0xA4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CONNECTED_TO_HW_STREAM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x28, 0xE7, 0xE6, 0x34, - 0xD6, 0x06, - 0x91, 0x44, - 0xA5, - 0x53, - 0x47, - 0x95, - 0x65, - 0x0D, - 0xB9, - 0x12 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_PREFERRED_OUTPUTTYPE_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x99, 0x04, 0x70, 0x7E, - 0x6A, 0x39, - 0xEE, 0x49, - 0xB1, - 0xB4, - 0xF6, - 0x28, - 0x02, - 0x1E, - 0x8C, - 0x9D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_PROCESS_LOCAL_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE4, 0x86, 0x31, 0x54, - 0x49, 0x46, - 0x65, 0x4E, - 0xB5, - 0x88, - 0x4A, - 0xA3, - 0x52, - 0xAF, - 0xF3, - 0x79 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_PREFERRED_ENCODER_PROFILE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x09, 0x49, 0x00, 0x53, - 0xF5, 0x1E, - 0xD7, 0x46, - 0xA1, - 0x8E, - 0x5A, - 0x75, - 0xF8, - 0xB5, - 0x90, - 0x5F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_HW_TIMESTAMP_WITH_QPC_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB8, 0x0F, 0x03, 0x8D, - 0x43, 0xCC, - 0x58, 0x42, - 0xA2, - 0x2E, - 0x92, - 0x10, - 0xBE, - 0xF8, - 0x9B, - 0xE4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_FIELDOFUSE_UNLOCK_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFD, 0xE9, 0xC2, 0x8E, - 0x48, 0x91, - 0x0D, 0x41, - 0x83, - 0x1E, - 0x70, - 0x24, - 0x39, - 0x46, - 0x1A, - 0x8E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_CODEC_MERIT_Attribute - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x15, 0xCB, 0xA7, 0x88, - 0x07, 0x7B, - 0x34, 0x4A, - 0x91, - 0x28, - 0xE6, - 0x4C, - 0x67, - 0x03, - 0xC4, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCD, 0xA8, 0x1E, 0x11, - 0x2A, 0xB6, - 0xDB, 0x4B, - 0x89, - 0xF6, - 0x67, - 0xFF, - 0xCD, - 0xC2, - 0x45, - 0x8B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [DllImport("mfplat", ExactSpelling = true)] public static extern HRESULT MFCreateTransformActivate(IMFActivate** ppActivate); - - [NativeTypeName("const IID")] - public static ref readonly Guid MFT_AUDIO_DECODER_DEGRADATION_INFO_ATTRIBUTE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAD, 0x86, 0x33, 0x6C, - 0x20, 0xEC, - 0x0D, 0x43, - 0xB2, - 0xA5, - 0x50, - 0x5C, - 0x71, - 0x78, - 0xD9, - 0xC4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_POLICY_SET_AWARE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0x3B, 0x63, 0x5A, - 0x39, 0xCC, - 0xA8, 0x4F, - 0x8C, - 0xA5, - 0x59, - 0x98, - 0x1B, - 0x7A, - 0x00, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid MFT_USING_HARDWARE_DRM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0xA7, 0xFA, 0x34, - 0x9E, 0xD7, - 0x57, 0x49, - 0xB8, - 0xCE, - 0x36, - 0x2B, - 0x26, - 0x84, - 0x99, - 0x6C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("#define MFT_STREAMS_UNLIMITED 0xFFFFFFFF")] - public const uint MFT_STREAMS_UNLIMITED = 0xFFFFFFFF; - - [NativeTypeName("#define MFT_OUTPUT_BOUND_LOWER_UNBOUNDED MINLONGLONG")] - public const long MFT_OUTPUT_BOUND_LOWER_UNBOUNDED = ((long)(~(0x7fffffffffffffff))); - - [NativeTypeName("#define MFT_OUTPUT_BOUND_UPPER_UNBOUNDED MAXLONGLONG")] - public const long MFT_OUTPUT_BOUND_UPPER_UNBOUNDED = (0x7fffffffffffffff); } } diff --git a/sources/Interop/Windows/Windows/um/minwinbase/CREATE.cs b/sources/Interop/Windows/Windows/um/minwinbase/CREATE.cs new file mode 100644 index 0000000000..07b5960f89 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/minwinbase/CREATE.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/minwinbase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CREATE + { + [NativeTypeName("#define CREATE_THREAD_DEBUG_EVENT 2")] + public const int CREATE_THREAD_DEBUG_EVENT = 2; + + [NativeTypeName("#define CREATE_PROCESS_DEBUG_EVENT 3")] + public const int CREATE_PROCESS_DEBUG_EVENT = 3; + } +} diff --git a/sources/Interop/Windows/Windows/um/minwinbase/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/minwinbase/EXCEPTION.Manual.cs similarity index 92% rename from sources/Interop/Windows/Windows/um/minwinbase/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/minwinbase/EXCEPTION.Manual.cs index 3f92a2df62..c998ae3b9a 100644 --- a/sources/Interop/Windows/Windows/um/minwinbase/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/minwinbase/EXCEPTION.Manual.cs @@ -7,7 +7,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class EXCEPTION { public const uint EXCEPTION_POSSIBLE_DEADLOCK = unchecked((uint)(STATUS_POSSIBLE_DEADLOCK)); } diff --git a/sources/Interop/Windows/Windows/um/minwinbase/EXCEPTION.cs b/sources/Interop/Windows/Windows/um/minwinbase/EXCEPTION.cs new file mode 100644 index 0000000000..ff235ddcd2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/minwinbase/EXCEPTION.cs @@ -0,0 +1,79 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/minwinbase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EXCEPTION + { + [NativeTypeName("#define EXCEPTION_DEBUG_EVENT 1")] + public const int EXCEPTION_DEBUG_EVENT = 1; + + [NativeTypeName("#define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION")] + public const uint EXCEPTION_ACCESS_VIOLATION = ((uint)(0xC0000005)); + + [NativeTypeName("#define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT")] + public const uint EXCEPTION_DATATYPE_MISALIGNMENT = ((uint)(0x80000002)); + + [NativeTypeName("#define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT")] + public const uint EXCEPTION_BREAKPOINT = ((uint)(0x80000003)); + + [NativeTypeName("#define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP")] + public const uint EXCEPTION_SINGLE_STEP = ((uint)(0x80000004)); + + [NativeTypeName("#define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED")] + public const uint EXCEPTION_ARRAY_BOUNDS_EXCEEDED = ((uint)(0xC000008C)); + + [NativeTypeName("#define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND")] + public const uint EXCEPTION_FLT_DENORMAL_OPERAND = ((uint)(0xC000008D)); + + [NativeTypeName("#define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO")] + public const uint EXCEPTION_FLT_DIVIDE_BY_ZERO = ((uint)(0xC000008E)); + + [NativeTypeName("#define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT")] + public const uint EXCEPTION_FLT_INEXACT_RESULT = ((uint)(0xC000008F)); + + [NativeTypeName("#define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION")] + public const uint EXCEPTION_FLT_INVALID_OPERATION = ((uint)(0xC0000090)); + + [NativeTypeName("#define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW")] + public const uint EXCEPTION_FLT_OVERFLOW = ((uint)(0xC0000091)); + + [NativeTypeName("#define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK")] + public const uint EXCEPTION_FLT_STACK_CHECK = ((uint)(0xC0000092)); + + [NativeTypeName("#define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW")] + public const uint EXCEPTION_FLT_UNDERFLOW = ((uint)(0xC0000093)); + + [NativeTypeName("#define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO")] + public const uint EXCEPTION_INT_DIVIDE_BY_ZERO = ((uint)(0xC0000094)); + + [NativeTypeName("#define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW")] + public const uint EXCEPTION_INT_OVERFLOW = ((uint)(0xC0000095)); + + [NativeTypeName("#define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION")] + public const uint EXCEPTION_PRIV_INSTRUCTION = ((uint)(0xC0000096)); + + [NativeTypeName("#define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR")] + public const uint EXCEPTION_IN_PAGE_ERROR = ((uint)(0xC0000006)); + + [NativeTypeName("#define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION")] + public const uint EXCEPTION_ILLEGAL_INSTRUCTION = ((uint)(0xC000001D)); + + [NativeTypeName("#define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION")] + public const uint EXCEPTION_NONCONTINUABLE_EXCEPTION = ((uint)(0xC0000025)); + + [NativeTypeName("#define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW")] + public const uint EXCEPTION_STACK_OVERFLOW = ((uint)(0xC00000FD)); + + [NativeTypeName("#define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION")] + public const uint EXCEPTION_INVALID_DISPOSITION = ((uint)(0xC0000026)); + + [NativeTypeName("#define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION")] + public const uint EXCEPTION_GUARD_PAGE = ((uint)(0x80000001)); + + [NativeTypeName("#define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE")] + public const uint EXCEPTION_INVALID_HANDLE = ((uint)(0xC0000008)); + } +} diff --git a/sources/Interop/Windows/Windows/um/minwinbase/LMEM.cs b/sources/Interop/Windows/Windows/um/minwinbase/LMEM.cs new file mode 100644 index 0000000000..ebe4058eb8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/minwinbase/LMEM.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/minwinbase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LMEM + { + [NativeTypeName("#define LMEM_FIXED 0x0000")] + public const int LMEM_FIXED = 0x0000; + + [NativeTypeName("#define LMEM_MOVEABLE 0x0002")] + public const int LMEM_MOVEABLE = 0x0002; + + [NativeTypeName("#define LMEM_NOCOMPACT 0x0010")] + public const int LMEM_NOCOMPACT = 0x0010; + + [NativeTypeName("#define LMEM_NODISCARD 0x0020")] + public const int LMEM_NODISCARD = 0x0020; + + [NativeTypeName("#define LMEM_ZEROINIT 0x0040")] + public const int LMEM_ZEROINIT = 0x0040; + + [NativeTypeName("#define LMEM_MODIFY 0x0080")] + public const int LMEM_MODIFY = 0x0080; + + [NativeTypeName("#define LMEM_DISCARDABLE 0x0F00")] + public const int LMEM_DISCARDABLE = 0x0F00; + + [NativeTypeName("#define LMEM_VALID_FLAGS 0x0F72")] + public const int LMEM_VALID_FLAGS = 0x0F72; + + [NativeTypeName("#define LMEM_INVALID_HANDLE 0x8000")] + public const int LMEM_INVALID_HANDLE = 0x8000; + + [NativeTypeName("#define LMEM_DISCARDED 0x4000")] + public const int LMEM_DISCARDED = 0x4000; + + [NativeTypeName("#define LMEM_LOCKCOUNT 0x00FF")] + public const int LMEM_LOCKCOUNT = 0x00FF; + } +} diff --git a/sources/Interop/Windows/Windows/um/minwinbase/LOAD.cs b/sources/Interop/Windows/Windows/um/minwinbase/LOAD.cs new file mode 100644 index 0000000000..ee9d6bf278 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/minwinbase/LOAD.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/minwinbase.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LOAD + { + [NativeTypeName("#define LOAD_DLL_DEBUG_EVENT 6")] + public const int LOAD_DLL_DEBUG_EVENT = 6; + } +} diff --git a/sources/Interop/Windows/Windows/um/minwinbase/Windows.cs b/sources/Interop/Windows/Windows/um/minwinbase/Windows.cs index f96a985f38..f19c434bc0 100644 --- a/sources/Interop/Windows/Windows/um/minwinbase/Windows.cs +++ b/sources/Interop/Windows/Windows/um/minwinbase/Windows.cs @@ -22,24 +22,12 @@ public static partial class Windows [NativeTypeName("#define LOCKFILE_EXCLUSIVE_LOCK 0x00000002")] public const int LOCKFILE_EXCLUSIVE_LOCK = 0x00000002; - [NativeTypeName("#define EXCEPTION_DEBUG_EVENT 1")] - public const int EXCEPTION_DEBUG_EVENT = 1; - - [NativeTypeName("#define CREATE_THREAD_DEBUG_EVENT 2")] - public const int CREATE_THREAD_DEBUG_EVENT = 2; - - [NativeTypeName("#define CREATE_PROCESS_DEBUG_EVENT 3")] - public const int CREATE_PROCESS_DEBUG_EVENT = 3; - [NativeTypeName("#define EXIT_THREAD_DEBUG_EVENT 4")] public const int EXIT_THREAD_DEBUG_EVENT = 4; [NativeTypeName("#define EXIT_PROCESS_DEBUG_EVENT 5")] public const int EXIT_PROCESS_DEBUG_EVENT = 5; - [NativeTypeName("#define LOAD_DLL_DEBUG_EVENT 6")] - public const int LOAD_DLL_DEBUG_EVENT = 6; - [NativeTypeName("#define UNLOAD_DLL_DEBUG_EVENT 7")] public const int UNLOAD_DLL_DEBUG_EVENT = 7; @@ -52,102 +40,9 @@ public static partial class Windows [NativeTypeName("#define STILL_ACTIVE STATUS_PENDING")] public const uint STILL_ACTIVE = ((uint)(0x00000103)); - [NativeTypeName("#define EXCEPTION_ACCESS_VIOLATION STATUS_ACCESS_VIOLATION")] - public const uint EXCEPTION_ACCESS_VIOLATION = ((uint)(0xC0000005)); - - [NativeTypeName("#define EXCEPTION_DATATYPE_MISALIGNMENT STATUS_DATATYPE_MISALIGNMENT")] - public const uint EXCEPTION_DATATYPE_MISALIGNMENT = ((uint)(0x80000002)); - - [NativeTypeName("#define EXCEPTION_BREAKPOINT STATUS_BREAKPOINT")] - public const uint EXCEPTION_BREAKPOINT = ((uint)(0x80000003)); - - [NativeTypeName("#define EXCEPTION_SINGLE_STEP STATUS_SINGLE_STEP")] - public const uint EXCEPTION_SINGLE_STEP = ((uint)(0x80000004)); - - [NativeTypeName("#define EXCEPTION_ARRAY_BOUNDS_EXCEEDED STATUS_ARRAY_BOUNDS_EXCEEDED")] - public const uint EXCEPTION_ARRAY_BOUNDS_EXCEEDED = ((uint)(0xC000008C)); - - [NativeTypeName("#define EXCEPTION_FLT_DENORMAL_OPERAND STATUS_FLOAT_DENORMAL_OPERAND")] - public const uint EXCEPTION_FLT_DENORMAL_OPERAND = ((uint)(0xC000008D)); - - [NativeTypeName("#define EXCEPTION_FLT_DIVIDE_BY_ZERO STATUS_FLOAT_DIVIDE_BY_ZERO")] - public const uint EXCEPTION_FLT_DIVIDE_BY_ZERO = ((uint)(0xC000008E)); - - [NativeTypeName("#define EXCEPTION_FLT_INEXACT_RESULT STATUS_FLOAT_INEXACT_RESULT")] - public const uint EXCEPTION_FLT_INEXACT_RESULT = ((uint)(0xC000008F)); - - [NativeTypeName("#define EXCEPTION_FLT_INVALID_OPERATION STATUS_FLOAT_INVALID_OPERATION")] - public const uint EXCEPTION_FLT_INVALID_OPERATION = ((uint)(0xC0000090)); - - [NativeTypeName("#define EXCEPTION_FLT_OVERFLOW STATUS_FLOAT_OVERFLOW")] - public const uint EXCEPTION_FLT_OVERFLOW = ((uint)(0xC0000091)); - - [NativeTypeName("#define EXCEPTION_FLT_STACK_CHECK STATUS_FLOAT_STACK_CHECK")] - public const uint EXCEPTION_FLT_STACK_CHECK = ((uint)(0xC0000092)); - - [NativeTypeName("#define EXCEPTION_FLT_UNDERFLOW STATUS_FLOAT_UNDERFLOW")] - public const uint EXCEPTION_FLT_UNDERFLOW = ((uint)(0xC0000093)); - - [NativeTypeName("#define EXCEPTION_INT_DIVIDE_BY_ZERO STATUS_INTEGER_DIVIDE_BY_ZERO")] - public const uint EXCEPTION_INT_DIVIDE_BY_ZERO = ((uint)(0xC0000094)); - - [NativeTypeName("#define EXCEPTION_INT_OVERFLOW STATUS_INTEGER_OVERFLOW")] - public const uint EXCEPTION_INT_OVERFLOW = ((uint)(0xC0000095)); - - [NativeTypeName("#define EXCEPTION_PRIV_INSTRUCTION STATUS_PRIVILEGED_INSTRUCTION")] - public const uint EXCEPTION_PRIV_INSTRUCTION = ((uint)(0xC0000096)); - - [NativeTypeName("#define EXCEPTION_IN_PAGE_ERROR STATUS_IN_PAGE_ERROR")] - public const uint EXCEPTION_IN_PAGE_ERROR = ((uint)(0xC0000006)); - - [NativeTypeName("#define EXCEPTION_ILLEGAL_INSTRUCTION STATUS_ILLEGAL_INSTRUCTION")] - public const uint EXCEPTION_ILLEGAL_INSTRUCTION = ((uint)(0xC000001D)); - - [NativeTypeName("#define EXCEPTION_NONCONTINUABLE_EXCEPTION STATUS_NONCONTINUABLE_EXCEPTION")] - public const uint EXCEPTION_NONCONTINUABLE_EXCEPTION = ((uint)(0xC0000025)); - - [NativeTypeName("#define EXCEPTION_STACK_OVERFLOW STATUS_STACK_OVERFLOW")] - public const uint EXCEPTION_STACK_OVERFLOW = ((uint)(0xC00000FD)); - - [NativeTypeName("#define EXCEPTION_INVALID_DISPOSITION STATUS_INVALID_DISPOSITION")] - public const uint EXCEPTION_INVALID_DISPOSITION = ((uint)(0xC0000026)); - - [NativeTypeName("#define EXCEPTION_GUARD_PAGE STATUS_GUARD_PAGE_VIOLATION")] - public const uint EXCEPTION_GUARD_PAGE = ((uint)(0x80000001)); - - [NativeTypeName("#define EXCEPTION_INVALID_HANDLE STATUS_INVALID_HANDLE")] - public const uint EXCEPTION_INVALID_HANDLE = ((uint)(0xC0000008)); - [NativeTypeName("#define CONTROL_C_EXIT STATUS_CONTROL_C_EXIT")] public const uint CONTROL_C_EXIT = ((uint)(0xC000013A)); - [NativeTypeName("#define LMEM_FIXED 0x0000")] - public const int LMEM_FIXED = 0x0000; - - [NativeTypeName("#define LMEM_MOVEABLE 0x0002")] - public const int LMEM_MOVEABLE = 0x0002; - - [NativeTypeName("#define LMEM_NOCOMPACT 0x0010")] - public const int LMEM_NOCOMPACT = 0x0010; - - [NativeTypeName("#define LMEM_NODISCARD 0x0020")] - public const int LMEM_NODISCARD = 0x0020; - - [NativeTypeName("#define LMEM_ZEROINIT 0x0040")] - public const int LMEM_ZEROINIT = 0x0040; - - [NativeTypeName("#define LMEM_MODIFY 0x0080")] - public const int LMEM_MODIFY = 0x0080; - - [NativeTypeName("#define LMEM_DISCARDABLE 0x0F00")] - public const int LMEM_DISCARDABLE = 0x0F00; - - [NativeTypeName("#define LMEM_VALID_FLAGS 0x0F72")] - public const int LMEM_VALID_FLAGS = 0x0F72; - - [NativeTypeName("#define LMEM_INVALID_HANDLE 0x8000")] - public const int LMEM_INVALID_HANDLE = 0x8000; - [NativeTypeName("#define LHND (LMEM_MOVEABLE | LMEM_ZEROINIT)")] public const int LHND = (0x0002 | 0x0040); @@ -160,12 +55,6 @@ public static partial class Windows [NativeTypeName("#define NONZEROLPTR (LMEM_FIXED)")] public const int NONZEROLPTR = (0x0000); - [NativeTypeName("#define LMEM_DISCARDED 0x4000")] - public const int LMEM_DISCARDED = 0x4000; - - [NativeTypeName("#define LMEM_LOCKCOUNT 0x00FF")] - public const int LMEM_LOCKCOUNT = 0x00FF; - [NativeTypeName("#define NUMA_NO_PREFERRED_NODE ((DWORD) -1)")] public const uint NUMA_NO_PREFERRED_NODE = unchecked((uint)(-1)); } diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/CLSID.Manual.cs similarity index 60% rename from sources/Interop/Windows/Windows/um/mmdeviceapi/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/mmdeviceapi/CLSID.Manual.cs index c7bcb984e8..a0c624b9e6 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/CLSID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class CLSID { public static ref readonly Guid CLSID_MMDeviceEnumerator { @@ -33,28 +33,5 @@ public static ref readonly Guid CLSID_MMDeviceEnumerator return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); } } - - public static ref readonly Guid LIBID_MMDeviceAPILib - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA3, 0xAF, 0xDA, 0x2F, - 0x23, 0x75, - 0x66, 0x4F, - 0x99, - 0x57, - 0x9D, - 0x5E, - 0x7F, - 0xE6, - 0x98, - 0xF6 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } } } diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/DEVICE.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/DEVICE.cs new file mode 100644 index 0000000000..671c3f7996 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/DEVICE.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmdeviceapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICE + { + [NativeTypeName("#define DEVICE_STATE_ACTIVE 0x00000001")] + public const int DEVICE_STATE_ACTIVE = 0x00000001; + + [NativeTypeName("#define DEVICE_STATE_DISABLED 0x00000002")] + public const int DEVICE_STATE_DISABLED = 0x00000002; + + [NativeTypeName("#define DEVICE_STATE_NOTPRESENT 0x00000004")] + public const int DEVICE_STATE_NOTPRESENT = 0x00000004; + + [NativeTypeName("#define DEVICE_STATE_UNPLUGGED 0x00000008")] + public const int DEVICE_STATE_UNPLUGGED = 0x00000008; + + [NativeTypeName("#define DEVICE_STATEMASK_ALL 0x0000000f")] + public const int DEVICE_STATEMASK_ALL = 0x0000000f; + } +} diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/LIBID.Manual.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/LIBID.Manual.cs new file mode 100644 index 0000000000..04062ec369 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/LIBID.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmdeviceapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class LIBID + { + public static ref readonly Guid LIBID_MMDeviceAPILib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0xAF, 0xDA, 0x2F, + 0x23, 0x75, + 0x66, 0x4F, + 0x99, + 0x57, + 0x9D, + 0x5E, + 0x7F, + 0xE6, + 0x98, + 0xF6 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/mmdeviceapi/Windows.cs b/sources/Interop/Windows/Windows/um/mmdeviceapi/Windows.cs index 150e89d773..02abb6fc52 100644 --- a/sources/Interop/Windows/Windows/um/mmdeviceapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mmdeviceapi/Windows.cs @@ -534,21 +534,6 @@ public static ref readonly Guid DEVINTERFACE_MIDI_INPUT [DllImport("mmdevapi", ExactSpelling = true)] public static extern HRESULT ActivateAudioInterfaceAsync([NativeTypeName("LPCWSTR")] ushort* deviceInterfacePath, [NativeTypeName("const IID &")] Guid* riid, PROPVARIANT* activationParams, IActivateAudioInterfaceCompletionHandler* completionHandler, IActivateAudioInterfaceAsyncOperation** activationOperation); - [NativeTypeName("#define DEVICE_STATE_ACTIVE 0x00000001")] - public const int DEVICE_STATE_ACTIVE = 0x00000001; - - [NativeTypeName("#define DEVICE_STATE_DISABLED 0x00000002")] - public const int DEVICE_STATE_DISABLED = 0x00000002; - - [NativeTypeName("#define DEVICE_STATE_NOTPRESENT 0x00000004")] - public const int DEVICE_STATE_NOTPRESENT = 0x00000004; - - [NativeTypeName("#define DEVICE_STATE_UNPLUGGED 0x00000008")] - public const int DEVICE_STATE_UNPLUGGED = 0x00000008; - - [NativeTypeName("#define DEVICE_STATEMASK_ALL 0x0000000f")] - public const int DEVICE_STATEMASK_ALL = 0x0000000f; - [NativeTypeName("#define ENDPOINT_SYSFX_ENABLED 0x00000000")] public const int ENDPOINT_SYSFX_ENABLED = 0x00000000; diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIDIERR.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIDIERR.cs new file mode 100644 index 0000000000..4b1072c650 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIDIERR.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIDIERR + { + [NativeTypeName("#define MIDIERR_UNPREPARED (MIDIERR_BASE + 0)")] + public const int MIDIERR_UNPREPARED = (64 + 0); + + [NativeTypeName("#define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1)")] + public const int MIDIERR_STILLPLAYING = (64 + 1); + + [NativeTypeName("#define MIDIERR_NOMAP (MIDIERR_BASE + 2)")] + public const int MIDIERR_NOMAP = (64 + 2); + + [NativeTypeName("#define MIDIERR_NOTREADY (MIDIERR_BASE + 3)")] + public const int MIDIERR_NOTREADY = (64 + 3); + + [NativeTypeName("#define MIDIERR_NODEVICE (MIDIERR_BASE + 4)")] + public const int MIDIERR_NODEVICE = (64 + 4); + + [NativeTypeName("#define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5)")] + public const int MIDIERR_INVALIDSETUP = (64 + 5); + + [NativeTypeName("#define MIDIERR_BADOPENMODE (MIDIERR_BASE + 6)")] + public const int MIDIERR_BADOPENMODE = (64 + 6); + + [NativeTypeName("#define MIDIERR_DONT_CONTINUE (MIDIERR_BASE + 7)")] + public const int MIDIERR_DONT_CONTINUE = (64 + 7); + + [NativeTypeName("#define MIDIERR_LASTERROR (MIDIERR_BASE + 7)")] + public const int MIDIERR_LASTERROR = (64 + 7); + } +} diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIM.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIM.cs new file mode 100644 index 0000000000..f00f7524d8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIM.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIM + { + [NativeTypeName("#define MIM_OPEN MM_MIM_OPEN")] + public const int MIM_OPEN = 0x3C1; + + [NativeTypeName("#define MIM_CLOSE MM_MIM_CLOSE")] + public const int MIM_CLOSE = 0x3C2; + + [NativeTypeName("#define MIM_DATA MM_MIM_DATA")] + public const int MIM_DATA = 0x3C3; + + [NativeTypeName("#define MIM_LONGDATA MM_MIM_LONGDATA")] + public const int MIM_LONGDATA = 0x3C4; + + [NativeTypeName("#define MIM_ERROR MM_MIM_ERROR")] + public const int MIM_ERROR = 0x3C5; + + [NativeTypeName("#define MIM_LONGERROR MM_MIM_LONGERROR")] + public const int MIM_LONGERROR = 0x3C6; + + [NativeTypeName("#define MIM_MOREDATA MM_MIM_MOREDATA")] + public const int MIM_MOREDATA = 0x3CC; + } +} diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIXER.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIXER.cs new file mode 100644 index 0000000000..472023682d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIXER.cs @@ -0,0 +1,100 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIXER + { + [NativeTypeName("#define MIXER_SHORT_NAME_CHARS 16")] + public const int MIXER_SHORT_NAME_CHARS = 16; + + [NativeTypeName("#define MIXER_LONG_NAME_CHARS 64")] + public const int MIXER_LONG_NAME_CHARS = 64; + + [NativeTypeName("#define MIXER_OBJECTF_HANDLE 0x80000000L")] + public const uint MIXER_OBJECTF_HANDLE = 0x80000000; + + [NativeTypeName("#define MIXER_OBJECTF_MIXER 0x00000000L")] + public const int MIXER_OBJECTF_MIXER = 0x00000000; + + [NativeTypeName("#define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)")] + public const uint MIXER_OBJECTF_HMIXER = (0x80000000 | 0x00000000); + + [NativeTypeName("#define MIXER_OBJECTF_WAVEOUT 0x10000000L")] + public const int MIXER_OBJECTF_WAVEOUT = 0x10000000; + + [NativeTypeName("#define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)")] + public const uint MIXER_OBJECTF_HWAVEOUT = (0x80000000 | 0x10000000); + + [NativeTypeName("#define MIXER_OBJECTF_WAVEIN 0x20000000L")] + public const int MIXER_OBJECTF_WAVEIN = 0x20000000; + + [NativeTypeName("#define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)")] + public const uint MIXER_OBJECTF_HWAVEIN = (0x80000000 | 0x20000000); + + [NativeTypeName("#define MIXER_OBJECTF_MIDIOUT 0x30000000L")] + public const int MIXER_OBJECTF_MIDIOUT = 0x30000000; + + [NativeTypeName("#define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)")] + public const uint MIXER_OBJECTF_HMIDIOUT = (0x80000000 | 0x30000000); + + [NativeTypeName("#define MIXER_OBJECTF_MIDIIN 0x40000000L")] + public const int MIXER_OBJECTF_MIDIIN = 0x40000000; + + [NativeTypeName("#define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)")] + public const uint MIXER_OBJECTF_HMIDIIN = (0x80000000 | 0x40000000); + + [NativeTypeName("#define MIXER_OBJECTF_AUX 0x50000000L")] + public const int MIXER_OBJECTF_AUX = 0x50000000; + + [NativeTypeName("#define MIXER_GETLINEINFOF_DESTINATION 0x00000000L")] + public const int MIXER_GETLINEINFOF_DESTINATION = 0x00000000; + + [NativeTypeName("#define MIXER_GETLINEINFOF_SOURCE 0x00000001L")] + public const int MIXER_GETLINEINFOF_SOURCE = 0x00000001; + + [NativeTypeName("#define MIXER_GETLINEINFOF_LINEID 0x00000002L")] + public const int MIXER_GETLINEINFOF_LINEID = 0x00000002; + + [NativeTypeName("#define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L")] + public const int MIXER_GETLINEINFOF_COMPONENTTYPE = 0x00000003; + + [NativeTypeName("#define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L")] + public const int MIXER_GETLINEINFOF_TARGETTYPE = 0x00000004; + + [NativeTypeName("#define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL")] + public const int MIXER_GETLINEINFOF_QUERYMASK = 0x0000000F; + + [NativeTypeName("#define MIXER_GETLINECONTROLSF_ALL 0x00000000L")] + public const int MIXER_GETLINECONTROLSF_ALL = 0x00000000; + + [NativeTypeName("#define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L")] + public const int MIXER_GETLINECONTROLSF_ONEBYID = 0x00000001; + + [NativeTypeName("#define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L")] + public const int MIXER_GETLINECONTROLSF_ONEBYTYPE = 0x00000002; + + [NativeTypeName("#define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL")] + public const int MIXER_GETLINECONTROLSF_QUERYMASK = 0x0000000F; + + [NativeTypeName("#define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L")] + public const int MIXER_GETCONTROLDETAILSF_VALUE = 0x00000000; + + [NativeTypeName("#define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L")] + public const int MIXER_GETCONTROLDETAILSF_LISTTEXT = 0x00000001; + + [NativeTypeName("#define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL")] + public const int MIXER_GETCONTROLDETAILSF_QUERYMASK = 0x0000000F; + + [NativeTypeName("#define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L")] + public const int MIXER_SETCONTROLDETAILSF_VALUE = 0x00000000; + + [NativeTypeName("#define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L")] + public const int MIXER_SETCONTROLDETAILSF_CUSTOM = 0x00000001; + + [NativeTypeName("#define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL")] + public const int MIXER_SETCONTROLDETAILSF_QUERYMASK = 0x0000000F; + } +} diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINE.cs b/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINE.cs new file mode 100644 index 0000000000..497e475bd9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmeapi/MIXERLINE.cs @@ -0,0 +1,109 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIXERLINE + { + [NativeTypeName("#define MIXERLINE_LINEF_ACTIVE 0x00000001L")] + public const int MIXERLINE_LINEF_ACTIVE = 0x00000001; + + [NativeTypeName("#define MIXERLINE_LINEF_DISCONNECTED 0x00008000L")] + public const int MIXERLINE_LINEF_DISCONNECTED = 0x00008000; + + [NativeTypeName("#define MIXERLINE_LINEF_SOURCE 0x80000000L")] + public const uint MIXERLINE_LINEF_SOURCE = 0x80000000; + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L")] + public const int MIXERLINE_COMPONENTTYPE_DST_FIRST = 0x00000000; + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)")] + public const int MIXERLINE_COMPONENTTYPE_DST_UNDEFINED = (0x00000000 + 0); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)")] + public const int MIXERLINE_COMPONENTTYPE_DST_DIGITAL = (0x00000000 + 1); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)")] + public const int MIXERLINE_COMPONENTTYPE_DST_LINE = (0x00000000 + 2); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)")] + public const int MIXERLINE_COMPONENTTYPE_DST_MONITOR = (0x00000000 + 3); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)")] + public const int MIXERLINE_COMPONENTTYPE_DST_SPEAKERS = (0x00000000 + 4); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)")] + public const int MIXERLINE_COMPONENTTYPE_DST_HEADPHONES = (0x00000000 + 5); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)")] + public const int MIXERLINE_COMPONENTTYPE_DST_TELEPHONE = (0x00000000 + 6); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)")] + public const int MIXERLINE_COMPONENTTYPE_DST_WAVEIN = (0x00000000 + 7); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)")] + public const int MIXERLINE_COMPONENTTYPE_DST_VOICEIN = (0x00000000 + 8); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)")] + public const int MIXERLINE_COMPONENTTYPE_DST_LAST = (0x00000000 + 8); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L")] + public const int MIXERLINE_COMPONENTTYPE_SRC_FIRST = 0x00001000; + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED = (0x00001000 + 0); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_DIGITAL = (0x00001000 + 1); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_LINE = (0x00001000 + 2); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE = (0x00001000 + 3); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER = (0x00001000 + 4); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC = (0x00001000 + 5); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE = (0x00001000 + 6); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER = (0x00001000 + 7); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT = (0x00001000 + 8); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY = (0x00001000 + 9); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_ANALOG = (0x00001000 + 10); + + [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)")] + public const int MIXERLINE_COMPONENTTYPE_SRC_LAST = (0x00001000 + 10); + + [NativeTypeName("#define MIXERLINE_TARGETTYPE_UNDEFINED 0")] + public const int MIXERLINE_TARGETTYPE_UNDEFINED = 0; + + [NativeTypeName("#define MIXERLINE_TARGETTYPE_WAVEOUT 1")] + public const int MIXERLINE_TARGETTYPE_WAVEOUT = 1; + + [NativeTypeName("#define MIXERLINE_TARGETTYPE_WAVEIN 2")] + public const int MIXERLINE_TARGETTYPE_WAVEIN = 2; + + [NativeTypeName("#define MIXERLINE_TARGETTYPE_MIDIOUT 3")] + public const int MIXERLINE_TARGETTYPE_MIDIOUT = 3; + + [NativeTypeName("#define MIXERLINE_TARGETTYPE_MIDIIN 4")] + public const int MIXERLINE_TARGETTYPE_MIDIIN = 4; + + [NativeTypeName("#define MIXERLINE_TARGETTYPE_AUX 5")] + public const int MIXERLINE_TARGETTYPE_AUX = 5; + } +} diff --git a/sources/Interop/Windows/Windows/um/mmeapi/MOD.cs b/sources/Interop/Windows/Windows/um/mmeapi/MOD.cs new file mode 100644 index 0000000000..99c797479f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmeapi/MOD.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmeapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MOD + { + [NativeTypeName("#define MOD_MIDIPORT 1")] + public const int MOD_MIDIPORT = 1; + + [NativeTypeName("#define MOD_SYNTH 2")] + public const int MOD_SYNTH = 2; + + [NativeTypeName("#define MOD_SQSYNTH 3")] + public const int MOD_SQSYNTH = 3; + + [NativeTypeName("#define MOD_FMSYNTH 4")] + public const int MOD_FMSYNTH = 4; + + [NativeTypeName("#define MOD_MAPPER 5")] + public const int MOD_MAPPER = 5; + + [NativeTypeName("#define MOD_WAVETABLE 6")] + public const int MOD_WAVETABLE = 6; + + [NativeTypeName("#define MOD_SWSYNTH 7")] + public const int MOD_SWSYNTH = 7; + } +} diff --git a/sources/Interop/Windows/Windows/um/mmeapi/Windows.cs b/sources/Interop/Windows/Windows/um/mmeapi/Windows.cs index e85868d9d9..bcc5c5df4e 100644 --- a/sources/Interop/Windows/Windows/um/mmeapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mmeapi/Windows.cs @@ -489,54 +489,9 @@ public static unsafe partial class Windows [NativeTypeName("#define waveInGetErrorText waveInGetErrorTextW")] public static delegate* waveInGetErrorText => &waveInGetErrorTextW; - [NativeTypeName("#define MIDIERR_UNPREPARED (MIDIERR_BASE + 0)")] - public const int MIDIERR_UNPREPARED = (64 + 0); - - [NativeTypeName("#define MIDIERR_STILLPLAYING (MIDIERR_BASE + 1)")] - public const int MIDIERR_STILLPLAYING = (64 + 1); - - [NativeTypeName("#define MIDIERR_NOMAP (MIDIERR_BASE + 2)")] - public const int MIDIERR_NOMAP = (64 + 2); - - [NativeTypeName("#define MIDIERR_NOTREADY (MIDIERR_BASE + 3)")] - public const int MIDIERR_NOTREADY = (64 + 3); - - [NativeTypeName("#define MIDIERR_NODEVICE (MIDIERR_BASE + 4)")] - public const int MIDIERR_NODEVICE = (64 + 4); - - [NativeTypeName("#define MIDIERR_INVALIDSETUP (MIDIERR_BASE + 5)")] - public const int MIDIERR_INVALIDSETUP = (64 + 5); - - [NativeTypeName("#define MIDIERR_BADOPENMODE (MIDIERR_BASE + 6)")] - public const int MIDIERR_BADOPENMODE = (64 + 6); - - [NativeTypeName("#define MIDIERR_DONT_CONTINUE (MIDIERR_BASE + 7)")] - public const int MIDIERR_DONT_CONTINUE = (64 + 7); - - [NativeTypeName("#define MIDIERR_LASTERROR (MIDIERR_BASE + 7)")] - public const int MIDIERR_LASTERROR = (64 + 7); - [NativeTypeName("#define MIDIPATCHSIZE 128")] public const int MIDIPATCHSIZE = 128; - [NativeTypeName("#define MIM_OPEN MM_MIM_OPEN")] - public const int MIM_OPEN = 0x3C1; - - [NativeTypeName("#define MIM_CLOSE MM_MIM_CLOSE")] - public const int MIM_CLOSE = 0x3C2; - - [NativeTypeName("#define MIM_DATA MM_MIM_DATA")] - public const int MIM_DATA = 0x3C3; - - [NativeTypeName("#define MIM_LONGDATA MM_MIM_LONGDATA")] - public const int MIM_LONGDATA = 0x3C4; - - [NativeTypeName("#define MIM_ERROR MM_MIM_ERROR")] - public const int MIM_ERROR = 0x3C5; - - [NativeTypeName("#define MIM_LONGERROR MM_MIM_LONGERROR")] - public const int MIM_LONGERROR = 0x3C6; - [NativeTypeName("#define MOM_OPEN MM_MOM_OPEN")] public const int MOM_OPEN = 0x3C7; @@ -546,9 +501,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MOM_DONE MM_MOM_DONE")] public const int MOM_DONE = 0x3C9; - [NativeTypeName("#define MIM_MOREDATA MM_MIM_MOREDATA")] - public const int MIM_MOREDATA = 0x3CC; - [NativeTypeName("#define MOM_POSITIONCB MM_MOM_POSITIONCB")] public const int MOM_POSITIONCB = 0x3CA; @@ -573,27 +525,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MIDI_UNCACHE 4")] public const int MIDI_UNCACHE = 4; - [NativeTypeName("#define MOD_MIDIPORT 1")] - public const int MOD_MIDIPORT = 1; - - [NativeTypeName("#define MOD_SYNTH 2")] - public const int MOD_SYNTH = 2; - - [NativeTypeName("#define MOD_SQSYNTH 3")] - public const int MOD_SQSYNTH = 3; - - [NativeTypeName("#define MOD_FMSYNTH 4")] - public const int MOD_FMSYNTH = 4; - - [NativeTypeName("#define MOD_MAPPER 5")] - public const int MOD_MAPPER = 5; - - [NativeTypeName("#define MOD_WAVETABLE 6")] - public const int MOD_WAVETABLE = 6; - - [NativeTypeName("#define MOD_SWSYNTH 7")] - public const int MOD_SWSYNTH = 7; - [NativeTypeName("#define MIDICAPS_VOLUME 0x0001")] public const int MIDICAPS_VOLUME = 0x0001; @@ -690,12 +621,6 @@ public static unsafe partial class Windows [NativeTypeName("#define auxGetDevCaps auxGetDevCapsW")] public static delegate* auxGetDevCaps => &auxGetDevCapsW; - [NativeTypeName("#define MIXER_SHORT_NAME_CHARS 16")] - public const int MIXER_SHORT_NAME_CHARS = 16; - - [NativeTypeName("#define MIXER_LONG_NAME_CHARS 64")] - public const int MIXER_LONG_NAME_CHARS = 64; - [NativeTypeName("#define MIXERR_INVALLINE (MIXERR_BASE + 0)")] public const int MIXERR_INVALLINE = (1024 + 0); @@ -708,199 +633,16 @@ public static unsafe partial class Windows [NativeTypeName("#define MIXERR_LASTERROR (MIXERR_BASE + 2)")] public const int MIXERR_LASTERROR = (1024 + 2); - [NativeTypeName("#define MIXER_OBJECTF_HANDLE 0x80000000L")] - public const uint MIXER_OBJECTF_HANDLE = 0x80000000; - - [NativeTypeName("#define MIXER_OBJECTF_MIXER 0x00000000L")] - public const int MIXER_OBJECTF_MIXER = 0x00000000; - - [NativeTypeName("#define MIXER_OBJECTF_HMIXER (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIXER)")] - public const uint MIXER_OBJECTF_HMIXER = (0x80000000 | 0x00000000); - - [NativeTypeName("#define MIXER_OBJECTF_WAVEOUT 0x10000000L")] - public const int MIXER_OBJECTF_WAVEOUT = 0x10000000; - - [NativeTypeName("#define MIXER_OBJECTF_HWAVEOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEOUT)")] - public const uint MIXER_OBJECTF_HWAVEOUT = (0x80000000 | 0x10000000); - - [NativeTypeName("#define MIXER_OBJECTF_WAVEIN 0x20000000L")] - public const int MIXER_OBJECTF_WAVEIN = 0x20000000; - - [NativeTypeName("#define MIXER_OBJECTF_HWAVEIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_WAVEIN)")] - public const uint MIXER_OBJECTF_HWAVEIN = (0x80000000 | 0x20000000); - - [NativeTypeName("#define MIXER_OBJECTF_MIDIOUT 0x30000000L")] - public const int MIXER_OBJECTF_MIDIOUT = 0x30000000; - - [NativeTypeName("#define MIXER_OBJECTF_HMIDIOUT (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIOUT)")] - public const uint MIXER_OBJECTF_HMIDIOUT = (0x80000000 | 0x30000000); - - [NativeTypeName("#define MIXER_OBJECTF_MIDIIN 0x40000000L")] - public const int MIXER_OBJECTF_MIDIIN = 0x40000000; - - [NativeTypeName("#define MIXER_OBJECTF_HMIDIIN (MIXER_OBJECTF_HANDLE|MIXER_OBJECTF_MIDIIN)")] - public const uint MIXER_OBJECTF_HMIDIIN = (0x80000000 | 0x40000000); - - [NativeTypeName("#define MIXER_OBJECTF_AUX 0x50000000L")] - public const int MIXER_OBJECTF_AUX = 0x50000000; - [NativeTypeName("#define mixerGetDevCaps mixerGetDevCapsW")] public static delegate* mixerGetDevCaps => &mixerGetDevCapsW; - [NativeTypeName("#define MIXERLINE_LINEF_ACTIVE 0x00000001L")] - public const int MIXERLINE_LINEF_ACTIVE = 0x00000001; - - [NativeTypeName("#define MIXERLINE_LINEF_DISCONNECTED 0x00008000L")] - public const int MIXERLINE_LINEF_DISCONNECTED = 0x00008000; - - [NativeTypeName("#define MIXERLINE_LINEF_SOURCE 0x80000000L")] - public const uint MIXERLINE_LINEF_SOURCE = 0x80000000; - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_FIRST 0x00000000L")] - public const int MIXERLINE_COMPONENTTYPE_DST_FIRST = 0x00000000; - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_UNDEFINED (MIXERLINE_COMPONENTTYPE_DST_FIRST + 0)")] - public const int MIXERLINE_COMPONENTTYPE_DST_UNDEFINED = (0x00000000 + 0); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_DIGITAL (MIXERLINE_COMPONENTTYPE_DST_FIRST + 1)")] - public const int MIXERLINE_COMPONENTTYPE_DST_DIGITAL = (0x00000000 + 1); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_LINE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 2)")] - public const int MIXERLINE_COMPONENTTYPE_DST_LINE = (0x00000000 + 2); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_MONITOR (MIXERLINE_COMPONENTTYPE_DST_FIRST + 3)")] - public const int MIXERLINE_COMPONENTTYPE_DST_MONITOR = (0x00000000 + 3); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_SPEAKERS (MIXERLINE_COMPONENTTYPE_DST_FIRST + 4)")] - public const int MIXERLINE_COMPONENTTYPE_DST_SPEAKERS = (0x00000000 + 4); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_HEADPHONES (MIXERLINE_COMPONENTTYPE_DST_FIRST + 5)")] - public const int MIXERLINE_COMPONENTTYPE_DST_HEADPHONES = (0x00000000 + 5); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_TELEPHONE (MIXERLINE_COMPONENTTYPE_DST_FIRST + 6)")] - public const int MIXERLINE_COMPONENTTYPE_DST_TELEPHONE = (0x00000000 + 6); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_WAVEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 7)")] - public const int MIXERLINE_COMPONENTTYPE_DST_WAVEIN = (0x00000000 + 7); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_VOICEIN (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)")] - public const int MIXERLINE_COMPONENTTYPE_DST_VOICEIN = (0x00000000 + 8); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_DST_LAST (MIXERLINE_COMPONENTTYPE_DST_FIRST + 8)")] - public const int MIXERLINE_COMPONENTTYPE_DST_LAST = (0x00000000 + 8); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_FIRST 0x00001000L")] - public const int MIXERLINE_COMPONENTTYPE_SRC_FIRST = 0x00001000; - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 0)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_UNDEFINED = (0x00001000 + 0); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_DIGITAL (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 1)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_DIGITAL = (0x00001000 + 1); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_LINE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 2)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_LINE = (0x00001000 + 2); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 3)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_MICROPHONE = (0x00001000 + 3); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 4)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_SYNTHESIZER = (0x00001000 + 4); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 5)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_COMPACTDISC = (0x00001000 + 5); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 6)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_TELEPHONE = (0x00001000 + 6); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 7)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_PCSPEAKER = (0x00001000 + 7); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 8)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_WAVEOUT = (0x00001000 + 8); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 9)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_AUXILIARY = (0x00001000 + 9); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_ANALOG (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_ANALOG = (0x00001000 + 10); - - [NativeTypeName("#define MIXERLINE_COMPONENTTYPE_SRC_LAST (MIXERLINE_COMPONENTTYPE_SRC_FIRST + 10)")] - public const int MIXERLINE_COMPONENTTYPE_SRC_LAST = (0x00001000 + 10); - - [NativeTypeName("#define MIXERLINE_TARGETTYPE_UNDEFINED 0")] - public const int MIXERLINE_TARGETTYPE_UNDEFINED = 0; - - [NativeTypeName("#define MIXERLINE_TARGETTYPE_WAVEOUT 1")] - public const int MIXERLINE_TARGETTYPE_WAVEOUT = 1; - - [NativeTypeName("#define MIXERLINE_TARGETTYPE_WAVEIN 2")] - public const int MIXERLINE_TARGETTYPE_WAVEIN = 2; - - [NativeTypeName("#define MIXERLINE_TARGETTYPE_MIDIOUT 3")] - public const int MIXERLINE_TARGETTYPE_MIDIOUT = 3; - - [NativeTypeName("#define MIXERLINE_TARGETTYPE_MIDIIN 4")] - public const int MIXERLINE_TARGETTYPE_MIDIIN = 4; - - [NativeTypeName("#define MIXERLINE_TARGETTYPE_AUX 5")] - public const int MIXERLINE_TARGETTYPE_AUX = 5; - [NativeTypeName("#define mixerGetLineInfo mixerGetLineInfoW")] public static delegate* mixerGetLineInfo => &mixerGetLineInfoW; - [NativeTypeName("#define MIXER_GETLINEINFOF_DESTINATION 0x00000000L")] - public const int MIXER_GETLINEINFOF_DESTINATION = 0x00000000; - - [NativeTypeName("#define MIXER_GETLINEINFOF_SOURCE 0x00000001L")] - public const int MIXER_GETLINEINFOF_SOURCE = 0x00000001; - - [NativeTypeName("#define MIXER_GETLINEINFOF_LINEID 0x00000002L")] - public const int MIXER_GETLINEINFOF_LINEID = 0x00000002; - - [NativeTypeName("#define MIXER_GETLINEINFOF_COMPONENTTYPE 0x00000003L")] - public const int MIXER_GETLINEINFOF_COMPONENTTYPE = 0x00000003; - - [NativeTypeName("#define MIXER_GETLINEINFOF_TARGETTYPE 0x00000004L")] - public const int MIXER_GETLINEINFOF_TARGETTYPE = 0x00000004; - - [NativeTypeName("#define MIXER_GETLINEINFOF_QUERYMASK 0x0000000FL")] - public const int MIXER_GETLINEINFOF_QUERYMASK = 0x0000000F; - [NativeTypeName("#define mixerGetLineControls mixerGetLineControlsW")] public static delegate* mixerGetLineControls => &mixerGetLineControlsW; - [NativeTypeName("#define MIXER_GETLINECONTROLSF_ALL 0x00000000L")] - public const int MIXER_GETLINECONTROLSF_ALL = 0x00000000; - - [NativeTypeName("#define MIXER_GETLINECONTROLSF_ONEBYID 0x00000001L")] - public const int MIXER_GETLINECONTROLSF_ONEBYID = 0x00000001; - - [NativeTypeName("#define MIXER_GETLINECONTROLSF_ONEBYTYPE 0x00000002L")] - public const int MIXER_GETLINECONTROLSF_ONEBYTYPE = 0x00000002; - - [NativeTypeName("#define MIXER_GETLINECONTROLSF_QUERYMASK 0x0000000FL")] - public const int MIXER_GETLINECONTROLSF_QUERYMASK = 0x0000000F; - [NativeTypeName("#define mixerGetControlDetails mixerGetControlDetailsW")] public static delegate* mixerGetControlDetails => &mixerGetControlDetailsW; - - [NativeTypeName("#define MIXER_GETCONTROLDETAILSF_VALUE 0x00000000L")] - public const int MIXER_GETCONTROLDETAILSF_VALUE = 0x00000000; - - [NativeTypeName("#define MIXER_GETCONTROLDETAILSF_LISTTEXT 0x00000001L")] - public const int MIXER_GETCONTROLDETAILSF_LISTTEXT = 0x00000001; - - [NativeTypeName("#define MIXER_GETCONTROLDETAILSF_QUERYMASK 0x0000000FL")] - public const int MIXER_GETCONTROLDETAILSF_QUERYMASK = 0x0000000F; - - [NativeTypeName("#define MIXER_SETCONTROLDETAILSF_VALUE 0x00000000L")] - public const int MIXER_SETCONTROLDETAILSF_VALUE = 0x00000000; - - [NativeTypeName("#define MIXER_SETCONTROLDETAILSF_CUSTOM 0x00000001L")] - public const int MIXER_SETCONTROLDETAILSF_CUSTOM = 0x00000001; - - [NativeTypeName("#define MIXER_SETCONTROLDETAILSF_QUERYMASK 0x0000000FL")] - public const int MIXER_SETCONTROLDETAILSF_QUERYMASK = 0x0000000F; } } diff --git a/sources/Interop/Windows/Windows/um/mmsyscom/MIDIERR.cs b/sources/Interop/Windows/Windows/um/mmsyscom/MIDIERR.cs new file mode 100644 index 0000000000..10133405c0 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmsyscom/MIDIERR.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmsyscom.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MIDIERR + { + [NativeTypeName("#define MIDIERR_BASE 64")] + public const int MIDIERR_BASE = 64; + } +} diff --git a/sources/Interop/Windows/Windows/um/mmsyscom/MMSYSERR.cs b/sources/Interop/Windows/Windows/um/mmsyscom/MMSYSERR.cs new file mode 100644 index 0000000000..9672e957c1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mmsyscom/MMSYSERR.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mmsyscom.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MMSYSERR + { + [NativeTypeName("#define MMSYSERR_BASE 0")] + public const int MMSYSERR_BASE = 0; + + [NativeTypeName("#define MMSYSERR_NOERROR 0")] + public const int MMSYSERR_NOERROR = 0; + + [NativeTypeName("#define MMSYSERR_ERROR (MMSYSERR_BASE + 1)")] + public const int MMSYSERR_ERROR = (0 + 1); + + [NativeTypeName("#define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2)")] + public const int MMSYSERR_BADDEVICEID = (0 + 2); + + [NativeTypeName("#define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3)")] + public const int MMSYSERR_NOTENABLED = (0 + 3); + + [NativeTypeName("#define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4)")] + public const int MMSYSERR_ALLOCATED = (0 + 4); + + [NativeTypeName("#define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5)")] + public const int MMSYSERR_INVALHANDLE = (0 + 5); + + [NativeTypeName("#define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6)")] + public const int MMSYSERR_NODRIVER = (0 + 6); + + [NativeTypeName("#define MMSYSERR_NOMEM (MMSYSERR_BASE + 7)")] + public const int MMSYSERR_NOMEM = (0 + 7); + + [NativeTypeName("#define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8)")] + public const int MMSYSERR_NOTSUPPORTED = (0 + 8); + + [NativeTypeName("#define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9)")] + public const int MMSYSERR_BADERRNUM = (0 + 9); + + [NativeTypeName("#define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10)")] + public const int MMSYSERR_INVALFLAG = (0 + 10); + + [NativeTypeName("#define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11)")] + public const int MMSYSERR_INVALPARAM = (0 + 11); + + [NativeTypeName("#define MMSYSERR_HANDLEBUSY (MMSYSERR_BASE + 12)")] + public const int MMSYSERR_HANDLEBUSY = (0 + 12); + + [NativeTypeName("#define MMSYSERR_INVALIDALIAS (MMSYSERR_BASE + 13)")] + public const int MMSYSERR_INVALIDALIAS = (0 + 13); + + [NativeTypeName("#define MMSYSERR_BADDB (MMSYSERR_BASE + 14)")] + public const int MMSYSERR_BADDB = (0 + 14); + + [NativeTypeName("#define MMSYSERR_KEYNOTFOUND (MMSYSERR_BASE + 15)")] + public const int MMSYSERR_KEYNOTFOUND = (0 + 15); + + [NativeTypeName("#define MMSYSERR_READERROR (MMSYSERR_BASE + 16)")] + public const int MMSYSERR_READERROR = (0 + 16); + + [NativeTypeName("#define MMSYSERR_WRITEERROR (MMSYSERR_BASE + 17)")] + public const int MMSYSERR_WRITEERROR = (0 + 17); + + [NativeTypeName("#define MMSYSERR_DELETEERROR (MMSYSERR_BASE + 18)")] + public const int MMSYSERR_DELETEERROR = (0 + 18); + + [NativeTypeName("#define MMSYSERR_VALNOTFOUND (MMSYSERR_BASE + 19)")] + public const int MMSYSERR_VALNOTFOUND = (0 + 19); + + [NativeTypeName("#define MMSYSERR_NODRIVERCB (MMSYSERR_BASE + 20)")] + public const int MMSYSERR_NODRIVERCB = (0 + 20); + + [NativeTypeName("#define MMSYSERR_MOREDATA (MMSYSERR_BASE + 21)")] + public const int MMSYSERR_MOREDATA = (0 + 21); + + [NativeTypeName("#define MMSYSERR_LASTERROR (MMSYSERR_BASE + 21)")] + public const int MMSYSERR_LASTERROR = (0 + 21); + } +} diff --git a/sources/Interop/Windows/Windows/um/mmsyscom/Windows.cs b/sources/Interop/Windows/Windows/um/mmsyscom/Windows.cs index e56eb27b71..8d3c8a6382 100644 --- a/sources/Interop/Windows/Windows/um/mmsyscom/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mmsyscom/Windows.cs @@ -31,15 +31,9 @@ public static partial class Windows [NativeTypeName("#define TIME_TICKS 0x0020")] public const int TIME_TICKS = 0x0020; - [NativeTypeName("#define MMSYSERR_BASE 0")] - public const int MMSYSERR_BASE = 0; - [NativeTypeName("#define WAVERR_BASE 32")] public const int WAVERR_BASE = 32; - [NativeTypeName("#define MIDIERR_BASE 64")] - public const int MIDIERR_BASE = 64; - [NativeTypeName("#define TIMERR_BASE 96")] public const int TIMERR_BASE = 96; @@ -67,75 +61,6 @@ public static partial class Windows [NativeTypeName("#define MCI_SEQ_OFFSET 1216")] public const int MCI_SEQ_OFFSET = 1216; - [NativeTypeName("#define MMSYSERR_NOERROR 0")] - public const int MMSYSERR_NOERROR = 0; - - [NativeTypeName("#define MMSYSERR_ERROR (MMSYSERR_BASE + 1)")] - public const int MMSYSERR_ERROR = (0 + 1); - - [NativeTypeName("#define MMSYSERR_BADDEVICEID (MMSYSERR_BASE + 2)")] - public const int MMSYSERR_BADDEVICEID = (0 + 2); - - [NativeTypeName("#define MMSYSERR_NOTENABLED (MMSYSERR_BASE + 3)")] - public const int MMSYSERR_NOTENABLED = (0 + 3); - - [NativeTypeName("#define MMSYSERR_ALLOCATED (MMSYSERR_BASE + 4)")] - public const int MMSYSERR_ALLOCATED = (0 + 4); - - [NativeTypeName("#define MMSYSERR_INVALHANDLE (MMSYSERR_BASE + 5)")] - public const int MMSYSERR_INVALHANDLE = (0 + 5); - - [NativeTypeName("#define MMSYSERR_NODRIVER (MMSYSERR_BASE + 6)")] - public const int MMSYSERR_NODRIVER = (0 + 6); - - [NativeTypeName("#define MMSYSERR_NOMEM (MMSYSERR_BASE + 7)")] - public const int MMSYSERR_NOMEM = (0 + 7); - - [NativeTypeName("#define MMSYSERR_NOTSUPPORTED (MMSYSERR_BASE + 8)")] - public const int MMSYSERR_NOTSUPPORTED = (0 + 8); - - [NativeTypeName("#define MMSYSERR_BADERRNUM (MMSYSERR_BASE + 9)")] - public const int MMSYSERR_BADERRNUM = (0 + 9); - - [NativeTypeName("#define MMSYSERR_INVALFLAG (MMSYSERR_BASE + 10)")] - public const int MMSYSERR_INVALFLAG = (0 + 10); - - [NativeTypeName("#define MMSYSERR_INVALPARAM (MMSYSERR_BASE + 11)")] - public const int MMSYSERR_INVALPARAM = (0 + 11); - - [NativeTypeName("#define MMSYSERR_HANDLEBUSY (MMSYSERR_BASE + 12)")] - public const int MMSYSERR_HANDLEBUSY = (0 + 12); - - [NativeTypeName("#define MMSYSERR_INVALIDALIAS (MMSYSERR_BASE + 13)")] - public const int MMSYSERR_INVALIDALIAS = (0 + 13); - - [NativeTypeName("#define MMSYSERR_BADDB (MMSYSERR_BASE + 14)")] - public const int MMSYSERR_BADDB = (0 + 14); - - [NativeTypeName("#define MMSYSERR_KEYNOTFOUND (MMSYSERR_BASE + 15)")] - public const int MMSYSERR_KEYNOTFOUND = (0 + 15); - - [NativeTypeName("#define MMSYSERR_READERROR (MMSYSERR_BASE + 16)")] - public const int MMSYSERR_READERROR = (0 + 16); - - [NativeTypeName("#define MMSYSERR_WRITEERROR (MMSYSERR_BASE + 17)")] - public const int MMSYSERR_WRITEERROR = (0 + 17); - - [NativeTypeName("#define MMSYSERR_DELETEERROR (MMSYSERR_BASE + 18)")] - public const int MMSYSERR_DELETEERROR = (0 + 18); - - [NativeTypeName("#define MMSYSERR_VALNOTFOUND (MMSYSERR_BASE + 19)")] - public const int MMSYSERR_VALNOTFOUND = (0 + 19); - - [NativeTypeName("#define MMSYSERR_NODRIVERCB (MMSYSERR_BASE + 20)")] - public const int MMSYSERR_NODRIVERCB = (0 + 20); - - [NativeTypeName("#define MMSYSERR_MOREDATA (MMSYSERR_BASE + 21)")] - public const int MMSYSERR_MOREDATA = (0 + 21); - - [NativeTypeName("#define MMSYSERR_LASTERROR (MMSYSERR_BASE + 21)")] - public const int MMSYSERR_LASTERROR = (0 + 21); - [NativeTypeName("#define CALLBACK_TYPEMASK 0x00070000l")] public const int CALLBACK_TYPEMASK = 0x00070000; diff --git a/sources/Interop/Windows/Windows/um/mssip/SPC.cs b/sources/Interop/Windows/Windows/um/mssip/SPC.cs new file mode 100644 index 0000000000..a688a0722f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/mssip/SPC.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mssip.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPC + { + [NativeTypeName("#define SPC_INC_PE_RESOURCES_FLAG 0x80")] + public const int SPC_INC_PE_RESOURCES_FLAG = 0x80; + + [NativeTypeName("#define SPC_INC_PE_DEBUG_INFO_FLAG 0x40")] + public const int SPC_INC_PE_DEBUG_INFO_FLAG = 0x40; + + [NativeTypeName("#define SPC_INC_PE_IMPORT_ADDR_TABLE_FLAG 0x20")] + public const int SPC_INC_PE_IMPORT_ADDR_TABLE_FLAG = 0x20; + + [NativeTypeName("#define SPC_EXC_PE_PAGE_HASHES_FLAG 0x10")] + public const int SPC_EXC_PE_PAGE_HASHES_FLAG = 0x10; + + [NativeTypeName("#define SPC_INC_PE_PAGE_HASHES_FLAG 0x100")] + public const int SPC_INC_PE_PAGE_HASHES_FLAG = 0x100; + + [NativeTypeName("#define SPC_DIGEST_GENERATE_FLAG 0x200")] + public const int SPC_DIGEST_GENERATE_FLAG = 0x200; + + [NativeTypeName("#define SPC_DIGEST_SIGN_FLAG 0x400")] + public const int SPC_DIGEST_SIGN_FLAG = 0x400; + + [NativeTypeName("#define SPC_DIGEST_SIGN_EX_FLAG 0x4000")] + public const int SPC_DIGEST_SIGN_EX_FLAG = 0x4000; + + [NativeTypeName("#define SPC_RELAXED_PE_MARKER_CHECK 0x800")] + public const int SPC_RELAXED_PE_MARKER_CHECK = 0x800; + + [NativeTypeName("#define SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG 0x00000001")] + public const int SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG = 0x00000001; + + [NativeTypeName("#define SPC_MARKER_CHECK_CURRENTLY_SUPPORTED_FLAGS SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG")] + public const int SPC_MARKER_CHECK_CURRENTLY_SUPPORTED_FLAGS = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/mssip/Windows.cs b/sources/Interop/Windows/Windows/um/mssip/Windows.cs index a10fc9cdbe..6980fd63a1 100644 --- a/sources/Interop/Windows/Windows/um/mssip/Windows.cs +++ b/sources/Interop/Windows/Windows/um/mssip/Windows.cs @@ -54,39 +54,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MSSIP_FLAGS_MULTI_HASH 0x00040000")] public const int MSSIP_FLAGS_MULTI_HASH = 0x00040000; - [NativeTypeName("#define SPC_INC_PE_RESOURCES_FLAG 0x80")] - public const int SPC_INC_PE_RESOURCES_FLAG = 0x80; - - [NativeTypeName("#define SPC_INC_PE_DEBUG_INFO_FLAG 0x40")] - public const int SPC_INC_PE_DEBUG_INFO_FLAG = 0x40; - - [NativeTypeName("#define SPC_INC_PE_IMPORT_ADDR_TABLE_FLAG 0x20")] - public const int SPC_INC_PE_IMPORT_ADDR_TABLE_FLAG = 0x20; - - [NativeTypeName("#define SPC_EXC_PE_PAGE_HASHES_FLAG 0x10")] - public const int SPC_EXC_PE_PAGE_HASHES_FLAG = 0x10; - - [NativeTypeName("#define SPC_INC_PE_PAGE_HASHES_FLAG 0x100")] - public const int SPC_INC_PE_PAGE_HASHES_FLAG = 0x100; - - [NativeTypeName("#define SPC_DIGEST_GENERATE_FLAG 0x200")] - public const int SPC_DIGEST_GENERATE_FLAG = 0x200; - - [NativeTypeName("#define SPC_DIGEST_SIGN_FLAG 0x400")] - public const int SPC_DIGEST_SIGN_FLAG = 0x400; - - [NativeTypeName("#define SPC_DIGEST_SIGN_EX_FLAG 0x4000")] - public const int SPC_DIGEST_SIGN_EX_FLAG = 0x4000; - - [NativeTypeName("#define SPC_RELAXED_PE_MARKER_CHECK 0x800")] - public const int SPC_RELAXED_PE_MARKER_CHECK = 0x800; - - [NativeTypeName("#define SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG 0x00000001")] - public const int SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG = 0x00000001; - - [NativeTypeName("#define SPC_MARKER_CHECK_CURRENTLY_SUPPORTED_FLAGS SPC_MARKER_CHECK_SKIP_SIP_INDIRECT_DATA_FLAG")] - public const int SPC_MARKER_CHECK_CURRENTLY_SUPPORTED_FLAGS = 0x00000001; - [NativeTypeName("#define MSSIP_ADDINFO_NONE 0")] public const int MSSIP_ADDINFO_NONE = 0; diff --git a/sources/Interop/Windows/Windows/um/msxml/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/msxml/LIBID.Manual.cs similarity index 96% rename from sources/Interop/Windows/Windows/um/msxml/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/msxml/LIBID.Manual.cs index e67c532f39..8b06ea4869 100644 --- a/sources/Interop/Windows/Windows/um/msxml/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/msxml/LIBID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class LIBID { public static ref readonly Guid LIBID_MSXML { diff --git a/sources/Interop/Windows/Windows/um/oaidl/FADF.cs b/sources/Interop/Windows/Windows/um/oaidl/FADF.cs new file mode 100644 index 0000000000..a8972eb36d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/oaidl/FADF.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/oaidl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FADF + { + [NativeTypeName("#define FADF_AUTO ( 0x1 )")] + public const int FADF_AUTO = (0x1); + + [NativeTypeName("#define FADF_STATIC ( 0x2 )")] + public const int FADF_STATIC = (0x2); + + [NativeTypeName("#define FADF_EMBEDDED ( 0x4 )")] + public const int FADF_EMBEDDED = (0x4); + + [NativeTypeName("#define FADF_FIXEDSIZE ( 0x10 )")] + public const int FADF_FIXEDSIZE = (0x10); + + [NativeTypeName("#define FADF_RECORD ( 0x20 )")] + public const int FADF_RECORD = (0x20); + + [NativeTypeName("#define FADF_HAVEIID ( 0x40 )")] + public const int FADF_HAVEIID = (0x40); + + [NativeTypeName("#define FADF_HAVEVARTYPE ( 0x80 )")] + public const int FADF_HAVEVARTYPE = (0x80); + + [NativeTypeName("#define FADF_BSTR ( 0x100 )")] + public const int FADF_BSTR = (0x100); + + [NativeTypeName("#define FADF_UNKNOWN ( 0x200 )")] + public const int FADF_UNKNOWN = (0x200); + + [NativeTypeName("#define FADF_DISPATCH ( 0x400 )")] + public const int FADF_DISPATCH = (0x400); + + [NativeTypeName("#define FADF_VARIANT ( 0x800 )")] + public const int FADF_VARIANT = (0x800); + + [NativeTypeName("#define FADF_RESERVED ( 0xf008 )")] + public const int FADF_RESERVED = (0xf008); + } +} diff --git a/sources/Interop/Windows/Windows/um/oaidl/Windows.cs b/sources/Interop/Windows/Windows/um/oaidl/Windows.cs index 2453429524..22d9d43778 100644 --- a/sources/Interop/Windows/Windows/um/oaidl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/oaidl/Windows.cs @@ -7,42 +7,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("#define FADF_AUTO ( 0x1 )")] - public const int FADF_AUTO = (0x1); - - [NativeTypeName("#define FADF_STATIC ( 0x2 )")] - public const int FADF_STATIC = (0x2); - - [NativeTypeName("#define FADF_EMBEDDED ( 0x4 )")] - public const int FADF_EMBEDDED = (0x4); - - [NativeTypeName("#define FADF_FIXEDSIZE ( 0x10 )")] - public const int FADF_FIXEDSIZE = (0x10); - - [NativeTypeName("#define FADF_RECORD ( 0x20 )")] - public const int FADF_RECORD = (0x20); - - [NativeTypeName("#define FADF_HAVEIID ( 0x40 )")] - public const int FADF_HAVEIID = (0x40); - - [NativeTypeName("#define FADF_HAVEVARTYPE ( 0x80 )")] - public const int FADF_HAVEVARTYPE = (0x80); - - [NativeTypeName("#define FADF_BSTR ( 0x100 )")] - public const int FADF_BSTR = (0x100); - - [NativeTypeName("#define FADF_UNKNOWN ( 0x200 )")] - public const int FADF_UNKNOWN = (0x200); - - [NativeTypeName("#define FADF_DISPATCH ( 0x400 )")] - public const int FADF_DISPATCH = (0x400); - - [NativeTypeName("#define FADF_VARIANT ( 0x800 )")] - public const int FADF_VARIANT = (0x800); - - [NativeTypeName("#define FADF_RESERVED ( 0xf008 )")] - public const int FADF_RESERVED = (0xf008); - [NativeTypeName("#define PARAMFLAG_NONE ( 0 )")] public const int PARAMFLAG_NONE = (0); diff --git a/sources/Interop/Windows/Windows/um/oleidl/MK.cs b/sources/Interop/Windows/Windows/um/oleidl/MK.cs new file mode 100644 index 0000000000..d799d572a6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/oleidl/MK.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/oleidl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MK + { + [NativeTypeName("#define MK_ALT ( 0x20 )")] + public const int MK_ALT = (0x20); + } +} diff --git a/sources/Interop/Windows/Windows/um/oleidl/Windows.cs b/sources/Interop/Windows/Windows/um/oleidl/Windows.cs index 92ed2bdffa..5b2bd6ca6f 100644 --- a/sources/Interop/Windows/Windows/um/oleidl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/oleidl/Windows.cs @@ -34,9 +34,6 @@ public static partial class Windows [NativeTypeName("#define UPDFCACHE_ALLBUTNODATACACHE ( ( UPDFCACHE_ALL & ( DWORD )~UPDFCACHE_NODATACACHE ) )")] public const uint UPDFCACHE_ALLBUTNODATACACHE = unchecked((((uint)(~(0x80000000))) & (uint)(~(0x1)))); - [NativeTypeName("#define MK_ALT ( 0x20 )")] - public const int MK_ALT = (0x20); - [NativeTypeName("#define DROPEFFECT_NONE ( 0 )")] public const int DROPEFFECT_NONE = (0); diff --git a/sources/Interop/Windows/Windows/um/processthreadsapi/PROC.cs b/sources/Interop/Windows/Windows/um/processthreadsapi/PROC.cs new file mode 100644 index 0000000000..6eb2c37023 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/processthreadsapi/PROC.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/processthreadsapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PROC + { + [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_REPLACE_VALUE 0x00000001")] + public const int PROC_THREAD_ATTRIBUTE_REPLACE_VALUE = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/processthreadsapi/THREAD.cs b/sources/Interop/Windows/Windows/um/processthreadsapi/THREAD.cs new file mode 100644 index 0000000000..1d72c277b8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/processthreadsapi/THREAD.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/processthreadsapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class THREAD + { + [NativeTypeName("#define THREAD_POWER_THROTTLING_CURRENT_VERSION 1")] + public const int THREAD_POWER_THROTTLING_CURRENT_VERSION = 1; + + [NativeTypeName("#define THREAD_POWER_THROTTLING_EXECUTION_SPEED 0x1")] + public const int THREAD_POWER_THROTTLING_EXECUTION_SPEED = 0x1; + + [NativeTypeName("#define THREAD_POWER_THROTTLING_VALID_FLAGS (THREAD_POWER_THROTTLING_EXECUTION_SPEED)")] + public const int THREAD_POWER_THROTTLING_VALID_FLAGS = (0x1); + } +} diff --git a/sources/Interop/Windows/Windows/um/processthreadsapi/Windows.cs b/sources/Interop/Windows/Windows/um/processthreadsapi/Windows.cs index c3c3adb3bb..ef873893d0 100644 --- a/sources/Interop/Windows/Windows/um/processthreadsapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/processthreadsapi/Windows.cs @@ -328,18 +328,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CreateProcessAsUser CreateProcessAsUserW")] public static delegate* CreateProcessAsUser => &CreateProcessAsUserW; - [NativeTypeName("#define PROC_THREAD_ATTRIBUTE_REPLACE_VALUE 0x00000001")] - public const int PROC_THREAD_ATTRIBUTE_REPLACE_VALUE = 0x00000001; - - [NativeTypeName("#define THREAD_POWER_THROTTLING_CURRENT_VERSION 1")] - public const int THREAD_POWER_THROTTLING_CURRENT_VERSION = 1; - - [NativeTypeName("#define THREAD_POWER_THROTTLING_EXECUTION_SPEED 0x1")] - public const int THREAD_POWER_THROTTLING_EXECUTION_SPEED = 0x1; - - [NativeTypeName("#define THREAD_POWER_THROTTLING_VALID_FLAGS (THREAD_POWER_THROTTLING_EXECUTION_SPEED)")] - public const int THREAD_POWER_THROTTLING_VALID_FLAGS = (0x1); - [NativeTypeName("#define PME_CURRENT_VERSION 1")] public const int PME_CURRENT_VERSION = 1; diff --git a/sources/Interop/Windows/Windows/um/propsys/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/propsys/LIBID.Manual.cs similarity index 95% rename from sources/Interop/Windows/Windows/um/propsys/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/propsys/LIBID.Manual.cs index af4048455f..675286372a 100644 --- a/sources/Interop/Windows/Windows/um/propsys/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/propsys/LIBID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class LIBID { public static ref readonly Guid LIBID_PropSysObjects { diff --git a/sources/Interop/Windows/Windows/um/prsht/PSH.cs b/sources/Interop/Windows/Windows/um/prsht/PSH.cs new file mode 100644 index 0000000000..d1939a01c6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/prsht/PSH.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PSH + { + [NativeTypeName("#define PSH_DEFAULT 0x00000000")] + public const int PSH_DEFAULT = 0x00000000; + + [NativeTypeName("#define PSH_PROPTITLE 0x00000001")] + public const int PSH_PROPTITLE = 0x00000001; + + [NativeTypeName("#define PSH_USEHICON 0x00000002")] + public const int PSH_USEHICON = 0x00000002; + + [NativeTypeName("#define PSH_USEICONID 0x00000004")] + public const int PSH_USEICONID = 0x00000004; + + [NativeTypeName("#define PSH_PROPSHEETPAGE 0x00000008")] + public const int PSH_PROPSHEETPAGE = 0x00000008; + + [NativeTypeName("#define PSH_WIZARDHASFINISH 0x00000010")] + public const int PSH_WIZARDHASFINISH = 0x00000010; + + [NativeTypeName("#define PSH_WIZARD 0x00000020")] + public const int PSH_WIZARD = 0x00000020; + + [NativeTypeName("#define PSH_USEPSTARTPAGE 0x00000040")] + public const int PSH_USEPSTARTPAGE = 0x00000040; + + [NativeTypeName("#define PSH_NOAPPLYNOW 0x00000080")] + public const int PSH_NOAPPLYNOW = 0x00000080; + + [NativeTypeName("#define PSH_USECALLBACK 0x00000100")] + public const int PSH_USECALLBACK = 0x00000100; + + [NativeTypeName("#define PSH_HASHELP 0x00000200")] + public const int PSH_HASHELP = 0x00000200; + + [NativeTypeName("#define PSH_MODELESS 0x00000400")] + public const int PSH_MODELESS = 0x00000400; + + [NativeTypeName("#define PSH_RTLREADING 0x00000800")] + public const int PSH_RTLREADING = 0x00000800; + + [NativeTypeName("#define PSH_WIZARDCONTEXTHELP 0x00001000")] + public const int PSH_WIZARDCONTEXTHELP = 0x00001000; + + [NativeTypeName("#define PSH_WIZARD97 0x01000000")] + public const int PSH_WIZARD97 = 0x01000000; + + [NativeTypeName("#define PSH_WATERMARK 0x00008000")] + public const int PSH_WATERMARK = 0x00008000; + + [NativeTypeName("#define PSH_USEHBMWATERMARK 0x00010000")] + public const int PSH_USEHBMWATERMARK = 0x00010000; + + [NativeTypeName("#define PSH_USEHPLWATERMARK 0x00020000")] + public const int PSH_USEHPLWATERMARK = 0x00020000; + + [NativeTypeName("#define PSH_STRETCHWATERMARK 0x00040000")] + public const int PSH_STRETCHWATERMARK = 0x00040000; + + [NativeTypeName("#define PSH_HEADER 0x00080000")] + public const int PSH_HEADER = 0x00080000; + + [NativeTypeName("#define PSH_USEHBMHEADER 0x00100000")] + public const int PSH_USEHBMHEADER = 0x00100000; + + [NativeTypeName("#define PSH_USEPAGELANG 0x00200000")] + public const int PSH_USEPAGELANG = 0x00200000; + + [NativeTypeName("#define PSH_WIZARD_LITE 0x00400000")] + public const int PSH_WIZARD_LITE = 0x00400000; + + [NativeTypeName("#define PSH_NOCONTEXTHELP 0x02000000")] + public const int PSH_NOCONTEXTHELP = 0x02000000; + + [NativeTypeName("#define PSH_AEROWIZARD 0x00004000")] + public const int PSH_AEROWIZARD = 0x00004000; + + [NativeTypeName("#define PSH_RESIZABLE 0x04000000")] + public const int PSH_RESIZABLE = 0x04000000; + + [NativeTypeName("#define PSH_HEADERBITMAP 0x08000000")] + public const int PSH_HEADERBITMAP = 0x08000000; + + [NativeTypeName("#define PSH_NOMARGIN 0x10000000")] + public const int PSH_NOMARGIN = 0x10000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/prsht/PSM.cs b/sources/Interop/Windows/Windows/um/prsht/PSM.cs new file mode 100644 index 0000000000..a1239879ce --- /dev/null +++ b/sources/Interop/Windows/Windows/um/prsht/PSM.cs @@ -0,0 +1,139 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PSM + { + [NativeTypeName("#define PSM_SETCURSEL (WM_USER + 101)")] + public const int PSM_SETCURSEL = (0x0400 + 101); + + [NativeTypeName("#define PSM_REMOVEPAGE (WM_USER + 102)")] + public const int PSM_REMOVEPAGE = (0x0400 + 102); + + [NativeTypeName("#define PSM_ADDPAGE (WM_USER + 103)")] + public const int PSM_ADDPAGE = (0x0400 + 103); + + [NativeTypeName("#define PSM_CHANGED (WM_USER + 104)")] + public const int PSM_CHANGED = (0x0400 + 104); + + [NativeTypeName("#define PSM_RESTARTWINDOWS (WM_USER + 105)")] + public const int PSM_RESTARTWINDOWS = (0x0400 + 105); + + [NativeTypeName("#define PSM_REBOOTSYSTEM (WM_USER + 106)")] + public const int PSM_REBOOTSYSTEM = (0x0400 + 106); + + [NativeTypeName("#define PSM_CANCELTOCLOSE (WM_USER + 107)")] + public const int PSM_CANCELTOCLOSE = (0x0400 + 107); + + [NativeTypeName("#define PSM_QUERYSIBLINGS (WM_USER + 108)")] + public const int PSM_QUERYSIBLINGS = (0x0400 + 108); + + [NativeTypeName("#define PSM_UNCHANGED (WM_USER + 109)")] + public const int PSM_UNCHANGED = (0x0400 + 109); + + [NativeTypeName("#define PSM_APPLY (WM_USER + 110)")] + public const int PSM_APPLY = (0x0400 + 110); + + [NativeTypeName("#define PSM_SETTITLEA (WM_USER + 111)")] + public const int PSM_SETTITLEA = (0x0400 + 111); + + [NativeTypeName("#define PSM_SETTITLEW (WM_USER + 120)")] + public const int PSM_SETTITLEW = (0x0400 + 120); + + [NativeTypeName("#define PSM_SETTITLE PSM_SETTITLEW")] + public const int PSM_SETTITLE = (0x0400 + 120); + + [NativeTypeName("#define PSM_SETWIZBUTTONS (WM_USER + 112)")] + public const int PSM_SETWIZBUTTONS = (0x0400 + 112); + + [NativeTypeName("#define PSM_PRESSBUTTON (WM_USER + 113)")] + public const int PSM_PRESSBUTTON = (0x0400 + 113); + + [NativeTypeName("#define PSM_SETCURSELID (WM_USER + 114)")] + public const int PSM_SETCURSELID = (0x0400 + 114); + + [NativeTypeName("#define PSM_SETFINISHTEXTA (WM_USER + 115)")] + public const int PSM_SETFINISHTEXTA = (0x0400 + 115); + + [NativeTypeName("#define PSM_SETFINISHTEXTW (WM_USER + 121)")] + public const int PSM_SETFINISHTEXTW = (0x0400 + 121); + + [NativeTypeName("#define PSM_SETFINISHTEXT PSM_SETFINISHTEXTW")] + public const int PSM_SETFINISHTEXT = (0x0400 + 121); + + [NativeTypeName("#define PSM_GETTABCONTROL (WM_USER + 116)")] + public const int PSM_GETTABCONTROL = (0x0400 + 116); + + [NativeTypeName("#define PSM_ISDIALOGMESSAGE (WM_USER + 117)")] + public const int PSM_ISDIALOGMESSAGE = (0x0400 + 117); + + [NativeTypeName("#define PSM_GETCURRENTPAGEHWND (WM_USER + 118)")] + public const int PSM_GETCURRENTPAGEHWND = (0x0400 + 118); + + [NativeTypeName("#define PSM_INSERTPAGE (WM_USER + 119)")] + public const int PSM_INSERTPAGE = (0x0400 + 119); + + [NativeTypeName("#define PSM_SETHEADERTITLEA (WM_USER + 125)")] + public const int PSM_SETHEADERTITLEA = (0x0400 + 125); + + [NativeTypeName("#define PSM_SETHEADERTITLEW (WM_USER + 126)")] + public const int PSM_SETHEADERTITLEW = (0x0400 + 126); + + [NativeTypeName("#define PSM_SETHEADERTITLE PSM_SETHEADERTITLEW")] + public const int PSM_SETHEADERTITLE = (0x0400 + 126); + + [NativeTypeName("#define PSM_SETHEADERSUBTITLEA (WM_USER + 127)")] + public const int PSM_SETHEADERSUBTITLEA = (0x0400 + 127); + + [NativeTypeName("#define PSM_SETHEADERSUBTITLEW (WM_USER + 128)")] + public const int PSM_SETHEADERSUBTITLEW = (0x0400 + 128); + + [NativeTypeName("#define PSM_SETHEADERSUBTITLE PSM_SETHEADERSUBTITLEW")] + public const int PSM_SETHEADERSUBTITLE = (0x0400 + 128); + + [NativeTypeName("#define PSM_HWNDTOINDEX (WM_USER + 129)")] + public const int PSM_HWNDTOINDEX = (0x0400 + 129); + + [NativeTypeName("#define PSM_INDEXTOHWND (WM_USER + 130)")] + public const int PSM_INDEXTOHWND = (0x0400 + 130); + + [NativeTypeName("#define PSM_PAGETOINDEX (WM_USER + 131)")] + public const int PSM_PAGETOINDEX = (0x0400 + 131); + + [NativeTypeName("#define PSM_INDEXTOPAGE (WM_USER + 132)")] + public const int PSM_INDEXTOPAGE = (0x0400 + 132); + + [NativeTypeName("#define PSM_IDTOINDEX (WM_USER + 133)")] + public const int PSM_IDTOINDEX = (0x0400 + 133); + + [NativeTypeName("#define PSM_INDEXTOID (WM_USER + 134)")] + public const int PSM_INDEXTOID = (0x0400 + 134); + + [NativeTypeName("#define PSM_GETRESULT (WM_USER + 135)")] + public const int PSM_GETRESULT = (0x0400 + 135); + + [NativeTypeName("#define PSM_RECALCPAGESIZES (WM_USER + 136)")] + public const int PSM_RECALCPAGESIZES = (0x0400 + 136); + + [NativeTypeName("#define PSM_SETNEXTTEXTW (WM_USER + 137)")] + public const int PSM_SETNEXTTEXTW = (0x0400 + 137); + + [NativeTypeName("#define PSM_SETNEXTTEXT PSM_SETNEXTTEXTW")] + public const int PSM_SETNEXTTEXT = (0x0400 + 137); + + [NativeTypeName("#define PSM_SHOWWIZBUTTONS (WM_USER + 138)")] + public const int PSM_SHOWWIZBUTTONS = (0x0400 + 138); + + [NativeTypeName("#define PSM_ENABLEWIZBUTTONS (WM_USER + 139)")] + public const int PSM_ENABLEWIZBUTTONS = (0x0400 + 139); + + [NativeTypeName("#define PSM_SETBUTTONTEXTW (WM_USER + 140)")] + public const int PSM_SETBUTTONTEXTW = (0x0400 + 140); + + [NativeTypeName("#define PSM_SETBUTTONTEXT PSM_SETBUTTONTEXTW")] + public const int PSM_SETBUTTONTEXT = (0x0400 + 140); + } +} diff --git a/sources/Interop/Windows/Windows/um/prsht/PSN.cs b/sources/Interop/Windows/Windows/um/prsht/PSN.cs new file mode 100644 index 0000000000..70e1854673 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/prsht/PSN.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PSN + { + [NativeTypeName("#define PSN_FIRST (0U-200U)")] + public const uint PSN_FIRST = unchecked(0U - 200U); + + [NativeTypeName("#define PSN_LAST (0U-299U)")] + public const uint PSN_LAST = unchecked(0U - 299U); + + [NativeTypeName("#define PSN_SETACTIVE (PSN_FIRST-0)")] + public const uint PSN_SETACTIVE = unchecked((0U - 200U) - 0); + + [NativeTypeName("#define PSN_KILLACTIVE (PSN_FIRST-1)")] + public const uint PSN_KILLACTIVE = unchecked((0U - 200U) - 1); + + [NativeTypeName("#define PSN_APPLY (PSN_FIRST-2)")] + public const uint PSN_APPLY = unchecked((0U - 200U) - 2); + + [NativeTypeName("#define PSN_RESET (PSN_FIRST-3)")] + public const uint PSN_RESET = unchecked((0U - 200U) - 3); + + [NativeTypeName("#define PSN_HELP (PSN_FIRST-5)")] + public const uint PSN_HELP = unchecked((0U - 200U) - 5); + + [NativeTypeName("#define PSN_WIZBACK (PSN_FIRST-6)")] + public const uint PSN_WIZBACK = unchecked((0U - 200U) - 6); + + [NativeTypeName("#define PSN_WIZNEXT (PSN_FIRST-7)")] + public const uint PSN_WIZNEXT = unchecked((0U - 200U) - 7); + + [NativeTypeName("#define PSN_WIZFINISH (PSN_FIRST-8)")] + public const uint PSN_WIZFINISH = unchecked((0U - 200U) - 8); + + [NativeTypeName("#define PSN_QUERYCANCEL (PSN_FIRST-9)")] + public const uint PSN_QUERYCANCEL = unchecked((0U - 200U) - 9); + + [NativeTypeName("#define PSN_GETOBJECT (PSN_FIRST-10)")] + public const uint PSN_GETOBJECT = unchecked((0U - 200U) - 10); + + [NativeTypeName("#define PSN_TRANSLATEACCELERATOR (PSN_FIRST-12)")] + public const uint PSN_TRANSLATEACCELERATOR = unchecked((0U - 200U) - 12); + + [NativeTypeName("#define PSN_QUERYINITIALFOCUS (PSN_FIRST-13)")] + public const uint PSN_QUERYINITIALFOCUS = unchecked((0U - 200U) - 13); + } +} diff --git a/sources/Interop/Windows/Windows/um/prsht/PSP.cs b/sources/Interop/Windows/Windows/um/prsht/PSP.cs new file mode 100644 index 0000000000..ce031d2855 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/prsht/PSP.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/prsht.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PSP + { + [NativeTypeName("#define PSP_DEFAULT 0x00000000")] + public const int PSP_DEFAULT = 0x00000000; + + [NativeTypeName("#define PSP_DLGINDIRECT 0x00000001")] + public const int PSP_DLGINDIRECT = 0x00000001; + + [NativeTypeName("#define PSP_USEHICON 0x00000002")] + public const int PSP_USEHICON = 0x00000002; + + [NativeTypeName("#define PSP_USEICONID 0x00000004")] + public const int PSP_USEICONID = 0x00000004; + + [NativeTypeName("#define PSP_USETITLE 0x00000008")] + public const int PSP_USETITLE = 0x00000008; + + [NativeTypeName("#define PSP_RTLREADING 0x00000010")] + public const int PSP_RTLREADING = 0x00000010; + + [NativeTypeName("#define PSP_HASHELP 0x00000020")] + public const int PSP_HASHELP = 0x00000020; + + [NativeTypeName("#define PSP_USEREFPARENT 0x00000040")] + public const int PSP_USEREFPARENT = 0x00000040; + + [NativeTypeName("#define PSP_USECALLBACK 0x00000080")] + public const int PSP_USECALLBACK = 0x00000080; + + [NativeTypeName("#define PSP_PREMATURE 0x00000400")] + public const int PSP_PREMATURE = 0x00000400; + + [NativeTypeName("#define PSP_HIDEHEADER 0x00000800")] + public const int PSP_HIDEHEADER = 0x00000800; + + [NativeTypeName("#define PSP_USEHEADERTITLE 0x00001000")] + public const int PSP_USEHEADERTITLE = 0x00001000; + + [NativeTypeName("#define PSP_USEHEADERSUBTITLE 0x00002000")] + public const int PSP_USEHEADERSUBTITLE = 0x00002000; + + [NativeTypeName("#define PSP_USEFUSIONCONTEXT 0x00004000")] + public const int PSP_USEFUSIONCONTEXT = 0x00004000; + } +} diff --git a/sources/Interop/Windows/Windows/um/prsht/Windows.cs b/sources/Interop/Windows/Windows/um/prsht/Windows.cs index 3f07cebcee..1a872996e1 100644 --- a/sources/Interop/Windows/Windows/um/prsht/Windows.cs +++ b/sources/Interop/Windows/Windows/um/prsht/Windows.cs @@ -35,48 +35,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MAXPROPPAGES 100")] public const int MAXPROPPAGES = 100; - [NativeTypeName("#define PSP_DEFAULT 0x00000000")] - public const int PSP_DEFAULT = 0x00000000; - - [NativeTypeName("#define PSP_DLGINDIRECT 0x00000001")] - public const int PSP_DLGINDIRECT = 0x00000001; - - [NativeTypeName("#define PSP_USEHICON 0x00000002")] - public const int PSP_USEHICON = 0x00000002; - - [NativeTypeName("#define PSP_USEICONID 0x00000004")] - public const int PSP_USEICONID = 0x00000004; - - [NativeTypeName("#define PSP_USETITLE 0x00000008")] - public const int PSP_USETITLE = 0x00000008; - - [NativeTypeName("#define PSP_RTLREADING 0x00000010")] - public const int PSP_RTLREADING = 0x00000010; - - [NativeTypeName("#define PSP_HASHELP 0x00000020")] - public const int PSP_HASHELP = 0x00000020; - - [NativeTypeName("#define PSP_USEREFPARENT 0x00000040")] - public const int PSP_USEREFPARENT = 0x00000040; - - [NativeTypeName("#define PSP_USECALLBACK 0x00000080")] - public const int PSP_USECALLBACK = 0x00000080; - - [NativeTypeName("#define PSP_PREMATURE 0x00000400")] - public const int PSP_PREMATURE = 0x00000400; - - [NativeTypeName("#define PSP_HIDEHEADER 0x00000800")] - public const int PSP_HIDEHEADER = 0x00000800; - - [NativeTypeName("#define PSP_USEHEADERTITLE 0x00001000")] - public const int PSP_USEHEADERTITLE = 0x00001000; - - [NativeTypeName("#define PSP_USEHEADERSUBTITLE 0x00002000")] - public const int PSP_USEHEADERSUBTITLE = 0x00002000; - - [NativeTypeName("#define PSP_USEFUSIONCONTEXT 0x00004000")] - public const int PSP_USEFUSIONCONTEXT = 0x00004000; - [NativeTypeName("#define PSPCB_ADDREF 0")] public const int PSPCB_ADDREF = 0; @@ -116,90 +74,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PROPSHEETPAGE_V2_SIZE PROPSHEETPAGEW_V2_SIZE")] public static uint PROPSHEETPAGE_V2_SIZE => unchecked((uint)((uint)(sizeof(PROPSHEETPAGEW_V2)))); - [NativeTypeName("#define PSH_DEFAULT 0x00000000")] - public const int PSH_DEFAULT = 0x00000000; - - [NativeTypeName("#define PSH_PROPTITLE 0x00000001")] - public const int PSH_PROPTITLE = 0x00000001; - - [NativeTypeName("#define PSH_USEHICON 0x00000002")] - public const int PSH_USEHICON = 0x00000002; - - [NativeTypeName("#define PSH_USEICONID 0x00000004")] - public const int PSH_USEICONID = 0x00000004; - - [NativeTypeName("#define PSH_PROPSHEETPAGE 0x00000008")] - public const int PSH_PROPSHEETPAGE = 0x00000008; - - [NativeTypeName("#define PSH_WIZARDHASFINISH 0x00000010")] - public const int PSH_WIZARDHASFINISH = 0x00000010; - - [NativeTypeName("#define PSH_WIZARD 0x00000020")] - public const int PSH_WIZARD = 0x00000020; - - [NativeTypeName("#define PSH_USEPSTARTPAGE 0x00000040")] - public const int PSH_USEPSTARTPAGE = 0x00000040; - - [NativeTypeName("#define PSH_NOAPPLYNOW 0x00000080")] - public const int PSH_NOAPPLYNOW = 0x00000080; - - [NativeTypeName("#define PSH_USECALLBACK 0x00000100")] - public const int PSH_USECALLBACK = 0x00000100; - - [NativeTypeName("#define PSH_HASHELP 0x00000200")] - public const int PSH_HASHELP = 0x00000200; - - [NativeTypeName("#define PSH_MODELESS 0x00000400")] - public const int PSH_MODELESS = 0x00000400; - - [NativeTypeName("#define PSH_RTLREADING 0x00000800")] - public const int PSH_RTLREADING = 0x00000800; - - [NativeTypeName("#define PSH_WIZARDCONTEXTHELP 0x00001000")] - public const int PSH_WIZARDCONTEXTHELP = 0x00001000; - - [NativeTypeName("#define PSH_WIZARD97 0x01000000")] - public const int PSH_WIZARD97 = 0x01000000; - - [NativeTypeName("#define PSH_WATERMARK 0x00008000")] - public const int PSH_WATERMARK = 0x00008000; - - [NativeTypeName("#define PSH_USEHBMWATERMARK 0x00010000")] - public const int PSH_USEHBMWATERMARK = 0x00010000; - - [NativeTypeName("#define PSH_USEHPLWATERMARK 0x00020000")] - public const int PSH_USEHPLWATERMARK = 0x00020000; - - [NativeTypeName("#define PSH_STRETCHWATERMARK 0x00040000")] - public const int PSH_STRETCHWATERMARK = 0x00040000; - - [NativeTypeName("#define PSH_HEADER 0x00080000")] - public const int PSH_HEADER = 0x00080000; - - [NativeTypeName("#define PSH_USEHBMHEADER 0x00100000")] - public const int PSH_USEHBMHEADER = 0x00100000; - - [NativeTypeName("#define PSH_USEPAGELANG 0x00200000")] - public const int PSH_USEPAGELANG = 0x00200000; - - [NativeTypeName("#define PSH_WIZARD_LITE 0x00400000")] - public const int PSH_WIZARD_LITE = 0x00400000; - - [NativeTypeName("#define PSH_NOCONTEXTHELP 0x02000000")] - public const int PSH_NOCONTEXTHELP = 0x02000000; - - [NativeTypeName("#define PSH_AEROWIZARD 0x00004000")] - public const int PSH_AEROWIZARD = 0x00004000; - - [NativeTypeName("#define PSH_RESIZABLE 0x04000000")] - public const int PSH_RESIZABLE = 0x04000000; - - [NativeTypeName("#define PSH_HEADERBITMAP 0x08000000")] - public const int PSH_HEADERBITMAP = 0x08000000; - - [NativeTypeName("#define PSH_NOMARGIN 0x10000000")] - public const int PSH_NOMARGIN = 0x10000000; - [NativeTypeName("#define PROPSHEETHEADERA_V1_SIZE sizeof(PROPSHEETHEADERA_V1)")] public static uint PROPSHEETHEADERA_V1_SIZE => unchecked((uint)((uint)(sizeof(PROPSHEETHEADERA_V1)))); @@ -233,48 +107,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PropertySheet PropertySheetW")] public static delegate* PropertySheet => &PropertySheetW; - [NativeTypeName("#define PSN_FIRST (0U-200U)")] - public const uint PSN_FIRST = unchecked(0U - 200U); - - [NativeTypeName("#define PSN_LAST (0U-299U)")] - public const uint PSN_LAST = unchecked(0U - 299U); - - [NativeTypeName("#define PSN_SETACTIVE (PSN_FIRST-0)")] - public const uint PSN_SETACTIVE = unchecked((0U - 200U) - 0); - - [NativeTypeName("#define PSN_KILLACTIVE (PSN_FIRST-1)")] - public const uint PSN_KILLACTIVE = unchecked((0U - 200U) - 1); - - [NativeTypeName("#define PSN_APPLY (PSN_FIRST-2)")] - public const uint PSN_APPLY = unchecked((0U - 200U) - 2); - - [NativeTypeName("#define PSN_RESET (PSN_FIRST-3)")] - public const uint PSN_RESET = unchecked((0U - 200U) - 3); - - [NativeTypeName("#define PSN_HELP (PSN_FIRST-5)")] - public const uint PSN_HELP = unchecked((0U - 200U) - 5); - - [NativeTypeName("#define PSN_WIZBACK (PSN_FIRST-6)")] - public const uint PSN_WIZBACK = unchecked((0U - 200U) - 6); - - [NativeTypeName("#define PSN_WIZNEXT (PSN_FIRST-7)")] - public const uint PSN_WIZNEXT = unchecked((0U - 200U) - 7); - - [NativeTypeName("#define PSN_WIZFINISH (PSN_FIRST-8)")] - public const uint PSN_WIZFINISH = unchecked((0U - 200U) - 8); - - [NativeTypeName("#define PSN_QUERYCANCEL (PSN_FIRST-9)")] - public const uint PSN_QUERYCANCEL = unchecked((0U - 200U) - 9); - - [NativeTypeName("#define PSN_GETOBJECT (PSN_FIRST-10)")] - public const uint PSN_GETOBJECT = unchecked((0U - 200U) - 10); - - [NativeTypeName("#define PSN_TRANSLATEACCELERATOR (PSN_FIRST-12)")] - public const uint PSN_TRANSLATEACCELERATOR = unchecked((0U - 200U) - 12); - - [NativeTypeName("#define PSN_QUERYINITIALFOCUS (PSN_FIRST-13)")] - public const uint PSN_QUERYINITIALFOCUS = unchecked((0U - 200U) - 13); - [NativeTypeName("#define PSNRET_NOERROR 0")] public const int PSNRET_NOERROR = 0; @@ -287,48 +119,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PSNRET_MESSAGEHANDLED 3")] public const int PSNRET_MESSAGEHANDLED = 3; - [NativeTypeName("#define PSM_SETCURSEL (WM_USER + 101)")] - public const int PSM_SETCURSEL = (0x0400 + 101); - - [NativeTypeName("#define PSM_REMOVEPAGE (WM_USER + 102)")] - public const int PSM_REMOVEPAGE = (0x0400 + 102); - - [NativeTypeName("#define PSM_ADDPAGE (WM_USER + 103)")] - public const int PSM_ADDPAGE = (0x0400 + 103); - - [NativeTypeName("#define PSM_CHANGED (WM_USER + 104)")] - public const int PSM_CHANGED = (0x0400 + 104); - - [NativeTypeName("#define PSM_RESTARTWINDOWS (WM_USER + 105)")] - public const int PSM_RESTARTWINDOWS = (0x0400 + 105); - - [NativeTypeName("#define PSM_REBOOTSYSTEM (WM_USER + 106)")] - public const int PSM_REBOOTSYSTEM = (0x0400 + 106); - - [NativeTypeName("#define PSM_CANCELTOCLOSE (WM_USER + 107)")] - public const int PSM_CANCELTOCLOSE = (0x0400 + 107); - - [NativeTypeName("#define PSM_QUERYSIBLINGS (WM_USER + 108)")] - public const int PSM_QUERYSIBLINGS = (0x0400 + 108); - - [NativeTypeName("#define PSM_UNCHANGED (WM_USER + 109)")] - public const int PSM_UNCHANGED = (0x0400 + 109); - - [NativeTypeName("#define PSM_APPLY (WM_USER + 110)")] - public const int PSM_APPLY = (0x0400 + 110); - - [NativeTypeName("#define PSM_SETTITLEA (WM_USER + 111)")] - public const int PSM_SETTITLEA = (0x0400 + 111); - - [NativeTypeName("#define PSM_SETTITLEW (WM_USER + 120)")] - public const int PSM_SETTITLEW = (0x0400 + 120); - - [NativeTypeName("#define PSM_SETTITLE PSM_SETTITLEW")] - public const int PSM_SETTITLE = (0x0400 + 120); - - [NativeTypeName("#define PSM_SETWIZBUTTONS (WM_USER + 112)")] - public const int PSM_SETWIZBUTTONS = (0x0400 + 112); - [NativeTypeName("#define PSWIZB_BACK 0x00000001")] public const int PSWIZB_BACK = 0x00000001; @@ -347,9 +137,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PSWIZB_CANCEL 0x00000010")] public const int PSWIZB_CANCEL = 0x00000010; - [NativeTypeName("#define PSM_PRESSBUTTON (WM_USER + 113)")] - public const int PSM_PRESSBUTTON = (0x0400 + 113); - [NativeTypeName("#define PSBTN_BACK 0")] public const int PSBTN_BACK = 0; @@ -374,99 +161,15 @@ public static unsafe partial class Windows [NativeTypeName("#define PSBTN_MAX 6")] public const int PSBTN_MAX = 6; - [NativeTypeName("#define PSM_SETCURSELID (WM_USER + 114)")] - public const int PSM_SETCURSELID = (0x0400 + 114); - - [NativeTypeName("#define PSM_SETFINISHTEXTA (WM_USER + 115)")] - public const int PSM_SETFINISHTEXTA = (0x0400 + 115); - - [NativeTypeName("#define PSM_SETFINISHTEXTW (WM_USER + 121)")] - public const int PSM_SETFINISHTEXTW = (0x0400 + 121); - - [NativeTypeName("#define PSM_SETFINISHTEXT PSM_SETFINISHTEXTW")] - public const int PSM_SETFINISHTEXT = (0x0400 + 121); - - [NativeTypeName("#define PSM_GETTABCONTROL (WM_USER + 116)")] - public const int PSM_GETTABCONTROL = (0x0400 + 116); - - [NativeTypeName("#define PSM_ISDIALOGMESSAGE (WM_USER + 117)")] - public const int PSM_ISDIALOGMESSAGE = (0x0400 + 117); - - [NativeTypeName("#define PSM_GETCURRENTPAGEHWND (WM_USER + 118)")] - public const int PSM_GETCURRENTPAGEHWND = (0x0400 + 118); - - [NativeTypeName("#define PSM_INSERTPAGE (WM_USER + 119)")] - public const int PSM_INSERTPAGE = (0x0400 + 119); - [NativeTypeName("#define PSWIZF_SETCOLOR ((UINT)(-1))")] public const uint PSWIZF_SETCOLOR = unchecked((uint)(-1)); - [NativeTypeName("#define PSM_SETHEADERTITLEA (WM_USER + 125)")] - public const int PSM_SETHEADERTITLEA = (0x0400 + 125); - - [NativeTypeName("#define PSM_SETHEADERTITLEW (WM_USER + 126)")] - public const int PSM_SETHEADERTITLEW = (0x0400 + 126); - - [NativeTypeName("#define PSM_SETHEADERTITLE PSM_SETHEADERTITLEW")] - public const int PSM_SETHEADERTITLE = (0x0400 + 126); - - [NativeTypeName("#define PSM_SETHEADERSUBTITLEA (WM_USER + 127)")] - public const int PSM_SETHEADERSUBTITLEA = (0x0400 + 127); - - [NativeTypeName("#define PSM_SETHEADERSUBTITLEW (WM_USER + 128)")] - public const int PSM_SETHEADERSUBTITLEW = (0x0400 + 128); - - [NativeTypeName("#define PSM_SETHEADERSUBTITLE PSM_SETHEADERSUBTITLEW")] - public const int PSM_SETHEADERSUBTITLE = (0x0400 + 128); - - [NativeTypeName("#define PSM_HWNDTOINDEX (WM_USER + 129)")] - public const int PSM_HWNDTOINDEX = (0x0400 + 129); - - [NativeTypeName("#define PSM_INDEXTOHWND (WM_USER + 130)")] - public const int PSM_INDEXTOHWND = (0x0400 + 130); - - [NativeTypeName("#define PSM_PAGETOINDEX (WM_USER + 131)")] - public const int PSM_PAGETOINDEX = (0x0400 + 131); - - [NativeTypeName("#define PSM_INDEXTOPAGE (WM_USER + 132)")] - public const int PSM_INDEXTOPAGE = (0x0400 + 132); - - [NativeTypeName("#define PSM_IDTOINDEX (WM_USER + 133)")] - public const int PSM_IDTOINDEX = (0x0400 + 133); - - [NativeTypeName("#define PSM_INDEXTOID (WM_USER + 134)")] - public const int PSM_INDEXTOID = (0x0400 + 134); - - [NativeTypeName("#define PSM_GETRESULT (WM_USER + 135)")] - public const int PSM_GETRESULT = (0x0400 + 135); - - [NativeTypeName("#define PSM_RECALCPAGESIZES (WM_USER + 136)")] - public const int PSM_RECALCPAGESIZES = (0x0400 + 136); - - [NativeTypeName("#define PSM_SETNEXTTEXTW (WM_USER + 137)")] - public const int PSM_SETNEXTTEXTW = (0x0400 + 137); - - [NativeTypeName("#define PSM_SETNEXTTEXT PSM_SETNEXTTEXTW")] - public const int PSM_SETNEXTTEXT = (0x0400 + 137); - [NativeTypeName("#define PSWIZB_SHOW 0")] public const int PSWIZB_SHOW = 0; [NativeTypeName("#define PSWIZB_RESTORE 1")] public const int PSWIZB_RESTORE = 1; - [NativeTypeName("#define PSM_SHOWWIZBUTTONS (WM_USER + 138)")] - public const int PSM_SHOWWIZBUTTONS = (0x0400 + 138); - - [NativeTypeName("#define PSM_ENABLEWIZBUTTONS (WM_USER + 139)")] - public const int PSM_ENABLEWIZBUTTONS = (0x0400 + 139); - - [NativeTypeName("#define PSM_SETBUTTONTEXTW (WM_USER + 140)")] - public const int PSM_SETBUTTONTEXTW = (0x0400 + 140); - - [NativeTypeName("#define PSM_SETBUTTONTEXT PSM_SETBUTTONTEXTW")] - public const int PSM_SETBUTTONTEXT = (0x0400 + 140); - [NativeTypeName("#define ID_PSRESTARTWINDOWS 0x2")] public const int ID_PSRESTARTWINDOWS = 0x2; diff --git a/sources/Interop/Windows/Windows/um/reason/SHUTDOWN.cs b/sources/Interop/Windows/Windows/um/reason/SHUTDOWN.cs new file mode 100644 index 0000000000..4cd0ddee92 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/reason/SHUTDOWN.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/reason.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHUTDOWN + { + [NativeTypeName("#define SHUTDOWN_TYPE_LEN 32")] + public const int SHUTDOWN_TYPE_LEN = 32; + } +} diff --git a/sources/Interop/Windows/Windows/um/reason/Windows.cs b/sources/Interop/Windows/Windows/um/reason/Windows.cs index 577e5c4066..77ee466544 100644 --- a/sources/Interop/Windows/Windows/um/reason/Windows.cs +++ b/sources/Interop/Windows/Windows/um/reason/Windows.cs @@ -19,9 +19,6 @@ public static partial class Windows [NativeTypeName("#define UDIRTYUI (SHTDN_REASON_FLAG_DIRTY_UI)")] public const int UDIRTYUI = (0x08000000); - [NativeTypeName("#define SHUTDOWN_TYPE_LEN 32")] - public const int SHUTDOWN_TYPE_LEN = 32; - [NativeTypeName("#define POLICY_SHOWREASONUI_NEVER 0")] public const int POLICY_SHOWREASONUI_NEVER = 0; diff --git a/sources/Interop/Windows/Windows/um/rendezvoussession/LIBID.cs b/sources/Interop/Windows/Windows/um/rendezvoussession/LIBID.cs new file mode 100644 index 0000000000..9942b332b1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/rendezvoussession/LIBID.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/rendezvoussession.h and um/rendezvoussession_i.c in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class LIBID + { + [NativeTypeName("const IID")] + public static ref readonly Guid LIBID_RendezvousSessionLib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA4, 0x56, 0xD8, 0xEF, + 0x85, 0x5A, + 0x1B, 0x4A, + 0xAD, + 0xD5, + 0x2E, + 0xAD, + 0xAC, + 0xE6, + 0xF6, + 0xA2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/rendezvoussession/Windows.cs b/sources/Interop/Windows/Windows/um/rendezvoussession/Windows.cs index 2be0be804b..3626c6d4ed 100644 --- a/sources/Interop/Windows/Windows/um/rendezvoussession/Windows.cs +++ b/sources/Interop/Windows/Windows/um/rendezvoussession/Windows.cs @@ -12,31 +12,6 @@ namespace TerraFX.Interop.Windows { public static partial class Windows { - [NativeTypeName("const IID")] - public static ref readonly Guid LIBID_RendezvousSessionLib - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA4, 0x56, 0xD8, 0xEF, - 0x85, 0x5A, - 0x1B, 0x4A, - 0xAD, - 0xD5, - 0x2E, - 0xAD, - 0xAC, - 0xE6, - 0xF6, - 0xA2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("const IID")] public static ref readonly Guid DIID_DRendezvousSessionEvents { diff --git a/sources/Interop/Windows/Windows/um/sapi/DEFAULT.cs b/sources/Interop/Windows/Windows/um/sapi/DEFAULT.cs new file mode 100644 index 0000000000..3998d1ee6e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/sapi/DEFAULT.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEFAULT + { + [NativeTypeName("#define DEFAULT_WEIGHT ( 1 )")] + public const int DEFAULT_WEIGHT = (1); + } +} diff --git a/sources/Interop/Windows/Windows/um/sapi/LIBID.Manual.cs b/sources/Interop/Windows/Windows/um/sapi/LIBID.Manual.cs new file mode 100644 index 0000000000..d25f100f5e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/sapi/LIBID.Manual.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class LIBID + { + public static ref readonly Guid LIBID_SpeechLib + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3A, 0xCA, 0x66, 0xC8, + 0xF7, 0x32, + 0xD2, 0x11, + 0x96, + 0x02, + 0x00, + 0xC0, + 0x4F, + 0x8E, + 0xE6, + 0x28 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/sapi/SPDUI.cs b/sources/Interop/Windows/Windows/um/sapi/SPDUI.cs new file mode 100644 index 0000000000..0a6e193883 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/sapi/SPDUI.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPDUI + { + [NativeTypeName("#define SPDUI_EngineProperties L\"EngineProperties\"")] + public const string SPDUI_EngineProperties = "EngineProperties"; + + [NativeTypeName("#define SPDUI_AddRemoveWord L\"AddRemoveWord\"")] + public const string SPDUI_AddRemoveWord = "AddRemoveWord"; + + [NativeTypeName("#define SPDUI_UserTraining L\"UserTraining\"")] + public const string SPDUI_UserTraining = "UserTraining"; + + [NativeTypeName("#define SPDUI_MicTraining L\"MicTraining\"")] + public const string SPDUI_MicTraining = "MicTraining"; + + [NativeTypeName("#define SPDUI_RecoProfileProperties L\"RecoProfileProperties\"")] + public const string SPDUI_RecoProfileProperties = "RecoProfileProperties"; + + [NativeTypeName("#define SPDUI_AudioProperties L\"AudioProperties\"")] + public const string SPDUI_AudioProperties = "AudioProperties"; + + [NativeTypeName("#define SPDUI_AudioVolume L\"AudioVolume\"")] + public const string SPDUI_AudioVolume = "AudioVolume"; + + [NativeTypeName("#define SPDUI_UserEnrollment L\"UserEnrollment\"")] + public const string SPDUI_UserEnrollment = "UserEnrollment"; + + [NativeTypeName("#define SPDUI_ShareData L\"ShareData\"")] + public const string SPDUI_ShareData = "ShareData"; + + [NativeTypeName("#define SPDUI_Tutorial L\"Tutorial\"")] + public const string SPDUI_Tutorial = "Tutorial"; + } +} diff --git a/sources/Interop/Windows/Windows/um/sapi/SPPROP.cs b/sources/Interop/Windows/Windows/um/sapi/SPPROP.cs new file mode 100644 index 0000000000..9134ccc64f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/sapi/SPPROP.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPPROP + { + [NativeTypeName("#define SPPROP_RESOURCE_USAGE L\"ResourceUsage\"")] + public const string SPPROP_RESOURCE_USAGE = "ResourceUsage"; + + [NativeTypeName("#define SPPROP_HIGH_CONFIDENCE_THRESHOLD L\"HighConfidenceThreshold\"")] + public const string SPPROP_HIGH_CONFIDENCE_THRESHOLD = "HighConfidenceThreshold"; + + [NativeTypeName("#define SPPROP_NORMAL_CONFIDENCE_THRESHOLD L\"NormalConfidenceThreshold\"")] + public const string SPPROP_NORMAL_CONFIDENCE_THRESHOLD = "NormalConfidenceThreshold"; + + [NativeTypeName("#define SPPROP_LOW_CONFIDENCE_THRESHOLD L\"LowConfidenceThreshold\"")] + public const string SPPROP_LOW_CONFIDENCE_THRESHOLD = "LowConfidenceThreshold"; + + [NativeTypeName("#define SPPROP_RESPONSE_SPEED L\"ResponseSpeed\"")] + public const string SPPROP_RESPONSE_SPEED = "ResponseSpeed"; + + [NativeTypeName("#define SPPROP_COMPLEX_RESPONSE_SPEED L\"ComplexResponseSpeed\"")] + public const string SPPROP_COMPLEX_RESPONSE_SPEED = "ComplexResponseSpeed"; + + [NativeTypeName("#define SPPROP_ADAPTATION_ON L\"AdaptationOn\"")] + public const string SPPROP_ADAPTATION_ON = "AdaptationOn"; + + [NativeTypeName("#define SPPROP_PERSISTED_BACKGROUND_ADAPTATION L\"PersistedBackgroundAdaptation\"")] + public const string SPPROP_PERSISTED_BACKGROUND_ADAPTATION = "PersistedBackgroundAdaptation"; + + [NativeTypeName("#define SPPROP_PERSISTED_LANGUAGE_MODEL_ADAPTATION L\"PersistedLanguageModelAdaptation\"")] + public const string SPPROP_PERSISTED_LANGUAGE_MODEL_ADAPTATION = "PersistedLanguageModelAdaptation"; + + [NativeTypeName("#define SPPROP_UX_IS_LISTENING L\"UXIsListening\"")] + public const string SPPROP_UX_IS_LISTENING = "UXIsListening"; + } +} diff --git a/sources/Interop/Windows/Windows/um/sapi/SPREG.cs b/sources/Interop/Windows/Windows/um/sapi/SPREG.cs new file mode 100644 index 0000000000..fb061ad3d3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/sapi/SPREG.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SPREG + { + [NativeTypeName("#define SPREG_USER_ROOT L\"HKEY_CURRENT_USER\\\\SOFTWARE\\\\Microsoft\\\\Speech\"")] + public const string SPREG_USER_ROOT = "HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech"; + + [NativeTypeName("#define SPREG_LOCAL_MACHINE_ROOT L\"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Speech\"")] + public const string SPREG_LOCAL_MACHINE_ROOT = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech"; + + [NativeTypeName("#define SPREG_SAFE_USER_TOKENS L\"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Speech\\\\UserTokens\"")] + public const string SPREG_SAFE_USER_TOKENS = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\UserTokens"; + } +} diff --git a/sources/Interop/Windows/Windows/um/sapi/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/sapi/Windows.Manual.cs index 8e445e6bb6..b9ddd24d31 100644 --- a/sources/Interop/Windows/Windows/um/sapi/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/sapi/Windows.Manual.cs @@ -3,10 +3,6 @@ // Ported from um/sapi.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - namespace TerraFX.Interop.Windows { public static unsafe partial class Windows @@ -21,28 +17,5 @@ public static unsafe partial class Windows [NativeTypeName("#define SPRULETRANS_DICTATION (SPSTATEHANDLE)(-3)")] public static SPSTATEHANDLE SPRULETRANS_DICTATION => (SPSTATEHANDLE)(-3); - - public static ref readonly Guid LIBID_SpeechLib - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3A, 0xCA, 0x66, 0xC8, - 0xF7, 0x32, - 0xD2, 0x11, - 0x96, - 0x02, - 0x00, - 0xC0, - 0x4F, - 0x8E, - 0xE6, - 0x28 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } } } diff --git a/sources/Interop/Windows/Windows/um/sapi/Windows.cs b/sources/Interop/Windows/Windows/um/sapi/Windows.cs index 7aa037220f..df7cd4c85d 100644 --- a/sources/Interop/Windows/Windows/um/sapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/sapi/Windows.cs @@ -35,42 +35,6 @@ public static partial class Windows [NativeTypeName("#define _SAPI_VER 0x054")] public const int _SAPI_VER = 0x054; - [NativeTypeName("#define SPDUI_EngineProperties L\"EngineProperties\"")] - public const string SPDUI_EngineProperties = "EngineProperties"; - - [NativeTypeName("#define SPDUI_AddRemoveWord L\"AddRemoveWord\"")] - public const string SPDUI_AddRemoveWord = "AddRemoveWord"; - - [NativeTypeName("#define SPDUI_UserTraining L\"UserTraining\"")] - public const string SPDUI_UserTraining = "UserTraining"; - - [NativeTypeName("#define SPDUI_MicTraining L\"MicTraining\"")] - public const string SPDUI_MicTraining = "MicTraining"; - - [NativeTypeName("#define SPDUI_RecoProfileProperties L\"RecoProfileProperties\"")] - public const string SPDUI_RecoProfileProperties = "RecoProfileProperties"; - - [NativeTypeName("#define SPDUI_AudioProperties L\"AudioProperties\"")] - public const string SPDUI_AudioProperties = "AudioProperties"; - - [NativeTypeName("#define SPDUI_AudioVolume L\"AudioVolume\"")] - public const string SPDUI_AudioVolume = "AudioVolume"; - - [NativeTypeName("#define SPDUI_UserEnrollment L\"UserEnrollment\"")] - public const string SPDUI_UserEnrollment = "UserEnrollment"; - - [NativeTypeName("#define SPDUI_ShareData L\"ShareData\"")] - public const string SPDUI_ShareData = "ShareData"; - - [NativeTypeName("#define SPDUI_Tutorial L\"Tutorial\"")] - public const string SPDUI_Tutorial = "Tutorial"; - - [NativeTypeName("#define SPREG_USER_ROOT L\"HKEY_CURRENT_USER\\\\SOFTWARE\\\\Microsoft\\\\Speech\"")] - public const string SPREG_USER_ROOT = "HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Speech"; - - [NativeTypeName("#define SPREG_LOCAL_MACHINE_ROOT L\"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Speech\"")] - public const string SPREG_LOCAL_MACHINE_ROOT = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech"; - [NativeTypeName("#define SPCAT_AUDIOOUT L\"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Speech\\\\AudioOutput\"")] public const string SPCAT_AUDIOOUT = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\AudioOutput"; @@ -134,36 +98,6 @@ public static partial class Windows [NativeTypeName("#define SPVOICECATEGORY_TTSRATE L\"DefaultTTSRate\"")] public const string SPVOICECATEGORY_TTSRATE = "DefaultTTSRate"; - [NativeTypeName("#define SPPROP_RESOURCE_USAGE L\"ResourceUsage\"")] - public const string SPPROP_RESOURCE_USAGE = "ResourceUsage"; - - [NativeTypeName("#define SPPROP_HIGH_CONFIDENCE_THRESHOLD L\"HighConfidenceThreshold\"")] - public const string SPPROP_HIGH_CONFIDENCE_THRESHOLD = "HighConfidenceThreshold"; - - [NativeTypeName("#define SPPROP_NORMAL_CONFIDENCE_THRESHOLD L\"NormalConfidenceThreshold\"")] - public const string SPPROP_NORMAL_CONFIDENCE_THRESHOLD = "NormalConfidenceThreshold"; - - [NativeTypeName("#define SPPROP_LOW_CONFIDENCE_THRESHOLD L\"LowConfidenceThreshold\"")] - public const string SPPROP_LOW_CONFIDENCE_THRESHOLD = "LowConfidenceThreshold"; - - [NativeTypeName("#define SPPROP_RESPONSE_SPEED L\"ResponseSpeed\"")] - public const string SPPROP_RESPONSE_SPEED = "ResponseSpeed"; - - [NativeTypeName("#define SPPROP_COMPLEX_RESPONSE_SPEED L\"ComplexResponseSpeed\"")] - public const string SPPROP_COMPLEX_RESPONSE_SPEED = "ComplexResponseSpeed"; - - [NativeTypeName("#define SPPROP_ADAPTATION_ON L\"AdaptationOn\"")] - public const string SPPROP_ADAPTATION_ON = "AdaptationOn"; - - [NativeTypeName("#define SPPROP_PERSISTED_BACKGROUND_ADAPTATION L\"PersistedBackgroundAdaptation\"")] - public const string SPPROP_PERSISTED_BACKGROUND_ADAPTATION = "PersistedBackgroundAdaptation"; - - [NativeTypeName("#define SPPROP_PERSISTED_LANGUAGE_MODEL_ADAPTATION L\"PersistedLanguageModelAdaptation\"")] - public const string SPPROP_PERSISTED_LANGUAGE_MODEL_ADAPTATION = "PersistedLanguageModelAdaptation"; - - [NativeTypeName("#define SPPROP_UX_IS_LISTENING L\"UXIsListening\"")] - public const string SPPROP_UX_IS_LISTENING = "UXIsListening"; - [NativeTypeName("#define SPTOPIC_SPELLING L\"Spelling\"")] public const string SPTOPIC_SPELLING = "Spelling"; @@ -176,12 +110,6 @@ public static partial class Windows [NativeTypeName("#define SPINFDICTATION L\"*+\"")] public const string SPINFDICTATION = "*+"; - [NativeTypeName("#define SPREG_SAFE_USER_TOKENS L\"HKEY_LOCAL_MACHINE\\\\SOFTWARE\\\\Microsoft\\\\Speech\\\\UserTokens\"")] - public const string SPREG_SAFE_USER_TOKENS = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Speech\\UserTokens"; - - [NativeTypeName("#define DEFAULT_WEIGHT ( 1 )")] - public const int DEFAULT_WEIGHT = (1); - [NativeTypeName("#define SPFEI_FLAGCHECK ( (1ui64 << SPEI_RESERVED1) | (1ui64 << SPEI_RESERVED2) )")] public const ulong SPFEI_FLAGCHECK = ((1UL << (int)(SPEI_RESERVED1)) | (1UL << (int)(SPEI_RESERVED2))); diff --git a/sources/Interop/Windows/Windows/um/schannel/DEFAULT.cs b/sources/Interop/Windows/Windows/um/schannel/DEFAULT.cs new file mode 100644 index 0000000000..7cf914f927 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/schannel/DEFAULT.cs @@ -0,0 +1,21 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/schannel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class DEFAULT + { + [NativeTypeName("#define DEFAULT_TLS_SSP_NAME_A \"Default TLS SSP\"")] + public static ReadOnlySpan DEFAULT_TLS_SSP_NAME_A => new byte[] { 0x44, 0x65, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x20, 0x54, 0x4C, 0x53, 0x20, 0x53, 0x53, 0x50, 0x00 }; + + [NativeTypeName("#define DEFAULT_TLS_SSP_NAME_W L\"Default TLS SSP\"")] + public const string DEFAULT_TLS_SSP_NAME_W = "Default TLS SSP"; + + [NativeTypeName("#define DEFAULT_TLS_SSP_NAME DEFAULT_TLS_SSP_NAME_W")] + public const string DEFAULT_TLS_SSP_NAME = "Default TLS SSP"; + } +} diff --git a/sources/Interop/Windows/Windows/um/schannel/ENABLE.cs b/sources/Interop/Windows/Windows/um/schannel/ENABLE.cs new file mode 100644 index 0000000000..bda419132a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/schannel/ENABLE.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/schannel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ENABLE + { + [NativeTypeName("#define ENABLE_TLS_CLIENT_EARLY_START 0x00000001")] + public const int ENABLE_TLS_CLIENT_EARLY_START = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/schannel/SCH.cs b/sources/Interop/Windows/Windows/um/schannel/SCH.cs new file mode 100644 index 0000000000..866cd9b2b8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/schannel/SCH.cs @@ -0,0 +1,136 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/schannel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SCH + { + [NativeTypeName("#define SCH_CRED_V1 0x00000001")] + public const int SCH_CRED_V1 = 0x00000001; + + [NativeTypeName("#define SCH_CRED_V2 0x00000002")] + public const int SCH_CRED_V2 = 0x00000002; + + [NativeTypeName("#define SCH_CRED_VERSION 0x00000002")] + public const int SCH_CRED_VERSION = 0x00000002; + + [NativeTypeName("#define SCH_CRED_V3 0x00000003")] + public const int SCH_CRED_V3 = 0x00000003; + + [NativeTypeName("#define SCH_CREDENTIALS_VERSION 0x00000005")] + public const int SCH_CREDENTIALS_VERSION = 0x00000005; + + [NativeTypeName("#define SCH_MAX_EXT_SUBSCRIPTIONS 2")] + public const int SCH_MAX_EXT_SUBSCRIPTIONS = 2; + + [NativeTypeName("#define SCH_CRED_FORMAT_CERT_CONTEXT 0x00000000")] + public const int SCH_CRED_FORMAT_CERT_CONTEXT = 0x00000000; + + [NativeTypeName("#define SCH_CRED_FORMAT_CERT_HASH 0x00000001")] + public const int SCH_CRED_FORMAT_CERT_HASH = 0x00000001; + + [NativeTypeName("#define SCH_CRED_FORMAT_CERT_HASH_STORE 0x00000002")] + public const int SCH_CRED_FORMAT_CERT_HASH_STORE = 0x00000002; + + [NativeTypeName("#define SCH_CRED_MAX_STORE_NAME_SIZE 128")] + public const int SCH_CRED_MAX_STORE_NAME_SIZE = 128; + + [NativeTypeName("#define SCH_CRED_MAX_SUPPORTED_ALGS 256")] + public const int SCH_CRED_MAX_SUPPORTED_ALGS = 256; + + [NativeTypeName("#define SCH_CRED_MAX_SUPPORTED_CERTS 100")] + public const int SCH_CRED_MAX_SUPPORTED_CERTS = 100; + + [NativeTypeName("#define SCH_MACHINE_CERT_HASH 0x00000001")] + public const int SCH_MACHINE_CERT_HASH = 0x00000001; + + [NativeTypeName("#define SCH_CRED_NO_SYSTEM_MAPPER 0x00000002")] + public const int SCH_CRED_NO_SYSTEM_MAPPER = 0x00000002; + + [NativeTypeName("#define SCH_CRED_NO_SERVERNAME_CHECK 0x00000004")] + public const int SCH_CRED_NO_SERVERNAME_CHECK = 0x00000004; + + [NativeTypeName("#define SCH_CRED_MANUAL_CRED_VALIDATION 0x00000008")] + public const int SCH_CRED_MANUAL_CRED_VALIDATION = 0x00000008; + + [NativeTypeName("#define SCH_CRED_NO_DEFAULT_CREDS 0x00000010")] + public const int SCH_CRED_NO_DEFAULT_CREDS = 0x00000010; + + [NativeTypeName("#define SCH_CRED_AUTO_CRED_VALIDATION 0x00000020")] + public const int SCH_CRED_AUTO_CRED_VALIDATION = 0x00000020; + + [NativeTypeName("#define SCH_CRED_USE_DEFAULT_CREDS 0x00000040")] + public const int SCH_CRED_USE_DEFAULT_CREDS = 0x00000040; + + [NativeTypeName("#define SCH_CRED_DISABLE_RECONNECTS 0x00000080")] + public const int SCH_CRED_DISABLE_RECONNECTS = 0x00000080; + + [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_END_CERT 0x00000100")] + public const int SCH_CRED_REVOCATION_CHECK_END_CERT = 0x00000100; + + [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_CHAIN 0x00000200")] + public const int SCH_CRED_REVOCATION_CHECK_CHAIN = 0x00000200; + + [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT 0x00000400")] + public const int SCH_CRED_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x00000400; + + [NativeTypeName("#define SCH_CRED_IGNORE_NO_REVOCATION_CHECK 0x00000800")] + public const int SCH_CRED_IGNORE_NO_REVOCATION_CHECK = 0x00000800; + + [NativeTypeName("#define SCH_CRED_IGNORE_REVOCATION_OFFLINE 0x00001000")] + public const int SCH_CRED_IGNORE_REVOCATION_OFFLINE = 0x00001000; + + [NativeTypeName("#define SCH_CRED_RESTRICTED_ROOTS 0x00002000")] + public const int SCH_CRED_RESTRICTED_ROOTS = 0x00002000; + + [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_CACHE_ONLY 0x00004000")] + public const int SCH_CRED_REVOCATION_CHECK_CACHE_ONLY = 0x00004000; + + [NativeTypeName("#define SCH_CRED_CACHE_ONLY_URL_RETRIEVAL 0x00008000")] + public const int SCH_CRED_CACHE_ONLY_URL_RETRIEVAL = 0x00008000; + + [NativeTypeName("#define SCH_CRED_MEMORY_STORE_CERT 0x00010000")] + public const int SCH_CRED_MEMORY_STORE_CERT = 0x00010000; + + [NativeTypeName("#define SCH_CRED_CACHE_ONLY_URL_RETRIEVAL_ON_CREATE 0x00020000")] + public const int SCH_CRED_CACHE_ONLY_URL_RETRIEVAL_ON_CREATE = 0x00020000; + + [NativeTypeName("#define SCH_SEND_ROOT_CERT 0x00040000")] + public const int SCH_SEND_ROOT_CERT = 0x00040000; + + [NativeTypeName("#define SCH_CRED_SNI_CREDENTIAL 0x00080000")] + public const int SCH_CRED_SNI_CREDENTIAL = 0x00080000; + + [NativeTypeName("#define SCH_CRED_SNI_ENABLE_OCSP 0x00100000")] + public const int SCH_CRED_SNI_ENABLE_OCSP = 0x00100000; + + [NativeTypeName("#define SCH_SEND_AUX_RECORD 0x00200000")] + public const int SCH_SEND_AUX_RECORD = 0x00200000; + + [NativeTypeName("#define SCH_USE_STRONG_CRYPTO 0x00400000")] + public const int SCH_USE_STRONG_CRYPTO = 0x00400000; + + [NativeTypeName("#define SCH_USE_PRESHAREDKEY_ONLY 0x00800000")] + public const int SCH_USE_PRESHAREDKEY_ONLY = 0x00800000; + + [NativeTypeName("#define SCH_USE_DTLS_ONLY 0x01000000")] + public const int SCH_USE_DTLS_ONLY = 0x01000000; + + [NativeTypeName("#define SCH_ALLOW_NULL_ENCRYPTION 0x02000000")] + public const int SCH_ALLOW_NULL_ENCRYPTION = 0x02000000; + + [NativeTypeName("#define SCH_CRED_DEFERRED_CRED_VALIDATION 0x04000000")] + public const int SCH_CRED_DEFERRED_CRED_VALIDATION = 0x04000000; + + [NativeTypeName("#define SCH_CRED_X509_CERTCHAIN 0x00000001")] + public const int SCH_CRED_X509_CERTCHAIN = 0x00000001; + + [NativeTypeName("#define SCH_CRED_X509_CAPI 0x00000002")] + public const int SCH_CRED_X509_CAPI = 0x00000002; + + [NativeTypeName("#define SCH_CRED_CERT_CONTEXT 0x00000003")] + public const int SCH_CRED_CERT_CONTEXT = 0x00000003; + } +} diff --git a/sources/Interop/Windows/Windows/um/schannel/SCHANNEL.cs b/sources/Interop/Windows/Windows/um/schannel/SCHANNEL.cs new file mode 100644 index 0000000000..d72000669d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/schannel/SCHANNEL.cs @@ -0,0 +1,42 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/schannel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class SCHANNEL + { + [NativeTypeName("#define SCHANNEL_NAME_A \"Schannel\"")] + public static ReadOnlySpan SCHANNEL_NAME_A => new byte[] { 0x53, 0x63, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x00 }; + + [NativeTypeName("#define SCHANNEL_NAME_W L\"Schannel\"")] + public const string SCHANNEL_NAME_W = "Schannel"; + + [NativeTypeName("#define SCHANNEL_NAME SCHANNEL_NAME_W")] + public const string SCHANNEL_NAME = "Schannel"; + + [NativeTypeName("#define SCHANNEL_CRED_VERSION 0x00000004")] + public const int SCHANNEL_CRED_VERSION = 0x00000004; + + [NativeTypeName("#define SCHANNEL_RENEGOTIATE 0")] + public const int SCHANNEL_RENEGOTIATE = 0; + + [NativeTypeName("#define SCHANNEL_SHUTDOWN 1")] + public const int SCHANNEL_SHUTDOWN = 1; + + [NativeTypeName("#define SCHANNEL_ALERT 2")] + public const int SCHANNEL_ALERT = 2; + + [NativeTypeName("#define SCHANNEL_SESSION 3")] + public const int SCHANNEL_SESSION = 3; + + [NativeTypeName("#define SCHANNEL_SECRET_TYPE_CAPI 0x00000001")] + public const int SCHANNEL_SECRET_TYPE_CAPI = 0x00000001; + + [NativeTypeName("#define SCHANNEL_SECRET_PRIVKEY 0x00000002")] + public const int SCHANNEL_SECRET_PRIVKEY = 0x00000002; + } +} diff --git a/sources/Interop/Windows/Windows/um/schannel/SSL.cs b/sources/Interop/Windows/Windows/um/schannel/SSL.cs new file mode 100644 index 0000000000..3c0ade9b51 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/schannel/SSL.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/schannel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SSL + { + [NativeTypeName("#define SSL_SESSION_RECONNECT 1")] + public const int SSL_SESSION_RECONNECT = 1; + + [NativeTypeName("#define SSL_SESSION_ENABLE_RECONNECTS 1")] + public const int SSL_SESSION_ENABLE_RECONNECTS = 1; + + [NativeTypeName("#define SSL_SESSION_DISABLE_RECONNECTS 2")] + public const int SSL_SESSION_DISABLE_RECONNECTS = 2; + + [NativeTypeName("#define SSL_CRACK_CERTIFICATE_NAME TEXT(\"SslCrackCertificate\")")] + public const string SSL_CRACK_CERTIFICATE_NAME = "SslCrackCertificate"; + + [NativeTypeName("#define SSL_FREE_CERTIFICATE_NAME TEXT(\"SslFreeCertificate\")")] + public const string SSL_FREE_CERTIFICATE_NAME = "SslFreeCertificate"; + } +} diff --git a/sources/Interop/Windows/Windows/um/schannel/SZ.cs b/sources/Interop/Windows/Windows/um/schannel/SZ.cs new file mode 100644 index 0000000000..7f28972468 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/schannel/SZ.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/schannel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SZ + { + [NativeTypeName("#define SZ_ALG_MAX_SIZE 64")] + public const int SZ_ALG_MAX_SIZE = 64; + } +} diff --git a/sources/Interop/Windows/Windows/um/schannel/TLS1.cs b/sources/Interop/Windows/Windows/um/schannel/TLS1.cs new file mode 100644 index 0000000000..9f36644bc5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/schannel/TLS1.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/schannel.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TLS1 + { + [NativeTypeName("#define TLS1_ALERT_WARNING 1")] + public const int TLS1_ALERT_WARNING = 1; + + [NativeTypeName("#define TLS1_ALERT_FATAL 2")] + public const int TLS1_ALERT_FATAL = 2; + + [NativeTypeName("#define TLS1_ALERT_CLOSE_NOTIFY 0")] + public const int TLS1_ALERT_CLOSE_NOTIFY = 0; + + [NativeTypeName("#define TLS1_ALERT_UNEXPECTED_MESSAGE 10")] + public const int TLS1_ALERT_UNEXPECTED_MESSAGE = 10; + + [NativeTypeName("#define TLS1_ALERT_BAD_RECORD_MAC 20")] + public const int TLS1_ALERT_BAD_RECORD_MAC = 20; + + [NativeTypeName("#define TLS1_ALERT_DECRYPTION_FAILED 21")] + public const int TLS1_ALERT_DECRYPTION_FAILED = 21; + + [NativeTypeName("#define TLS1_ALERT_RECORD_OVERFLOW 22")] + public const int TLS1_ALERT_RECORD_OVERFLOW = 22; + + [NativeTypeName("#define TLS1_ALERT_DECOMPRESSION_FAIL 30")] + public const int TLS1_ALERT_DECOMPRESSION_FAIL = 30; + + [NativeTypeName("#define TLS1_ALERT_HANDSHAKE_FAILURE 40")] + public const int TLS1_ALERT_HANDSHAKE_FAILURE = 40; + + [NativeTypeName("#define TLS1_ALERT_BAD_CERTIFICATE 42")] + public const int TLS1_ALERT_BAD_CERTIFICATE = 42; + + [NativeTypeName("#define TLS1_ALERT_UNSUPPORTED_CERT 43")] + public const int TLS1_ALERT_UNSUPPORTED_CERT = 43; + + [NativeTypeName("#define TLS1_ALERT_CERTIFICATE_REVOKED 44")] + public const int TLS1_ALERT_CERTIFICATE_REVOKED = 44; + + [NativeTypeName("#define TLS1_ALERT_CERTIFICATE_EXPIRED 45")] + public const int TLS1_ALERT_CERTIFICATE_EXPIRED = 45; + + [NativeTypeName("#define TLS1_ALERT_CERTIFICATE_UNKNOWN 46")] + public const int TLS1_ALERT_CERTIFICATE_UNKNOWN = 46; + + [NativeTypeName("#define TLS1_ALERT_ILLEGAL_PARAMETER 47")] + public const int TLS1_ALERT_ILLEGAL_PARAMETER = 47; + + [NativeTypeName("#define TLS1_ALERT_UNKNOWN_CA 48")] + public const int TLS1_ALERT_UNKNOWN_CA = 48; + + [NativeTypeName("#define TLS1_ALERT_ACCESS_DENIED 49")] + public const int TLS1_ALERT_ACCESS_DENIED = 49; + + [NativeTypeName("#define TLS1_ALERT_DECODE_ERROR 50")] + public const int TLS1_ALERT_DECODE_ERROR = 50; + + [NativeTypeName("#define TLS1_ALERT_DECRYPT_ERROR 51")] + public const int TLS1_ALERT_DECRYPT_ERROR = 51; + + [NativeTypeName("#define TLS1_ALERT_EXPORT_RESTRICTION 60")] + public const int TLS1_ALERT_EXPORT_RESTRICTION = 60; + + [NativeTypeName("#define TLS1_ALERT_PROTOCOL_VERSION 70")] + public const int TLS1_ALERT_PROTOCOL_VERSION = 70; + + [NativeTypeName("#define TLS1_ALERT_INSUFFIENT_SECURITY 71")] + public const int TLS1_ALERT_INSUFFIENT_SECURITY = 71; + + [NativeTypeName("#define TLS1_ALERT_INTERNAL_ERROR 80")] + public const int TLS1_ALERT_INTERNAL_ERROR = 80; + + [NativeTypeName("#define TLS1_ALERT_USER_CANCELED 90")] + public const int TLS1_ALERT_USER_CANCELED = 90; + + [NativeTypeName("#define TLS1_ALERT_NO_RENEGOTIATION 100")] + public const int TLS1_ALERT_NO_RENEGOTIATION = 100; + + [NativeTypeName("#define TLS1_ALERT_UNSUPPORTED_EXT 110")] + public const int TLS1_ALERT_UNSUPPORTED_EXT = 110; + + [NativeTypeName("#define TLS1_ALERT_UNKNOWN_PSK_IDENTITY 115")] + public const int TLS1_ALERT_UNKNOWN_PSK_IDENTITY = 115; + + [NativeTypeName("#define TLS1_ALERT_NO_APP_PROTOCOL 120")] + public const int TLS1_ALERT_NO_APP_PROTOCOL = 120; + } +} diff --git a/sources/Interop/Windows/Windows/um/schannel/Windows.cs b/sources/Interop/Windows/Windows/um/schannel/Windows.cs index 5a74e88e49..a05e830bfb 100644 --- a/sources/Interop/Windows/Windows/um/schannel/Windows.cs +++ b/sources/Interop/Windows/Windows/um/schannel/Windows.cs @@ -58,18 +58,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PCT1SP_NAME_W L\"Microsoft PCT 1.0\"")] public const string PCT1SP_NAME_W = "Microsoft PCT 1.0"; - [NativeTypeName("#define SCHANNEL_NAME_A \"Schannel\"")] - public static ReadOnlySpan SCHANNEL_NAME_A => new byte[] { 0x53, 0x63, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x00 }; - - [NativeTypeName("#define SCHANNEL_NAME_W L\"Schannel\"")] - public const string SCHANNEL_NAME_W = "Schannel"; - - [NativeTypeName("#define DEFAULT_TLS_SSP_NAME_A \"Default TLS SSP\"")] - public static ReadOnlySpan DEFAULT_TLS_SSP_NAME_A => new byte[] { 0x44, 0x65, 0x66, 0x61, 0x75, 0x6C, 0x74, 0x20, 0x54, 0x4C, 0x53, 0x20, 0x53, 0x53, 0x50, 0x00 }; - - [NativeTypeName("#define DEFAULT_TLS_SSP_NAME_W L\"Default TLS SSP\"")] - public const string DEFAULT_TLS_SSP_NAME_W = "Default TLS SSP"; - [NativeTypeName("#define UNISP_NAME UNISP_NAME_W")] public const string UNISP_NAME = "Microsoft Unified Security Protocol Provider"; @@ -85,12 +73,6 @@ public static unsafe partial class Windows [NativeTypeName("#define TLS1SP_NAME TLS1SP_NAME_W")] public const string TLS1SP_NAME = "Microsoft TLS 1.0"; - [NativeTypeName("#define SCHANNEL_NAME SCHANNEL_NAME_W")] - public const string SCHANNEL_NAME = "Schannel"; - - [NativeTypeName("#define DEFAULT_TLS_SSP_NAME DEFAULT_TLS_SSP_NAME_W")] - public const string DEFAULT_TLS_SSP_NAME = "Default TLS SSP"; - [NativeTypeName("#define UNISP_RPC_ID 14")] public const int UNISP_RPC_ID = 14; @@ -112,268 +94,16 @@ public static unsafe partial class Windows [NativeTypeName("#define LCRED_STATUS_UNKNOWN_ISSUER 0x00000002")] public const int LCRED_STATUS_UNKNOWN_ISSUER = 0x00000002; - [NativeTypeName("#define SZ_ALG_MAX_SIZE 64")] - public const int SZ_ALG_MAX_SIZE = 64; - [NativeTypeName("#define SECPKGCONTEXT_CONNECTION_INFO_EX_V1 1")] public const int SECPKGCONTEXT_CONNECTION_INFO_EX_V1 = 1; [NativeTypeName("#define SECPKGCONTEXT_CIPHERINFO_V1 1")] public const int SECPKGCONTEXT_CIPHERINFO_V1 = 1; - [NativeTypeName("#define SSL_SESSION_RECONNECT 1")] - public const int SSL_SESSION_RECONNECT = 1; - [NativeTypeName("#define KERN_CONTEXT_CERT_INFO_V1 0x00000000")] public const int KERN_CONTEXT_CERT_INFO_V1 = 0x00000000; - [NativeTypeName("#define ENABLE_TLS_CLIENT_EARLY_START 0x00000001")] - public const int ENABLE_TLS_CLIENT_EARLY_START = 0x00000001; - - [NativeTypeName("#define SCH_CRED_V1 0x00000001")] - public const int SCH_CRED_V1 = 0x00000001; - - [NativeTypeName("#define SCH_CRED_V2 0x00000002")] - public const int SCH_CRED_V2 = 0x00000002; - - [NativeTypeName("#define SCH_CRED_VERSION 0x00000002")] - public const int SCH_CRED_VERSION = 0x00000002; - - [NativeTypeName("#define SCH_CRED_V3 0x00000003")] - public const int SCH_CRED_V3 = 0x00000003; - - [NativeTypeName("#define SCHANNEL_CRED_VERSION 0x00000004")] - public const int SCHANNEL_CRED_VERSION = 0x00000004; - - [NativeTypeName("#define SCH_CREDENTIALS_VERSION 0x00000005")] - public const int SCH_CREDENTIALS_VERSION = 0x00000005; - - [NativeTypeName("#define SCH_MAX_EXT_SUBSCRIPTIONS 2")] - public const int SCH_MAX_EXT_SUBSCRIPTIONS = 2; - - [NativeTypeName("#define SCH_CRED_FORMAT_CERT_CONTEXT 0x00000000")] - public const int SCH_CRED_FORMAT_CERT_CONTEXT = 0x00000000; - - [NativeTypeName("#define SCH_CRED_FORMAT_CERT_HASH 0x00000001")] - public const int SCH_CRED_FORMAT_CERT_HASH = 0x00000001; - - [NativeTypeName("#define SCH_CRED_FORMAT_CERT_HASH_STORE 0x00000002")] - public const int SCH_CRED_FORMAT_CERT_HASH_STORE = 0x00000002; - - [NativeTypeName("#define SCH_CRED_MAX_STORE_NAME_SIZE 128")] - public const int SCH_CRED_MAX_STORE_NAME_SIZE = 128; - - [NativeTypeName("#define SCH_CRED_MAX_SUPPORTED_ALGS 256")] - public const int SCH_CRED_MAX_SUPPORTED_ALGS = 256; - - [NativeTypeName("#define SCH_CRED_MAX_SUPPORTED_CERTS 100")] - public const int SCH_CRED_MAX_SUPPORTED_CERTS = 100; - - [NativeTypeName("#define SCH_MACHINE_CERT_HASH 0x00000001")] - public const int SCH_MACHINE_CERT_HASH = 0x00000001; - - [NativeTypeName("#define SCH_CRED_NO_SYSTEM_MAPPER 0x00000002")] - public const int SCH_CRED_NO_SYSTEM_MAPPER = 0x00000002; - - [NativeTypeName("#define SCH_CRED_NO_SERVERNAME_CHECK 0x00000004")] - public const int SCH_CRED_NO_SERVERNAME_CHECK = 0x00000004; - - [NativeTypeName("#define SCH_CRED_MANUAL_CRED_VALIDATION 0x00000008")] - public const int SCH_CRED_MANUAL_CRED_VALIDATION = 0x00000008; - - [NativeTypeName("#define SCH_CRED_NO_DEFAULT_CREDS 0x00000010")] - public const int SCH_CRED_NO_DEFAULT_CREDS = 0x00000010; - - [NativeTypeName("#define SCH_CRED_AUTO_CRED_VALIDATION 0x00000020")] - public const int SCH_CRED_AUTO_CRED_VALIDATION = 0x00000020; - - [NativeTypeName("#define SCH_CRED_USE_DEFAULT_CREDS 0x00000040")] - public const int SCH_CRED_USE_DEFAULT_CREDS = 0x00000040; - - [NativeTypeName("#define SCH_CRED_DISABLE_RECONNECTS 0x00000080")] - public const int SCH_CRED_DISABLE_RECONNECTS = 0x00000080; - - [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_END_CERT 0x00000100")] - public const int SCH_CRED_REVOCATION_CHECK_END_CERT = 0x00000100; - - [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_CHAIN 0x00000200")] - public const int SCH_CRED_REVOCATION_CHECK_CHAIN = 0x00000200; - - [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT 0x00000400")] - public const int SCH_CRED_REVOCATION_CHECK_CHAIN_EXCLUDE_ROOT = 0x00000400; - - [NativeTypeName("#define SCH_CRED_IGNORE_NO_REVOCATION_CHECK 0x00000800")] - public const int SCH_CRED_IGNORE_NO_REVOCATION_CHECK = 0x00000800; - - [NativeTypeName("#define SCH_CRED_IGNORE_REVOCATION_OFFLINE 0x00001000")] - public const int SCH_CRED_IGNORE_REVOCATION_OFFLINE = 0x00001000; - - [NativeTypeName("#define SCH_CRED_RESTRICTED_ROOTS 0x00002000")] - public const int SCH_CRED_RESTRICTED_ROOTS = 0x00002000; - - [NativeTypeName("#define SCH_CRED_REVOCATION_CHECK_CACHE_ONLY 0x00004000")] - public const int SCH_CRED_REVOCATION_CHECK_CACHE_ONLY = 0x00004000; - - [NativeTypeName("#define SCH_CRED_CACHE_ONLY_URL_RETRIEVAL 0x00008000")] - public const int SCH_CRED_CACHE_ONLY_URL_RETRIEVAL = 0x00008000; - - [NativeTypeName("#define SCH_CRED_MEMORY_STORE_CERT 0x00010000")] - public const int SCH_CRED_MEMORY_STORE_CERT = 0x00010000; - - [NativeTypeName("#define SCH_CRED_CACHE_ONLY_URL_RETRIEVAL_ON_CREATE 0x00020000")] - public const int SCH_CRED_CACHE_ONLY_URL_RETRIEVAL_ON_CREATE = 0x00020000; - - [NativeTypeName("#define SCH_SEND_ROOT_CERT 0x00040000")] - public const int SCH_SEND_ROOT_CERT = 0x00040000; - - [NativeTypeName("#define SCH_CRED_SNI_CREDENTIAL 0x00080000")] - public const int SCH_CRED_SNI_CREDENTIAL = 0x00080000; - - [NativeTypeName("#define SCH_CRED_SNI_ENABLE_OCSP 0x00100000")] - public const int SCH_CRED_SNI_ENABLE_OCSP = 0x00100000; - - [NativeTypeName("#define SCH_SEND_AUX_RECORD 0x00200000")] - public const int SCH_SEND_AUX_RECORD = 0x00200000; - - [NativeTypeName("#define SCH_USE_STRONG_CRYPTO 0x00400000")] - public const int SCH_USE_STRONG_CRYPTO = 0x00400000; - - [NativeTypeName("#define SCH_USE_PRESHAREDKEY_ONLY 0x00800000")] - public const int SCH_USE_PRESHAREDKEY_ONLY = 0x00800000; - - [NativeTypeName("#define SCH_USE_DTLS_ONLY 0x01000000")] - public const int SCH_USE_DTLS_ONLY = 0x01000000; - - [NativeTypeName("#define SCH_ALLOW_NULL_ENCRYPTION 0x02000000")] - public const int SCH_ALLOW_NULL_ENCRYPTION = 0x02000000; - - [NativeTypeName("#define SCH_CRED_DEFERRED_CRED_VALIDATION 0x04000000")] - public const int SCH_CRED_DEFERRED_CRED_VALIDATION = 0x04000000; - - [NativeTypeName("#define SCHANNEL_RENEGOTIATE 0")] - public const int SCHANNEL_RENEGOTIATE = 0; - - [NativeTypeName("#define SCHANNEL_SHUTDOWN 1")] - public const int SCHANNEL_SHUTDOWN = 1; - - [NativeTypeName("#define SCHANNEL_ALERT 2")] - public const int SCHANNEL_ALERT = 2; - - [NativeTypeName("#define SCHANNEL_SESSION 3")] - public const int SCHANNEL_SESSION = 3; - - [NativeTypeName("#define TLS1_ALERT_WARNING 1")] - public const int TLS1_ALERT_WARNING = 1; - - [NativeTypeName("#define TLS1_ALERT_FATAL 2")] - public const int TLS1_ALERT_FATAL = 2; - - [NativeTypeName("#define TLS1_ALERT_CLOSE_NOTIFY 0")] - public const int TLS1_ALERT_CLOSE_NOTIFY = 0; - - [NativeTypeName("#define TLS1_ALERT_UNEXPECTED_MESSAGE 10")] - public const int TLS1_ALERT_UNEXPECTED_MESSAGE = 10; - - [NativeTypeName("#define TLS1_ALERT_BAD_RECORD_MAC 20")] - public const int TLS1_ALERT_BAD_RECORD_MAC = 20; - - [NativeTypeName("#define TLS1_ALERT_DECRYPTION_FAILED 21")] - public const int TLS1_ALERT_DECRYPTION_FAILED = 21; - - [NativeTypeName("#define TLS1_ALERT_RECORD_OVERFLOW 22")] - public const int TLS1_ALERT_RECORD_OVERFLOW = 22; - - [NativeTypeName("#define TLS1_ALERT_DECOMPRESSION_FAIL 30")] - public const int TLS1_ALERT_DECOMPRESSION_FAIL = 30; - - [NativeTypeName("#define TLS1_ALERT_HANDSHAKE_FAILURE 40")] - public const int TLS1_ALERT_HANDSHAKE_FAILURE = 40; - - [NativeTypeName("#define TLS1_ALERT_BAD_CERTIFICATE 42")] - public const int TLS1_ALERT_BAD_CERTIFICATE = 42; - - [NativeTypeName("#define TLS1_ALERT_UNSUPPORTED_CERT 43")] - public const int TLS1_ALERT_UNSUPPORTED_CERT = 43; - - [NativeTypeName("#define TLS1_ALERT_CERTIFICATE_REVOKED 44")] - public const int TLS1_ALERT_CERTIFICATE_REVOKED = 44; - - [NativeTypeName("#define TLS1_ALERT_CERTIFICATE_EXPIRED 45")] - public const int TLS1_ALERT_CERTIFICATE_EXPIRED = 45; - - [NativeTypeName("#define TLS1_ALERT_CERTIFICATE_UNKNOWN 46")] - public const int TLS1_ALERT_CERTIFICATE_UNKNOWN = 46; - - [NativeTypeName("#define TLS1_ALERT_ILLEGAL_PARAMETER 47")] - public const int TLS1_ALERT_ILLEGAL_PARAMETER = 47; - - [NativeTypeName("#define TLS1_ALERT_UNKNOWN_CA 48")] - public const int TLS1_ALERT_UNKNOWN_CA = 48; - - [NativeTypeName("#define TLS1_ALERT_ACCESS_DENIED 49")] - public const int TLS1_ALERT_ACCESS_DENIED = 49; - - [NativeTypeName("#define TLS1_ALERT_DECODE_ERROR 50")] - public const int TLS1_ALERT_DECODE_ERROR = 50; - - [NativeTypeName("#define TLS1_ALERT_DECRYPT_ERROR 51")] - public const int TLS1_ALERT_DECRYPT_ERROR = 51; - - [NativeTypeName("#define TLS1_ALERT_EXPORT_RESTRICTION 60")] - public const int TLS1_ALERT_EXPORT_RESTRICTION = 60; - - [NativeTypeName("#define TLS1_ALERT_PROTOCOL_VERSION 70")] - public const int TLS1_ALERT_PROTOCOL_VERSION = 70; - - [NativeTypeName("#define TLS1_ALERT_INSUFFIENT_SECURITY 71")] - public const int TLS1_ALERT_INSUFFIENT_SECURITY = 71; - - [NativeTypeName("#define TLS1_ALERT_INTERNAL_ERROR 80")] - public const int TLS1_ALERT_INTERNAL_ERROR = 80; - - [NativeTypeName("#define TLS1_ALERT_USER_CANCELED 90")] - public const int TLS1_ALERT_USER_CANCELED = 90; - - [NativeTypeName("#define TLS1_ALERT_NO_RENEGOTIATION 100")] - public const int TLS1_ALERT_NO_RENEGOTIATION = 100; - - [NativeTypeName("#define TLS1_ALERT_UNSUPPORTED_EXT 110")] - public const int TLS1_ALERT_UNSUPPORTED_EXT = 110; - - [NativeTypeName("#define TLS1_ALERT_UNKNOWN_PSK_IDENTITY 115")] - public const int TLS1_ALERT_UNKNOWN_PSK_IDENTITY = 115; - - [NativeTypeName("#define TLS1_ALERT_NO_APP_PROTOCOL 120")] - public const int TLS1_ALERT_NO_APP_PROTOCOL = 120; - - [NativeTypeName("#define SSL_SESSION_ENABLE_RECONNECTS 1")] - public const int SSL_SESSION_ENABLE_RECONNECTS = 1; - - [NativeTypeName("#define SSL_SESSION_DISABLE_RECONNECTS 2")] - public const int SSL_SESSION_DISABLE_RECONNECTS = 2; - [NativeTypeName("#define SslEmptyCache SslEmptyCacheW")] public static delegate* SslEmptyCache => &SslEmptyCacheW; - - [NativeTypeName("#define SCHANNEL_SECRET_TYPE_CAPI 0x00000001")] - public const int SCHANNEL_SECRET_TYPE_CAPI = 0x00000001; - - [NativeTypeName("#define SCHANNEL_SECRET_PRIVKEY 0x00000002")] - public const int SCHANNEL_SECRET_PRIVKEY = 0x00000002; - - [NativeTypeName("#define SCH_CRED_X509_CERTCHAIN 0x00000001")] - public const int SCH_CRED_X509_CERTCHAIN = 0x00000001; - - [NativeTypeName("#define SCH_CRED_X509_CAPI 0x00000002")] - public const int SCH_CRED_X509_CAPI = 0x00000002; - - [NativeTypeName("#define SCH_CRED_CERT_CONTEXT 0x00000003")] - public const int SCH_CRED_CERT_CONTEXT = 0x00000003; - - [NativeTypeName("#define SSL_CRACK_CERTIFICATE_NAME TEXT(\"SslCrackCertificate\")")] - public const string SSL_CRACK_CERTIFICATE_NAME = "SslCrackCertificate"; - - [NativeTypeName("#define SSL_FREE_CERTIFICATE_NAME TEXT(\"SslFreeCertificate\")")] - public const string SSL_FREE_CERTIFICATE_NAME = "SslFreeCertificate"; } } diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/BSF.cs b/sources/Interop/Windows/Windows/um/shdeprecated/BSF.cs new file mode 100644 index 0000000000..841e72e433 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shdeprecated/BSF.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shdeprecated.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BSF + { + [NativeTypeName("#define BSF_REGISTERASDROPTARGET 0x00000001")] + public const int BSF_REGISTERASDROPTARGET = 0x00000001; + + [NativeTypeName("#define BSF_THEATERMODE 0x00000002")] + public const int BSF_THEATERMODE = 0x00000002; + + [NativeTypeName("#define BSF_NOLOCALFILEWARNING 0x00000010")] + public const int BSF_NOLOCALFILEWARNING = 0x00000010; + + [NativeTypeName("#define BSF_UISETBYAUTOMATION 0x00000100")] + public const int BSF_UISETBYAUTOMATION = 0x00000100; + + [NativeTypeName("#define BSF_RESIZABLE 0x00000200")] + public const int BSF_RESIZABLE = 0x00000200; + + [NativeTypeName("#define BSF_CANMAXIMIZE 0x00000400")] + public const int BSF_CANMAXIMIZE = 0x00000400; + + [NativeTypeName("#define BSF_TOPBROWSER 0x00000800")] + public const int BSF_TOPBROWSER = 0x00000800; + + [NativeTypeName("#define BSF_NAVNOHISTORY 0x00001000")] + public const int BSF_NAVNOHISTORY = 0x00001000; + + [NativeTypeName("#define BSF_HTMLNAVCANCELED 0x00002000")] + public const int BSF_HTMLNAVCANCELED = 0x00002000; + + [NativeTypeName("#define BSF_DONTSHOWNAVCANCELPAGE 0x00004000")] + public const int BSF_DONTSHOWNAVCANCELPAGE = 0x00004000; + + [NativeTypeName("#define BSF_SETNAVIGATABLECODEPAGE 0x00008000")] + public const int BSF_SETNAVIGATABLECODEPAGE = 0x00008000; + + [NativeTypeName("#define BSF_DELEGATEDNAVIGATION 0x00010000")] + public const int BSF_DELEGATEDNAVIGATION = 0x00010000; + + [NativeTypeName("#define BSF_TRUSTEDFORACTIVEX 0x00020000")] + public const int BSF_TRUSTEDFORACTIVEX = 0x00020000; + + [NativeTypeName("#define BSF_MERGEDMENUS 0x00040000")] + public const int BSF_MERGEDMENUS = 0x00040000; + + [NativeTypeName("#define BSF_FEEDNAVIGATION 0x00080000")] + public const int BSF_FEEDNAVIGATION = 0x00080000; + + [NativeTypeName("#define BSF_FEEDSUBSCRIBED 0x00100000")] + public const int BSF_FEEDSUBSCRIBED = 0x00100000; + } +} diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/INTERNET.cs b/sources/Interop/Windows/Windows/um/shdeprecated/INTERNET.cs new file mode 100644 index 0000000000..d017dcb200 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shdeprecated/INTERNET.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shdeprecated.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class INTERNET + { + [NativeTypeName("#define INTERNET_MAX_PATH_LENGTH 2048")] + public const int INTERNET_MAX_PATH_LENGTH = 2048; + + [NativeTypeName("#define INTERNET_MAX_SCHEME_LENGTH 32")] + public const int INTERNET_MAX_SCHEME_LENGTH = 32; + + [NativeTypeName("#define INTERNET_MAX_URL_LENGTH (INTERNET_MAX_SCHEME_LENGTH \\\r\n + sizeof(\"://\") \\\r\n + INTERNET_MAX_PATH_LENGTH)")] + public const uint INTERNET_MAX_URL_LENGTH = (32 + 4 + 2048); + } +} diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/VIEW.cs b/sources/Interop/Windows/Windows/um/shdeprecated/VIEW.cs new file mode 100644 index 0000000000..f3d143f9bf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shdeprecated/VIEW.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shdeprecated.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class VIEW + { + [NativeTypeName("#define VIEW_PRIORITY_RESTRICTED 0x00000070")] + public const int VIEW_PRIORITY_RESTRICTED = 0x00000070; + + [NativeTypeName("#define VIEW_PRIORITY_CACHEHIT 0x00000050")] + public const int VIEW_PRIORITY_CACHEHIT = 0x00000050; + + [NativeTypeName("#define VIEW_PRIORITY_STALECACHEHIT 0x00000045")] + public const int VIEW_PRIORITY_STALECACHEHIT = 0x00000045; + + [NativeTypeName("#define VIEW_PRIORITY_USEASDEFAULT 0x00000043")] + public const int VIEW_PRIORITY_USEASDEFAULT = 0x00000043; + + [NativeTypeName("#define VIEW_PRIORITY_SHELLEXT 0x00000040")] + public const int VIEW_PRIORITY_SHELLEXT = 0x00000040; + + [NativeTypeName("#define VIEW_PRIORITY_CACHEMISS 0x00000030")] + public const int VIEW_PRIORITY_CACHEMISS = 0x00000030; + + [NativeTypeName("#define VIEW_PRIORITY_INHERIT 0x00000020")] + public const int VIEW_PRIORITY_INHERIT = 0x00000020; + + [NativeTypeName("#define VIEW_PRIORITY_SHELLEXT_ASBACKUP 0x0015")] + public const int VIEW_PRIORITY_SHELLEXT_ASBACKUP = 0x0015; + + [NativeTypeName("#define VIEW_PRIORITY_DESPERATE 0x00000010")] + public const int VIEW_PRIORITY_DESPERATE = 0x00000010; + + [NativeTypeName("#define VIEW_PRIORITY_NONE 0x00000000")] + public const int VIEW_PRIORITY_NONE = 0x00000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/shdeprecated/Windows.cs b/sources/Interop/Windows/Windows/um/shdeprecated/Windows.cs index 9f958348e0..4c11b00026 100644 --- a/sources/Interop/Windows/Windows/um/shdeprecated/Windows.cs +++ b/sources/Interop/Windows/Windows/um/shdeprecated/Windows.cs @@ -31,54 +31,6 @@ public static partial class Windows [NativeTypeName("#define TLMENUF_BACKANDFORTH (TLMENUF_BACK | TLMENUF_FORE | TLMENUF_INCLUDECURRENT)")] public const int TLMENUF_BACKANDFORTH = (0x00000010 | 0x00000020 | 0x00000001); - [NativeTypeName("#define BSF_REGISTERASDROPTARGET 0x00000001")] - public const int BSF_REGISTERASDROPTARGET = 0x00000001; - - [NativeTypeName("#define BSF_THEATERMODE 0x00000002")] - public const int BSF_THEATERMODE = 0x00000002; - - [NativeTypeName("#define BSF_NOLOCALFILEWARNING 0x00000010")] - public const int BSF_NOLOCALFILEWARNING = 0x00000010; - - [NativeTypeName("#define BSF_UISETBYAUTOMATION 0x00000100")] - public const int BSF_UISETBYAUTOMATION = 0x00000100; - - [NativeTypeName("#define BSF_RESIZABLE 0x00000200")] - public const int BSF_RESIZABLE = 0x00000200; - - [NativeTypeName("#define BSF_CANMAXIMIZE 0x00000400")] - public const int BSF_CANMAXIMIZE = 0x00000400; - - [NativeTypeName("#define BSF_TOPBROWSER 0x00000800")] - public const int BSF_TOPBROWSER = 0x00000800; - - [NativeTypeName("#define BSF_NAVNOHISTORY 0x00001000")] - public const int BSF_NAVNOHISTORY = 0x00001000; - - [NativeTypeName("#define BSF_HTMLNAVCANCELED 0x00002000")] - public const int BSF_HTMLNAVCANCELED = 0x00002000; - - [NativeTypeName("#define BSF_DONTSHOWNAVCANCELPAGE 0x00004000")] - public const int BSF_DONTSHOWNAVCANCELPAGE = 0x00004000; - - [NativeTypeName("#define BSF_SETNAVIGATABLECODEPAGE 0x00008000")] - public const int BSF_SETNAVIGATABLECODEPAGE = 0x00008000; - - [NativeTypeName("#define BSF_DELEGATEDNAVIGATION 0x00010000")] - public const int BSF_DELEGATEDNAVIGATION = 0x00010000; - - [NativeTypeName("#define BSF_TRUSTEDFORACTIVEX 0x00020000")] - public const int BSF_TRUSTEDFORACTIVEX = 0x00020000; - - [NativeTypeName("#define BSF_MERGEDMENUS 0x00040000")] - public const int BSF_MERGEDMENUS = 0x00040000; - - [NativeTypeName("#define BSF_FEEDNAVIGATION 0x00080000")] - public const int BSF_FEEDNAVIGATION = 0x00080000; - - [NativeTypeName("#define BSF_FEEDSUBSCRIBED 0x00100000")] - public const int BSF_FEEDSUBSCRIBED = 0x00100000; - [NativeTypeName("#define HLNF_CALLERUNTRUSTED 0x00200000")] public const int HLNF_CALLERUNTRUSTED = 0x00200000; @@ -109,45 +61,6 @@ public static partial class Windows [NativeTypeName("#define HLNF_NEWWINDOWSMANAGED 0x80000000")] public const uint HLNF_NEWWINDOWSMANAGED = 0x80000000; - [NativeTypeName("#define INTERNET_MAX_PATH_LENGTH 2048")] - public const int INTERNET_MAX_PATH_LENGTH = 2048; - - [NativeTypeName("#define INTERNET_MAX_SCHEME_LENGTH 32")] - public const int INTERNET_MAX_SCHEME_LENGTH = 32; - - [NativeTypeName("#define INTERNET_MAX_URL_LENGTH (INTERNET_MAX_SCHEME_LENGTH \\\r\n + sizeof(\"://\") \\\r\n + INTERNET_MAX_PATH_LENGTH)")] - public const uint INTERNET_MAX_URL_LENGTH = (32 + 4 + 2048); - - [NativeTypeName("#define VIEW_PRIORITY_RESTRICTED 0x00000070")] - public const int VIEW_PRIORITY_RESTRICTED = 0x00000070; - - [NativeTypeName("#define VIEW_PRIORITY_CACHEHIT 0x00000050")] - public const int VIEW_PRIORITY_CACHEHIT = 0x00000050; - - [NativeTypeName("#define VIEW_PRIORITY_STALECACHEHIT 0x00000045")] - public const int VIEW_PRIORITY_STALECACHEHIT = 0x00000045; - - [NativeTypeName("#define VIEW_PRIORITY_USEASDEFAULT 0x00000043")] - public const int VIEW_PRIORITY_USEASDEFAULT = 0x00000043; - - [NativeTypeName("#define VIEW_PRIORITY_SHELLEXT 0x00000040")] - public const int VIEW_PRIORITY_SHELLEXT = 0x00000040; - - [NativeTypeName("#define VIEW_PRIORITY_CACHEMISS 0x00000030")] - public const int VIEW_PRIORITY_CACHEMISS = 0x00000030; - - [NativeTypeName("#define VIEW_PRIORITY_INHERIT 0x00000020")] - public const int VIEW_PRIORITY_INHERIT = 0x00000020; - - [NativeTypeName("#define VIEW_PRIORITY_SHELLEXT_ASBACKUP 0x0015")] - public const int VIEW_PRIORITY_SHELLEXT_ASBACKUP = 0x0015; - - [NativeTypeName("#define VIEW_PRIORITY_DESPERATE 0x00000010")] - public const int VIEW_PRIORITY_DESPERATE = 0x00000010; - - [NativeTypeName("#define VIEW_PRIORITY_NONE 0x00000000")] - public const int VIEW_PRIORITY_NONE = 0x00000000; - [NativeTypeName("#define ITB_VIEW ((UINT)-1)")] public const uint ITB_VIEW = unchecked((uint)(-1)); } diff --git a/sources/Interop/Windows/Windows/um/shellapi/ABM.cs b/sources/Interop/Windows/Windows/um/shellapi/ABM.cs new file mode 100644 index 0000000000..12803e4d55 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shellapi/ABM.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ABM + { + [NativeTypeName("#define ABM_NEW 0x00000000")] + public const int ABM_NEW = 0x00000000; + + [NativeTypeName("#define ABM_REMOVE 0x00000001")] + public const int ABM_REMOVE = 0x00000001; + + [NativeTypeName("#define ABM_QUERYPOS 0x00000002")] + public const int ABM_QUERYPOS = 0x00000002; + + [NativeTypeName("#define ABM_SETPOS 0x00000003")] + public const int ABM_SETPOS = 0x00000003; + + [NativeTypeName("#define ABM_GETSTATE 0x00000004")] + public const int ABM_GETSTATE = 0x00000004; + + [NativeTypeName("#define ABM_GETTASKBARPOS 0x00000005")] + public const int ABM_GETTASKBARPOS = 0x00000005; + + [NativeTypeName("#define ABM_ACTIVATE 0x00000006")] + public const int ABM_ACTIVATE = 0x00000006; + + [NativeTypeName("#define ABM_GETAUTOHIDEBAR 0x00000007")] + public const int ABM_GETAUTOHIDEBAR = 0x00000007; + + [NativeTypeName("#define ABM_SETAUTOHIDEBAR 0x00000008")] + public const int ABM_SETAUTOHIDEBAR = 0x00000008; + + [NativeTypeName("#define ABM_WINDOWPOSCHANGED 0x0000009")] + public const int ABM_WINDOWPOSCHANGED = 0x0000009; + + [NativeTypeName("#define ABM_SETSTATE 0x0000000a")] + public const int ABM_SETSTATE = 0x0000000a; + + [NativeTypeName("#define ABM_GETAUTOHIDEBAREX 0x0000000b")] + public const int ABM_GETAUTOHIDEBAREX = 0x0000000b; + + [NativeTypeName("#define ABM_SETAUTOHIDEBAREX 0x0000000c")] + public const int ABM_SETAUTOHIDEBAREX = 0x0000000c; + } +} diff --git a/sources/Interop/Windows/Windows/um/shellapi/FOF.cs b/sources/Interop/Windows/Windows/um/shellapi/FOF.cs new file mode 100644 index 0000000000..10843bf11b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shellapi/FOF.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FOF + { + [NativeTypeName("#define FOF_MULTIDESTFILES 0x0001")] + public const int FOF_MULTIDESTFILES = 0x0001; + + [NativeTypeName("#define FOF_CONFIRMMOUSE 0x0002")] + public const int FOF_CONFIRMMOUSE = 0x0002; + + [NativeTypeName("#define FOF_SILENT 0x0004")] + public const int FOF_SILENT = 0x0004; + + [NativeTypeName("#define FOF_RENAMEONCOLLISION 0x0008")] + public const int FOF_RENAMEONCOLLISION = 0x0008; + + [NativeTypeName("#define FOF_NOCONFIRMATION 0x0010")] + public const int FOF_NOCONFIRMATION = 0x0010; + + [NativeTypeName("#define FOF_WANTMAPPINGHANDLE 0x0020")] + public const int FOF_WANTMAPPINGHANDLE = 0x0020; + + [NativeTypeName("#define FOF_ALLOWUNDO 0x0040")] + public const int FOF_ALLOWUNDO = 0x0040; + + [NativeTypeName("#define FOF_FILESONLY 0x0080")] + public const int FOF_FILESONLY = 0x0080; + + [NativeTypeName("#define FOF_SIMPLEPROGRESS 0x0100")] + public const int FOF_SIMPLEPROGRESS = 0x0100; + + [NativeTypeName("#define FOF_NOCONFIRMMKDIR 0x0200")] + public const int FOF_NOCONFIRMMKDIR = 0x0200; + + [NativeTypeName("#define FOF_NOERRORUI 0x0400")] + public const int FOF_NOERRORUI = 0x0400; + + [NativeTypeName("#define FOF_NOCOPYSECURITYATTRIBS 0x0800")] + public const int FOF_NOCOPYSECURITYATTRIBS = 0x0800; + + [NativeTypeName("#define FOF_NORECURSION 0x1000")] + public const int FOF_NORECURSION = 0x1000; + + [NativeTypeName("#define FOF_NO_CONNECTED_ELEMENTS 0x2000")] + public const int FOF_NO_CONNECTED_ELEMENTS = 0x2000; + + [NativeTypeName("#define FOF_WANTNUKEWARNING 0x4000")] + public const int FOF_WANTNUKEWARNING = 0x4000; + + [NativeTypeName("#define FOF_NORECURSEREPARSE 0x8000")] + public const int FOF_NORECURSEREPARSE = 0x8000; + + [NativeTypeName("#define FOF_NO_UI (FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)")] + public const int FOF_NO_UI = (0x0004 | 0x0010 | 0x0400 | 0x0200); + } +} diff --git a/sources/Interop/Windows/Windows/um/shellapi/NIIF.cs b/sources/Interop/Windows/Windows/um/shellapi/NIIF.cs new file mode 100644 index 0000000000..db0db9562d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shellapi/NIIF.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class NIIF + { + [NativeTypeName("#define NIIF_NONE 0x00000000")] + public const int NIIF_NONE = 0x00000000; + + [NativeTypeName("#define NIIF_INFO 0x00000001")] + public const int NIIF_INFO = 0x00000001; + + [NativeTypeName("#define NIIF_WARNING 0x00000002")] + public const int NIIF_WARNING = 0x00000002; + + [NativeTypeName("#define NIIF_ERROR 0x00000003")] + public const int NIIF_ERROR = 0x00000003; + + [NativeTypeName("#define NIIF_USER 0x00000004")] + public const int NIIF_USER = 0x00000004; + + [NativeTypeName("#define NIIF_ICON_MASK 0x0000000F")] + public const int NIIF_ICON_MASK = 0x0000000F; + + [NativeTypeName("#define NIIF_NOSOUND 0x00000010")] + public const int NIIF_NOSOUND = 0x00000010; + + [NativeTypeName("#define NIIF_LARGE_ICON 0x00000020")] + public const int NIIF_LARGE_ICON = 0x00000020; + + [NativeTypeName("#define NIIF_RESPECT_QUIET_TIME 0x00000080")] + public const int NIIF_RESPECT_QUIET_TIME = 0x00000080; + } +} diff --git a/sources/Interop/Windows/Windows/um/shellapi/SEE.cs b/sources/Interop/Windows/Windows/um/shellapi/SEE.cs new file mode 100644 index 0000000000..dfe12e35d2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shellapi/SEE.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SEE + { + [NativeTypeName("#define SEE_MASK_DEFAULT 0x00000000")] + public const int SEE_MASK_DEFAULT = 0x00000000; + + [NativeTypeName("#define SEE_MASK_CLASSNAME 0x00000001")] + public const int SEE_MASK_CLASSNAME = 0x00000001; + + [NativeTypeName("#define SEE_MASK_CLASSKEY 0x00000003")] + public const int SEE_MASK_CLASSKEY = 0x00000003; + + [NativeTypeName("#define SEE_MASK_IDLIST 0x00000004")] + public const int SEE_MASK_IDLIST = 0x00000004; + + [NativeTypeName("#define SEE_MASK_INVOKEIDLIST 0x0000000c")] + public const int SEE_MASK_INVOKEIDLIST = 0x0000000c; + + [NativeTypeName("#define SEE_MASK_HOTKEY 0x00000020")] + public const int SEE_MASK_HOTKEY = 0x00000020; + + [NativeTypeName("#define SEE_MASK_NOCLOSEPROCESS 0x00000040")] + public const int SEE_MASK_NOCLOSEPROCESS = 0x00000040; + + [NativeTypeName("#define SEE_MASK_CONNECTNETDRV 0x00000080")] + public const int SEE_MASK_CONNECTNETDRV = 0x00000080; + + [NativeTypeName("#define SEE_MASK_NOASYNC 0x00000100")] + public const int SEE_MASK_NOASYNC = 0x00000100; + + [NativeTypeName("#define SEE_MASK_FLAG_DDEWAIT SEE_MASK_NOASYNC")] + public const int SEE_MASK_FLAG_DDEWAIT = 0x00000100; + + [NativeTypeName("#define SEE_MASK_DOENVSUBST 0x00000200")] + public const int SEE_MASK_DOENVSUBST = 0x00000200; + + [NativeTypeName("#define SEE_MASK_FLAG_NO_UI 0x00000400")] + public const int SEE_MASK_FLAG_NO_UI = 0x00000400; + + [NativeTypeName("#define SEE_MASK_UNICODE 0x00004000")] + public const int SEE_MASK_UNICODE = 0x00004000; + + [NativeTypeName("#define SEE_MASK_NO_CONSOLE 0x00008000")] + public const int SEE_MASK_NO_CONSOLE = 0x00008000; + + [NativeTypeName("#define SEE_MASK_ASYNCOK 0x00100000")] + public const int SEE_MASK_ASYNCOK = 0x00100000; + + [NativeTypeName("#define SEE_MASK_HMONITOR 0x00200000")] + public const int SEE_MASK_HMONITOR = 0x00200000; + + [NativeTypeName("#define SEE_MASK_NOZONECHECKS 0x00800000")] + public const int SEE_MASK_NOZONECHECKS = 0x00800000; + + [NativeTypeName("#define SEE_MASK_NOQUERYCLASSSTORE 0x01000000")] + public const int SEE_MASK_NOQUERYCLASSSTORE = 0x01000000; + + [NativeTypeName("#define SEE_MASK_WAITFORINPUTIDLE 0x02000000")] + public const int SEE_MASK_WAITFORINPUTIDLE = 0x02000000; + + [NativeTypeName("#define SEE_MASK_FLAG_LOG_USAGE 0x04000000")] + public const int SEE_MASK_FLAG_LOG_USAGE = 0x04000000; + + [NativeTypeName("#define SEE_MASK_FLAG_HINST_IS_SITE 0x08000000")] + public const int SEE_MASK_FLAG_HINST_IS_SITE = 0x08000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/shellapi/SHGFI.cs b/sources/Interop/Windows/Windows/um/shellapi/SHGFI.cs new file mode 100644 index 0000000000..45524f4b7b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shellapi/SHGFI.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHGFI + { + [NativeTypeName("#define SHGFI_ICON 0x000000100")] + public const int SHGFI_ICON = 0x000000100; + + [NativeTypeName("#define SHGFI_DISPLAYNAME 0x000000200")] + public const int SHGFI_DISPLAYNAME = 0x000000200; + + [NativeTypeName("#define SHGFI_TYPENAME 0x000000400")] + public const int SHGFI_TYPENAME = 0x000000400; + + [NativeTypeName("#define SHGFI_ATTRIBUTES 0x000000800")] + public const int SHGFI_ATTRIBUTES = 0x000000800; + + [NativeTypeName("#define SHGFI_ICONLOCATION 0x000001000")] + public const int SHGFI_ICONLOCATION = 0x000001000; + + [NativeTypeName("#define SHGFI_EXETYPE 0x000002000")] + public const int SHGFI_EXETYPE = 0x000002000; + + [NativeTypeName("#define SHGFI_SYSICONINDEX 0x000004000")] + public const int SHGFI_SYSICONINDEX = 0x000004000; + + [NativeTypeName("#define SHGFI_LINKOVERLAY 0x000008000")] + public const int SHGFI_LINKOVERLAY = 0x000008000; + + [NativeTypeName("#define SHGFI_SELECTED 0x000010000")] + public const int SHGFI_SELECTED = 0x000010000; + + [NativeTypeName("#define SHGFI_ATTR_SPECIFIED 0x000020000")] + public const int SHGFI_ATTR_SPECIFIED = 0x000020000; + + [NativeTypeName("#define SHGFI_LARGEICON 0x000000000")] + public const int SHGFI_LARGEICON = 0x000000000; + + [NativeTypeName("#define SHGFI_SMALLICON 0x000000001")] + public const int SHGFI_SMALLICON = 0x000000001; + + [NativeTypeName("#define SHGFI_OPENICON 0x000000002")] + public const int SHGFI_OPENICON = 0x000000002; + + [NativeTypeName("#define SHGFI_SHELLICONSIZE 0x000000004")] + public const int SHGFI_SHELLICONSIZE = 0x000000004; + + [NativeTypeName("#define SHGFI_PIDL 0x000000008")] + public const int SHGFI_PIDL = 0x000000008; + + [NativeTypeName("#define SHGFI_USEFILEATTRIBUTES 0x000000010")] + public const int SHGFI_USEFILEATTRIBUTES = 0x000000010; + + [NativeTypeName("#define SHGFI_ADDOVERLAYS 0x000000020")] + public const int SHGFI_ADDOVERLAYS = 0x000000020; + + [NativeTypeName("#define SHGFI_OVERLAYINDEX 0x000000040")] + public const int SHGFI_OVERLAYINDEX = 0x000000040; + } +} diff --git a/sources/Interop/Windows/Windows/um/shellapi/WC.cs b/sources/Interop/Windows/Windows/um/shellapi/WC.cs new file mode 100644 index 0000000000..cdebceff01 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/shellapi/WC.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/shellapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WC + { + [NativeTypeName("#define WC_NETADDRESS L\"msctls_netaddress\"")] + public const string WC_NETADDRESS = "msctls_netaddress"; + } +} diff --git a/sources/Interop/Windows/Windows/um/shellapi/Windows.cs b/sources/Interop/Windows/Windows/um/shellapi/Windows.cs index b0303271b6..d8ed1b9150 100644 --- a/sources/Interop/Windows/Windows/um/shellapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/shellapi/Windows.cs @@ -235,45 +235,6 @@ public static unsafe partial class Windows [NativeTypeName("#define ExtractIcon ExtractIconW")] public static delegate* ExtractIcon => &ExtractIconW; - [NativeTypeName("#define ABM_NEW 0x00000000")] - public const int ABM_NEW = 0x00000000; - - [NativeTypeName("#define ABM_REMOVE 0x00000001")] - public const int ABM_REMOVE = 0x00000001; - - [NativeTypeName("#define ABM_QUERYPOS 0x00000002")] - public const int ABM_QUERYPOS = 0x00000002; - - [NativeTypeName("#define ABM_SETPOS 0x00000003")] - public const int ABM_SETPOS = 0x00000003; - - [NativeTypeName("#define ABM_GETSTATE 0x00000004")] - public const int ABM_GETSTATE = 0x00000004; - - [NativeTypeName("#define ABM_GETTASKBARPOS 0x00000005")] - public const int ABM_GETTASKBARPOS = 0x00000005; - - [NativeTypeName("#define ABM_ACTIVATE 0x00000006")] - public const int ABM_ACTIVATE = 0x00000006; - - [NativeTypeName("#define ABM_GETAUTOHIDEBAR 0x00000007")] - public const int ABM_GETAUTOHIDEBAR = 0x00000007; - - [NativeTypeName("#define ABM_SETAUTOHIDEBAR 0x00000008")] - public const int ABM_SETAUTOHIDEBAR = 0x00000008; - - [NativeTypeName("#define ABM_WINDOWPOSCHANGED 0x0000009")] - public const int ABM_WINDOWPOSCHANGED = 0x0000009; - - [NativeTypeName("#define ABM_SETSTATE 0x0000000a")] - public const int ABM_SETSTATE = 0x0000000a; - - [NativeTypeName("#define ABM_GETAUTOHIDEBAREX 0x0000000b")] - public const int ABM_GETAUTOHIDEBAREX = 0x0000000b; - - [NativeTypeName("#define ABM_SETAUTOHIDEBAREX 0x0000000c")] - public const int ABM_SETAUTOHIDEBAREX = 0x0000000c; - [NativeTypeName("#define ABN_STATECHANGE 0x0000000")] public const int ABN_STATECHANGE = 0x0000000; @@ -322,57 +283,6 @@ public static unsafe partial class Windows [NativeTypeName("#define FO_RENAME 0x0004")] public const int FO_RENAME = 0x0004; - [NativeTypeName("#define FOF_MULTIDESTFILES 0x0001")] - public const int FOF_MULTIDESTFILES = 0x0001; - - [NativeTypeName("#define FOF_CONFIRMMOUSE 0x0002")] - public const int FOF_CONFIRMMOUSE = 0x0002; - - [NativeTypeName("#define FOF_SILENT 0x0004")] - public const int FOF_SILENT = 0x0004; - - [NativeTypeName("#define FOF_RENAMEONCOLLISION 0x0008")] - public const int FOF_RENAMEONCOLLISION = 0x0008; - - [NativeTypeName("#define FOF_NOCONFIRMATION 0x0010")] - public const int FOF_NOCONFIRMATION = 0x0010; - - [NativeTypeName("#define FOF_WANTMAPPINGHANDLE 0x0020")] - public const int FOF_WANTMAPPINGHANDLE = 0x0020; - - [NativeTypeName("#define FOF_ALLOWUNDO 0x0040")] - public const int FOF_ALLOWUNDO = 0x0040; - - [NativeTypeName("#define FOF_FILESONLY 0x0080")] - public const int FOF_FILESONLY = 0x0080; - - [NativeTypeName("#define FOF_SIMPLEPROGRESS 0x0100")] - public const int FOF_SIMPLEPROGRESS = 0x0100; - - [NativeTypeName("#define FOF_NOCONFIRMMKDIR 0x0200")] - public const int FOF_NOCONFIRMMKDIR = 0x0200; - - [NativeTypeName("#define FOF_NOERRORUI 0x0400")] - public const int FOF_NOERRORUI = 0x0400; - - [NativeTypeName("#define FOF_NOCOPYSECURITYATTRIBS 0x0800")] - public const int FOF_NOCOPYSECURITYATTRIBS = 0x0800; - - [NativeTypeName("#define FOF_NORECURSION 0x1000")] - public const int FOF_NORECURSION = 0x1000; - - [NativeTypeName("#define FOF_NO_CONNECTED_ELEMENTS 0x2000")] - public const int FOF_NO_CONNECTED_ELEMENTS = 0x2000; - - [NativeTypeName("#define FOF_WANTNUKEWARNING 0x4000")] - public const int FOF_WANTNUKEWARNING = 0x4000; - - [NativeTypeName("#define FOF_NORECURSEREPARSE 0x8000")] - public const int FOF_NORECURSEREPARSE = 0x8000; - - [NativeTypeName("#define FOF_NO_UI (FOF_SILENT | FOF_NOCONFIRMATION | FOF_NOERRORUI | FOF_NOCONFIRMMKDIR)")] - public const int FOF_NO_UI = (0x0004 | 0x0010 | 0x0400 | 0x0200); - [NativeTypeName("#define PO_DELETE 0x0013")] public const int PO_DELETE = 0x0013; @@ -388,69 +298,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SHFileOperation SHFileOperationW")] public static delegate* SHFileOperation => &SHFileOperationW; - [NativeTypeName("#define SEE_MASK_DEFAULT 0x00000000")] - public const int SEE_MASK_DEFAULT = 0x00000000; - - [NativeTypeName("#define SEE_MASK_CLASSNAME 0x00000001")] - public const int SEE_MASK_CLASSNAME = 0x00000001; - - [NativeTypeName("#define SEE_MASK_CLASSKEY 0x00000003")] - public const int SEE_MASK_CLASSKEY = 0x00000003; - - [NativeTypeName("#define SEE_MASK_IDLIST 0x00000004")] - public const int SEE_MASK_IDLIST = 0x00000004; - - [NativeTypeName("#define SEE_MASK_INVOKEIDLIST 0x0000000c")] - public const int SEE_MASK_INVOKEIDLIST = 0x0000000c; - - [NativeTypeName("#define SEE_MASK_HOTKEY 0x00000020")] - public const int SEE_MASK_HOTKEY = 0x00000020; - - [NativeTypeName("#define SEE_MASK_NOCLOSEPROCESS 0x00000040")] - public const int SEE_MASK_NOCLOSEPROCESS = 0x00000040; - - [NativeTypeName("#define SEE_MASK_CONNECTNETDRV 0x00000080")] - public const int SEE_MASK_CONNECTNETDRV = 0x00000080; - - [NativeTypeName("#define SEE_MASK_NOASYNC 0x00000100")] - public const int SEE_MASK_NOASYNC = 0x00000100; - - [NativeTypeName("#define SEE_MASK_FLAG_DDEWAIT SEE_MASK_NOASYNC")] - public const int SEE_MASK_FLAG_DDEWAIT = 0x00000100; - - [NativeTypeName("#define SEE_MASK_DOENVSUBST 0x00000200")] - public const int SEE_MASK_DOENVSUBST = 0x00000200; - - [NativeTypeName("#define SEE_MASK_FLAG_NO_UI 0x00000400")] - public const int SEE_MASK_FLAG_NO_UI = 0x00000400; - - [NativeTypeName("#define SEE_MASK_UNICODE 0x00004000")] - public const int SEE_MASK_UNICODE = 0x00004000; - - [NativeTypeName("#define SEE_MASK_NO_CONSOLE 0x00008000")] - public const int SEE_MASK_NO_CONSOLE = 0x00008000; - - [NativeTypeName("#define SEE_MASK_ASYNCOK 0x00100000")] - public const int SEE_MASK_ASYNCOK = 0x00100000; - - [NativeTypeName("#define SEE_MASK_HMONITOR 0x00200000")] - public const int SEE_MASK_HMONITOR = 0x00200000; - - [NativeTypeName("#define SEE_MASK_NOZONECHECKS 0x00800000")] - public const int SEE_MASK_NOZONECHECKS = 0x00800000; - - [NativeTypeName("#define SEE_MASK_NOQUERYCLASSSTORE 0x01000000")] - public const int SEE_MASK_NOQUERYCLASSSTORE = 0x01000000; - - [NativeTypeName("#define SEE_MASK_WAITFORINPUTIDLE 0x02000000")] - public const int SEE_MASK_WAITFORINPUTIDLE = 0x02000000; - - [NativeTypeName("#define SEE_MASK_FLAG_LOG_USAGE 0x04000000")] - public const int SEE_MASK_FLAG_LOG_USAGE = 0x04000000; - - [NativeTypeName("#define SEE_MASK_FLAG_HINST_IS_SITE 0x08000000")] - public const int SEE_MASK_FLAG_HINST_IS_SITE = 0x08000000; - [NativeTypeName("#define ShellExecuteEx ShellExecuteExW")] public static delegate* ShellExecuteEx => &ShellExecuteExW; @@ -547,90 +394,9 @@ public static unsafe partial class Windows [NativeTypeName("#define NIS_SHAREDICON 0x00000002")] public const int NIS_SHAREDICON = 0x00000002; - [NativeTypeName("#define NIIF_NONE 0x00000000")] - public const int NIIF_NONE = 0x00000000; - - [NativeTypeName("#define NIIF_INFO 0x00000001")] - public const int NIIF_INFO = 0x00000001; - - [NativeTypeName("#define NIIF_WARNING 0x00000002")] - public const int NIIF_WARNING = 0x00000002; - - [NativeTypeName("#define NIIF_ERROR 0x00000003")] - public const int NIIF_ERROR = 0x00000003; - - [NativeTypeName("#define NIIF_USER 0x00000004")] - public const int NIIF_USER = 0x00000004; - - [NativeTypeName("#define NIIF_ICON_MASK 0x0000000F")] - public const int NIIF_ICON_MASK = 0x0000000F; - - [NativeTypeName("#define NIIF_NOSOUND 0x00000010")] - public const int NIIF_NOSOUND = 0x00000010; - - [NativeTypeName("#define NIIF_LARGE_ICON 0x00000020")] - public const int NIIF_LARGE_ICON = 0x00000020; - - [NativeTypeName("#define NIIF_RESPECT_QUIET_TIME 0x00000080")] - public const int NIIF_RESPECT_QUIET_TIME = 0x00000080; - [NativeTypeName("#define Shell_NotifyIcon Shell_NotifyIconW")] public static delegate* Shell_NotifyIcon => &Shell_NotifyIconW; - [NativeTypeName("#define SHGFI_ICON 0x000000100")] - public const int SHGFI_ICON = 0x000000100; - - [NativeTypeName("#define SHGFI_DISPLAYNAME 0x000000200")] - public const int SHGFI_DISPLAYNAME = 0x000000200; - - [NativeTypeName("#define SHGFI_TYPENAME 0x000000400")] - public const int SHGFI_TYPENAME = 0x000000400; - - [NativeTypeName("#define SHGFI_ATTRIBUTES 0x000000800")] - public const int SHGFI_ATTRIBUTES = 0x000000800; - - [NativeTypeName("#define SHGFI_ICONLOCATION 0x000001000")] - public const int SHGFI_ICONLOCATION = 0x000001000; - - [NativeTypeName("#define SHGFI_EXETYPE 0x000002000")] - public const int SHGFI_EXETYPE = 0x000002000; - - [NativeTypeName("#define SHGFI_SYSICONINDEX 0x000004000")] - public const int SHGFI_SYSICONINDEX = 0x000004000; - - [NativeTypeName("#define SHGFI_LINKOVERLAY 0x000008000")] - public const int SHGFI_LINKOVERLAY = 0x000008000; - - [NativeTypeName("#define SHGFI_SELECTED 0x000010000")] - public const int SHGFI_SELECTED = 0x000010000; - - [NativeTypeName("#define SHGFI_ATTR_SPECIFIED 0x000020000")] - public const int SHGFI_ATTR_SPECIFIED = 0x000020000; - - [NativeTypeName("#define SHGFI_LARGEICON 0x000000000")] - public const int SHGFI_LARGEICON = 0x000000000; - - [NativeTypeName("#define SHGFI_SMALLICON 0x000000001")] - public const int SHGFI_SMALLICON = 0x000000001; - - [NativeTypeName("#define SHGFI_OPENICON 0x000000002")] - public const int SHGFI_OPENICON = 0x000000002; - - [NativeTypeName("#define SHGFI_SHELLICONSIZE 0x000000004")] - public const int SHGFI_SHELLICONSIZE = 0x000000004; - - [NativeTypeName("#define SHGFI_PIDL 0x000000008")] - public const int SHGFI_PIDL = 0x000000008; - - [NativeTypeName("#define SHGFI_USEFILEATTRIBUTES 0x000000010")] - public const int SHGFI_USEFILEATTRIBUTES = 0x000000010; - - [NativeTypeName("#define SHGFI_ADDOVERLAYS 0x000000020")] - public const int SHGFI_ADDOVERLAYS = 0x000000020; - - [NativeTypeName("#define SHGFI_OVERLAYINDEX 0x000000040")] - public const int SHGFI_OVERLAYINDEX = 0x000000040; - [NativeTypeName("#define SHGetFileInfo SHGetFileInfoW")] public static delegate* SHGetFileInfo => &SHGetFileInfoW; @@ -760,9 +526,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SHIL_LAST SHIL_JUMBO")] public const int SHIL_LAST = 4; - [NativeTypeName("#define WC_NETADDRESS L\"msctls_netaddress\"")] - public const string WC_NETADDRESS = "msctls_netaddress"; - [NativeTypeName("#define NCM_GETADDRESS (WM_USER+1)")] public const int NCM_GETADDRESS = (0x0400 + 1); diff --git a/sources/Interop/Windows/Windows/um/strmif/AM.cs b/sources/Interop/Windows/Windows/um/strmif/AM.cs new file mode 100644 index 0000000000..01656e7a8b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/strmif/AM.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/strmif.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class AM + { + [NativeTypeName("#define AM_GBF_PREVFRAMESKIPPED 1")] + public const int AM_GBF_PREVFRAMESKIPPED = 1; + + [NativeTypeName("#define AM_GBF_NOTASYNCPOINT 2")] + public const int AM_GBF_NOTASYNCPOINT = 2; + + [NativeTypeName("#define AM_GBF_NOWAIT 4")] + public const int AM_GBF_NOWAIT = 4; + + [NativeTypeName("#define AM_GBF_NODDSURFACELOCK 8")] + public const int AM_GBF_NODDSURFACELOCK = 8; + + [NativeTypeName("#define AM_GETDECODERCAP_QUERY_VMR_SUPPORT 0x00000001")] + public const int AM_GETDECODERCAP_QUERY_VMR_SUPPORT = 0x00000001; + + [NativeTypeName("#define AM_QUERY_DECODER_VMR_SUPPORT 0x00000001")] + public const int AM_QUERY_DECODER_VMR_SUPPORT = 0x00000001; + + [NativeTypeName("#define AM_QUERY_DECODER_DXVA_1_SUPPORT 0x00000002")] + public const int AM_QUERY_DECODER_DXVA_1_SUPPORT = 0x00000002; + + [NativeTypeName("#define AM_QUERY_DECODER_DVD_SUPPORT 0x00000003")] + public const int AM_QUERY_DECODER_DVD_SUPPORT = 0x00000003; + + [NativeTypeName("#define AM_QUERY_DECODER_ATSC_SD_SUPPORT 0x00000004")] + public const int AM_QUERY_DECODER_ATSC_SD_SUPPORT = 0x00000004; + + [NativeTypeName("#define AM_QUERY_DECODER_ATSC_HD_SUPPORT 0x00000005")] + public const int AM_QUERY_DECODER_ATSC_HD_SUPPORT = 0x00000005; + + [NativeTypeName("#define AM_GETDECODERCAP_QUERY_VMR9_SUPPORT 0x00000006")] + public const int AM_GETDECODERCAP_QUERY_VMR9_SUPPORT = 0x00000006; + + [NativeTypeName("#define AM_GETDECODERCAP_QUERY_EVR_SUPPORT 0x00000007")] + public const int AM_GETDECODERCAP_QUERY_EVR_SUPPORT = 0x00000007; + } +} diff --git a/sources/Interop/Windows/Windows/um/strmif/DVD.cs b/sources/Interop/Windows/Windows/um/strmif/DVD.cs new file mode 100644 index 0000000000..cef86ee83f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/strmif/DVD.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/strmif.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DVD + { + [NativeTypeName("#define DVD_TITLE_MENU 0x000")] + public const int DVD_TITLE_MENU = 0x000; + + [NativeTypeName("#define DVD_STREAM_DATA_CURRENT 0x800")] + public const int DVD_STREAM_DATA_CURRENT = 0x800; + + [NativeTypeName("#define DVD_STREAM_DATA_VMGM 0x400")] + public const int DVD_STREAM_DATA_VMGM = 0x400; + + [NativeTypeName("#define DVD_STREAM_DATA_VTSM 0x401")] + public const int DVD_STREAM_DATA_VTSM = 0x401; + + [NativeTypeName("#define DVD_DEFAULT_AUDIO_STREAM 0x0f")] + public const int DVD_DEFAULT_AUDIO_STREAM = 0x0f; + + [NativeTypeName("#define DVD_AUDIO_CAPS_AC3 0x00000001")] + public const int DVD_AUDIO_CAPS_AC3 = 0x00000001; + + [NativeTypeName("#define DVD_AUDIO_CAPS_MPEG2 0x00000002")] + public const int DVD_AUDIO_CAPS_MPEG2 = 0x00000002; + + [NativeTypeName("#define DVD_AUDIO_CAPS_LPCM 0x00000004")] + public const int DVD_AUDIO_CAPS_LPCM = 0x00000004; + + [NativeTypeName("#define DVD_AUDIO_CAPS_DTS 0x00000008")] + public const int DVD_AUDIO_CAPS_DTS = 0x00000008; + + [NativeTypeName("#define DVD_AUDIO_CAPS_SDDS 0x00000010")] + public const int DVD_AUDIO_CAPS_SDDS = 0x00000010; + } +} diff --git a/sources/Interop/Windows/Windows/um/strmif/Windows.cs b/sources/Interop/Windows/Windows/um/strmif/Windows.cs index 9b94ac2177..fb7b39d6a1 100644 --- a/sources/Interop/Windows/Windows/um/strmif/Windows.cs +++ b/sources/Interop/Windows/Windows/um/strmif/Windows.cs @@ -36,18 +36,6 @@ public static partial class Windows [NativeTypeName("#define CHARS_IN_GUID 39")] public const int CHARS_IN_GUID = 39; - [NativeTypeName("#define AM_GBF_PREVFRAMESKIPPED 1")] - public const int AM_GBF_PREVFRAMESKIPPED = 1; - - [NativeTypeName("#define AM_GBF_NOTASYNCPOINT 2")] - public const int AM_GBF_NOTASYNCPOINT = 2; - - [NativeTypeName("#define AM_GBF_NOWAIT 4")] - public const int AM_GBF_NOWAIT = 4; - - [NativeTypeName("#define AM_GBF_NODDSURFACELOCK 8")] - public const int AM_GBF_NODDSURFACELOCK = 8; - [NativeTypeName("#define ADVISE_ALL ( ( ( ( ADVISE_CLIPPING | ADVISE_PALETTE ) | ADVISE_COLORKEY ) | ADVISE_POSITION ) )")] public const int ADVISE_ALL = (((((int)(ADVISE_CLIPPING) | (int)(ADVISE_PALETTE)) | (int)(ADVISE_COLORKEY)) | (int)(ADVISE_POSITION))); @@ -93,36 +81,12 @@ public static partial class Windows [NativeTypeName("#define SUBSTREAM_FILTER_VAL_NONE 0x10000000")] public const int SUBSTREAM_FILTER_VAL_NONE = 0x10000000; - [NativeTypeName("#define AM_GETDECODERCAP_QUERY_VMR_SUPPORT 0x00000001")] - public const int AM_GETDECODERCAP_QUERY_VMR_SUPPORT = 0x00000001; - [NativeTypeName("#define VMR_NOTSUPPORTED 0x00000000")] public const int VMR_NOTSUPPORTED = 0x00000000; [NativeTypeName("#define VMR_SUPPORTED 0x00000001")] public const int VMR_SUPPORTED = 0x00000001; - [NativeTypeName("#define AM_QUERY_DECODER_VMR_SUPPORT 0x00000001")] - public const int AM_QUERY_DECODER_VMR_SUPPORT = 0x00000001; - - [NativeTypeName("#define AM_QUERY_DECODER_DXVA_1_SUPPORT 0x00000002")] - public const int AM_QUERY_DECODER_DXVA_1_SUPPORT = 0x00000002; - - [NativeTypeName("#define AM_QUERY_DECODER_DVD_SUPPORT 0x00000003")] - public const int AM_QUERY_DECODER_DVD_SUPPORT = 0x00000003; - - [NativeTypeName("#define AM_QUERY_DECODER_ATSC_SD_SUPPORT 0x00000004")] - public const int AM_QUERY_DECODER_ATSC_SD_SUPPORT = 0x00000004; - - [NativeTypeName("#define AM_QUERY_DECODER_ATSC_HD_SUPPORT 0x00000005")] - public const int AM_QUERY_DECODER_ATSC_HD_SUPPORT = 0x00000005; - - [NativeTypeName("#define AM_GETDECODERCAP_QUERY_VMR9_SUPPORT 0x00000006")] - public const int AM_GETDECODERCAP_QUERY_VMR9_SUPPORT = 0x00000006; - - [NativeTypeName("#define AM_GETDECODERCAP_QUERY_EVR_SUPPORT 0x00000007")] - public const int AM_GETDECODERCAP_QUERY_EVR_SUPPORT = 0x00000007; - [NativeTypeName("#define DECODER_CAP_NOTSUPPORTED 0x00000000")] public const int DECODER_CAP_NOTSUPPORTED = 0x00000000; @@ -143,35 +107,5 @@ public static partial class Windows [NativeTypeName("#define VMRBITMAP_SRCRECT 0x00000010")] public const int VMRBITMAP_SRCRECT = 0x00000010; - - [NativeTypeName("#define DVD_TITLE_MENU 0x000")] - public const int DVD_TITLE_MENU = 0x000; - - [NativeTypeName("#define DVD_STREAM_DATA_CURRENT 0x800")] - public const int DVD_STREAM_DATA_CURRENT = 0x800; - - [NativeTypeName("#define DVD_STREAM_DATA_VMGM 0x400")] - public const int DVD_STREAM_DATA_VMGM = 0x400; - - [NativeTypeName("#define DVD_STREAM_DATA_VTSM 0x401")] - public const int DVD_STREAM_DATA_VTSM = 0x401; - - [NativeTypeName("#define DVD_DEFAULT_AUDIO_STREAM 0x0f")] - public const int DVD_DEFAULT_AUDIO_STREAM = 0x0f; - - [NativeTypeName("#define DVD_AUDIO_CAPS_AC3 0x00000001")] - public const int DVD_AUDIO_CAPS_AC3 = 0x00000001; - - [NativeTypeName("#define DVD_AUDIO_CAPS_MPEG2 0x00000002")] - public const int DVD_AUDIO_CAPS_MPEG2 = 0x00000002; - - [NativeTypeName("#define DVD_AUDIO_CAPS_LPCM 0x00000004")] - public const int DVD_AUDIO_CAPS_LPCM = 0x00000004; - - [NativeTypeName("#define DVD_AUDIO_CAPS_DTS 0x00000008")] - public const int DVD_AUDIO_CAPS_DTS = 0x00000008; - - [NativeTypeName("#define DVD_AUDIO_CAPS_SDDS 0x00000010")] - public const int DVD_AUDIO_CAPS_SDDS = 0x00000010; } } diff --git a/sources/Interop/Windows/Windows/um/synchapi/CREATE.cs b/sources/Interop/Windows/Windows/um/synchapi/CREATE.cs new file mode 100644 index 0000000000..7eaf97c12a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/synchapi/CREATE.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/synchapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CREATE + { + [NativeTypeName("#define CREATE_MUTEX_INITIAL_OWNER 0x00000001")] + public const int CREATE_MUTEX_INITIAL_OWNER = 0x00000001; + + [NativeTypeName("#define CREATE_EVENT_MANUAL_RESET 0x00000001")] + public const int CREATE_EVENT_MANUAL_RESET = 0x00000001; + + [NativeTypeName("#define CREATE_EVENT_INITIAL_SET 0x00000002")] + public const int CREATE_EVENT_INITIAL_SET = 0x00000002; + + [NativeTypeName("#define CREATE_WAITABLE_TIMER_MANUAL_RESET 0x00000001")] + public const int CREATE_WAITABLE_TIMER_MANUAL_RESET = 0x00000001; + + [NativeTypeName("#define CREATE_WAITABLE_TIMER_HIGH_RESOLUTION 0x00000002")] + public const int CREATE_WAITABLE_TIMER_HIGH_RESOLUTION = 0x00000002; + } +} diff --git a/sources/Interop/Windows/Windows/um/synchapi/INIT.cs b/sources/Interop/Windows/Windows/um/synchapi/INIT.cs new file mode 100644 index 0000000000..85f10b00cd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/synchapi/INIT.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/synchapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class INIT + { + [NativeTypeName("#define INIT_ONCE_CHECK_ONLY RTL_RUN_ONCE_CHECK_ONLY")] + public const uint INIT_ONCE_CHECK_ONLY = 0x00000001U; + + [NativeTypeName("#define INIT_ONCE_ASYNC RTL_RUN_ONCE_ASYNC")] + public const uint INIT_ONCE_ASYNC = 0x00000002U; + + [NativeTypeName("#define INIT_ONCE_INIT_FAILED RTL_RUN_ONCE_INIT_FAILED")] + public const uint INIT_ONCE_INIT_FAILED = 0x00000004U; + + [NativeTypeName("#define INIT_ONCE_CTX_RESERVED_BITS RTL_RUN_ONCE_CTX_RESERVED_BITS")] + public const int INIT_ONCE_CTX_RESERVED_BITS = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/synchapi/Windows.cs b/sources/Interop/Windows/Windows/um/synchapi/Windows.cs index 2b0a132812..e4c278a1b1 100644 --- a/sources/Interop/Windows/Windows/um/synchapi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/synchapi/Windows.cs @@ -208,18 +208,6 @@ public static unsafe partial class Windows [DllImport("kernel32", ExactSpelling = true, SetLastError = true)] public static extern HANDLE CreateWaitableTimerW([NativeTypeName("LPSECURITY_ATTRIBUTES")] SECURITY_ATTRIBUTES* lpTimerAttributes, BOOL bManualReset, [NativeTypeName("LPCWSTR")] ushort* lpTimerName); - [NativeTypeName("#define INIT_ONCE_CHECK_ONLY RTL_RUN_ONCE_CHECK_ONLY")] - public const uint INIT_ONCE_CHECK_ONLY = 0x00000001U; - - [NativeTypeName("#define INIT_ONCE_ASYNC RTL_RUN_ONCE_ASYNC")] - public const uint INIT_ONCE_ASYNC = 0x00000002U; - - [NativeTypeName("#define INIT_ONCE_INIT_FAILED RTL_RUN_ONCE_INIT_FAILED")] - public const uint INIT_ONCE_INIT_FAILED = 0x00000004U; - - [NativeTypeName("#define INIT_ONCE_CTX_RESERVED_BITS RTL_RUN_ONCE_CTX_RESERVED_BITS")] - public const int INIT_ONCE_CTX_RESERVED_BITS = 2; - [NativeTypeName("#define CONDITION_VARIABLE_LOCKMODE_SHARED RTL_CONDITION_VARIABLE_LOCKMODE_SHARED")] public const int CONDITION_VARIABLE_LOCKMODE_SHARED = 0x1; @@ -247,30 +235,15 @@ public static unsafe partial class Windows [NativeTypeName("#define OpenWaitableTimer OpenWaitableTimerW")] public static delegate* OpenWaitableTimer => &OpenWaitableTimerW; - [NativeTypeName("#define CREATE_MUTEX_INITIAL_OWNER 0x00000001")] - public const int CREATE_MUTEX_INITIAL_OWNER = 0x00000001; - [NativeTypeName("#define CreateMutexEx CreateMutexExW")] public static delegate* CreateMutexEx => &CreateMutexExW; - [NativeTypeName("#define CREATE_EVENT_MANUAL_RESET 0x00000001")] - public const int CREATE_EVENT_MANUAL_RESET = 0x00000001; - - [NativeTypeName("#define CREATE_EVENT_INITIAL_SET 0x00000002")] - public const int CREATE_EVENT_INITIAL_SET = 0x00000002; - [NativeTypeName("#define CreateEventEx CreateEventExW")] public static delegate* CreateEventEx => &CreateEventExW; [NativeTypeName("#define CreateSemaphoreEx CreateSemaphoreExW")] public static delegate* CreateSemaphoreEx => &CreateSemaphoreExW; - [NativeTypeName("#define CREATE_WAITABLE_TIMER_MANUAL_RESET 0x00000001")] - public const int CREATE_WAITABLE_TIMER_MANUAL_RESET = 0x00000001; - - [NativeTypeName("#define CREATE_WAITABLE_TIMER_HIGH_RESOLUTION 0x00000002")] - public const int CREATE_WAITABLE_TIMER_HIGH_RESOLUTION = 0x00000002; - [NativeTypeName("#define CreateWaitableTimerEx CreateWaitableTimerExW")] public static delegate* CreateWaitableTimerEx => &CreateWaitableTimerExW; diff --git a/sources/Interop/Windows/Windows/um/thumbcache/Windows.cs b/sources/Interop/Windows/Windows/um/thumbcache/WTS.cs similarity index 98% rename from sources/Interop/Windows/Windows/um/thumbcache/Windows.cs rename to sources/Interop/Windows/Windows/um/thumbcache/WTS.cs index b8f0cd3ff2..f961f520bc 100644 --- a/sources/Interop/Windows/Windows/um/thumbcache/Windows.cs +++ b/sources/Interop/Windows/Windows/um/thumbcache/WTS.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class WTS { [NativeTypeName("#define WTS_E_FAILEDEXTRACTION MAKE_HRESULT(SEVERITY_ERROR, FACILITY_ITF, 0xB200)")] public const int WTS_E_FAILEDEXTRACTION = unchecked((int)(((uint)(1) << 31) | ((uint)(4) << 16) | ((uint)(0xB200)))); diff --git a/sources/Interop/Windows/Windows/um/tpcshrd/Windows.cs b/sources/Interop/Windows/Windows/um/tpcshrd/TABLET.cs similarity index 98% rename from sources/Interop/Windows/Windows/um/tpcshrd/Windows.cs rename to sources/Interop/Windows/Windows/um/tpcshrd/TABLET.cs index 815c0a7491..c2aaaa0d38 100644 --- a/sources/Interop/Windows/Windows/um/tpcshrd/Windows.cs +++ b/sources/Interop/Windows/Windows/um/tpcshrd/TABLET.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class TABLET { [NativeTypeName("#define TABLET_DISABLE_PRESSANDHOLD 0x00000001")] public const int TABLET_DISABLE_PRESSANDHOLD = 0x00000001; diff --git a/sources/Interop/Windows/Windows/um/urlmon/CF.cs b/sources/Interop/Windows/Windows/um/urlmon/CF.cs new file mode 100644 index 0000000000..92b41c4e27 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/CF.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CF + { + [NativeTypeName("#define CF_NULL 0")] + public const int CF_NULL = 0; + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/GET.cs b/sources/Interop/Windows/Windows/um/urlmon/GET.cs new file mode 100644 index 0000000000..2c03ed14b2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/GET.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GET + { + [NativeTypeName("#define GET_FEATURE_FROM_THREAD 0x00000001")] + public const int GET_FEATURE_FROM_THREAD = 0x00000001; + + [NativeTypeName("#define GET_FEATURE_FROM_PROCESS 0x00000002")] + public const int GET_FEATURE_FROM_PROCESS = 0x00000002; + + [NativeTypeName("#define GET_FEATURE_FROM_REGISTRY 0x00000004")] + public const int GET_FEATURE_FROM_REGISTRY = 0x00000004; + + [NativeTypeName("#define GET_FEATURE_FROM_THREAD_LOCALMACHINE 0x00000008")] + public const int GET_FEATURE_FROM_THREAD_LOCALMACHINE = 0x00000008; + + [NativeTypeName("#define GET_FEATURE_FROM_THREAD_INTRANET 0x00000010")] + public const int GET_FEATURE_FROM_THREAD_INTRANET = 0x00000010; + + [NativeTypeName("#define GET_FEATURE_FROM_THREAD_TRUSTED 0x00000020")] + public const int GET_FEATURE_FROM_THREAD_TRUSTED = 0x00000020; + + [NativeTypeName("#define GET_FEATURE_FROM_THREAD_INTERNET 0x00000040")] + public const int GET_FEATURE_FROM_THREAD_INTERNET = 0x00000040; + + [NativeTypeName("#define GET_FEATURE_FROM_THREAD_RESTRICTED 0x00000080")] + public const int GET_FEATURE_FROM_THREAD_RESTRICTED = 0x00000080; + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/MK.cs b/sources/Interop/Windows/Windows/um/urlmon/MK.cs new file mode 100644 index 0000000000..c6ccd201a1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/MK.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MK + { + [NativeTypeName("#define MK_S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x000401E8L)")] + public const int MK_S_ASYNCHRONOUS = ((int)(0x000401E8)); + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/MUTZ.cs b/sources/Interop/Windows/Windows/um/urlmon/MUTZ.cs new file mode 100644 index 0000000000..1257510116 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/MUTZ.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MUTZ + { + [NativeTypeName("#define MUTZ_NOSAVEDFILECHECK 0x00000001")] + public const int MUTZ_NOSAVEDFILECHECK = 0x00000001; + + [NativeTypeName("#define MUTZ_ISFILE 0x00000002")] + public const int MUTZ_ISFILE = 0x00000002; + + [NativeTypeName("#define MUTZ_ACCEPT_WILDCARD_SCHEME 0x00000080")] + public const int MUTZ_ACCEPT_WILDCARD_SCHEME = 0x00000080; + + [NativeTypeName("#define MUTZ_ENFORCERESTRICTED 0x00000100")] + public const int MUTZ_ENFORCERESTRICTED = 0x00000100; + + [NativeTypeName("#define MUTZ_RESERVED 0x00000200")] + public const int MUTZ_RESERVED = 0x00000200; + + [NativeTypeName("#define MUTZ_REQUIRESAVEDFILECHECK 0x00000400")] + public const int MUTZ_REQUIRESAVEDFILECHECK = 0x00000400; + + [NativeTypeName("#define MUTZ_DONT_UNESCAPE 0x00000800")] + public const int MUTZ_DONT_UNESCAPE = 0x00000800; + + [NativeTypeName("#define MUTZ_DONT_USE_CACHE 0x00001000")] + public const int MUTZ_DONT_USE_CACHE = 0x00001000; + + [NativeTypeName("#define MUTZ_FORCE_INTRANET_FLAGS 0x00002000")] + public const int MUTZ_FORCE_INTRANET_FLAGS = 0x00002000; + + [NativeTypeName("#define MUTZ_IGNORE_ZONE_MAPPINGS 0x00004000")] + public const int MUTZ_IGNORE_ZONE_MAPPINGS = 0x00004000; + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/S.cs b/sources/Interop/Windows/Windows/um/urlmon/S.cs new file mode 100644 index 0000000000..bcb25876a2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/S.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class S + { + [NativeTypeName("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")] + public const int S_ASYNCHRONOUS = ((int)(0x000401E8)); + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/SET.cs b/sources/Interop/Windows/Windows/um/urlmon/SET.cs new file mode 100644 index 0000000000..3673daa022 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/SET.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SET + { + [NativeTypeName("#define SET_FEATURE_ON_THREAD 0x00000001")] + public const int SET_FEATURE_ON_THREAD = 0x00000001; + + [NativeTypeName("#define SET_FEATURE_ON_PROCESS 0x00000002")] + public const int SET_FEATURE_ON_PROCESS = 0x00000002; + + [NativeTypeName("#define SET_FEATURE_IN_REGISTRY 0x00000004")] + public const int SET_FEATURE_IN_REGISTRY = 0x00000004; + + [NativeTypeName("#define SET_FEATURE_ON_THREAD_LOCALMACHINE 0x00000008")] + public const int SET_FEATURE_ON_THREAD_LOCALMACHINE = 0x00000008; + + [NativeTypeName("#define SET_FEATURE_ON_THREAD_INTRANET 0x00000010")] + public const int SET_FEATURE_ON_THREAD_INTRANET = 0x00000010; + + [NativeTypeName("#define SET_FEATURE_ON_THREAD_TRUSTED 0x00000020")] + public const int SET_FEATURE_ON_THREAD_TRUSTED = 0x00000020; + + [NativeTypeName("#define SET_FEATURE_ON_THREAD_INTERNET 0x00000040")] + public const int SET_FEATURE_ON_THREAD_INTERNET = 0x00000040; + + [NativeTypeName("#define SET_FEATURE_ON_THREAD_RESTRICTED 0x00000080")] + public const int SET_FEATURE_ON_THREAD_RESTRICTED = 0x00000080; + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/SZ.cs b/sources/Interop/Windows/Windows/um/urlmon/SZ.cs new file mode 100644 index 0000000000..e98d456229 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/SZ.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SZ + { + [NativeTypeName("#define SZ_URLCONTEXT OLESTR(\"URL Context\")")] + public const string SZ_URLCONTEXT = "URL Context"; + + [NativeTypeName("#define SZ_ASYNC_CALLEE OLESTR(\"AsyncCallee\")")] + public const string SZ_ASYNC_CALLEE = "AsyncCallee"; + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/URL.cs b/sources/Interop/Windows/Windows/um/urlmon/URL.cs new file mode 100644 index 0000000000..b9836757a2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/URL.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class URL + { + [NativeTypeName("#define URL_MK_LEGACY 0")] + public const int URL_MK_LEGACY = 0; + + [NativeTypeName("#define URL_MK_UNIFORM 1")] + public const int URL_MK_UNIFORM = 1; + + [NativeTypeName("#define URL_MK_NO_CANONICALIZE 2")] + public const int URL_MK_NO_CANONICALIZE = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/URLPOLICY.cs b/sources/Interop/Windows/Windows/um/urlmon/URLPOLICY.cs new file mode 100644 index 0000000000..abc98bf26f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/URLPOLICY.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class URLPOLICY + { + [NativeTypeName("#define URLPOLICY_ACTIVEX_CHECK_LIST 0x00010000")] + public const int URLPOLICY_ACTIVEX_CHECK_LIST = 0x00010000; + + [NativeTypeName("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK 0x00000000")] + public const int URLPOLICY_CREDENTIALS_SILENT_LOGON_OK = 0x00000000; + + [NativeTypeName("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER 0x00010000")] + public const int URLPOLICY_CREDENTIALS_MUST_PROMPT_USER = 0x00010000; + + [NativeTypeName("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT 0x00020000")] + public const int URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT = 0x00020000; + + [NativeTypeName("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY 0x00030000")] + public const int URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY = 0x00030000; + + [NativeTypeName("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK 0x00000000")] + public const int URLPOLICY_AUTHENTICATE_CLEARTEXT_OK = 0x00000000; + + [NativeTypeName("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE 0x00010000")] + public const int URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE = 0x00010000; + + [NativeTypeName("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY 0x00030000")] + public const int URLPOLICY_AUTHENTICATE_MUTUAL_ONLY = 0x00030000; + + [NativeTypeName("#define URLPOLICY_JAVA_PROHIBIT 0x00000000")] + public const int URLPOLICY_JAVA_PROHIBIT = 0x00000000; + + [NativeTypeName("#define URLPOLICY_JAVA_HIGH 0x00010000")] + public const int URLPOLICY_JAVA_HIGH = 0x00010000; + + [NativeTypeName("#define URLPOLICY_JAVA_MEDIUM 0x00020000")] + public const int URLPOLICY_JAVA_MEDIUM = 0x00020000; + + [NativeTypeName("#define URLPOLICY_JAVA_LOW 0x00030000")] + public const int URLPOLICY_JAVA_LOW = 0x00030000; + + [NativeTypeName("#define URLPOLICY_JAVA_CUSTOM 0x00800000")] + public const int URLPOLICY_JAVA_CUSTOM = 0x00800000; + + [NativeTypeName("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT 0x00010000")] + public const int URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT = 0x00010000; + + [NativeTypeName("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE 0x00020000")] + public const int URLPOLICY_CHANNEL_SOFTDIST_PRECACHE = 0x00020000; + + [NativeTypeName("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL 0x00030000")] + public const int URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL = 0x00030000; + + [NativeTypeName("#define URLPOLICY_BEHAVIOR_CHECK_LIST 0x00010000")] + public const int URLPOLICY_BEHAVIOR_CHECK_LIST = 0x00010000; + + [NativeTypeName("#define URLPOLICY_ALLOW 0x00")] + public const int URLPOLICY_ALLOW = 0x00; + + [NativeTypeName("#define URLPOLICY_QUERY 0x01")] + public const int URLPOLICY_QUERY = 0x01; + + [NativeTypeName("#define URLPOLICY_DISALLOW 0x03")] + public const int URLPOLICY_DISALLOW = 0x03; + + [NativeTypeName("#define URLPOLICY_NOTIFY_ON_ALLOW 0x10")] + public const int URLPOLICY_NOTIFY_ON_ALLOW = 0x10; + + [NativeTypeName("#define URLPOLICY_NOTIFY_ON_DISALLOW 0x20")] + public const int URLPOLICY_NOTIFY_ON_DISALLOW = 0x20; + + [NativeTypeName("#define URLPOLICY_LOG_ON_ALLOW 0x40")] + public const int URLPOLICY_LOG_ON_ALLOW = 0x40; + + [NativeTypeName("#define URLPOLICY_LOG_ON_DISALLOW 0x80")] + public const int URLPOLICY_LOG_ON_DISALLOW = 0x80; + + [NativeTypeName("#define URLPOLICY_MASK_PERMISSIONS 0x0f")] + public const int URLPOLICY_MASK_PERMISSIONS = 0x0f; + + [NativeTypeName("#define URLPOLICY_DONTCHECKDLGBOX 0x100")] + public const int URLPOLICY_DONTCHECKDLGBOX = 0x100; + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/Uri.cs b/sources/Interop/Windows/Windows/um/urlmon/Uri.cs new file mode 100644 index 0000000000..c56b6b0c82 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/urlmon/Uri.cs @@ -0,0 +1,159 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/urlmon.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using static TerraFX.Interop.Windows.Uri_PROPERTY; + +namespace TerraFX.Interop.Windows +{ + public static partial class Uri + { + [NativeTypeName("#define Uri_HAS_ABSOLUTE_URI (1 << Uri_PROPERTY_ABSOLUTE_URI)")] + public const int Uri_HAS_ABSOLUTE_URI = (1 << (int)(Uri_PROPERTY_ABSOLUTE_URI)); + + [NativeTypeName("#define Uri_HAS_AUTHORITY (1 << Uri_PROPERTY_AUTHORITY)")] + public const int Uri_HAS_AUTHORITY = (1 << (int)(Uri_PROPERTY_AUTHORITY)); + + [NativeTypeName("#define Uri_HAS_DISPLAY_URI (1 << Uri_PROPERTY_DISPLAY_URI)")] + public const int Uri_HAS_DISPLAY_URI = (1 << (int)(Uri_PROPERTY_DISPLAY_URI)); + + [NativeTypeName("#define Uri_HAS_DOMAIN (1 << Uri_PROPERTY_DOMAIN)")] + public const int Uri_HAS_DOMAIN = (1 << (int)(Uri_PROPERTY_DOMAIN)); + + [NativeTypeName("#define Uri_HAS_EXTENSION (1 << Uri_PROPERTY_EXTENSION)")] + public const int Uri_HAS_EXTENSION = (1 << (int)(Uri_PROPERTY_EXTENSION)); + + [NativeTypeName("#define Uri_HAS_FRAGMENT (1 << Uri_PROPERTY_FRAGMENT)")] + public const int Uri_HAS_FRAGMENT = (1 << (int)(Uri_PROPERTY_FRAGMENT)); + + [NativeTypeName("#define Uri_HAS_HOST (1 << Uri_PROPERTY_HOST)")] + public const int Uri_HAS_HOST = (1 << (int)(Uri_PROPERTY_HOST)); + + [NativeTypeName("#define Uri_HAS_PASSWORD (1 << Uri_PROPERTY_PASSWORD)")] + public const int Uri_HAS_PASSWORD = (1 << (int)(Uri_PROPERTY_PASSWORD)); + + [NativeTypeName("#define Uri_HAS_PATH (1 << Uri_PROPERTY_PATH)")] + public const int Uri_HAS_PATH = (1 << (int)(Uri_PROPERTY_PATH)); + + [NativeTypeName("#define Uri_HAS_QUERY (1 << Uri_PROPERTY_QUERY)")] + public const int Uri_HAS_QUERY = (1 << (int)(Uri_PROPERTY_QUERY)); + + [NativeTypeName("#define Uri_HAS_RAW_URI (1 << Uri_PROPERTY_RAW_URI)")] + public const int Uri_HAS_RAW_URI = (1 << (int)(Uri_PROPERTY_RAW_URI)); + + [NativeTypeName("#define Uri_HAS_SCHEME_NAME (1 << Uri_PROPERTY_SCHEME_NAME)")] + public const int Uri_HAS_SCHEME_NAME = (1 << (int)(Uri_PROPERTY_SCHEME_NAME)); + + [NativeTypeName("#define Uri_HAS_USER_NAME (1 << Uri_PROPERTY_USER_NAME)")] + public const int Uri_HAS_USER_NAME = (1 << (int)(Uri_PROPERTY_USER_NAME)); + + [NativeTypeName("#define Uri_HAS_PATH_AND_QUERY (1 << Uri_PROPERTY_PATH_AND_QUERY)")] + public const int Uri_HAS_PATH_AND_QUERY = (1 << (int)(Uri_PROPERTY_PATH_AND_QUERY)); + + [NativeTypeName("#define Uri_HAS_USER_INFO (1 << Uri_PROPERTY_USER_INFO)")] + public const int Uri_HAS_USER_INFO = (1 << (int)(Uri_PROPERTY_USER_INFO)); + + [NativeTypeName("#define Uri_HAS_HOST_TYPE (1 << Uri_PROPERTY_HOST_TYPE)")] + public const int Uri_HAS_HOST_TYPE = (1 << (int)(Uri_PROPERTY_HOST_TYPE)); + + [NativeTypeName("#define Uri_HAS_PORT (1 << Uri_PROPERTY_PORT)")] + public const int Uri_HAS_PORT = (1 << (int)(Uri_PROPERTY_PORT)); + + [NativeTypeName("#define Uri_HAS_SCHEME (1 << Uri_PROPERTY_SCHEME)")] + public const int Uri_HAS_SCHEME = (1 << (int)(Uri_PROPERTY_SCHEME)); + + [NativeTypeName("#define Uri_HAS_ZONE (1 << Uri_PROPERTY_ZONE)")] + public const int Uri_HAS_ZONE = (1 << (int)(Uri_PROPERTY_ZONE)); + + [NativeTypeName("#define Uri_CREATE_ALLOW_RELATIVE 0x00000001")] + public const int Uri_CREATE_ALLOW_RELATIVE = 0x00000001; + + [NativeTypeName("#define Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME 0x00000002")] + public const int Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME = 0x00000002; + + [NativeTypeName("#define Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME 0x00000004")] + public const int Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME = 0x00000004; + + [NativeTypeName("#define Uri_CREATE_NOFRAG 0x00000008")] + public const int Uri_CREATE_NOFRAG = 0x00000008; + + [NativeTypeName("#define Uri_CREATE_NO_CANONICALIZE 0x00000010")] + public const int Uri_CREATE_NO_CANONICALIZE = 0x00000010; + + [NativeTypeName("#define Uri_CREATE_CANONICALIZE 0x00000100")] + public const int Uri_CREATE_CANONICALIZE = 0x00000100; + + [NativeTypeName("#define Uri_CREATE_FILE_USE_DOS_PATH 0x00000020")] + public const int Uri_CREATE_FILE_USE_DOS_PATH = 0x00000020; + + [NativeTypeName("#define Uri_CREATE_DECODE_EXTRA_INFO 0x00000040")] + public const int Uri_CREATE_DECODE_EXTRA_INFO = 0x00000040; + + [NativeTypeName("#define Uri_CREATE_NO_DECODE_EXTRA_INFO 0x00000080")] + public const int Uri_CREATE_NO_DECODE_EXTRA_INFO = 0x00000080; + + [NativeTypeName("#define Uri_CREATE_CRACK_UNKNOWN_SCHEMES 0x00000200")] + public const int Uri_CREATE_CRACK_UNKNOWN_SCHEMES = 0x00000200; + + [NativeTypeName("#define Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES 0x00000400")] + public const int Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES = 0x00000400; + + [NativeTypeName("#define Uri_CREATE_PRE_PROCESS_HTML_URI 0x00000800")] + public const int Uri_CREATE_PRE_PROCESS_HTML_URI = 0x00000800; + + [NativeTypeName("#define Uri_CREATE_NO_PRE_PROCESS_HTML_URI 0x00001000")] + public const int Uri_CREATE_NO_PRE_PROCESS_HTML_URI = 0x00001000; + + [NativeTypeName("#define Uri_CREATE_IE_SETTINGS 0x00002000")] + public const int Uri_CREATE_IE_SETTINGS = 0x00002000; + + [NativeTypeName("#define Uri_CREATE_NO_IE_SETTINGS 0x00004000")] + public const int Uri_CREATE_NO_IE_SETTINGS = 0x00004000; + + [NativeTypeName("#define Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS 0x00008000")] + public const int Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS = 0x00008000; + + [NativeTypeName("#define Uri_CREATE_NORMALIZE_INTL_CHARACTERS 0x00010000")] + public const int Uri_CREATE_NORMALIZE_INTL_CHARACTERS = 0x00010000; + + [NativeTypeName("#define Uri_CREATE_CANONICALIZE_ABSOLUTE 0x00020000")] + public const int Uri_CREATE_CANONICALIZE_ABSOLUTE = 0x00020000; + + [NativeTypeName("#define Uri_DISPLAY_NO_FRAGMENT 0x00000001")] + public const int Uri_DISPLAY_NO_FRAGMENT = 0x00000001; + + [NativeTypeName("#define Uri_PUNYCODE_IDN_HOST 0x00000002")] + public const int Uri_PUNYCODE_IDN_HOST = 0x00000002; + + [NativeTypeName("#define Uri_DISPLAY_IDN_HOST 0x00000004")] + public const int Uri_DISPLAY_IDN_HOST = 0x00000004; + + [NativeTypeName("#define Uri_DISPLAY_NO_PUNYCODE 0x00000008")] + public const int Uri_DISPLAY_NO_PUNYCODE = 0x00000008; + + [NativeTypeName("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 0x00000001")] + public const int Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 = 0x00000001; + + [NativeTypeName("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_CP 0x00000002")] + public const int Uri_ENCODING_USER_INFO_AND_PATH_IS_CP = 0x00000002; + + [NativeTypeName("#define Uri_ENCODING_HOST_IS_IDN 0x00000004")] + public const int Uri_ENCODING_HOST_IS_IDN = 0x00000004; + + [NativeTypeName("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 0x00000008")] + public const int Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 = 0x00000008; + + [NativeTypeName("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP 0x00000010")] + public const int Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP = 0x00000010; + + [NativeTypeName("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 0x00000020")] + public const int Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 = 0x00000020; + + [NativeTypeName("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP 0x00000040")] + public const int Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP = 0x00000040; + + [NativeTypeName("#define Uri_ENCODING_RFC (Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 | Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 | Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8)")] + public const int Uri_ENCODING_RFC = (0x00000001 | 0x00000008 | 0x00000020); + } +} diff --git a/sources/Interop/Windows/Windows/um/urlmon/Windows.cs b/sources/Interop/Windows/Windows/um/urlmon/Windows.cs index 1b54c517d1..06a7f3fca3 100644 --- a/sources/Interop/Windows/Windows/um/urlmon/Windows.cs +++ b/sources/Interop/Windows/Windows/um/urlmon/Windows.cs @@ -9,7 +9,6 @@ using static TerraFX.Interop.Windows.IID; using static TerraFX.Interop.Windows.PARSEACTION; using static TerraFX.Interop.Windows.PI_FLAGS; -using static TerraFX.Interop.Windows.Uri_PROPERTY; namespace TerraFX.Interop.Windows { @@ -265,24 +264,9 @@ public static unsafe partial class Windows [NativeTypeName("#define PI_DOCFILECLSIDLOOKUP PI_CLSIDLOOKUP")] public const PI_FLAGS PI_DOCFILECLSIDLOOKUP = PI_CLSIDLOOKUP; - [NativeTypeName("#define SZ_URLCONTEXT OLESTR(\"URL Context\")")] - public const string SZ_URLCONTEXT = "URL Context"; - - [NativeTypeName("#define SZ_ASYNC_CALLEE OLESTR(\"AsyncCallee\")")] - public const string SZ_ASYNC_CALLEE = "AsyncCallee"; - [NativeTypeName("#define MKSYS_URLMONIKER 6")] public const int MKSYS_URLMONIKER = 6; - [NativeTypeName("#define URL_MK_LEGACY 0")] - public const int URL_MK_LEGACY = 0; - - [NativeTypeName("#define URL_MK_UNIFORM 1")] - public const int URL_MK_UNIFORM = 1; - - [NativeTypeName("#define URL_MK_NO_CANONICALIZE 2")] - public const int URL_MK_NO_CANONICALIZE = 2; - [NativeTypeName("#define FIEF_FLAG_FORCE_JITUI 0x1")] public const int FIEF_FLAG_FORCE_JITUI = 0x1; @@ -337,162 +321,6 @@ public static unsafe partial class Windows [NativeTypeName("#define URLMON_OPTION_USE_BROWSERAPPSDOCUMENTS 0x10000010")] public const int URLMON_OPTION_USE_BROWSERAPPSDOCUMENTS = 0x10000010; - [NativeTypeName("#define CF_NULL 0")] - public const int CF_NULL = 0; - - [NativeTypeName("#define MK_S_ASYNCHRONOUS _HRESULT_TYPEDEF_(0x000401E8L)")] - public const int MK_S_ASYNCHRONOUS = ((int)(0x000401E8)); - - [NativeTypeName("#define S_ASYNCHRONOUS MK_S_ASYNCHRONOUS")] - public const int S_ASYNCHRONOUS = ((int)(0x000401E8)); - - [NativeTypeName("#define Uri_HAS_ABSOLUTE_URI (1 << Uri_PROPERTY_ABSOLUTE_URI)")] - public const int Uri_HAS_ABSOLUTE_URI = (1 << (int)(Uri_PROPERTY_ABSOLUTE_URI)); - - [NativeTypeName("#define Uri_HAS_AUTHORITY (1 << Uri_PROPERTY_AUTHORITY)")] - public const int Uri_HAS_AUTHORITY = (1 << (int)(Uri_PROPERTY_AUTHORITY)); - - [NativeTypeName("#define Uri_HAS_DISPLAY_URI (1 << Uri_PROPERTY_DISPLAY_URI)")] - public const int Uri_HAS_DISPLAY_URI = (1 << (int)(Uri_PROPERTY_DISPLAY_URI)); - - [NativeTypeName("#define Uri_HAS_DOMAIN (1 << Uri_PROPERTY_DOMAIN)")] - public const int Uri_HAS_DOMAIN = (1 << (int)(Uri_PROPERTY_DOMAIN)); - - [NativeTypeName("#define Uri_HAS_EXTENSION (1 << Uri_PROPERTY_EXTENSION)")] - public const int Uri_HAS_EXTENSION = (1 << (int)(Uri_PROPERTY_EXTENSION)); - - [NativeTypeName("#define Uri_HAS_FRAGMENT (1 << Uri_PROPERTY_FRAGMENT)")] - public const int Uri_HAS_FRAGMENT = (1 << (int)(Uri_PROPERTY_FRAGMENT)); - - [NativeTypeName("#define Uri_HAS_HOST (1 << Uri_PROPERTY_HOST)")] - public const int Uri_HAS_HOST = (1 << (int)(Uri_PROPERTY_HOST)); - - [NativeTypeName("#define Uri_HAS_PASSWORD (1 << Uri_PROPERTY_PASSWORD)")] - public const int Uri_HAS_PASSWORD = (1 << (int)(Uri_PROPERTY_PASSWORD)); - - [NativeTypeName("#define Uri_HAS_PATH (1 << Uri_PROPERTY_PATH)")] - public const int Uri_HAS_PATH = (1 << (int)(Uri_PROPERTY_PATH)); - - [NativeTypeName("#define Uri_HAS_QUERY (1 << Uri_PROPERTY_QUERY)")] - public const int Uri_HAS_QUERY = (1 << (int)(Uri_PROPERTY_QUERY)); - - [NativeTypeName("#define Uri_HAS_RAW_URI (1 << Uri_PROPERTY_RAW_URI)")] - public const int Uri_HAS_RAW_URI = (1 << (int)(Uri_PROPERTY_RAW_URI)); - - [NativeTypeName("#define Uri_HAS_SCHEME_NAME (1 << Uri_PROPERTY_SCHEME_NAME)")] - public const int Uri_HAS_SCHEME_NAME = (1 << (int)(Uri_PROPERTY_SCHEME_NAME)); - - [NativeTypeName("#define Uri_HAS_USER_NAME (1 << Uri_PROPERTY_USER_NAME)")] - public const int Uri_HAS_USER_NAME = (1 << (int)(Uri_PROPERTY_USER_NAME)); - - [NativeTypeName("#define Uri_HAS_PATH_AND_QUERY (1 << Uri_PROPERTY_PATH_AND_QUERY)")] - public const int Uri_HAS_PATH_AND_QUERY = (1 << (int)(Uri_PROPERTY_PATH_AND_QUERY)); - - [NativeTypeName("#define Uri_HAS_USER_INFO (1 << Uri_PROPERTY_USER_INFO)")] - public const int Uri_HAS_USER_INFO = (1 << (int)(Uri_PROPERTY_USER_INFO)); - - [NativeTypeName("#define Uri_HAS_HOST_TYPE (1 << Uri_PROPERTY_HOST_TYPE)")] - public const int Uri_HAS_HOST_TYPE = (1 << (int)(Uri_PROPERTY_HOST_TYPE)); - - [NativeTypeName("#define Uri_HAS_PORT (1 << Uri_PROPERTY_PORT)")] - public const int Uri_HAS_PORT = (1 << (int)(Uri_PROPERTY_PORT)); - - [NativeTypeName("#define Uri_HAS_SCHEME (1 << Uri_PROPERTY_SCHEME)")] - public const int Uri_HAS_SCHEME = (1 << (int)(Uri_PROPERTY_SCHEME)); - - [NativeTypeName("#define Uri_HAS_ZONE (1 << Uri_PROPERTY_ZONE)")] - public const int Uri_HAS_ZONE = (1 << (int)(Uri_PROPERTY_ZONE)); - - [NativeTypeName("#define Uri_CREATE_ALLOW_RELATIVE 0x00000001")] - public const int Uri_CREATE_ALLOW_RELATIVE = 0x00000001; - - [NativeTypeName("#define Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME 0x00000002")] - public const int Uri_CREATE_ALLOW_IMPLICIT_WILDCARD_SCHEME = 0x00000002; - - [NativeTypeName("#define Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME 0x00000004")] - public const int Uri_CREATE_ALLOW_IMPLICIT_FILE_SCHEME = 0x00000004; - - [NativeTypeName("#define Uri_CREATE_NOFRAG 0x00000008")] - public const int Uri_CREATE_NOFRAG = 0x00000008; - - [NativeTypeName("#define Uri_CREATE_NO_CANONICALIZE 0x00000010")] - public const int Uri_CREATE_NO_CANONICALIZE = 0x00000010; - - [NativeTypeName("#define Uri_CREATE_CANONICALIZE 0x00000100")] - public const int Uri_CREATE_CANONICALIZE = 0x00000100; - - [NativeTypeName("#define Uri_CREATE_FILE_USE_DOS_PATH 0x00000020")] - public const int Uri_CREATE_FILE_USE_DOS_PATH = 0x00000020; - - [NativeTypeName("#define Uri_CREATE_DECODE_EXTRA_INFO 0x00000040")] - public const int Uri_CREATE_DECODE_EXTRA_INFO = 0x00000040; - - [NativeTypeName("#define Uri_CREATE_NO_DECODE_EXTRA_INFO 0x00000080")] - public const int Uri_CREATE_NO_DECODE_EXTRA_INFO = 0x00000080; - - [NativeTypeName("#define Uri_CREATE_CRACK_UNKNOWN_SCHEMES 0x00000200")] - public const int Uri_CREATE_CRACK_UNKNOWN_SCHEMES = 0x00000200; - - [NativeTypeName("#define Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES 0x00000400")] - public const int Uri_CREATE_NO_CRACK_UNKNOWN_SCHEMES = 0x00000400; - - [NativeTypeName("#define Uri_CREATE_PRE_PROCESS_HTML_URI 0x00000800")] - public const int Uri_CREATE_PRE_PROCESS_HTML_URI = 0x00000800; - - [NativeTypeName("#define Uri_CREATE_NO_PRE_PROCESS_HTML_URI 0x00001000")] - public const int Uri_CREATE_NO_PRE_PROCESS_HTML_URI = 0x00001000; - - [NativeTypeName("#define Uri_CREATE_IE_SETTINGS 0x00002000")] - public const int Uri_CREATE_IE_SETTINGS = 0x00002000; - - [NativeTypeName("#define Uri_CREATE_NO_IE_SETTINGS 0x00004000")] - public const int Uri_CREATE_NO_IE_SETTINGS = 0x00004000; - - [NativeTypeName("#define Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS 0x00008000")] - public const int Uri_CREATE_NO_ENCODE_FORBIDDEN_CHARACTERS = 0x00008000; - - [NativeTypeName("#define Uri_CREATE_NORMALIZE_INTL_CHARACTERS 0x00010000")] - public const int Uri_CREATE_NORMALIZE_INTL_CHARACTERS = 0x00010000; - - [NativeTypeName("#define Uri_CREATE_CANONICALIZE_ABSOLUTE 0x00020000")] - public const int Uri_CREATE_CANONICALIZE_ABSOLUTE = 0x00020000; - - [NativeTypeName("#define Uri_DISPLAY_NO_FRAGMENT 0x00000001")] - public const int Uri_DISPLAY_NO_FRAGMENT = 0x00000001; - - [NativeTypeName("#define Uri_PUNYCODE_IDN_HOST 0x00000002")] - public const int Uri_PUNYCODE_IDN_HOST = 0x00000002; - - [NativeTypeName("#define Uri_DISPLAY_IDN_HOST 0x00000004")] - public const int Uri_DISPLAY_IDN_HOST = 0x00000004; - - [NativeTypeName("#define Uri_DISPLAY_NO_PUNYCODE 0x00000008")] - public const int Uri_DISPLAY_NO_PUNYCODE = 0x00000008; - - [NativeTypeName("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 0x00000001")] - public const int Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 = 0x00000001; - - [NativeTypeName("#define Uri_ENCODING_USER_INFO_AND_PATH_IS_CP 0x00000002")] - public const int Uri_ENCODING_USER_INFO_AND_PATH_IS_CP = 0x00000002; - - [NativeTypeName("#define Uri_ENCODING_HOST_IS_IDN 0x00000004")] - public const int Uri_ENCODING_HOST_IS_IDN = 0x00000004; - - [NativeTypeName("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 0x00000008")] - public const int Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 = 0x00000008; - - [NativeTypeName("#define Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP 0x00000010")] - public const int Uri_ENCODING_HOST_IS_PERCENT_ENCODED_CP = 0x00000010; - - [NativeTypeName("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 0x00000020")] - public const int Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8 = 0x00000020; - - [NativeTypeName("#define Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP 0x00000040")] - public const int Uri_ENCODING_QUERY_AND_FRAGMENT_IS_CP = 0x00000040; - - [NativeTypeName("#define Uri_ENCODING_RFC (Uri_ENCODING_USER_INFO_AND_PATH_IS_PERCENT_ENCODED_UTF8 | Uri_ENCODING_HOST_IS_PERCENT_ENCODED_UTF8 | Uri_ENCODING_QUERY_AND_FRAGMENT_IS_PERCENT_ENCODED_UTF8)")] - public const int Uri_ENCODING_RFC = (0x00000001 | 0x00000008 | 0x00000020); - [NativeTypeName("#define UriBuilder_USE_ORIGINAL_FLAGS 0x00000001")] public const int UriBuilder_USE_ORIGINAL_FLAGS = 0x00000001; @@ -535,54 +363,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PARSE_DECODE PARSE_DECODE_IS_ESCAPE")] public const PARSEACTION PARSE_DECODE = PARSE_DECODE_IS_ESCAPE; - [NativeTypeName("#define SET_FEATURE_ON_THREAD 0x00000001")] - public const int SET_FEATURE_ON_THREAD = 0x00000001; - - [NativeTypeName("#define SET_FEATURE_ON_PROCESS 0x00000002")] - public const int SET_FEATURE_ON_PROCESS = 0x00000002; - - [NativeTypeName("#define SET_FEATURE_IN_REGISTRY 0x00000004")] - public const int SET_FEATURE_IN_REGISTRY = 0x00000004; - - [NativeTypeName("#define SET_FEATURE_ON_THREAD_LOCALMACHINE 0x00000008")] - public const int SET_FEATURE_ON_THREAD_LOCALMACHINE = 0x00000008; - - [NativeTypeName("#define SET_FEATURE_ON_THREAD_INTRANET 0x00000010")] - public const int SET_FEATURE_ON_THREAD_INTRANET = 0x00000010; - - [NativeTypeName("#define SET_FEATURE_ON_THREAD_TRUSTED 0x00000020")] - public const int SET_FEATURE_ON_THREAD_TRUSTED = 0x00000020; - - [NativeTypeName("#define SET_FEATURE_ON_THREAD_INTERNET 0x00000040")] - public const int SET_FEATURE_ON_THREAD_INTERNET = 0x00000040; - - [NativeTypeName("#define SET_FEATURE_ON_THREAD_RESTRICTED 0x00000080")] - public const int SET_FEATURE_ON_THREAD_RESTRICTED = 0x00000080; - - [NativeTypeName("#define GET_FEATURE_FROM_THREAD 0x00000001")] - public const int GET_FEATURE_FROM_THREAD = 0x00000001; - - [NativeTypeName("#define GET_FEATURE_FROM_PROCESS 0x00000002")] - public const int GET_FEATURE_FROM_PROCESS = 0x00000002; - - [NativeTypeName("#define GET_FEATURE_FROM_REGISTRY 0x00000004")] - public const int GET_FEATURE_FROM_REGISTRY = 0x00000004; - - [NativeTypeName("#define GET_FEATURE_FROM_THREAD_LOCALMACHINE 0x00000008")] - public const int GET_FEATURE_FROM_THREAD_LOCALMACHINE = 0x00000008; - - [NativeTypeName("#define GET_FEATURE_FROM_THREAD_INTRANET 0x00000010")] - public const int GET_FEATURE_FROM_THREAD_INTRANET = 0x00000010; - - [NativeTypeName("#define GET_FEATURE_FROM_THREAD_TRUSTED 0x00000020")] - public const int GET_FEATURE_FROM_THREAD_TRUSTED = 0x00000020; - - [NativeTypeName("#define GET_FEATURE_FROM_THREAD_INTERNET 0x00000040")] - public const int GET_FEATURE_FROM_THREAD_INTERNET = 0x00000040; - - [NativeTypeName("#define GET_FEATURE_FROM_THREAD_RESTRICTED 0x00000080")] - public const int GET_FEATURE_FROM_THREAD_RESTRICTED = 0x00000080; - [NativeTypeName("#define OInetParseUrl CoInternetParseUrl")] public static delegate* OInetParseUrl => &CoInternetParseUrl; @@ -619,114 +399,6 @@ public static unsafe partial class Windows [NativeTypeName("#define SID_SInternetHostSecurityManager IID_IInternetHostSecurityManager")] public static ref readonly Guid SID_SInternetHostSecurityManager => ref IID_IInternetHostSecurityManager; - [NativeTypeName("#define MUTZ_NOSAVEDFILECHECK 0x00000001")] - public const int MUTZ_NOSAVEDFILECHECK = 0x00000001; - - [NativeTypeName("#define MUTZ_ISFILE 0x00000002")] - public const int MUTZ_ISFILE = 0x00000002; - - [NativeTypeName("#define MUTZ_ACCEPT_WILDCARD_SCHEME 0x00000080")] - public const int MUTZ_ACCEPT_WILDCARD_SCHEME = 0x00000080; - - [NativeTypeName("#define MUTZ_ENFORCERESTRICTED 0x00000100")] - public const int MUTZ_ENFORCERESTRICTED = 0x00000100; - - [NativeTypeName("#define MUTZ_RESERVED 0x00000200")] - public const int MUTZ_RESERVED = 0x00000200; - - [NativeTypeName("#define MUTZ_REQUIRESAVEDFILECHECK 0x00000400")] - public const int MUTZ_REQUIRESAVEDFILECHECK = 0x00000400; - - [NativeTypeName("#define MUTZ_DONT_UNESCAPE 0x00000800")] - public const int MUTZ_DONT_UNESCAPE = 0x00000800; - - [NativeTypeName("#define MUTZ_DONT_USE_CACHE 0x00001000")] - public const int MUTZ_DONT_USE_CACHE = 0x00001000; - - [NativeTypeName("#define MUTZ_FORCE_INTRANET_FLAGS 0x00002000")] - public const int MUTZ_FORCE_INTRANET_FLAGS = 0x00002000; - - [NativeTypeName("#define MUTZ_IGNORE_ZONE_MAPPINGS 0x00004000")] - public const int MUTZ_IGNORE_ZONE_MAPPINGS = 0x00004000; - - [NativeTypeName("#define URLPOLICY_ACTIVEX_CHECK_LIST 0x00010000")] - public const int URLPOLICY_ACTIVEX_CHECK_LIST = 0x00010000; - - [NativeTypeName("#define URLPOLICY_CREDENTIALS_SILENT_LOGON_OK 0x00000000")] - public const int URLPOLICY_CREDENTIALS_SILENT_LOGON_OK = 0x00000000; - - [NativeTypeName("#define URLPOLICY_CREDENTIALS_MUST_PROMPT_USER 0x00010000")] - public const int URLPOLICY_CREDENTIALS_MUST_PROMPT_USER = 0x00010000; - - [NativeTypeName("#define URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT 0x00020000")] - public const int URLPOLICY_CREDENTIALS_CONDITIONAL_PROMPT = 0x00020000; - - [NativeTypeName("#define URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY 0x00030000")] - public const int URLPOLICY_CREDENTIALS_ANONYMOUS_ONLY = 0x00030000; - - [NativeTypeName("#define URLPOLICY_AUTHENTICATE_CLEARTEXT_OK 0x00000000")] - public const int URLPOLICY_AUTHENTICATE_CLEARTEXT_OK = 0x00000000; - - [NativeTypeName("#define URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE 0x00010000")] - public const int URLPOLICY_AUTHENTICATE_CHALLENGE_RESPONSE = 0x00010000; - - [NativeTypeName("#define URLPOLICY_AUTHENTICATE_MUTUAL_ONLY 0x00030000")] - public const int URLPOLICY_AUTHENTICATE_MUTUAL_ONLY = 0x00030000; - - [NativeTypeName("#define URLPOLICY_JAVA_PROHIBIT 0x00000000")] - public const int URLPOLICY_JAVA_PROHIBIT = 0x00000000; - - [NativeTypeName("#define URLPOLICY_JAVA_HIGH 0x00010000")] - public const int URLPOLICY_JAVA_HIGH = 0x00010000; - - [NativeTypeName("#define URLPOLICY_JAVA_MEDIUM 0x00020000")] - public const int URLPOLICY_JAVA_MEDIUM = 0x00020000; - - [NativeTypeName("#define URLPOLICY_JAVA_LOW 0x00030000")] - public const int URLPOLICY_JAVA_LOW = 0x00030000; - - [NativeTypeName("#define URLPOLICY_JAVA_CUSTOM 0x00800000")] - public const int URLPOLICY_JAVA_CUSTOM = 0x00800000; - - [NativeTypeName("#define URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT 0x00010000")] - public const int URLPOLICY_CHANNEL_SOFTDIST_PROHIBIT = 0x00010000; - - [NativeTypeName("#define URLPOLICY_CHANNEL_SOFTDIST_PRECACHE 0x00020000")] - public const int URLPOLICY_CHANNEL_SOFTDIST_PRECACHE = 0x00020000; - - [NativeTypeName("#define URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL 0x00030000")] - public const int URLPOLICY_CHANNEL_SOFTDIST_AUTOINSTALL = 0x00030000; - - [NativeTypeName("#define URLPOLICY_BEHAVIOR_CHECK_LIST 0x00010000")] - public const int URLPOLICY_BEHAVIOR_CHECK_LIST = 0x00010000; - - [NativeTypeName("#define URLPOLICY_ALLOW 0x00")] - public const int URLPOLICY_ALLOW = 0x00; - - [NativeTypeName("#define URLPOLICY_QUERY 0x01")] - public const int URLPOLICY_QUERY = 0x01; - - [NativeTypeName("#define URLPOLICY_DISALLOW 0x03")] - public const int URLPOLICY_DISALLOW = 0x03; - - [NativeTypeName("#define URLPOLICY_NOTIFY_ON_ALLOW 0x10")] - public const int URLPOLICY_NOTIFY_ON_ALLOW = 0x10; - - [NativeTypeName("#define URLPOLICY_NOTIFY_ON_DISALLOW 0x20")] - public const int URLPOLICY_NOTIFY_ON_DISALLOW = 0x20; - - [NativeTypeName("#define URLPOLICY_LOG_ON_ALLOW 0x40")] - public const int URLPOLICY_LOG_ON_ALLOW = 0x40; - - [NativeTypeName("#define URLPOLICY_LOG_ON_DISALLOW 0x80")] - public const int URLPOLICY_LOG_ON_DISALLOW = 0x80; - - [NativeTypeName("#define URLPOLICY_MASK_PERMISSIONS 0x0f")] - public const int URLPOLICY_MASK_PERMISSIONS = 0x0f; - - [NativeTypeName("#define URLPOLICY_DONTCHECKDLGBOX 0x100")] - public const int URLPOLICY_DONTCHECKDLGBOX = 0x100; - [NativeTypeName("#define URLZONE_ESC_FLAG 0x100")] public const int URLZONE_ESC_FLAG = 0x100; diff --git a/sources/Interop/Windows/Windows/um/vssym32/Windows.cs b/sources/Interop/Windows/Windows/um/vssym32/Windows.cs deleted file mode 100644 index fbda611b5f..0000000000 --- a/sources/Interop/Windows/Windows/um/vssym32/Windows.cs +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. - -// Ported from um/vssym32.h in the Windows SDK for Windows 10.0.20348.0 -// Original source is Copyright © Microsoft. All rights reserved. - -namespace TerraFX.Interop.Windows -{ - public static partial class Windows - { - [NativeTypeName("#define VSCLASS_LINK L\"LINK\"")] - public const string VSCLASS_LINK = "LINK"; - - [NativeTypeName("#define VSCLASS_EMPTYMARKUP L\"EMPTYMARKUP\"")] - public const string VSCLASS_EMPTYMARKUP = "EMPTYMARKUP"; - - [NativeTypeName("#define VSCLASS_STATIC L\"STATIC\"")] - public const string VSCLASS_STATIC = "STATIC"; - - [NativeTypeName("#define VSCLASS_PAGE L\"PAGE\"")] - public const string VSCLASS_PAGE = "PAGE"; - - [NativeTypeName("#define VSCLASS_MONTHCAL L\"MONTHCAL\"")] - public const string VSCLASS_MONTHCAL = "MONTHCAL"; - - [NativeTypeName("#define VSCLASS_CLOCK L\"CLOCK\"")] - public const string VSCLASS_CLOCK = "CLOCK"; - - [NativeTypeName("#define VSCLASS_TRAYNOTIFY L\"TRAYNOTIFY\"")] - public const string VSCLASS_TRAYNOTIFY = "TRAYNOTIFY"; - - [NativeTypeName("#define VSCLASS_TASKBAR L\"TASKBAR\"")] - public const string VSCLASS_TASKBAR = "TASKBAR"; - - [NativeTypeName("#define VSCLASS_TASKBAND L\"TASKBAND\"")] - public const string VSCLASS_TASKBAND = "TASKBAND"; - - [NativeTypeName("#define VSCLASS_STARTPANEL L\"STARTPANEL\"")] - public const string VSCLASS_STARTPANEL = "STARTPANEL"; - - [NativeTypeName("#define VSCLASS_MENUBAND L\"MENUBAND\"")] - public const string VSCLASS_MENUBAND = "MENUBAND"; - } -} diff --git a/sources/Interop/Windows/Windows/um/wincodec/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/wincodec/CLSID.Manual.cs similarity index 97% rename from sources/Interop/Windows/Windows/um/wincodec/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/wincodec/CLSID.Manual.cs index 78c6f1e728..d2db0dcf5a 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/CLSID.Manual.cs @@ -9,7 +9,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class CLSID { public static ref readonly Guid CLSID_WICImagingFactory { diff --git a/sources/Interop/Windows/Windows/um/wincodec/GUID.cs b/sources/Interop/Windows/Windows/um/wincodec/GUID.cs new file mode 100644 index 0000000000..03fa8e2f59 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincodec/GUID.cs @@ -0,0 +1,2618 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VendorMicrosoft + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCA, 0x49, 0xE7, 0xF0, + 0xEF, 0xED, + 0x89, 0x45, + 0xA7, + 0x3A, + 0xEE, + 0x0E, + 0x62, + 0x6A, + 0x2A, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VendorMicrosoftBuiltIn + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFD, 0x30, 0x7A, 0x25, + 0xB6, 0x06, + 0x2B, 0x46, + 0xAE, + 0xA4, + 0x63, + 0xF7, + 0x0B, + 0x86, + 0xE5, + 0x33 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatBmp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7E, 0xD8, 0xF1, 0x0A, + 0xFE, 0xFC, + 0x88, 0x41, + 0xBD, + 0xEB, + 0xA7, + 0x90, + 0x64, + 0x71, + 0xCB, + 0xE3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatPng + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF4, 0xFA, 0x7C, 0x1B, + 0x3F, 0x71, + 0x3C, 0x47, + 0xBB, + 0xCD, + 0x61, + 0x37, + 0x42, + 0x5F, + 0xAE, + 0xAF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatIco + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0x60, 0xA8, 0xA3, + 0x8F, 0x33, + 0x17, 0x4C, + 0x91, + 0x9A, + 0xFB, + 0xA4, + 0xB5, + 0x62, + 0x8F, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatJpeg + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0xA5, 0xE4, 0x19, + 0x62, 0x56, + 0xC5, 0x4F, + 0xA0, + 0xC0, + 0x17, + 0x58, + 0x02, + 0x8E, + 0x10, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatTiff + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x30, 0xCC, 0x3B, 0x16, + 0xE9, 0xE2, + 0x0B, 0x4F, + 0x96, + 0x1D, + 0xA3, + 0xE9, + 0xFD, + 0xB7, + 0x88, + 0xA3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatGif + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0x56, 0x8A, 0x1F, + 0x4D, 0x7D, + 0xBD, 0x4C, + 0x9C, + 0x82, + 0x1B, + 0xC8, + 0xD4, + 0xEE, + 0xB9, + 0xA5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatWmp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x7C, 0xA3, 0x57, + 0x7A, 0x36, + 0x40, 0x45, + 0x91, + 0x6B, + 0xF1, + 0x83, + 0xC5, + 0x09, + 0x3A, + 0x4B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatDds + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x95, 0xCB, 0x67, 0x99, + 0x85, 0x2E, + 0xC8, 0x4A, + 0x8C, + 0xA2, + 0x83, + 0xD7, + 0xCC, + 0xD4, + 0x25, + 0xC9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatAdng + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0D, 0x6D, 0xFF, 0xF3, + 0xC0, 0x38, + 0xC4, 0x41, + 0xB1, + 0xFE, + 0x1F, + 0x38, + 0x24, + 0xF1, + 0x7B, + 0x84 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatHeif + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x21, 0x25, 0xE6, 0xE1, + 0x87, 0x67, + 0x5B, 0x40, + 0xA3, + 0x39, + 0x50, + 0x07, + 0x15, + 0xB5, + 0x76, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatWebp + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE2, 0xB0, 0x94, 0xE0, + 0xF2, 0x67, + 0xB3, 0x45, + 0xB0, + 0xEA, + 0x11, + 0x53, + 0x37, + 0xCA, + 0x7C, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ContainerFormatRaw + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x60, 0xCE, 0x99, 0xFE, + 0x9C, 0xF1, + 0x3C, 0x43, + 0xA3, + 0xAE, + 0x00, + 0xAC, + 0xEF, + 0xA9, + 0xCA, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormatDontCare + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat1bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat2bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x02 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat4bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x03 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppIndexed + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x04 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormatBlackWhite + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x05 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat2bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat4bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x07 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x08 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x16, 0x01, 0xCD, 0xE6, + 0xBA, 0xEE, + 0x61, 0x41, + 0xAA, + 0x85, + 0x27, + 0xDD, + 0x9F, + 0xB3, + 0xA8, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppBGR555 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x09 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppBGR565 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppBGRA5551 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2B, 0x7C, 0xEC, 0x05, + 0xE6, 0xF1, + 0x61, 0x49, + 0xAD, + 0x46, + 0xE1, + 0xCC, + 0x81, + 0x0A, + 0x87, + 0xD2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppGray + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat24bppBGR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat24bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppBGR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x0F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppPBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x10 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppGrayFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x11 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x95, 0x6B, 0x8C, 0xD9, + 0xFE, 0x3E, + 0xD6, 0x47, + 0xBB, + 0x25, + 0xEB, + 0x17, + 0x48, + 0xAB, + 0x0C, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2D, 0xAD, 0xC7, 0xF5, + 0x8D, 0x6A, + 0xDD, 0x43, + 0xA7, + 0xA8, + 0xA2, + 0x99, + 0x35, + 0x26, + 0x1A, + 0xE9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppPRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0xA6, 0xC4, 0x3C, + 0x27, 0xA5, + 0x37, 0x4D, + 0xA9, + 0x16, + 0x31, + 0x42, + 0xC7, + 0xEB, + 0xED, + 0xBA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x15 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppBGR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x84, 0xA3, 0x05, 0xE6, + 0x68, 0xB4, + 0xCE, 0x46, + 0xBB, + 0x2E, + 0x36, + 0xF1, + 0x80, + 0xE6, + 0x43, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0x21, 0x18, 0xA1, + 0x6D, 0x18, + 0x42, 0x4D, + 0xBC, + 0x6A, + 0x9C, + 0x83, + 0x03, + 0xA8, + 0xDF, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x16 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7C, 0xFF, 0x62, 0x15, + 0x52, 0xD3, + 0xF9, 0x46, + 0x97, + 0x9E, + 0x42, + 0x97, + 0x6B, + 0x79, + 0x22, + 0x46 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppPRGBA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x17 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppPBGRA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8E, 0x8E, 0x51, 0x8C, + 0xEC, 0xA4, + 0x8B, 0x46, + 0xAE, + 0x70, + 0xC9, + 0xA3, + 0x5A, + 0x9C, + 0x55, + 0x30 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppGrayFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x13 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppBGR101010 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x14 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x12 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppBGRFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0x14, 0xCA, 0x49, + 0xB6, 0xCA, + 0x3B, 0x49, + 0x9D, + 0xDF, + 0x60, + 0x18, + 0x7C, + 0x37, + 0x53, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bppRGBFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8F, 0xD7, 0xFE, 0xE3, + 0xDB, 0xE8, + 0xCF, 0x4A, + 0x84, + 0xC1, + 0xE9, + 0x7F, + 0x61, + 0x36, + 0xB3, + 0x27 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBAFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppPRGBAFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBFloat + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppCMYK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBAFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppBGRAFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3C, 0xE3, 0x6D, 0x35, + 0xD2, 0x54, + 0x23, 0x4A, + 0xBB, + 0x04, + 0x9B, + 0x7B, + 0xF9, + 0xB1, + 0xD4, + 0x2D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x40 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBAFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bppRGBFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBAHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppPRGBAHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC2, 0x26, 0xAD, 0x58, + 0x23, 0xC6, + 0x9D, 0x4D, + 0xB3, + 0x20, + 0x38, + 0x7E, + 0x49, + 0xF8, + 0xC4, + 0x42 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppRGBHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x42 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bppRGBHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppGrayHalf + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppGrayFixedPoint + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x3F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBA1010102 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x72, 0x8D, 0x23, 0x25, + 0xF9, 0xFC, + 0x22, 0x45, + 0xB5, + 0x14, + 0x55, + 0x78, + 0xE5, + 0xAD, + 0x55, + 0xE0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppRGBA1010102XR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9A, 0x6B, 0xDE, 0x00, + 0x01, 0xC1, + 0x4B, 0x43, + 0xB5, + 0x02, + 0xD0, + 0x16, + 0x5E, + 0xE1, + 0x12, + 0x2C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppR10G10B10A2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB5, 0x1B, 0x4E, 0x60, + 0x3C, 0x8A, + 0x65, 0x4B, + 0xB1, + 0x1C, + 0xBC, + 0x0B, + 0x8D, + 0xD7, + 0x5B, + 0x7F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bppR10G10B10A2HDR10 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5D, 0x5C, 0x21, 0x9C, + 0xCC, 0x1A, + 0x0E, 0x4F, + 0xA4, + 0xBC, + 0x70, + 0xFB, + 0x3A, + 0xE8, + 0xFD, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bppCMYK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x1F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat24bpp3Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bpp4Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat40bpp5Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x22 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bpp6Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x23 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat56bpp7Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x24 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp8Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x25 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bpp3Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x26 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp4Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x27 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat80bpp5Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bpp6Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat112bpp7Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bpp8Channels + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat40bppCMYKAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat80bppCMYKAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat32bpp3ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat40bpp4ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x2F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat48bpp5ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x30 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat56bpp6ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x31 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp7ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x32 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat72bpp8ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x33 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat64bpp3ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x34 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat80bpp4ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x35 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat96bpp5ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x36 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat112bpp6ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat128bpp7ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x38 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat144bpp8ChannelsAlpha + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xC3, 0xDD, 0x6F, + 0x03, 0x4E, + 0xFE, 0x4B, + 0xB1, + 0x85, + 0x3D, + 0x77, + 0x76, + 0x8D, + 0xC9, + 0x39 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x54, 0xDB, 0xB4, 0x91, + 0xF9, 0x2D, + 0xF0, 0x42, + 0xB4, + 0x49, + 0x29, + 0x09, + 0xBB, + 0x3D, + 0xF8, + 0x8E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppCb + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x24, 0xF2, 0x39, 0x13, + 0xFE, 0x6B, + 0x3E, 0x4C, + 0x93, + 0x02, + 0xE4, + 0xF3, + 0xA6, + 0xD0, + 0xCA, + 0x2A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat8bppCr + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x50, 0x14, 0xB8, + 0x16, 0x21, + 0xF0, 0x49, + 0x88, + 0x35, + 0xED, + 0x84, + 0x4B, + 0x20, + 0x5C, + 0x51 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppCbCr + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6E, 0xBA, 0x95, 0xFF, + 0xE0, 0x11, + 0x63, 0x42, + 0xBB, + 0x45, + 0x01, + 0x72, + 0x1F, + 0x34, + 0x60, + 0xA4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppYQuantizedDctCoefficients + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x33, 0xF4, 0x55, 0xA3, + 0xE8, 0x48, + 0x42, 0x4A, + 0x84, + 0xD8, + 0xE2, + 0xAA, + 0x26, + 0xCA, + 0x80, + 0xA4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppCbQuantizedDctCoefficients + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x61, 0xFF, 0xC4, 0xD2, + 0xA5, 0x56, + 0xC2, 0x49, + 0x8B, + 0x5C, + 0x4C, + 0x19, + 0x25, + 0x96, + 0x48, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_WICPixelFormat16bppCrQuantizedDctCoefficients + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF0, 0x54, 0xE3, 0x2F, + 0x80, 0x16, + 0xD8, 0x42, + 0x92, + 0x31, + 0xE7, + 0x3C, + 0x05, + 0x65, + 0xBF, + 0xC1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define GUID_WICPixelFormatUndefined GUID_WICPixelFormatDontCare")] + public static ref readonly Guid GUID_WICPixelFormatUndefined => ref GUID_WICPixelFormatDontCare; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincodec/WIC.cs b/sources/Interop/Windows/Windows/um/wincodec/WIC.cs new file mode 100644 index 0000000000..ac8244c7b2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincodec/WIC.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WIC + { + [NativeTypeName("#define WIC_JPEG_MAX_COMPONENT_COUNT ( 4 )")] + public const int WIC_JPEG_MAX_COMPONENT_COUNT = (4); + + [NativeTypeName("#define WIC_JPEG_MAX_TABLE_INDEX ( 3 )")] + public const int WIC_JPEG_MAX_TABLE_INDEX = (3); + + [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_ONE ( 0x11 )")] + public const int WIC_JPEG_SAMPLE_FACTORS_ONE = (0x11); + + [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_420 ( 0x111122 )")] + public const int WIC_JPEG_SAMPLE_FACTORS_THREE_420 = (0x111122); + + [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_422 ( 0x111121 )")] + public const int WIC_JPEG_SAMPLE_FACTORS_THREE_422 = (0x111121); + + [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_440 ( 0x111112 )")] + public const int WIC_JPEG_SAMPLE_FACTORS_THREE_440 = (0x111112); + + [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_444 ( 0x111111 )")] + public const int WIC_JPEG_SAMPLE_FACTORS_THREE_444 = (0x111111); + + [NativeTypeName("#define WIC_JPEG_QUANTIZATION_BASELINE_ONE ( 0 )")] + public const int WIC_JPEG_QUANTIZATION_BASELINE_ONE = (0); + + [NativeTypeName("#define WIC_JPEG_QUANTIZATION_BASELINE_THREE ( 0x10100 )")] + public const int WIC_JPEG_QUANTIZATION_BASELINE_THREE = (0x10100); + + [NativeTypeName("#define WIC_JPEG_HUFFMAN_BASELINE_ONE ( 0 )")] + public const int WIC_JPEG_HUFFMAN_BASELINE_ONE = (0); + + [NativeTypeName("#define WIC_JPEG_HUFFMAN_BASELINE_THREE ( 0x111100 )")] + public const int WIC_JPEG_HUFFMAN_BASELINE_THREE = (0x111100); + } +} diff --git a/sources/Interop/Windows/Windows/um/wincodec/WICRawChangeNotification.cs b/sources/Interop/Windows/Windows/um/wincodec/WICRawChangeNotification.cs new file mode 100644 index 0000000000..43e0449f6e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincodec/WICRawChangeNotification.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WICRawChangeNotification + { + [NativeTypeName("#define WICRawChangeNotification_ExposureCompensation 0x00000001")] + public const int WICRawChangeNotification_ExposureCompensation = 0x00000001; + + [NativeTypeName("#define WICRawChangeNotification_NamedWhitePoint 0x00000002")] + public const int WICRawChangeNotification_NamedWhitePoint = 0x00000002; + + [NativeTypeName("#define WICRawChangeNotification_KelvinWhitePoint 0x00000004")] + public const int WICRawChangeNotification_KelvinWhitePoint = 0x00000004; + + [NativeTypeName("#define WICRawChangeNotification_RGBWhitePoint 0x00000008")] + public const int WICRawChangeNotification_RGBWhitePoint = 0x00000008; + + [NativeTypeName("#define WICRawChangeNotification_Contrast 0x00000010")] + public const int WICRawChangeNotification_Contrast = 0x00000010; + + [NativeTypeName("#define WICRawChangeNotification_Gamma 0x00000020")] + public const int WICRawChangeNotification_Gamma = 0x00000020; + + [NativeTypeName("#define WICRawChangeNotification_Sharpness 0x00000040")] + public const int WICRawChangeNotification_Sharpness = 0x00000040; + + [NativeTypeName("#define WICRawChangeNotification_Saturation 0x00000080")] + public const int WICRawChangeNotification_Saturation = 0x00000080; + + [NativeTypeName("#define WICRawChangeNotification_Tint 0x00000100")] + public const int WICRawChangeNotification_Tint = 0x00000100; + + [NativeTypeName("#define WICRawChangeNotification_NoiseReduction 0x00000200")] + public const int WICRawChangeNotification_NoiseReduction = 0x00000200; + + [NativeTypeName("#define WICRawChangeNotification_DestinationColorContext 0x00000400")] + public const int WICRawChangeNotification_DestinationColorContext = 0x00000400; + + [NativeTypeName("#define WICRawChangeNotification_ToneCurve 0x00000800")] + public const int WICRawChangeNotification_ToneCurve = 0x00000800; + + [NativeTypeName("#define WICRawChangeNotification_Rotation 0x00001000")] + public const int WICRawChangeNotification_Rotation = 0x00001000; + + [NativeTypeName("#define WICRawChangeNotification_RenderMode 0x00002000")] + public const int WICRawChangeNotification_RenderMode = 0x00002000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincodec/Windows.cs b/sources/Interop/Windows/Windows/um/wincodec/Windows.cs index 107836e338..9be6f3f740 100644 --- a/sources/Interop/Windows/Windows/um/wincodec/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wincodec/Windows.cs @@ -12,356 +12,6 @@ namespace TerraFX.Interop.Windows { public static unsafe partial class Windows { - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VendorMicrosoft - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCA, 0x49, 0xE7, 0xF0, - 0xEF, 0xED, - 0x89, 0x45, - 0xA7, - 0x3A, - 0xEE, - 0x0E, - 0x62, - 0x6A, - 0x2A, - 0x2B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VendorMicrosoftBuiltIn - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFD, 0x30, 0x7A, 0x25, - 0xB6, 0x06, - 0x2B, 0x46, - 0xAE, - 0xA4, - 0x63, - 0xF7, - 0x0B, - 0x86, - 0xE5, - 0x33 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatBmp - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7E, 0xD8, 0xF1, 0x0A, - 0xFE, 0xFC, - 0x88, 0x41, - 0xBD, - 0xEB, - 0xA7, - 0x90, - 0x64, - 0x71, - 0xCB, - 0xE3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatPng - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF4, 0xFA, 0x7C, 0x1B, - 0x3F, 0x71, - 0x3C, 0x47, - 0xBB, - 0xCD, - 0x61, - 0x37, - 0x42, - 0x5F, - 0xAE, - 0xAF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatIco - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC4, 0x60, 0xA8, 0xA3, - 0x8F, 0x33, - 0x17, 0x4C, - 0x91, - 0x9A, - 0xFB, - 0xA4, - 0xB5, - 0x62, - 0x8F, - 0x21 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatJpeg - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0xA5, 0xE4, 0x19, - 0x62, 0x56, - 0xC5, 0x4F, - 0xA0, - 0xC0, - 0x17, - 0x58, - 0x02, - 0x8E, - 0x10, - 0x57 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatTiff - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x30, 0xCC, 0x3B, 0x16, - 0xE9, 0xE2, - 0x0B, 0x4F, - 0x96, - 0x1D, - 0xA3, - 0xE9, - 0xFD, - 0xB7, - 0x88, - 0xA3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatGif - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0x56, 0x8A, 0x1F, - 0x4D, 0x7D, - 0xBD, 0x4C, - 0x9C, - 0x82, - 0x1B, - 0xC8, - 0xD4, - 0xEE, - 0xB9, - 0xA5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatWmp - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x7C, 0xA3, 0x57, - 0x7A, 0x36, - 0x40, 0x45, - 0x91, - 0x6B, - 0xF1, - 0x83, - 0xC5, - 0x09, - 0x3A, - 0x4B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatDds - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x95, 0xCB, 0x67, 0x99, - 0x85, 0x2E, - 0xC8, 0x4A, - 0x8C, - 0xA2, - 0x83, - 0xD7, - 0xCC, - 0xD4, - 0x25, - 0xC9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatAdng - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0D, 0x6D, 0xFF, 0xF3, - 0xC0, 0x38, - 0xC4, 0x41, - 0xB1, - 0xFE, - 0x1F, - 0x38, - 0x24, - 0xF1, - 0x7B, - 0x84 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatHeif - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x21, 0x25, 0xE6, 0xE1, - 0x87, 0x67, - 0x5B, 0x40, - 0xA3, - 0x39, - 0x50, - 0x07, - 0x15, - 0xB5, - 0x76, - 0x3F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatWebp - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE2, 0xB0, 0x94, 0xE0, - 0xF2, 0x67, - 0xB3, 0x45, - 0xB0, - 0xEA, - 0x11, - 0x53, - 0x37, - 0xCA, - 0x7C, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ContainerFormatRaw - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x60, 0xCE, 0x99, 0xFE, - 0x9C, 0xF1, - 0x3C, 0x43, - 0xA3, - 0xAE, - 0x00, - 0xAC, - 0xEF, - 0xA9, - 0xCA, - 0x21 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("const GUID")] public static ref readonly Guid CATID_WICBitmapDecoders { @@ -512,2350 +162,22 @@ public static ref readonly Guid CATID_WICMetadataWriter } } - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormatDontCare - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat1bppIndexed - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x01 - }; + [DllImport("windowscodecs", ExactSpelling = true)] + public static extern HRESULT WICConvertBitmapSource([NativeTypeName("REFWICPixelFormatGUID")] Guid* dstFormat, IWICBitmapSource* pISrc, IWICBitmapSource** ppIDst); - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } + [DllImport("windowscodecs", ExactSpelling = true)] + public static extern HRESULT WICCreateBitmapFromSection(uint width, uint height, [NativeTypeName("REFWICPixelFormatGUID")] Guid* pixelFormat, HANDLE hSection, uint stride, uint offset, IWICBitmap** ppIBitmap); - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat2bppIndexed - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x02 - }; + [DllImport("windowscodecs", ExactSpelling = true)] + public static extern HRESULT WICCreateBitmapFromSectionEx(uint width, uint height, [NativeTypeName("REFWICPixelFormatGUID")] Guid* pixelFormat, HANDLE hSection, uint stride, uint offset, WICSectionAccessLevel desiredAccessLevel, IWICBitmap** ppIBitmap); - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } + [DllImport("windowscodecs", ExactSpelling = true)] + public static extern HRESULT WICMapGuidToShortName([NativeTypeName("const GUID &")] Guid* guid, uint cchName, [NativeTypeName("WCHAR *")] ushort* wzName, uint* pcchActual); - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat4bppIndexed - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x03 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat8bppIndexed - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x04 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormatBlackWhite - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x05 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat2bppGray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x06 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat4bppGray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x07 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat8bppGray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x08 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat8bppAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x16, 0x01, 0xCD, 0xE6, - 0xBA, 0xEE, - 0x61, 0x41, - 0xAA, - 0x85, - 0x27, - 0xDD, - 0x9F, - 0xB3, - 0xA8, - 0x95 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppBGR555 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x09 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppBGR565 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x0A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppBGRA5551 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2B, 0x7C, 0xEC, 0x05, - 0xE6, 0xF1, - 0x61, 0x49, - 0xAD, - 0x46, - 0xE1, - 0xCC, - 0x81, - 0x0A, - 0x87, - 0xD2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppGray - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x0B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat24bppBGR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x0C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat24bppRGB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x0D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppBGR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x0E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppBGRA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x0F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppPBGRA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x10 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppGrayFloat - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x11 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppRGB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x95, 0x6B, 0x8C, 0xD9, - 0xFE, 0x3E, - 0xD6, 0x47, - 0xBB, - 0x25, - 0xEB, - 0x17, - 0x48, - 0xAB, - 0x0C, - 0xF1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppRGBA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2D, 0xAD, 0xC7, 0xF5, - 0x8D, 0x6A, - 0xDD, 0x43, - 0xA7, - 0xA8, - 0xA2, - 0x99, - 0x35, - 0x26, - 0x1A, - 0xE9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppPRGBA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0xA6, 0xC4, 0x3C, - 0x27, 0xA5, - 0x37, 0x4D, - 0xA9, - 0x16, - 0x31, - 0x42, - 0xC7, - 0xEB, - 0xED, - 0xBA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bppRGB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x15 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bppBGR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x84, 0xA3, 0x05, 0xE6, - 0x68, 0xB4, - 0xCE, 0x46, - 0xBB, - 0x2E, - 0x36, - 0xF1, - 0x80, - 0xE6, - 0x43, - 0x13 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppRGB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x11, 0x21, 0x18, 0xA1, - 0x6D, 0x18, - 0x42, 0x4D, - 0xBC, - 0x6A, - 0x9C, - 0x83, - 0x03, - 0xA8, - 0xDF, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppRGBA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x16 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppBGRA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7C, 0xFF, 0x62, 0x15, - 0x52, 0xD3, - 0xF9, 0x46, - 0x97, - 0x9E, - 0x42, - 0x97, - 0x6B, - 0x79, - 0x22, - 0x46 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppPRGBA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x17 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppPBGRA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8E, 0x8E, 0x51, 0x8C, - 0xEC, 0xA4, - 0x8B, 0x46, - 0xAE, - 0x70, - 0xC9, - 0xA3, - 0x5A, - 0x9C, - 0x55, - 0x30 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppGrayFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x13 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppBGR101010 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x14 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bppRGBFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x12 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bppBGRFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0E, 0x14, 0xCA, 0x49, - 0xB6, 0xCA, - 0x3B, 0x49, - 0x9D, - 0xDF, - 0x60, - 0x18, - 0x7C, - 0x37, - 0x53, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat96bppRGBFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat96bppRGBFloat - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8F, 0xD7, 0xFE, 0xE3, - 0xDB, 0xE8, - 0xCF, 0x4A, - 0x84, - 0xC1, - 0xE9, - 0x7F, - 0x61, - 0x36, - 0xB3, - 0x27 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat128bppRGBAFloat - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x19 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat128bppPRGBAFloat - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x1A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat128bppRGBFloat - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x1B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppCMYK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x1C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppRGBAFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x1D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppBGRAFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3C, 0xE3, 0x6D, 0x35, - 0xD2, 0x54, - 0x23, 0x4A, - 0xBB, - 0x04, - 0x9B, - 0x7B, - 0xF9, - 0xB1, - 0xD4, - 0x2D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppRGBFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x40 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat128bppRGBAFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x1E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat128bppRGBFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x41 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppRGBAHalf - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x3A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppPRGBAHalf - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC2, 0x26, 0xAD, 0x58, - 0x23, 0xC6, - 0x9D, 0x4D, - 0xB3, - 0x20, - 0x38, - 0x7E, - 0x49, - 0xF8, - 0xC4, - 0x42 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppRGBHalf - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x42 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bppRGBHalf - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x3B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppRGBE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppGrayHalf - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x3E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppGrayFixedPoint - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x3F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppRGBA1010102 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x72, 0x8D, 0x23, 0x25, - 0xF9, 0xFC, - 0x22, 0x45, - 0xB5, - 0x14, - 0x55, - 0x78, - 0xE5, - 0xAD, - 0x55, - 0xE0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppRGBA1010102XR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9A, 0x6B, 0xDE, 0x00, - 0x01, 0xC1, - 0x4B, 0x43, - 0xB5, - 0x02, - 0xD0, - 0x16, - 0x5E, - 0xE1, - 0x12, - 0x2C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppR10G10B10A2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB5, 0x1B, 0x4E, 0x60, - 0x3C, 0x8A, - 0x65, 0x4B, - 0xB1, - 0x1C, - 0xBC, - 0x0B, - 0x8D, - 0xD7, - 0x5B, - 0x7F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bppR10G10B10A2HDR10 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5D, 0x5C, 0x21, 0x9C, - 0xCC, 0x1A, - 0x0E, 0x4F, - 0xA4, - 0xBC, - 0x70, - 0xFB, - 0x3A, - 0xE8, - 0xFD, - 0x28 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bppCMYK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x1F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat24bpp3Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x20 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bpp4Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x21 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat40bpp5Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x22 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bpp6Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x23 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat56bpp7Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x24 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bpp8Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x25 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bpp3Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x26 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bpp4Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x27 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat80bpp5Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x28 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat96bpp6Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x29 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat112bpp7Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat128bpp8Channels - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x2B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat40bppCMYKAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x2C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat80bppCMYKAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x2D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat32bpp3ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat40bpp4ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x2F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat48bpp5ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x30 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat56bpp6ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x31 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bpp7ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x32 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat72bpp8ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x33 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat64bpp3ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x34 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat80bpp4ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x35 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat96bpp5ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x36 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat112bpp6ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x37 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat128bpp7ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x38 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat144bpp8ChannelsAlpha - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xC3, 0xDD, 0x6F, - 0x03, 0x4E, - 0xFE, 0x4B, - 0xB1, - 0x85, - 0x3D, - 0x77, - 0x76, - 0x8D, - 0xC9, - 0x39 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat8bppY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x54, 0xDB, 0xB4, 0x91, - 0xF9, 0x2D, - 0xF0, 0x42, - 0xB4, - 0x49, - 0x29, - 0x09, - 0xBB, - 0x3D, - 0xF8, - 0x8E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat8bppCb - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x24, 0xF2, 0x39, 0x13, - 0xFE, 0x6B, - 0x3E, 0x4C, - 0x93, - 0x02, - 0xE4, - 0xF3, - 0xA6, - 0xD0, - 0xCA, - 0x2A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat8bppCr - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x53, 0x50, 0x14, 0xB8, - 0x16, 0x21, - 0xF0, 0x49, - 0x88, - 0x35, - 0xED, - 0x84, - 0x4B, - 0x20, - 0x5C, - 0x51 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppCbCr - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6E, 0xBA, 0x95, 0xFF, - 0xE0, 0x11, - 0x63, 0x42, - 0xBB, - 0x45, - 0x01, - 0x72, - 0x1F, - 0x34, - 0x60, - 0xA4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppYQuantizedDctCoefficients - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x33, 0xF4, 0x55, 0xA3, - 0xE8, 0x48, - 0x42, 0x4A, - 0x84, - 0xD8, - 0xE2, - 0xAA, - 0x26, - 0xCA, - 0x80, - 0xA4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppCbQuantizedDctCoefficients - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x61, 0xFF, 0xC4, 0xD2, - 0xA5, 0x56, - 0xC2, 0x49, - 0x8B, - 0x5C, - 0x4C, - 0x19, - 0x25, - 0x96, - 0x48, - 0x37 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_WICPixelFormat16bppCrQuantizedDctCoefficients - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF0, 0x54, 0xE3, 0x2F, - 0x80, 0x16, - 0xD8, 0x42, - 0x92, - 0x31, - 0xE7, - 0x3C, - 0x05, - 0x65, - 0xBF, - 0xC1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [DllImport("windowscodecs", ExactSpelling = true)] - public static extern HRESULT WICConvertBitmapSource([NativeTypeName("REFWICPixelFormatGUID")] Guid* dstFormat, IWICBitmapSource* pISrc, IWICBitmapSource** ppIDst); - - [DllImport("windowscodecs", ExactSpelling = true)] - public static extern HRESULT WICCreateBitmapFromSection(uint width, uint height, [NativeTypeName("REFWICPixelFormatGUID")] Guid* pixelFormat, HANDLE hSection, uint stride, uint offset, IWICBitmap** ppIBitmap); - - [DllImport("windowscodecs", ExactSpelling = true)] - public static extern HRESULT WICCreateBitmapFromSectionEx(uint width, uint height, [NativeTypeName("REFWICPixelFormatGUID")] Guid* pixelFormat, HANDLE hSection, uint stride, uint offset, WICSectionAccessLevel desiredAccessLevel, IWICBitmap** ppIBitmap); - - [DllImport("windowscodecs", ExactSpelling = true)] - public static extern HRESULT WICMapGuidToShortName([NativeTypeName("const GUID &")] Guid* guid, uint cchName, [NativeTypeName("WCHAR *")] ushort* wzName, uint* pcchActual); - - [DllImport("windowscodecs", ExactSpelling = true)] - public static extern HRESULT WICMapShortNameToGuid([NativeTypeName("PCWSTR")] ushort* wzName, Guid* pguid); + [DllImport("windowscodecs", ExactSpelling = true)] + public static extern HRESULT WICMapShortNameToGuid([NativeTypeName("PCWSTR")] ushort* wzName, Guid* pguid); [DllImport("windowscodecs", ExactSpelling = true)] public static extern HRESULT WICMapSchemaToName([NativeTypeName("const GUID &")] Guid* guidMetadataFormat, [NativeTypeName("LPWSTR")] ushort* pwzSchema, uint cchName, [NativeTypeName("WCHAR *")] ushort* wzName, uint* pcchActual); - - [NativeTypeName("#define WIC_JPEG_MAX_COMPONENT_COUNT ( 4 )")] - public const int WIC_JPEG_MAX_COMPONENT_COUNT = (4); - - [NativeTypeName("#define WIC_JPEG_MAX_TABLE_INDEX ( 3 )")] - public const int WIC_JPEG_MAX_TABLE_INDEX = (3); - - [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_ONE ( 0x11 )")] - public const int WIC_JPEG_SAMPLE_FACTORS_ONE = (0x11); - - [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_420 ( 0x111122 )")] - public const int WIC_JPEG_SAMPLE_FACTORS_THREE_420 = (0x111122); - - [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_422 ( 0x111121 )")] - public const int WIC_JPEG_SAMPLE_FACTORS_THREE_422 = (0x111121); - - [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_440 ( 0x111112 )")] - public const int WIC_JPEG_SAMPLE_FACTORS_THREE_440 = (0x111112); - - [NativeTypeName("#define WIC_JPEG_SAMPLE_FACTORS_THREE_444 ( 0x111111 )")] - public const int WIC_JPEG_SAMPLE_FACTORS_THREE_444 = (0x111111); - - [NativeTypeName("#define WIC_JPEG_QUANTIZATION_BASELINE_ONE ( 0 )")] - public const int WIC_JPEG_QUANTIZATION_BASELINE_ONE = (0); - - [NativeTypeName("#define WIC_JPEG_QUANTIZATION_BASELINE_THREE ( 0x10100 )")] - public const int WIC_JPEG_QUANTIZATION_BASELINE_THREE = (0x10100); - - [NativeTypeName("#define WIC_JPEG_HUFFMAN_BASELINE_ONE ( 0 )")] - public const int WIC_JPEG_HUFFMAN_BASELINE_ONE = (0); - - [NativeTypeName("#define WIC_JPEG_HUFFMAN_BASELINE_THREE ( 0x111100 )")] - public const int WIC_JPEG_HUFFMAN_BASELINE_THREE = (0x111100); - - [NativeTypeName("#define GUID_WICPixelFormatUndefined GUID_WICPixelFormatDontCare")] - public static ref readonly Guid GUID_WICPixelFormatUndefined => ref GUID_WICPixelFormatDontCare; - - [NativeTypeName("#define WICRawChangeNotification_ExposureCompensation 0x00000001")] - public const int WICRawChangeNotification_ExposureCompensation = 0x00000001; - - [NativeTypeName("#define WICRawChangeNotification_NamedWhitePoint 0x00000002")] - public const int WICRawChangeNotification_NamedWhitePoint = 0x00000002; - - [NativeTypeName("#define WICRawChangeNotification_KelvinWhitePoint 0x00000004")] - public const int WICRawChangeNotification_KelvinWhitePoint = 0x00000004; - - [NativeTypeName("#define WICRawChangeNotification_RGBWhitePoint 0x00000008")] - public const int WICRawChangeNotification_RGBWhitePoint = 0x00000008; - - [NativeTypeName("#define WICRawChangeNotification_Contrast 0x00000010")] - public const int WICRawChangeNotification_Contrast = 0x00000010; - - [NativeTypeName("#define WICRawChangeNotification_Gamma 0x00000020")] - public const int WICRawChangeNotification_Gamma = 0x00000020; - - [NativeTypeName("#define WICRawChangeNotification_Sharpness 0x00000040")] - public const int WICRawChangeNotification_Sharpness = 0x00000040; - - [NativeTypeName("#define WICRawChangeNotification_Saturation 0x00000080")] - public const int WICRawChangeNotification_Saturation = 0x00000080; - - [NativeTypeName("#define WICRawChangeNotification_Tint 0x00000100")] - public const int WICRawChangeNotification_Tint = 0x00000100; - - [NativeTypeName("#define WICRawChangeNotification_NoiseReduction 0x00000200")] - public const int WICRawChangeNotification_NoiseReduction = 0x00000200; - - [NativeTypeName("#define WICRawChangeNotification_DestinationColorContext 0x00000400")] - public const int WICRawChangeNotification_DestinationColorContext = 0x00000400; - - [NativeTypeName("#define WICRawChangeNotification_ToneCurve 0x00000800")] - public const int WICRawChangeNotification_ToneCurve = 0x00000800; - - [NativeTypeName("#define WICRawChangeNotification_Rotation 0x00001000")] - public const int WICRawChangeNotification_Rotation = 0x00001000; - - [NativeTypeName("#define WICRawChangeNotification_RenderMode 0x00002000")] - public const int WICRawChangeNotification_RenderMode = 0x00002000; } } diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/GUID.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/GUID.cs new file mode 100644 index 0000000000..b839d8d2f3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/GUID.cs @@ -0,0 +1,1065 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincodecsdk.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatUnknown + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2F, 0x59, 0x5E, 0xA4, + 0x78, 0x90, + 0x7C, 0x4A, + 0xAD, + 0xB5, + 0x4E, + 0xDC, + 0x4F, + 0xD6, + 0x1B, + 0x1F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatIfd + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC6, 0x96, 0x73, 0x53, + 0x8A, 0x2D, + 0xB6, 0x4B, + 0x9B, + 0xF8, + 0x2F, + 0x0A, + 0x8E, + 0x2A, + 0x3A, + 0xDF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatSubIfd + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x28, 0xE1, 0xA2, 0x58, + 0xB9, 0x2D, + 0x57, 0x4E, + 0xBB, + 0x14, + 0x51, + 0x77, + 0x89, + 0x1E, + 0xD3, + 0x31 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatExif + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9D, 0x4F, 0x3C, 0x1C, + 0x4A, 0xB8, + 0x7D, 0x46, + 0x94, + 0x93, + 0x36, + 0xCF, + 0xBD, + 0x59, + 0xEA, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatGps + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0xAB, 0x34, 0x71, + 0x51, 0x93, + 0xAD, 0x44, + 0xAF, + 0x62, + 0x44, + 0x8D, + 0xB6, + 0xB5, + 0x02, + 0xEC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatInterop + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8E, 0x6F, 0x68, 0xED, + 0x1F, 0x68, + 0x8B, 0x4C, + 0xBD, + 0x41, + 0xA8, + 0xAD, + 0xDB, + 0xF6, + 0xB3, + 0xFC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatApp0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x28, 0x70, 0x00, 0x79, + 0x8D, 0x26, + 0xD6, 0x45, + 0xA3, + 0xC2, + 0x35, + 0x4E, + 0x6A, + 0x50, + 0x4B, + 0xC9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatApp1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0xDF, 0xD3, 0x8F, + 0x51, 0xF9, + 0x2B, 0x49, + 0x81, + 0x7F, + 0x69, + 0xC2, + 0xE6, + 0xD9, + 0xA5, + 0xB0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatApp13 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA2, 0x56, 0x65, 0x32, + 0x02, 0xF5, + 0x54, 0x43, + 0x9C, + 0xC0, + 0x8E, + 0x3F, + 0x48, + 0xEA, + 0xF6, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatIPTC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x14, 0x09, 0xAB, 0x4F, + 0x29, 0xE1, + 0x87, 0x40, + 0xA1, + 0xD1, + 0xBC, + 0x81, + 0x2D, + 0x45, + 0xA7, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatIRB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0x0D, 0x10, 0x16, + 0x70, 0x85, + 0xB9, 0x4B, + 0xB9, + 0x2D, + 0xFD, + 0xA4, + 0xB2, + 0x3E, + 0xCE, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormat8BIMIPTC + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8C, 0x56, 0x10, 0x00, + 0x52, 0x08, + 0x6A, 0x4E, + 0xB1, + 0x91, + 0x5C, + 0x33, + 0xAC, + 0x5B, + 0x04, + 0x30 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormat8BIMResolutionInfo + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5D, 0x30, 0x9F, 0x73, + 0xDB, 0x81, + 0xCB, 0x43, + 0xAC, + 0x5E, + 0x55, + 0x01, + 0x3E, + 0xF9, + 0xF0, + 0x03 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormat8BIMIPTCDigest + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x85, 0x22, 0xA3, 0x1C, + 0xCD, 0x9C, + 0x86, 0x47, + 0x8B, + 0xD8, + 0x79, + 0x53, + 0x9D, + 0xB6, + 0xA0, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatXMP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x38, 0xCC, 0x5A, 0xBB, + 0x16, 0xF2, + 0xEC, 0x4C, + 0xA6, + 0xC5, + 0x5F, + 0x6E, + 0x73, + 0x97, + 0x63, + 0xA9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatThumbnail + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE9, 0xCE, 0x3D, 0x24, + 0x03, 0x87, + 0xEE, 0x40, + 0x8E, + 0xF0, + 0x22, + 0xA6, + 0x00, + 0xB8, + 0x05, + 0x8C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunktEXt + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x36, 0x89, 0x8D, 0x56, + 0xA9, 0xC0, + 0x23, 0x49, + 0x90, + 0x5D, + 0xDF, + 0x2B, + 0x38, + 0x23, + 0x8F, + 0xBC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatXMPStruct + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF1, 0x3C, 0x38, 0x22, + 0x17, 0xED, + 0x2E, 0x4E, + 0xAF, + 0x17, + 0xD8, + 0x5B, + 0x8F, + 0x6B, + 0x30, + 0xD0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatXMPBag + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5F, 0xCA, 0x3C, 0x83, + 0xB7, 0xDC, + 0x16, 0x45, + 0x80, + 0x6F, + 0x65, + 0x96, + 0xAB, + 0x26, + 0xDC, + 0xE4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatXMPSeq + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x02, 0xDF, 0xE8, 0x63, + 0x6C, 0xEB, + 0x6C, 0x45, + 0xA2, + 0x24, + 0xB2, + 0x5E, + 0x79, + 0x4F, + 0xD6, + 0x48 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatXMPAlt + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x75, 0xA6, 0x08, 0x7B, + 0xAA, 0x91, + 0x1B, 0x48, + 0xA7, + 0x98, + 0x4D, + 0xA9, + 0x49, + 0x08, + 0x61, + 0x3B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatLSD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1E, 0x03, 0x56, 0xE2, + 0x99, 0x62, + 0x29, 0x49, + 0xB9, + 0x8D, + 0x5A, + 0xC8, + 0x84, + 0xAF, + 0xBA, + 0x92 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatIMD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x86, 0xB0, 0x2B, 0xBD, + 0x52, 0x4D, + 0xDD, 0x48, + 0x96, + 0x77, + 0xDB, + 0x48, + 0x3E, + 0x85, + 0xAE, + 0x8F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatGCE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD8, 0xCA, 0x25, 0x2A, + 0xEB, 0xDE, + 0x69, 0x4C, + 0xA7, + 0x88, + 0x0E, + 0xC2, + 0x26, + 0x6D, + 0xCA, + 0xFD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatAPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC2, 0x3D, 0x04, 0x2E, + 0x67, 0xC9, + 0x05, 0x4E, + 0x87, + 0x5E, + 0x61, + 0x8B, + 0xF6, + 0x7E, + 0x85, + 0xC3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatJpegChrominance + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCF, 0x0D, 0x3D, 0xF7, + 0xC6, 0xCE, + 0x85, 0x4F, + 0x9B, + 0x0E, + 0x1C, + 0x39, + 0x56, + 0xB1, + 0xBE, + 0xF7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatJpegLuminance + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x07, 0x80, 0x90, 0x86, + 0xFC, 0xED, + 0x60, 0x48, + 0x8D, + 0x4B, + 0x4E, + 0xE6, + 0xE8, + 0x3E, + 0x60, + 0x58 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatJpegComment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x33, 0x5F, 0x0E, 0x22, + 0xD3, 0xAF, + 0x4E, 0x47, + 0x9D, + 0x31, + 0x7D, + 0x4F, + 0xE7, + 0x30, + 0xF5, + 0x57 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatGifComment + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE0, 0xE0, 0xB6, 0xC4, + 0xB4, 0xCF, + 0xD3, 0x4A, + 0xAB, + 0x33, + 0x9A, + 0xAD, + 0x23, + 0x55, + 0xA3, + 0x4A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunkgAMA + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0x35, 0x09, 0xF0, + 0x5D, 0x1D, + 0xD1, 0x4C, + 0x81, + 0xB2, + 0x93, + 0x24, + 0xD7, + 0xEC, + 0xA7, + 0x81 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunkbKGD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x71, 0x35, 0x4D, 0xE1, + 0x47, 0x6B, + 0xEA, 0x4D, + 0xB6, + 0x0A, + 0x87, + 0xCE, + 0x0A, + 0x78, + 0xDF, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunkiTXt + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x29, 0xC7, 0xBE, 0xC2, + 0x68, 0x0B, + 0x77, 0x4B, + 0xAA, + 0x0E, + 0x62, + 0x95, + 0xA6, + 0xAC, + 0x18, + 0x14 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunkcHRM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5B, 0x65, 0xB3, 0x9D, + 0x42, 0x28, + 0xB3, 0x44, + 0x80, + 0x67, + 0x12, + 0xE9, + 0xB3, + 0x75, + 0x55, + 0x6A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunkhIST + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0x82, 0x9A, 0xC5, + 0x74, 0xDB, + 0xA4, 0x48, + 0xBD, + 0x6A, + 0xB6, + 0x9C, + 0x49, + 0x31, + 0xEF, + 0x95 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunkiCCP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAB, 0x49, 0x43, 0xEB, + 0x85, 0xB6, + 0x0F, 0x45, + 0x91, + 0xB5, + 0xE8, + 0x02, + 0xE8, + 0x92, + 0x53, + 0x6C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunksRGB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x36, 0xFD, 0x15, 0xC1, + 0x6F, 0xCC, + 0x3F, 0x4E, + 0x83, + 0x63, + 0x52, + 0x4B, + 0x87, + 0xC6, + 0xB0, + 0xD9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatChunktIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2D, 0xAE, 0x00, 0x6B, + 0x4B, 0xE2, + 0x0A, 0x46, + 0x98, + 0xB6, + 0x87, + 0x8B, + 0xD0, + 0x30, + 0x72, + 0xFD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatDds + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x03, 0x46, 0x06, 0x4A, + 0x33, 0x8C, + 0x60, 0x4E, + 0x9C, + 0x29, + 0x13, + 0x62, + 0x31, + 0x70, + 0x2D, + 0x08 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatHeif + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE1, 0xF3, 0x7E, 0x81, + 0x88, 0x12, + 0xF4, 0x45, + 0xA8, + 0x52, + 0x26, + 0x0D, + 0x9E, + 0x7C, + 0xCE, + 0x83 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatHeifHDR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x8D, 0x8B, 0x56, + 0x65, 0x1E, + 0x8C, 0x43, + 0x89, + 0x68, + 0xD6, + 0x0E, + 0x10, + 0x12, + 0xBE, + 0xB9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatWebpANIM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0xFD, 0xC4, 0x6D, + 0xE6, 0x78, + 0x02, 0x41, + 0xAE, + 0x35, + 0xBC, + 0xFA, + 0x1E, + 0xDC, + 0xC7, + 0x8B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MetadataFormatWebpANMF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEE, 0x05, 0xC1, 0x43, + 0x3B, 0xB9, + 0xBB, 0x4A, + 0xB0, + 0x03, + 0xA0, + 0x8C, + 0x0D, + 0x87, + 0x04, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/wincodecsdk/Windows.cs b/sources/Interop/Windows/Windows/um/wincodecsdk/Windows.cs index dfe1907341..822a39b34a 100644 --- a/sources/Interop/Windows/Windows/um/wincodecsdk/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wincodecsdk/Windows.cs @@ -4,1064 +4,12 @@ // Original source is Copyright © Microsoft. All rights reserved. using System; -using System.Diagnostics; -using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace TerraFX.Interop.Windows { public static unsafe partial class Windows { - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatUnknown - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2F, 0x59, 0x5E, 0xA4, - 0x78, 0x90, - 0x7C, 0x4A, - 0xAD, - 0xB5, - 0x4E, - 0xDC, - 0x4F, - 0xD6, - 0x1B, - 0x1F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatIfd - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC6, 0x96, 0x73, 0x53, - 0x8A, 0x2D, - 0xB6, 0x4B, - 0x9B, - 0xF8, - 0x2F, - 0x0A, - 0x8E, - 0x2A, - 0x3A, - 0xDF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatSubIfd - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x28, 0xE1, 0xA2, 0x58, - 0xB9, 0x2D, - 0x57, 0x4E, - 0xBB, - 0x14, - 0x51, - 0x77, - 0x89, - 0x1E, - 0xD3, - 0x31 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatExif - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9D, 0x4F, 0x3C, 0x1C, - 0x4A, 0xB8, - 0x7D, 0x46, - 0x94, - 0x93, - 0x36, - 0xCF, - 0xBD, - 0x59, - 0xEA, - 0x57 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatGps - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0xAB, 0x34, 0x71, - 0x51, 0x93, - 0xAD, 0x44, - 0xAF, - 0x62, - 0x44, - 0x8D, - 0xB6, - 0xB5, - 0x02, - 0xEC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatInterop - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8E, 0x6F, 0x68, 0xED, - 0x1F, 0x68, - 0x8B, 0x4C, - 0xBD, - 0x41, - 0xA8, - 0xAD, - 0xDB, - 0xF6, - 0xB3, - 0xFC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatApp0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x28, 0x70, 0x00, 0x79, - 0x8D, 0x26, - 0xD6, 0x45, - 0xA3, - 0xC2, - 0x35, - 0x4E, - 0x6A, - 0x50, - 0x4B, - 0xC9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatApp1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0xDF, 0xD3, 0x8F, - 0x51, 0xF9, - 0x2B, 0x49, - 0x81, - 0x7F, - 0x69, - 0xC2, - 0xE6, - 0xD9, - 0xA5, - 0xB0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatApp13 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA2, 0x56, 0x65, 0x32, - 0x02, 0xF5, - 0x54, 0x43, - 0x9C, - 0xC0, - 0x8E, - 0x3F, - 0x48, - 0xEA, - 0xF6, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatIPTC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x14, 0x09, 0xAB, 0x4F, - 0x29, 0xE1, - 0x87, 0x40, - 0xA1, - 0xD1, - 0xBC, - 0x81, - 0x2D, - 0x45, - 0xA7, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatIRB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x66, 0x0D, 0x10, 0x16, - 0x70, 0x85, - 0xB9, 0x4B, - 0xB9, - 0x2D, - 0xFD, - 0xA4, - 0xB2, - 0x3E, - 0xCE, - 0x67 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormat8BIMIPTC - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8C, 0x56, 0x10, 0x00, - 0x52, 0x08, - 0x6A, 0x4E, - 0xB1, - 0x91, - 0x5C, - 0x33, - 0xAC, - 0x5B, - 0x04, - 0x30 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormat8BIMResolutionInfo - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5D, 0x30, 0x9F, 0x73, - 0xDB, 0x81, - 0xCB, 0x43, - 0xAC, - 0x5E, - 0x55, - 0x01, - 0x3E, - 0xF9, - 0xF0, - 0x03 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormat8BIMIPTCDigest - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x85, 0x22, 0xA3, 0x1C, - 0xCD, 0x9C, - 0x86, 0x47, - 0x8B, - 0xD8, - 0x79, - 0x53, - 0x9D, - 0xB6, - 0xA0, - 0x06 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatXMP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x38, 0xCC, 0x5A, 0xBB, - 0x16, 0xF2, - 0xEC, 0x4C, - 0xA6, - 0xC5, - 0x5F, - 0x6E, - 0x73, - 0x97, - 0x63, - 0xA9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatThumbnail - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE9, 0xCE, 0x3D, 0x24, - 0x03, 0x87, - 0xEE, 0x40, - 0x8E, - 0xF0, - 0x22, - 0xA6, - 0x00, - 0xB8, - 0x05, - 0x8C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunktEXt - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x36, 0x89, 0x8D, 0x56, - 0xA9, 0xC0, - 0x23, 0x49, - 0x90, - 0x5D, - 0xDF, - 0x2B, - 0x38, - 0x23, - 0x8F, - 0xBC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatXMPStruct - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF1, 0x3C, 0x38, 0x22, - 0x17, 0xED, - 0x2E, 0x4E, - 0xAF, - 0x17, - 0xD8, - 0x5B, - 0x8F, - 0x6B, - 0x30, - 0xD0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatXMPBag - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5F, 0xCA, 0x3C, 0x83, - 0xB7, 0xDC, - 0x16, 0x45, - 0x80, - 0x6F, - 0x65, - 0x96, - 0xAB, - 0x26, - 0xDC, - 0xE4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatXMPSeq - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x02, 0xDF, 0xE8, 0x63, - 0x6C, 0xEB, - 0x6C, 0x45, - 0xA2, - 0x24, - 0xB2, - 0x5E, - 0x79, - 0x4F, - 0xD6, - 0x48 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatXMPAlt - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x75, 0xA6, 0x08, 0x7B, - 0xAA, 0x91, - 0x1B, 0x48, - 0xA7, - 0x98, - 0x4D, - 0xA9, - 0x49, - 0x08, - 0x61, - 0x3B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatLSD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1E, 0x03, 0x56, 0xE2, - 0x99, 0x62, - 0x29, 0x49, - 0xB9, - 0x8D, - 0x5A, - 0xC8, - 0x84, - 0xAF, - 0xBA, - 0x92 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatIMD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x86, 0xB0, 0x2B, 0xBD, - 0x52, 0x4D, - 0xDD, 0x48, - 0x96, - 0x77, - 0xDB, - 0x48, - 0x3E, - 0x85, - 0xAE, - 0x8F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatGCE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD8, 0xCA, 0x25, 0x2A, - 0xEB, 0xDE, - 0x69, 0x4C, - 0xA7, - 0x88, - 0x0E, - 0xC2, - 0x26, - 0x6D, - 0xCA, - 0xFD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatAPE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC2, 0x3D, 0x04, 0x2E, - 0x67, 0xC9, - 0x05, 0x4E, - 0x87, - 0x5E, - 0x61, - 0x8B, - 0xF6, - 0x7E, - 0x85, - 0xC3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatJpegChrominance - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCF, 0x0D, 0x3D, 0xF7, - 0xC6, 0xCE, - 0x85, 0x4F, - 0x9B, - 0x0E, - 0x1C, - 0x39, - 0x56, - 0xB1, - 0xBE, - 0xF7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatJpegLuminance - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x07, 0x80, 0x90, 0x86, - 0xFC, 0xED, - 0x60, 0x48, - 0x8D, - 0x4B, - 0x4E, - 0xE6, - 0xE8, - 0x3E, - 0x60, - 0x58 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatJpegComment - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x33, 0x5F, 0x0E, 0x22, - 0xD3, 0xAF, - 0x4E, 0x47, - 0x9D, - 0x31, - 0x7D, - 0x4F, - 0xE7, - 0x30, - 0xF5, - 0x57 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatGifComment - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE0, 0xE0, 0xB6, 0xC4, - 0xB4, 0xCF, - 0xD3, 0x4A, - 0xAB, - 0x33, - 0x9A, - 0xAD, - 0x23, - 0x55, - 0xA3, - 0x4A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunkgAMA - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0x35, 0x09, 0xF0, - 0x5D, 0x1D, - 0xD1, 0x4C, - 0x81, - 0xB2, - 0x93, - 0x24, - 0xD7, - 0xEC, - 0xA7, - 0x81 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunkbKGD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x71, 0x35, 0x4D, 0xE1, - 0x47, 0x6B, - 0xEA, 0x4D, - 0xB6, - 0x0A, - 0x87, - 0xCE, - 0x0A, - 0x78, - 0xDF, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunkiTXt - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x29, 0xC7, 0xBE, 0xC2, - 0x68, 0x0B, - 0x77, 0x4B, - 0xAA, - 0x0E, - 0x62, - 0x95, - 0xA6, - 0xAC, - 0x18, - 0x14 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunkcHRM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5B, 0x65, 0xB3, 0x9D, - 0x42, 0x28, - 0xB3, 0x44, - 0x80, - 0x67, - 0x12, - 0xE9, - 0xB3, - 0x75, - 0x55, - 0x6A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunkhIST - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0x82, 0x9A, 0xC5, - 0x74, 0xDB, - 0xA4, 0x48, - 0xBD, - 0x6A, - 0xB6, - 0x9C, - 0x49, - 0x31, - 0xEF, - 0x95 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunkiCCP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAB, 0x49, 0x43, 0xEB, - 0x85, 0xB6, - 0x0F, 0x45, - 0x91, - 0xB5, - 0xE8, - 0x02, - 0xE8, - 0x92, - 0x53, - 0x6C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunksRGB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x36, 0xFD, 0x15, 0xC1, - 0x6F, 0xCC, - 0x3F, 0x4E, - 0x83, - 0x63, - 0x52, - 0x4B, - 0x87, - 0xC6, - 0xB0, - 0xD9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatChunktIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2D, 0xAE, 0x00, 0x6B, - 0x4B, 0xE2, - 0x0A, 0x46, - 0x98, - 0xB6, - 0x87, - 0x8B, - 0xD0, - 0x30, - 0x72, - 0xFD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatDds - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x03, 0x46, 0x06, 0x4A, - 0x33, 0x8C, - 0x60, 0x4E, - 0x9C, - 0x29, - 0x13, - 0x62, - 0x31, - 0x70, - 0x2D, - 0x08 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatHeif - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE1, 0xF3, 0x7E, 0x81, - 0x88, 0x12, - 0xF4, 0x45, - 0xA8, - 0x52, - 0x26, - 0x0D, - 0x9E, - 0x7C, - 0xCE, - 0x83 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatHeifHDR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0x8D, 0x8B, 0x56, - 0x65, 0x1E, - 0x8C, 0x43, - 0x89, - 0x68, - 0xD6, - 0x0E, - 0x10, - 0x12, - 0xBE, - 0xB9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatWebpANIM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0xFD, 0xC4, 0x6D, - 0xE6, 0x78, - 0x02, 0x41, - 0xAE, - 0x35, - 0xBC, - 0xFA, - 0x1E, - 0xDC, - 0xC7, - 0x8B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MetadataFormatWebpANMF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEE, 0x05, 0xC1, 0x43, - 0x3B, 0xB9, - 0xBB, 0x4A, - 0xB0, - 0x03, - 0xA0, - 0x8C, - 0x0D, - 0x87, - 0x04, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [DllImport("windowscodecs", ExactSpelling = true)] public static extern HRESULT WICMatchMetadataContent([NativeTypeName("const GUID &")] Guid* guidContainerFormat, [NativeTypeName("const GUID *")] Guid* pguidVendor, IStream* pIStream, Guid* pguidMetadataFormat); diff --git a/sources/Interop/Windows/Windows/shared/lmerr/Windows.cs b/sources/Interop/Windows/Windows/um/wincontypes/KEY.cs similarity index 56% rename from sources/Interop/Windows/Windows/shared/lmerr/Windows.cs rename to sources/Interop/Windows/Windows/um/wincontypes/KEY.cs index bbfd03b366..9cdcf87f51 100644 --- a/sources/Interop/Windows/Windows/shared/lmerr/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wincontypes/KEY.cs @@ -1,13 +1,13 @@ // Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. -// Ported from shared/intsafe.h in the Windows SDK for Windows 10.0.20348.0 +// Ported from um/wincontypes.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. namespace TerraFX.Interop.Windows { - public static partial class Windows + public static partial class KEY { - [NativeTypeName("#define MAX_NERR (NERR_BASE+899)")] - public const int MAX_NERR = (2100 + 899); + [NativeTypeName("#define KEY_EVENT 0x0001")] + public const int KEY_EVENT = 0x0001; } } diff --git a/sources/Interop/Windows/Windows/um/wincontypes/Windows.cs b/sources/Interop/Windows/Windows/um/wincontypes/Windows.cs index 1473b7b509..89e93cece6 100644 --- a/sources/Interop/Windows/Windows/um/wincontypes/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wincontypes/Windows.cs @@ -85,9 +85,6 @@ public static partial class Windows [NativeTypeName("#define MOUSE_HWHEELED 0x0008")] public const int MOUSE_HWHEELED = 0x0008; - [NativeTypeName("#define KEY_EVENT 0x0001")] - public const int KEY_EVENT = 0x0001; - [NativeTypeName("#define MOUSE_EVENT 0x0002")] public const int MOUSE_EVENT = 0x0002; diff --git a/sources/Interop/Windows/Windows/um/wincred/CREDUI.cs b/sources/Interop/Windows/Windows/um/wincred/CREDUI.cs new file mode 100644 index 0000000000..fcd51ee841 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincred/CREDUI.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CREDUI + { + [NativeTypeName("#define CREDUI_MAX_MESSAGE_LENGTH 1024")] + public const int CREDUI_MAX_MESSAGE_LENGTH = 1024; + + [NativeTypeName("#define CREDUI_MAX_CAPTION_LENGTH 128")] + public const int CREDUI_MAX_CAPTION_LENGTH = 128; + + [NativeTypeName("#define CREDUI_MAX_GENERIC_TARGET_LENGTH CRED_MAX_GENERIC_TARGET_NAME_LENGTH")] + public const int CREDUI_MAX_GENERIC_TARGET_LENGTH = 32767; + + [NativeTypeName("#define CREDUI_MAX_DOMAIN_TARGET_LENGTH CRED_MAX_DOMAIN_TARGET_NAME_LENGTH")] + public const int CREDUI_MAX_DOMAIN_TARGET_LENGTH = (256 + 1 + 80); + + [NativeTypeName("#define CREDUI_MAX_USERNAME_LENGTH CRED_MAX_USERNAME_LENGTH")] + public const int CREDUI_MAX_USERNAME_LENGTH = (256 + 1 + 256); + + [NativeTypeName("#define CREDUI_MAX_PASSWORD_LENGTH (512 / 2)")] + public const int CREDUI_MAX_PASSWORD_LENGTH = (512 / 2); + + [NativeTypeName("#define CREDUI_FLAGS_INCORRECT_PASSWORD 0x00001")] + public const int CREDUI_FLAGS_INCORRECT_PASSWORD = 0x00001; + + [NativeTypeName("#define CREDUI_FLAGS_DO_NOT_PERSIST 0x00002")] + public const int CREDUI_FLAGS_DO_NOT_PERSIST = 0x00002; + + [NativeTypeName("#define CREDUI_FLAGS_REQUEST_ADMINISTRATOR 0x00004")] + public const int CREDUI_FLAGS_REQUEST_ADMINISTRATOR = 0x00004; + + [NativeTypeName("#define CREDUI_FLAGS_EXCLUDE_CERTIFICATES 0x00008")] + public const int CREDUI_FLAGS_EXCLUDE_CERTIFICATES = 0x00008; + + [NativeTypeName("#define CREDUI_FLAGS_REQUIRE_CERTIFICATE 0x00010")] + public const int CREDUI_FLAGS_REQUIRE_CERTIFICATE = 0x00010; + + [NativeTypeName("#define CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX 0x00040")] + public const int CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX = 0x00040; + + [NativeTypeName("#define CREDUI_FLAGS_ALWAYS_SHOW_UI 0x00080")] + public const int CREDUI_FLAGS_ALWAYS_SHOW_UI = 0x00080; + + [NativeTypeName("#define CREDUI_FLAGS_REQUIRE_SMARTCARD 0x00100")] + public const int CREDUI_FLAGS_REQUIRE_SMARTCARD = 0x00100; + + [NativeTypeName("#define CREDUI_FLAGS_PASSWORD_ONLY_OK 0x00200")] + public const int CREDUI_FLAGS_PASSWORD_ONLY_OK = 0x00200; + + [NativeTypeName("#define CREDUI_FLAGS_VALIDATE_USERNAME 0x00400")] + public const int CREDUI_FLAGS_VALIDATE_USERNAME = 0x00400; + + [NativeTypeName("#define CREDUI_FLAGS_COMPLETE_USERNAME 0x00800")] + public const int CREDUI_FLAGS_COMPLETE_USERNAME = 0x00800; + + [NativeTypeName("#define CREDUI_FLAGS_PERSIST 0x01000")] + public const int CREDUI_FLAGS_PERSIST = 0x01000; + + [NativeTypeName("#define CREDUI_FLAGS_SERVER_CREDENTIAL 0x04000")] + public const int CREDUI_FLAGS_SERVER_CREDENTIAL = 0x04000; + + [NativeTypeName("#define CREDUI_FLAGS_EXPECT_CONFIRMATION 0x20000")] + public const int CREDUI_FLAGS_EXPECT_CONFIRMATION = 0x20000; + + [NativeTypeName("#define CREDUI_FLAGS_GENERIC_CREDENTIALS 0x40000")] + public const int CREDUI_FLAGS_GENERIC_CREDENTIALS = 0x40000; + + [NativeTypeName("#define CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS 0x80000")] + public const int CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS = 0x80000; + + [NativeTypeName("#define CREDUI_FLAGS_KEEP_USERNAME 0x100000")] + public const int CREDUI_FLAGS_KEEP_USERNAME = 0x100000; + + [NativeTypeName("#define CREDUI_FLAGS_PROMPT_VALID ( \\\r\n CREDUI_FLAGS_INCORRECT_PASSWORD | \\\r\n CREDUI_FLAGS_DO_NOT_PERSIST | \\\r\n CREDUI_FLAGS_REQUEST_ADMINISTRATOR | \\\r\n CREDUI_FLAGS_EXCLUDE_CERTIFICATES | \\\r\n CREDUI_FLAGS_REQUIRE_CERTIFICATE | \\\r\n CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX | \\\r\n CREDUI_FLAGS_ALWAYS_SHOW_UI | \\\r\n CREDUI_FLAGS_REQUIRE_SMARTCARD | \\\r\n CREDUI_FLAGS_PASSWORD_ONLY_OK | \\\r\n CREDUI_FLAGS_VALIDATE_USERNAME | \\\r\n CREDUI_FLAGS_COMPLETE_USERNAME | \\\r\n CREDUI_FLAGS_PERSIST | \\\r\n CREDUI_FLAGS_SERVER_CREDENTIAL | \\\r\n CREDUI_FLAGS_EXPECT_CONFIRMATION | \\\r\n CREDUI_FLAGS_GENERIC_CREDENTIALS | \\\r\n CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS | \\\r\n CREDUI_FLAGS_KEEP_USERNAME )")] + public const int CREDUI_FLAGS_PROMPT_VALID = (0x00001 | 0x00002 | 0x00004 | 0x00008 | 0x00010 | 0x00040 | 0x00080 | 0x00100 | 0x00200 | 0x00400 | 0x00800 | 0x01000 | 0x04000 | 0x20000 | 0x40000 | 0x80000 | 0x100000); + } +} diff --git a/sources/Interop/Windows/Windows/um/wincred/CREDUIWIN.cs b/sources/Interop/Windows/Windows/um/wincred/CREDUIWIN.cs new file mode 100644 index 0000000000..1ebda9aebf --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincred/CREDUIWIN.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CREDUIWIN + { + [NativeTypeName("#define CREDUIWIN_GENERIC 0x00000001")] + public const int CREDUIWIN_GENERIC = 0x00000001; + + [NativeTypeName("#define CREDUIWIN_CHECKBOX 0x00000002")] + public const int CREDUIWIN_CHECKBOX = 0x00000002; + + [NativeTypeName("#define CREDUIWIN_AUTHPACKAGE_ONLY 0x00000010")] + public const int CREDUIWIN_AUTHPACKAGE_ONLY = 0x00000010; + + [NativeTypeName("#define CREDUIWIN_IN_CRED_ONLY 0x00000020")] + public const int CREDUIWIN_IN_CRED_ONLY = 0x00000020; + + [NativeTypeName("#define CREDUIWIN_ENUMERATE_ADMINS 0x00000100")] + public const int CREDUIWIN_ENUMERATE_ADMINS = 0x00000100; + + [NativeTypeName("#define CREDUIWIN_ENUMERATE_CURRENT_USER 0x00000200")] + public const int CREDUIWIN_ENUMERATE_CURRENT_USER = 0x00000200; + + [NativeTypeName("#define CREDUIWIN_SECURE_PROMPT 0x00001000")] + public const int CREDUIWIN_SECURE_PROMPT = 0x00001000; + + [NativeTypeName("#define CREDUIWIN_PREPROMPTING 0X00002000")] + public const int CREDUIWIN_PREPROMPTING = 0X00002000; + + [NativeTypeName("#define CREDUIWIN_PACK_32_WOW 0x10000000")] + public const int CREDUIWIN_PACK_32_WOW = 0x10000000; + + [NativeTypeName("#define CREDUIWIN_IGNORE_CLOUDAUTHORITY_NAME 0x00040000")] + public const int CREDUIWIN_IGNORE_CLOUDAUTHORITY_NAME = 0x00040000; + + [NativeTypeName("#define CREDUIWIN_DOWNLEVEL_HELLO_AS_SMART_CARD 0x80000000")] + public const uint CREDUIWIN_DOWNLEVEL_HELLO_AS_SMART_CARD = 0x80000000; + + [NativeTypeName("#define CREDUIWIN_VALID_FLAGS ( \\\r\n CREDUIWIN_GENERIC | \\\r\n CREDUIWIN_CHECKBOX | \\\r\n CREDUIWIN_AUTHPACKAGE_ONLY | \\\r\n CREDUIWIN_IN_CRED_ONLY | \\\r\n CREDUIWIN_ENUMERATE_ADMINS | \\\r\n CREDUIWIN_ENUMERATE_CURRENT_USER | \\\r\n CREDUIWIN_SECURE_PROMPT | \\\r\n CREDUIWIN_PREPROMPTING | \\\r\n CREDUIWIN_PACK_32_WOW | \\\r\n CREDUIWIN_IGNORE_CLOUDAUTHORITY_NAME | \\\r\n CREDUIWIN_DOWNLEVEL_HELLO_AS_SMART_CARD )")] + public const uint CREDUIWIN_VALID_FLAGS = (0x00000001 | 0x00000002 | 0x00000010 | 0x00000020 | 0x00000100 | 0x00000200 | 0x00001000 | 0X00002000 | 0x10000000 | 0x00040000 | 0x80000000); + } +} diff --git a/sources/Interop/Windows/Windows/um/wincred/Windows.cs b/sources/Interop/Windows/Windows/um/wincred/Windows.cs index 958091ba88..58ccef83fa 100644 --- a/sources/Interop/Windows/Windows/um/wincred/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wincred/Windows.cs @@ -165,114 +165,6 @@ public static unsafe partial class Windows [return: NativeTypeName("DWORD")] public static extern uint CredUIReadSSOCredW([NativeTypeName("PCWSTR")] ushort* pszRealm, [NativeTypeName("PWSTR *")] ushort** ppszUsername); - [NativeTypeName("#define CREDUI_MAX_MESSAGE_LENGTH 1024")] - public const int CREDUI_MAX_MESSAGE_LENGTH = 1024; - - [NativeTypeName("#define CREDUI_MAX_CAPTION_LENGTH 128")] - public const int CREDUI_MAX_CAPTION_LENGTH = 128; - - [NativeTypeName("#define CREDUI_MAX_GENERIC_TARGET_LENGTH CRED_MAX_GENERIC_TARGET_NAME_LENGTH")] - public const int CREDUI_MAX_GENERIC_TARGET_LENGTH = 32767; - - [NativeTypeName("#define CREDUI_MAX_DOMAIN_TARGET_LENGTH CRED_MAX_DOMAIN_TARGET_NAME_LENGTH")] - public const int CREDUI_MAX_DOMAIN_TARGET_LENGTH = (256 + 1 + 80); - - [NativeTypeName("#define CREDUI_MAX_USERNAME_LENGTH CRED_MAX_USERNAME_LENGTH")] - public const int CREDUI_MAX_USERNAME_LENGTH = (256 + 1 + 256); - - [NativeTypeName("#define CREDUI_MAX_PASSWORD_LENGTH (512 / 2)")] - public const int CREDUI_MAX_PASSWORD_LENGTH = (512 / 2); - - [NativeTypeName("#define CREDUI_FLAGS_INCORRECT_PASSWORD 0x00001")] - public const int CREDUI_FLAGS_INCORRECT_PASSWORD = 0x00001; - - [NativeTypeName("#define CREDUI_FLAGS_DO_NOT_PERSIST 0x00002")] - public const int CREDUI_FLAGS_DO_NOT_PERSIST = 0x00002; - - [NativeTypeName("#define CREDUI_FLAGS_REQUEST_ADMINISTRATOR 0x00004")] - public const int CREDUI_FLAGS_REQUEST_ADMINISTRATOR = 0x00004; - - [NativeTypeName("#define CREDUI_FLAGS_EXCLUDE_CERTIFICATES 0x00008")] - public const int CREDUI_FLAGS_EXCLUDE_CERTIFICATES = 0x00008; - - [NativeTypeName("#define CREDUI_FLAGS_REQUIRE_CERTIFICATE 0x00010")] - public const int CREDUI_FLAGS_REQUIRE_CERTIFICATE = 0x00010; - - [NativeTypeName("#define CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX 0x00040")] - public const int CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX = 0x00040; - - [NativeTypeName("#define CREDUI_FLAGS_ALWAYS_SHOW_UI 0x00080")] - public const int CREDUI_FLAGS_ALWAYS_SHOW_UI = 0x00080; - - [NativeTypeName("#define CREDUI_FLAGS_REQUIRE_SMARTCARD 0x00100")] - public const int CREDUI_FLAGS_REQUIRE_SMARTCARD = 0x00100; - - [NativeTypeName("#define CREDUI_FLAGS_PASSWORD_ONLY_OK 0x00200")] - public const int CREDUI_FLAGS_PASSWORD_ONLY_OK = 0x00200; - - [NativeTypeName("#define CREDUI_FLAGS_VALIDATE_USERNAME 0x00400")] - public const int CREDUI_FLAGS_VALIDATE_USERNAME = 0x00400; - - [NativeTypeName("#define CREDUI_FLAGS_COMPLETE_USERNAME 0x00800")] - public const int CREDUI_FLAGS_COMPLETE_USERNAME = 0x00800; - - [NativeTypeName("#define CREDUI_FLAGS_PERSIST 0x01000")] - public const int CREDUI_FLAGS_PERSIST = 0x01000; - - [NativeTypeName("#define CREDUI_FLAGS_SERVER_CREDENTIAL 0x04000")] - public const int CREDUI_FLAGS_SERVER_CREDENTIAL = 0x04000; - - [NativeTypeName("#define CREDUI_FLAGS_EXPECT_CONFIRMATION 0x20000")] - public const int CREDUI_FLAGS_EXPECT_CONFIRMATION = 0x20000; - - [NativeTypeName("#define CREDUI_FLAGS_GENERIC_CREDENTIALS 0x40000")] - public const int CREDUI_FLAGS_GENERIC_CREDENTIALS = 0x40000; - - [NativeTypeName("#define CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS 0x80000")] - public const int CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS = 0x80000; - - [NativeTypeName("#define CREDUI_FLAGS_KEEP_USERNAME 0x100000")] - public const int CREDUI_FLAGS_KEEP_USERNAME = 0x100000; - - [NativeTypeName("#define CREDUI_FLAGS_PROMPT_VALID ( \\\r\n CREDUI_FLAGS_INCORRECT_PASSWORD | \\\r\n CREDUI_FLAGS_DO_NOT_PERSIST | \\\r\n CREDUI_FLAGS_REQUEST_ADMINISTRATOR | \\\r\n CREDUI_FLAGS_EXCLUDE_CERTIFICATES | \\\r\n CREDUI_FLAGS_REQUIRE_CERTIFICATE | \\\r\n CREDUI_FLAGS_SHOW_SAVE_CHECK_BOX | \\\r\n CREDUI_FLAGS_ALWAYS_SHOW_UI | \\\r\n CREDUI_FLAGS_REQUIRE_SMARTCARD | \\\r\n CREDUI_FLAGS_PASSWORD_ONLY_OK | \\\r\n CREDUI_FLAGS_VALIDATE_USERNAME | \\\r\n CREDUI_FLAGS_COMPLETE_USERNAME | \\\r\n CREDUI_FLAGS_PERSIST | \\\r\n CREDUI_FLAGS_SERVER_CREDENTIAL | \\\r\n CREDUI_FLAGS_EXPECT_CONFIRMATION | \\\r\n CREDUI_FLAGS_GENERIC_CREDENTIALS | \\\r\n CREDUI_FLAGS_USERNAME_TARGET_CREDENTIALS | \\\r\n CREDUI_FLAGS_KEEP_USERNAME )")] - public const int CREDUI_FLAGS_PROMPT_VALID = (0x00001 | 0x00002 | 0x00004 | 0x00008 | 0x00010 | 0x00040 | 0x00080 | 0x00100 | 0x00200 | 0x00400 | 0x00800 | 0x01000 | 0x04000 | 0x20000 | 0x40000 | 0x80000 | 0x100000); - - [NativeTypeName("#define CREDUIWIN_GENERIC 0x00000001")] - public const int CREDUIWIN_GENERIC = 0x00000001; - - [NativeTypeName("#define CREDUIWIN_CHECKBOX 0x00000002")] - public const int CREDUIWIN_CHECKBOX = 0x00000002; - - [NativeTypeName("#define CREDUIWIN_AUTHPACKAGE_ONLY 0x00000010")] - public const int CREDUIWIN_AUTHPACKAGE_ONLY = 0x00000010; - - [NativeTypeName("#define CREDUIWIN_IN_CRED_ONLY 0x00000020")] - public const int CREDUIWIN_IN_CRED_ONLY = 0x00000020; - - [NativeTypeName("#define CREDUIWIN_ENUMERATE_ADMINS 0x00000100")] - public const int CREDUIWIN_ENUMERATE_ADMINS = 0x00000100; - - [NativeTypeName("#define CREDUIWIN_ENUMERATE_CURRENT_USER 0x00000200")] - public const int CREDUIWIN_ENUMERATE_CURRENT_USER = 0x00000200; - - [NativeTypeName("#define CREDUIWIN_SECURE_PROMPT 0x00001000")] - public const int CREDUIWIN_SECURE_PROMPT = 0x00001000; - - [NativeTypeName("#define CREDUIWIN_PREPROMPTING 0X00002000")] - public const int CREDUIWIN_PREPROMPTING = 0X00002000; - - [NativeTypeName("#define CREDUIWIN_PACK_32_WOW 0x10000000")] - public const int CREDUIWIN_PACK_32_WOW = 0x10000000; - - [NativeTypeName("#define CREDUIWIN_IGNORE_CLOUDAUTHORITY_NAME 0x00040000")] - public const int CREDUIWIN_IGNORE_CLOUDAUTHORITY_NAME = 0x00040000; - - [NativeTypeName("#define CREDUIWIN_DOWNLEVEL_HELLO_AS_SMART_CARD 0x80000000")] - public const uint CREDUIWIN_DOWNLEVEL_HELLO_AS_SMART_CARD = 0x80000000; - - [NativeTypeName("#define CREDUIWIN_VALID_FLAGS ( \\\r\n CREDUIWIN_GENERIC | \\\r\n CREDUIWIN_CHECKBOX | \\\r\n CREDUIWIN_AUTHPACKAGE_ONLY | \\\r\n CREDUIWIN_IN_CRED_ONLY | \\\r\n CREDUIWIN_ENUMERATE_ADMINS | \\\r\n CREDUIWIN_ENUMERATE_CURRENT_USER | \\\r\n CREDUIWIN_SECURE_PROMPT | \\\r\n CREDUIWIN_PREPROMPTING | \\\r\n CREDUIWIN_PACK_32_WOW | \\\r\n CREDUIWIN_IGNORE_CLOUDAUTHORITY_NAME | \\\r\n CREDUIWIN_DOWNLEVEL_HELLO_AS_SMART_CARD )")] - public const uint CREDUIWIN_VALID_FLAGS = (0x00000001 | 0x00000002 | 0x00000010 | 0x00000020 | 0x00000100 | 0x00000200 | 0x00001000 | 0X00002000 | 0x10000000 | 0x00040000 | 0x80000000); - [NativeTypeName("#define CredWrite CredWriteW")] public static delegate* CredWrite => &CredWriteW; diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CMC.cs b/sources/Interop/Windows/Windows/um/wincrypt/CMC.cs new file mode 100644 index 0000000000..fdf4633f32 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/CMC.cs @@ -0,0 +1,91 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class CMC + { + [NativeTypeName("#define CMC_DATA ((LPCSTR) 59)")] + public static sbyte* CMC_DATA => ((sbyte*)(59)); + + [NativeTypeName("#define CMC_RESPONSE ((LPCSTR) 60)")] + public static sbyte* CMC_RESPONSE => ((sbyte*)(60)); + + [NativeTypeName("#define CMC_STATUS ((LPCSTR) 61)")] + public static sbyte* CMC_STATUS => ((sbyte*)(61)); + + [NativeTypeName("#define CMC_ADD_EXTENSIONS ((LPCSTR) 62)")] + public static sbyte* CMC_ADD_EXTENSIONS => ((sbyte*)(62)); + + [NativeTypeName("#define CMC_ADD_ATTRIBUTES ((LPCSTR) 63)")] + public static sbyte* CMC_ADD_ATTRIBUTES => ((sbyte*)(63)); + + [NativeTypeName("#define CMC_TAGGED_CERT_REQUEST_CHOICE 1")] + public const int CMC_TAGGED_CERT_REQUEST_CHOICE = 1; + + [NativeTypeName("#define CMC_OTHER_INFO_NO_CHOICE 0")] + public const int CMC_OTHER_INFO_NO_CHOICE = 0; + + [NativeTypeName("#define CMC_OTHER_INFO_FAIL_CHOICE 1")] + public const int CMC_OTHER_INFO_FAIL_CHOICE = 1; + + [NativeTypeName("#define CMC_OTHER_INFO_PEND_CHOICE 2")] + public const int CMC_OTHER_INFO_PEND_CHOICE = 2; + + [NativeTypeName("#define CMC_STATUS_SUCCESS 0")] + public const int CMC_STATUS_SUCCESS = 0; + + [NativeTypeName("#define CMC_STATUS_FAILED 2")] + public const int CMC_STATUS_FAILED = 2; + + [NativeTypeName("#define CMC_STATUS_PENDING 3")] + public const int CMC_STATUS_PENDING = 3; + + [NativeTypeName("#define CMC_STATUS_NO_SUPPORT 4")] + public const int CMC_STATUS_NO_SUPPORT = 4; + + [NativeTypeName("#define CMC_STATUS_CONFIRM_REQUIRED 5")] + public const int CMC_STATUS_CONFIRM_REQUIRED = 5; + + [NativeTypeName("#define CMC_FAIL_BAD_ALG 0")] + public const int CMC_FAIL_BAD_ALG = 0; + + [NativeTypeName("#define CMC_FAIL_BAD_MESSAGE_CHECK 1")] + public const int CMC_FAIL_BAD_MESSAGE_CHECK = 1; + + [NativeTypeName("#define CMC_FAIL_BAD_REQUEST 2")] + public const int CMC_FAIL_BAD_REQUEST = 2; + + [NativeTypeName("#define CMC_FAIL_BAD_TIME 3")] + public const int CMC_FAIL_BAD_TIME = 3; + + [NativeTypeName("#define CMC_FAIL_BAD_CERT_ID 4")] + public const int CMC_FAIL_BAD_CERT_ID = 4; + + [NativeTypeName("#define CMC_FAIL_UNSUPORTED_EXT 5")] + public const int CMC_FAIL_UNSUPORTED_EXT = 5; + + [NativeTypeName("#define CMC_FAIL_MUST_ARCHIVE_KEYS 6")] + public const int CMC_FAIL_MUST_ARCHIVE_KEYS = 6; + + [NativeTypeName("#define CMC_FAIL_BAD_IDENTITY 7")] + public const int CMC_FAIL_BAD_IDENTITY = 7; + + [NativeTypeName("#define CMC_FAIL_POP_REQUIRED 8")] + public const int CMC_FAIL_POP_REQUIRED = 8; + + [NativeTypeName("#define CMC_FAIL_POP_FAILED 9")] + public const int CMC_FAIL_POP_FAILED = 9; + + [NativeTypeName("#define CMC_FAIL_NO_KEY_REUSE 10")] + public const int CMC_FAIL_NO_KEY_REUSE = 10; + + [NativeTypeName("#define CMC_FAIL_INTERNAL_CA_ERROR 11")] + public const int CMC_FAIL_INTERNAL_CA_ERROR = 11; + + [NativeTypeName("#define CMC_FAIL_TRY_LATER 12")] + public const int CMC_FAIL_TRY_LATER = 12; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CRL.cs b/sources/Interop/Windows/Windows/um/wincrypt/CRL.cs new file mode 100644 index 0000000000..186fd768d5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/CRL.cs @@ -0,0 +1,118 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CRL + { + [NativeTypeName("#define CRL_V1 0")] + public const int CRL_V1 = 0; + + [NativeTypeName("#define CRL_V2 1")] + public const int CRL_V2 = 1; + + [NativeTypeName("#define CRL_REASON_UNSPECIFIED 0")] + public const int CRL_REASON_UNSPECIFIED = 0; + + [NativeTypeName("#define CRL_REASON_KEY_COMPROMISE 1")] + public const int CRL_REASON_KEY_COMPROMISE = 1; + + [NativeTypeName("#define CRL_REASON_CA_COMPROMISE 2")] + public const int CRL_REASON_CA_COMPROMISE = 2; + + [NativeTypeName("#define CRL_REASON_AFFILIATION_CHANGED 3")] + public const int CRL_REASON_AFFILIATION_CHANGED = 3; + + [NativeTypeName("#define CRL_REASON_SUPERSEDED 4")] + public const int CRL_REASON_SUPERSEDED = 4; + + [NativeTypeName("#define CRL_REASON_CESSATION_OF_OPERATION 5")] + public const int CRL_REASON_CESSATION_OF_OPERATION = 5; + + [NativeTypeName("#define CRL_REASON_CERTIFICATE_HOLD 6")] + public const int CRL_REASON_CERTIFICATE_HOLD = 6; + + [NativeTypeName("#define CRL_REASON_REMOVE_FROM_CRL 8")] + public const int CRL_REASON_REMOVE_FROM_CRL = 8; + + [NativeTypeName("#define CRL_REASON_PRIVILEGE_WITHDRAWN 9")] + public const int CRL_REASON_PRIVILEGE_WITHDRAWN = 9; + + [NativeTypeName("#define CRL_REASON_AA_COMPROMISE 10")] + public const int CRL_REASON_AA_COMPROMISE = 10; + + [NativeTypeName("#define CRL_DIST_POINT_NO_NAME 0")] + public const int CRL_DIST_POINT_NO_NAME = 0; + + [NativeTypeName("#define CRL_DIST_POINT_FULL_NAME 1")] + public const int CRL_DIST_POINT_FULL_NAME = 1; + + [NativeTypeName("#define CRL_DIST_POINT_ISSUER_RDN_NAME 2")] + public const int CRL_DIST_POINT_ISSUER_RDN_NAME = 2; + + [NativeTypeName("#define CRL_REASON_UNUSED_FLAG 0x80")] + public const int CRL_REASON_UNUSED_FLAG = 0x80; + + [NativeTypeName("#define CRL_REASON_KEY_COMPROMISE_FLAG 0x40")] + public const int CRL_REASON_KEY_COMPROMISE_FLAG = 0x40; + + [NativeTypeName("#define CRL_REASON_CA_COMPROMISE_FLAG 0x20")] + public const int CRL_REASON_CA_COMPROMISE_FLAG = 0x20; + + [NativeTypeName("#define CRL_REASON_AFFILIATION_CHANGED_FLAG 0x10")] + public const int CRL_REASON_AFFILIATION_CHANGED_FLAG = 0x10; + + [NativeTypeName("#define CRL_REASON_SUPERSEDED_FLAG 0x08")] + public const int CRL_REASON_SUPERSEDED_FLAG = 0x08; + + [NativeTypeName("#define CRL_REASON_CESSATION_OF_OPERATION_FLAG 0x04")] + public const int CRL_REASON_CESSATION_OF_OPERATION_FLAG = 0x04; + + [NativeTypeName("#define CRL_REASON_CERTIFICATE_HOLD_FLAG 0x02")] + public const int CRL_REASON_CERTIFICATE_HOLD_FLAG = 0x02; + + [NativeTypeName("#define CRL_REASON_PRIVILEGE_WITHDRAWN_FLAG 0x01")] + public const int CRL_REASON_PRIVILEGE_WITHDRAWN_FLAG = 0x01; + + [NativeTypeName("#define CRL_REASON_AA_COMPROMISE_FLAG 0x80")] + public const int CRL_REASON_AA_COMPROMISE_FLAG = 0x80; + + [NativeTypeName("#define CRL_DIST_POINT_ERR_INDEX_MASK 0x7F")] + public const int CRL_DIST_POINT_ERR_INDEX_MASK = 0x7F; + + [NativeTypeName("#define CRL_DIST_POINT_ERR_INDEX_SHIFT 24")] + public const int CRL_DIST_POINT_ERR_INDEX_SHIFT = 24; + + [NativeTypeName("#define CRL_DIST_POINT_ERR_CRL_ISSUER_BIT 0x80000000L")] + public const uint CRL_DIST_POINT_ERR_CRL_ISSUER_BIT = 0x80000000; + + [NativeTypeName("#define CRL_FIND_ANY 0")] + public const int CRL_FIND_ANY = 0; + + [NativeTypeName("#define CRL_FIND_ISSUED_BY 1")] + public const int CRL_FIND_ISSUED_BY = 1; + + [NativeTypeName("#define CRL_FIND_EXISTING 2")] + public const int CRL_FIND_EXISTING = 2; + + [NativeTypeName("#define CRL_FIND_ISSUED_FOR 3")] + public const int CRL_FIND_ISSUED_FOR = 3; + + [NativeTypeName("#define CRL_FIND_ISSUED_BY_AKI_FLAG 0x1")] + public const int CRL_FIND_ISSUED_BY_AKI_FLAG = 0x1; + + [NativeTypeName("#define CRL_FIND_ISSUED_BY_SIGNATURE_FLAG 0x2")] + public const int CRL_FIND_ISSUED_BY_SIGNATURE_FLAG = 0x2; + + [NativeTypeName("#define CRL_FIND_ISSUED_BY_DELTA_FLAG 0x4")] + public const int CRL_FIND_ISSUED_BY_DELTA_FLAG = 0x4; + + [NativeTypeName("#define CRL_FIND_ISSUED_BY_BASE_FLAG 0x8")] + public const int CRL_FIND_ISSUED_BY_BASE_FLAG = 0x8; + + [NativeTypeName("#define CRL_FIND_ISSUED_FOR_SET_STRONG_PROPERTIES_FLAG 0x10")] + public const int CRL_FIND_ISSUED_FOR_SET_STRONG_PROPERTIES_FLAG = 0x10; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/CTL.cs b/sources/Interop/Windows/Windows/um/wincrypt/CTL.cs new file mode 100644 index 0000000000..b9430fa372 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/CTL.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class CTL + { + [NativeTypeName("#define CTL_V1 0")] + public const int CTL_V1 = 0; + + [NativeTypeName("#define CTL_ENTRY_FROM_PROP_CHAIN_FLAG 0x1")] + public const int CTL_ENTRY_FROM_PROP_CHAIN_FLAG = 0x1; + + [NativeTypeName("#define CTL_ANY_SUBJECT_TYPE 1")] + public const int CTL_ANY_SUBJECT_TYPE = 1; + + [NativeTypeName("#define CTL_CERT_SUBJECT_TYPE 2")] + public const int CTL_CERT_SUBJECT_TYPE = 2; + + [NativeTypeName("#define CTL_FIND_ANY 0")] + public const int CTL_FIND_ANY = 0; + + [NativeTypeName("#define CTL_FIND_SHA1_HASH 1")] + public const int CTL_FIND_SHA1_HASH = 1; + + [NativeTypeName("#define CTL_FIND_MD5_HASH 2")] + public const int CTL_FIND_MD5_HASH = 2; + + [NativeTypeName("#define CTL_FIND_USAGE 3")] + public const int CTL_FIND_USAGE = 3; + + [NativeTypeName("#define CTL_FIND_SUBJECT 4")] + public const int CTL_FIND_SUBJECT = 4; + + [NativeTypeName("#define CTL_FIND_EXISTING 5")] + public const int CTL_FIND_EXISTING = 5; + + [NativeTypeName("#define CTL_FIND_NO_LIST_ID_CBDATA 0xFFFFFFFF")] + public const uint CTL_FIND_NO_LIST_ID_CBDATA = 0xFFFFFFFF; + + [NativeTypeName("#define CTL_FIND_NO_SIGNER_PTR ((PCERT_INFO) -1)")] + public static CERT_INFO* CTL_FIND_NO_SIGNER_PTR => unchecked((CERT_INFO*)(-1)); + + [NativeTypeName("#define CTL_FIND_SAME_USAGE_FLAG 0x1")] + public const int CTL_FIND_SAME_USAGE_FLAG = 0x1; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/KEY.cs b/sources/Interop/Windows/Windows/um/wincrypt/KEY.cs new file mode 100644 index 0000000000..a9c4dffff8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/KEY.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class KEY + { + [NativeTypeName("#define KEY_LENGTH_MASK 0xFFFF0000")] + public const uint KEY_LENGTH_MASK = 0xFFFF0000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/KP.cs b/sources/Interop/Windows/Windows/um/wincrypt/KP.cs new file mode 100644 index 0000000000..1b98022b91 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/KP.cs @@ -0,0 +1,142 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class KP + { + [NativeTypeName("#define KP_IV 1")] + public const int KP_IV = 1; + + [NativeTypeName("#define KP_SALT 2")] + public const int KP_SALT = 2; + + [NativeTypeName("#define KP_PADDING 3")] + public const int KP_PADDING = 3; + + [NativeTypeName("#define KP_MODE 4")] + public const int KP_MODE = 4; + + [NativeTypeName("#define KP_MODE_BITS 5")] + public const int KP_MODE_BITS = 5; + + [NativeTypeName("#define KP_PERMISSIONS 6")] + public const int KP_PERMISSIONS = 6; + + [NativeTypeName("#define KP_ALGID 7")] + public const int KP_ALGID = 7; + + [NativeTypeName("#define KP_BLOCKLEN 8")] + public const int KP_BLOCKLEN = 8; + + [NativeTypeName("#define KP_KEYLEN 9")] + public const int KP_KEYLEN = 9; + + [NativeTypeName("#define KP_SALT_EX 10")] + public const int KP_SALT_EX = 10; + + [NativeTypeName("#define KP_P 11")] + public const int KP_P = 11; + + [NativeTypeName("#define KP_G 12")] + public const int KP_G = 12; + + [NativeTypeName("#define KP_Q 13")] + public const int KP_Q = 13; + + [NativeTypeName("#define KP_X 14")] + public const int KP_X = 14; + + [NativeTypeName("#define KP_Y 15")] + public const int KP_Y = 15; + + [NativeTypeName("#define KP_RA 16")] + public const int KP_RA = 16; + + [NativeTypeName("#define KP_RB 17")] + public const int KP_RB = 17; + + [NativeTypeName("#define KP_INFO 18")] + public const int KP_INFO = 18; + + [NativeTypeName("#define KP_EFFECTIVE_KEYLEN 19")] + public const int KP_EFFECTIVE_KEYLEN = 19; + + [NativeTypeName("#define KP_SCHANNEL_ALG 20")] + public const int KP_SCHANNEL_ALG = 20; + + [NativeTypeName("#define KP_CLIENT_RANDOM 21")] + public const int KP_CLIENT_RANDOM = 21; + + [NativeTypeName("#define KP_SERVER_RANDOM 22")] + public const int KP_SERVER_RANDOM = 22; + + [NativeTypeName("#define KP_RP 23")] + public const int KP_RP = 23; + + [NativeTypeName("#define KP_PRECOMP_MD5 24")] + public const int KP_PRECOMP_MD5 = 24; + + [NativeTypeName("#define KP_PRECOMP_SHA 25")] + public const int KP_PRECOMP_SHA = 25; + + [NativeTypeName("#define KP_CERTIFICATE 26")] + public const int KP_CERTIFICATE = 26; + + [NativeTypeName("#define KP_CLEAR_KEY 27")] + public const int KP_CLEAR_KEY = 27; + + [NativeTypeName("#define KP_PUB_EX_LEN 28")] + public const int KP_PUB_EX_LEN = 28; + + [NativeTypeName("#define KP_PUB_EX_VAL 29")] + public const int KP_PUB_EX_VAL = 29; + + [NativeTypeName("#define KP_KEYVAL 30")] + public const int KP_KEYVAL = 30; + + [NativeTypeName("#define KP_ADMIN_PIN 31")] + public const int KP_ADMIN_PIN = 31; + + [NativeTypeName("#define KP_KEYEXCHANGE_PIN 32")] + public const int KP_KEYEXCHANGE_PIN = 32; + + [NativeTypeName("#define KP_SIGNATURE_PIN 33")] + public const int KP_SIGNATURE_PIN = 33; + + [NativeTypeName("#define KP_PREHASH 34")] + public const int KP_PREHASH = 34; + + [NativeTypeName("#define KP_ROUNDS 35")] + public const int KP_ROUNDS = 35; + + [NativeTypeName("#define KP_OAEP_PARAMS 36")] + public const int KP_OAEP_PARAMS = 36; + + [NativeTypeName("#define KP_CMS_KEY_INFO 37")] + public const int KP_CMS_KEY_INFO = 37; + + [NativeTypeName("#define KP_CMS_DH_KEY_INFO 38")] + public const int KP_CMS_DH_KEY_INFO = 38; + + [NativeTypeName("#define KP_PUB_PARAMS 39")] + public const int KP_PUB_PARAMS = 39; + + [NativeTypeName("#define KP_VERIFY_PARAMS 40")] + public const int KP_VERIFY_PARAMS = 40; + + [NativeTypeName("#define KP_HIGHEST_VERSION 41")] + public const int KP_HIGHEST_VERSION = 41; + + [NativeTypeName("#define KP_GET_USE_COUNT 42")] + public const int KP_GET_USE_COUNT = 42; + + [NativeTypeName("#define KP_PIN_ID 43")] + public const int KP_PIN_ID = 43; + + [NativeTypeName("#define KP_PIN_INFO 44")] + public const int KP_PIN_INFO = 44; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/MS.cs b/sources/Interop/Windows/Windows/um/wincrypt/MS.cs new file mode 100644 index 0000000000..73224c46ed --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/MS.cs @@ -0,0 +1,120 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class MS + { + [NativeTypeName("#define MS_DEF_PROV_A \"Microsoft Base Cryptographic Provider v1.0\"")] + public static ReadOnlySpan MS_DEF_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x76, 0x31, 0x2E, 0x30, 0x00 }; + + [NativeTypeName("#define MS_DEF_PROV_W L\"Microsoft Base Cryptographic Provider v1.0\"")] + public const string MS_DEF_PROV_W = "Microsoft Base Cryptographic Provider v1.0"; + + [NativeTypeName("#define MS_DEF_PROV MS_DEF_PROV_W")] + public const string MS_DEF_PROV = "Microsoft Base Cryptographic Provider v1.0"; + + [NativeTypeName("#define MS_ENHANCED_PROV_A \"Microsoft Enhanced Cryptographic Provider v1.0\"")] + public static ReadOnlySpan MS_ENHANCED_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x76, 0x31, 0x2E, 0x30, 0x00 }; + + [NativeTypeName("#define MS_ENHANCED_PROV_W L\"Microsoft Enhanced Cryptographic Provider v1.0\"")] + public const string MS_ENHANCED_PROV_W = "Microsoft Enhanced Cryptographic Provider v1.0"; + + [NativeTypeName("#define MS_ENHANCED_PROV MS_ENHANCED_PROV_W")] + public const string MS_ENHANCED_PROV = "Microsoft Enhanced Cryptographic Provider v1.0"; + + [NativeTypeName("#define MS_STRONG_PROV_A \"Microsoft Strong Cryptographic Provider\"")] + public static ReadOnlySpan MS_STRONG_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x53, 0x74, 0x72, 0x6F, 0x6E, 0x67, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_STRONG_PROV_W L\"Microsoft Strong Cryptographic Provider\"")] + public const string MS_STRONG_PROV_W = "Microsoft Strong Cryptographic Provider"; + + [NativeTypeName("#define MS_STRONG_PROV MS_STRONG_PROV_W")] + public const string MS_STRONG_PROV = "Microsoft Strong Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_RSA_SIG_PROV_A \"Microsoft RSA Signature Cryptographic Provider\"")] + public static ReadOnlySpan MS_DEF_RSA_SIG_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x52, 0x53, 0x41, 0x20, 0x53, 0x69, 0x67, 0x6E, 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_DEF_RSA_SIG_PROV_W L\"Microsoft RSA Signature Cryptographic Provider\"")] + public const string MS_DEF_RSA_SIG_PROV_W = "Microsoft RSA Signature Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_RSA_SIG_PROV MS_DEF_RSA_SIG_PROV_W")] + public const string MS_DEF_RSA_SIG_PROV = "Microsoft RSA Signature Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV_A \"Microsoft RSA SChannel Cryptographic Provider\"")] + public static ReadOnlySpan MS_DEF_RSA_SCHANNEL_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x52, 0x53, 0x41, 0x20, 0x53, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV_W L\"Microsoft RSA SChannel Cryptographic Provider\"")] + public const string MS_DEF_RSA_SCHANNEL_PROV_W = "Microsoft RSA SChannel Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV MS_DEF_RSA_SCHANNEL_PROV_W")] + public const string MS_DEF_RSA_SCHANNEL_PROV = "Microsoft RSA SChannel Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_DSS_PROV_A \"Microsoft Base DSS Cryptographic Provider\"")] + public static ReadOnlySpan MS_DEF_DSS_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x44, 0x53, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_DEF_DSS_PROV_W L\"Microsoft Base DSS Cryptographic Provider\"")] + public const string MS_DEF_DSS_PROV_W = "Microsoft Base DSS Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_DSS_PROV MS_DEF_DSS_PROV_W")] + public const string MS_DEF_DSS_PROV = "Microsoft Base DSS Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_DSS_DH_PROV_A \"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\"")] + public static ReadOnlySpan MS_DEF_DSS_DH_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x44, 0x53, 0x53, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x44, 0x69, 0x66, 0x66, 0x69, 0x65, 0x2D, 0x48, 0x65, 0x6C, 0x6C, 0x6D, 0x61, 0x6E, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_DEF_DSS_DH_PROV_W L\"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\"")] + public const string MS_DEF_DSS_DH_PROV_W = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_DSS_DH_PROV MS_DEF_DSS_DH_PROV_W")] + public const string MS_DEF_DSS_DH_PROV = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"; + + [NativeTypeName("#define MS_ENH_DSS_DH_PROV_A \"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\"")] + public static ReadOnlySpan MS_ENH_DSS_DH_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x44, 0x53, 0x53, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x44, 0x69, 0x66, 0x66, 0x69, 0x65, 0x2D, 0x48, 0x65, 0x6C, 0x6C, 0x6D, 0x61, 0x6E, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_ENH_DSS_DH_PROV_W L\"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\"")] + public const string MS_ENH_DSS_DH_PROV_W = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"; + + [NativeTypeName("#define MS_ENH_DSS_DH_PROV MS_ENH_DSS_DH_PROV_W")] + public const string MS_ENH_DSS_DH_PROV = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV_A \"Microsoft DH SChannel Cryptographic Provider\"")] + public static ReadOnlySpan MS_DEF_DH_SCHANNEL_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x44, 0x48, 0x20, 0x53, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV_W L\"Microsoft DH SChannel Cryptographic Provider\"")] + public const string MS_DEF_DH_SCHANNEL_PROV_W = "Microsoft DH SChannel Cryptographic Provider"; + + [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV MS_DEF_DH_SCHANNEL_PROV_W")] + public const string MS_DEF_DH_SCHANNEL_PROV = "Microsoft DH SChannel Cryptographic Provider"; + + [NativeTypeName("#define MS_SCARD_PROV_A \"Microsoft Base Smart Card Crypto Provider\"")] + public static ReadOnlySpan MS_SCARD_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x53, 0x6D, 0x61, 0x72, 0x74, 0x20, 0x43, 0x61, 0x72, 0x64, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_SCARD_PROV_W L\"Microsoft Base Smart Card Crypto Provider\"")] + public const string MS_SCARD_PROV_W = "Microsoft Base Smart Card Crypto Provider"; + + [NativeTypeName("#define MS_SCARD_PROV MS_SCARD_PROV_W")] + public const string MS_SCARD_PROV = "Microsoft Base Smart Card Crypto Provider"; + + [NativeTypeName("#define MS_ENH_RSA_AES_PROV_A \"Microsoft Enhanced RSA and AES Cryptographic Provider\"")] + public static ReadOnlySpan MS_ENH_RSA_AES_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x52, 0x53, 0x41, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x41, 0x45, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; + + [NativeTypeName("#define MS_ENH_RSA_AES_PROV_W L\"Microsoft Enhanced RSA and AES Cryptographic Provider\"")] + public const string MS_ENH_RSA_AES_PROV_W = "Microsoft Enhanced RSA and AES Cryptographic Provider"; + + [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP_A \"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\"")] + public static ReadOnlySpan MS_ENH_RSA_AES_PROV_XP_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x52, 0x53, 0x41, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x41, 0x45, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x28, 0x50, 0x72, 0x6F, 0x74, 0x6F, 0x74, 0x79, 0x70, 0x65, 0x29, 0x00 }; + + [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP_W L\"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\"")] + public const string MS_ENH_RSA_AES_PROV_XP_W = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"; + + [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP MS_ENH_RSA_AES_PROV_XP_W")] + public const string MS_ENH_RSA_AES_PROV_XP = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"; + + [NativeTypeName("#define MS_ENH_RSA_AES_PROV MS_ENH_RSA_AES_PROV_W")] + public const string MS_ENH_RSA_AES_PROV = "Microsoft Enhanced RSA and AES Cryptographic Provider"; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/OCSP.cs b/sources/Interop/Windows/Windows/um/wincrypt/OCSP.cs new file mode 100644 index 0000000000..05e95a0a6e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/OCSP.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class OCSP + { + [NativeTypeName("#define OCSP_SIGNED_REQUEST ((LPCSTR) 65)")] + public static sbyte* OCSP_SIGNED_REQUEST => ((sbyte*)(65)); + + [NativeTypeName("#define OCSP_REQUEST ((LPCSTR) 66)")] + public static sbyte* OCSP_REQUEST => ((sbyte*)(66)); + + [NativeTypeName("#define OCSP_RESPONSE ((LPCSTR) 67)")] + public static sbyte* OCSP_RESPONSE => ((sbyte*)(67)); + + [NativeTypeName("#define OCSP_BASIC_SIGNED_RESPONSE ((LPCSTR) 68)")] + public static sbyte* OCSP_BASIC_SIGNED_RESPONSE => ((sbyte*)(68)); + + [NativeTypeName("#define OCSP_BASIC_RESPONSE ((LPCSTR) 69)")] + public static sbyte* OCSP_BASIC_RESPONSE => ((sbyte*)(69)); + + [NativeTypeName("#define OCSP_REQUEST_V1 0")] + public const int OCSP_REQUEST_V1 = 0; + + [NativeTypeName("#define OCSP_SUCCESSFUL_RESPONSE 0")] + public const int OCSP_SUCCESSFUL_RESPONSE = 0; + + [NativeTypeName("#define OCSP_MALFORMED_REQUEST_RESPONSE 1")] + public const int OCSP_MALFORMED_REQUEST_RESPONSE = 1; + + [NativeTypeName("#define OCSP_INTERNAL_ERROR_RESPONSE 2")] + public const int OCSP_INTERNAL_ERROR_RESPONSE = 2; + + [NativeTypeName("#define OCSP_TRY_LATER_RESPONSE 3")] + public const int OCSP_TRY_LATER_RESPONSE = 3; + + [NativeTypeName("#define OCSP_SIG_REQUIRED_RESPONSE 5")] + public const int OCSP_SIG_REQUIRED_RESPONSE = 5; + + [NativeTypeName("#define OCSP_UNAUTHORIZED_RESPONSE 6")] + public const int OCSP_UNAUTHORIZED_RESPONSE = 6; + + [NativeTypeName("#define OCSP_BASIC_GOOD_CERT_STATUS 0")] + public const int OCSP_BASIC_GOOD_CERT_STATUS = 0; + + [NativeTypeName("#define OCSP_BASIC_REVOKED_CERT_STATUS 1")] + public const int OCSP_BASIC_REVOKED_CERT_STATUS = 1; + + [NativeTypeName("#define OCSP_BASIC_UNKNOWN_CERT_STATUS 2")] + public const int OCSP_BASIC_UNKNOWN_CERT_STATUS = 2; + + [NativeTypeName("#define OCSP_BASIC_RESPONSE_V1 0")] + public const int OCSP_BASIC_RESPONSE_V1 = 0; + + [NativeTypeName("#define OCSP_BASIC_BY_NAME_RESPONDER_ID 1")] + public const int OCSP_BASIC_BY_NAME_RESPONDER_ID = 1; + + [NativeTypeName("#define OCSP_BASIC_BY_KEY_RESPONDER_ID 2")] + public const int OCSP_BASIC_BY_KEY_RESPONDER_ID = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/PKCS12.cs b/sources/Interop/Windows/Windows/um/wincrypt/PKCS12.cs new file mode 100644 index 0000000000..e9c2a8c780 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/PKCS12.cs @@ -0,0 +1,99 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class PKCS12 + { + [NativeTypeName("#define PKCS12_IMPORT_SILENT 0x00000040")] + public const int PKCS12_IMPORT_SILENT = 0x00000040; + + [NativeTypeName("#define PKCS12_PREFER_CNG_KSP 0x00000100")] + public const int PKCS12_PREFER_CNG_KSP = 0x00000100; + + [NativeTypeName("#define PKCS12_ALWAYS_CNG_KSP 0x00000200")] + public const int PKCS12_ALWAYS_CNG_KSP = 0x00000200; + + [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES 0x00000400")] + public const int PKCS12_ONLY_CERTIFICATES = 0x00000400; + + [NativeTypeName("#define PKCS12_ONLY_NOT_ENCRYPTED_CERTIFICATES 0x00000800")] + public const int PKCS12_ONLY_NOT_ENCRYPTED_CERTIFICATES = 0x00000800; + + [NativeTypeName("#define PKCS12_ALLOW_OVERWRITE_KEY 0x00004000")] + public const int PKCS12_ALLOW_OVERWRITE_KEY = 0x00004000; + + [NativeTypeName("#define PKCS12_NO_PERSIST_KEY 0x00008000")] + public const int PKCS12_NO_PERSIST_KEY = 0x00008000; + + [NativeTypeName("#define PKCS12_VIRTUAL_ISOLATION_KEY 0x00010000")] + public const int PKCS12_VIRTUAL_ISOLATION_KEY = 0x00010000; + + [NativeTypeName("#define PKCS12_IMPORT_RESERVED_MASK 0xffff0000")] + public const uint PKCS12_IMPORT_RESERVED_MASK = 0xffff0000; + + [NativeTypeName("#define PKCS12_OBJECT_LOCATOR_ALL_IMPORT_FLAGS ( PKCS12_ALWAYS_CNG_KSP | \\\r\n PKCS12_NO_PERSIST_KEY | \\\r\n PKCS12_IMPORT_SILENT | \\\r\n PKCS12_INCLUDE_EXTENDED_PROPERTIES )")] + public const int PKCS12_OBJECT_LOCATOR_ALL_IMPORT_FLAGS = (0x00000200 | 0x00008000 | 0x00000040 | 0x0010); + + [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES_PROVIDER_TYPE 0")] + public const int PKCS12_ONLY_CERTIFICATES_PROVIDER_TYPE = 0; + + [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES_PROVIDER_NAME L\"PfxProvider\"")] + public const string PKCS12_ONLY_CERTIFICATES_PROVIDER_NAME = "PfxProvider"; + + [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES_CONTAINER_NAME L\"PfxContainer\"")] + public const string PKCS12_ONLY_CERTIFICATES_CONTAINER_NAME = "PfxContainer"; + + [NativeTypeName("#define PKCS12_INCLUDE_EXTENDED_PROPERTIES 0x0010")] + public const int PKCS12_INCLUDE_EXTENDED_PROPERTIES = 0x0010; + + [NativeTypeName("#define PKCS12_PROTECT_TO_DOMAIN_SIDS 0x0020")] + public const int PKCS12_PROTECT_TO_DOMAIN_SIDS = 0x0020; + + [NativeTypeName("#define PKCS12_EXPORT_SILENT 0x0040")] + public const int PKCS12_EXPORT_SILENT = 0x0040; + + [NativeTypeName("#define PKCS12_EXPORT_PBES2_PARAMS 0x0080")] + public const int PKCS12_EXPORT_PBES2_PARAMS = 0x0080; + + [NativeTypeName("#define PKCS12_DISABLE_ENCRYPT_CERTIFICATES 0x0100")] + public const int PKCS12_DISABLE_ENCRYPT_CERTIFICATES = 0x0100; + + [NativeTypeName("#define PKCS12_ENCRYPT_CERTIFICATES 0x0200")] + public const int PKCS12_ENCRYPT_CERTIFICATES = 0x0200; + + [NativeTypeName("#define PKCS12_EXPORT_ECC_CURVE_PARAMETERS 0x1000")] + public const int PKCS12_EXPORT_ECC_CURVE_PARAMETERS = 0x1000; + + [NativeTypeName("#define PKCS12_EXPORT_ECC_CURVE_OID 0x2000")] + public const int PKCS12_EXPORT_ECC_CURVE_OID = 0x2000; + + [NativeTypeName("#define PKCS12_EXPORT_RESERVED_MASK 0xffff0000")] + public const uint PKCS12_EXPORT_RESERVED_MASK = 0xffff0000; + + [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA1 \"1.2.840.113549.2.7\"")] + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x37, 0x00 }; + + [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA256 \"1.2.840.113549.2.9\"")] + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA256 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x39, 0x00 }; + + [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA384 \"1.2.840.113549.2.10\"")] + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA384 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x31, 0x30, 0x00 }; + + [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA512 \"1.2.840.113549.2.11\"")] + public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA512 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x31, 0x31, 0x00 }; + + [NativeTypeName("#define PKCS12_PBES2_ALG_AES256_SHA256 L\"AES256-SHA256\"")] + public const string PKCS12_PBES2_ALG_AES256_SHA256 = "AES256-SHA256"; + + [NativeTypeName("#define PKCS12_CONFIG_REGPATH L\"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\PFX\"")] + public const string PKCS12_CONFIG_REGPATH = "Software\\Microsoft\\Windows\\CurrentVersion\\PFX"; + + [NativeTypeName("#define PKCS12_ENCRYPT_CERTIFICATES_VALUE_NAME L\"EncryptCertificates\"")] + public const string PKCS12_ENCRYPT_CERTIFICATES_VALUE_NAME = "EncryptCertificates"; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/PP.cs b/sources/Interop/Windows/Windows/um/wincrypt/PP.cs new file mode 100644 index 0000000000..6a49c64c19 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/PP.cs @@ -0,0 +1,151 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PP + { + [NativeTypeName("#define PP_ENUMALGS 1")] + public const int PP_ENUMALGS = 1; + + [NativeTypeName("#define PP_ENUMCONTAINERS 2")] + public const int PP_ENUMCONTAINERS = 2; + + [NativeTypeName("#define PP_IMPTYPE 3")] + public const int PP_IMPTYPE = 3; + + [NativeTypeName("#define PP_NAME 4")] + public const int PP_NAME = 4; + + [NativeTypeName("#define PP_VERSION 5")] + public const int PP_VERSION = 5; + + [NativeTypeName("#define PP_CONTAINER 6")] + public const int PP_CONTAINER = 6; + + [NativeTypeName("#define PP_CHANGE_PASSWORD 7")] + public const int PP_CHANGE_PASSWORD = 7; + + [NativeTypeName("#define PP_KEYSET_SEC_DESCR 8")] + public const int PP_KEYSET_SEC_DESCR = 8; + + [NativeTypeName("#define PP_CERTCHAIN 9")] + public const int PP_CERTCHAIN = 9; + + [NativeTypeName("#define PP_KEY_TYPE_SUBTYPE 10")] + public const int PP_KEY_TYPE_SUBTYPE = 10; + + [NativeTypeName("#define PP_PROVTYPE 16")] + public const int PP_PROVTYPE = 16; + + [NativeTypeName("#define PP_KEYSTORAGE 17")] + public const int PP_KEYSTORAGE = 17; + + [NativeTypeName("#define PP_APPLI_CERT 18")] + public const int PP_APPLI_CERT = 18; + + [NativeTypeName("#define PP_SYM_KEYSIZE 19")] + public const int PP_SYM_KEYSIZE = 19; + + [NativeTypeName("#define PP_SESSION_KEYSIZE 20")] + public const int PP_SESSION_KEYSIZE = 20; + + [NativeTypeName("#define PP_UI_PROMPT 21")] + public const int PP_UI_PROMPT = 21; + + [NativeTypeName("#define PP_ENUMALGS_EX 22")] + public const int PP_ENUMALGS_EX = 22; + + [NativeTypeName("#define PP_ENUMMANDROOTS 25")] + public const int PP_ENUMMANDROOTS = 25; + + [NativeTypeName("#define PP_ENUMELECTROOTS 26")] + public const int PP_ENUMELECTROOTS = 26; + + [NativeTypeName("#define PP_KEYSET_TYPE 27")] + public const int PP_KEYSET_TYPE = 27; + + [NativeTypeName("#define PP_ADMIN_PIN 31")] + public const int PP_ADMIN_PIN = 31; + + [NativeTypeName("#define PP_KEYEXCHANGE_PIN 32")] + public const int PP_KEYEXCHANGE_PIN = 32; + + [NativeTypeName("#define PP_SIGNATURE_PIN 33")] + public const int PP_SIGNATURE_PIN = 33; + + [NativeTypeName("#define PP_SIG_KEYSIZE_INC 34")] + public const int PP_SIG_KEYSIZE_INC = 34; + + [NativeTypeName("#define PP_KEYX_KEYSIZE_INC 35")] + public const int PP_KEYX_KEYSIZE_INC = 35; + + [NativeTypeName("#define PP_UNIQUE_CONTAINER 36")] + public const int PP_UNIQUE_CONTAINER = 36; + + [NativeTypeName("#define PP_SGC_INFO 37")] + public const int PP_SGC_INFO = 37; + + [NativeTypeName("#define PP_USE_HARDWARE_RNG 38")] + public const int PP_USE_HARDWARE_RNG = 38; + + [NativeTypeName("#define PP_KEYSPEC 39")] + public const int PP_KEYSPEC = 39; + + [NativeTypeName("#define PP_ENUMEX_SIGNING_PROT 40")] + public const int PP_ENUMEX_SIGNING_PROT = 40; + + [NativeTypeName("#define PP_CRYPT_COUNT_KEY_USE 41")] + public const int PP_CRYPT_COUNT_KEY_USE = 41; + + [NativeTypeName("#define PP_USER_CERTSTORE 42")] + public const int PP_USER_CERTSTORE = 42; + + [NativeTypeName("#define PP_SMARTCARD_READER 43")] + public const int PP_SMARTCARD_READER = 43; + + [NativeTypeName("#define PP_SMARTCARD_GUID 45")] + public const int PP_SMARTCARD_GUID = 45; + + [NativeTypeName("#define PP_ROOT_CERTSTORE 46")] + public const int PP_ROOT_CERTSTORE = 46; + + [NativeTypeName("#define PP_SMARTCARD_READER_ICON 47")] + public const int PP_SMARTCARD_READER_ICON = 47; + + [NativeTypeName("#define PP_CLIENT_HWND 1")] + public const int PP_CLIENT_HWND = 1; + + [NativeTypeName("#define PP_CONTEXT_INFO 11")] + public const int PP_CONTEXT_INFO = 11; + + [NativeTypeName("#define PP_KEYEXCHANGE_KEYSIZE 12")] + public const int PP_KEYEXCHANGE_KEYSIZE = 12; + + [NativeTypeName("#define PP_SIGNATURE_KEYSIZE 13")] + public const int PP_SIGNATURE_KEYSIZE = 13; + + [NativeTypeName("#define PP_KEYEXCHANGE_ALG 14")] + public const int PP_KEYEXCHANGE_ALG = 14; + + [NativeTypeName("#define PP_SIGNATURE_ALG 15")] + public const int PP_SIGNATURE_ALG = 15; + + [NativeTypeName("#define PP_DELETEKEY 24")] + public const int PP_DELETEKEY = 24; + + [NativeTypeName("#define PP_PIN_PROMPT_STRING 44")] + public const int PP_PIN_PROMPT_STRING = 44; + + [NativeTypeName("#define PP_SECURE_KEYEXCHANGE_PIN 47")] + public const int PP_SECURE_KEYEXCHANGE_PIN = 47; + + [NativeTypeName("#define PP_SECURE_SIGNATURE_PIN 48")] + public const int PP_SECURE_SIGNATURE_PIN = 48; + + [NativeTypeName("#define PP_DISMISS_PIN_UI_SEC 49")] + public const int PP_DISMISS_PIN_UI_SEC = 49; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/PROV.cs b/sources/Interop/Windows/Windows/um/wincrypt/PROV.cs new file mode 100644 index 0000000000..55b6c6de7b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/PROV.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PROV + { + [NativeTypeName("#define PROV_RSA_FULL 1")] + public const int PROV_RSA_FULL = 1; + + [NativeTypeName("#define PROV_RSA_SIG 2")] + public const int PROV_RSA_SIG = 2; + + [NativeTypeName("#define PROV_DSS 3")] + public const int PROV_DSS = 3; + + [NativeTypeName("#define PROV_FORTEZZA 4")] + public const int PROV_FORTEZZA = 4; + + [NativeTypeName("#define PROV_MS_EXCHANGE 5")] + public const int PROV_MS_EXCHANGE = 5; + + [NativeTypeName("#define PROV_SSL 6")] + public const int PROV_SSL = 6; + + [NativeTypeName("#define PROV_RSA_SCHANNEL 12")] + public const int PROV_RSA_SCHANNEL = 12; + + [NativeTypeName("#define PROV_DSS_DH 13")] + public const int PROV_DSS_DH = 13; + + [NativeTypeName("#define PROV_EC_ECDSA_SIG 14")] + public const int PROV_EC_ECDSA_SIG = 14; + + [NativeTypeName("#define PROV_EC_ECNRA_SIG 15")] + public const int PROV_EC_ECNRA_SIG = 15; + + [NativeTypeName("#define PROV_EC_ECDSA_FULL 16")] + public const int PROV_EC_ECDSA_FULL = 16; + + [NativeTypeName("#define PROV_EC_ECNRA_FULL 17")] + public const int PROV_EC_ECNRA_FULL = 17; + + [NativeTypeName("#define PROV_DH_SCHANNEL 18")] + public const int PROV_DH_SCHANNEL = 18; + + [NativeTypeName("#define PROV_SPYRUS_LYNKS 20")] + public const int PROV_SPYRUS_LYNKS = 20; + + [NativeTypeName("#define PROV_RNG 21")] + public const int PROV_RNG = 21; + + [NativeTypeName("#define PROV_INTEL_SEC 22")] + public const int PROV_INTEL_SEC = 22; + + [NativeTypeName("#define PROV_REPLACE_OWF 23")] + public const int PROV_REPLACE_OWF = 23; + + [NativeTypeName("#define PROV_RSA_AES 24")] + public const int PROV_RSA_AES = 24; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/SCHANNEL.cs b/sources/Interop/Windows/Windows/um/wincrypt/SCHANNEL.cs new file mode 100644 index 0000000000..4b05570be4 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/SCHANNEL.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SCHANNEL + { + [NativeTypeName("#define SCHANNEL_MAC_KEY 0x00000000")] + public const int SCHANNEL_MAC_KEY = 0x00000000; + + [NativeTypeName("#define SCHANNEL_ENC_KEY 0x00000001")] + public const int SCHANNEL_ENC_KEY = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/SSL.cs b/sources/Interop/Windows/Windows/um/wincrypt/SSL.cs new file mode 100644 index 0000000000..f8c4de8b1b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/SSL.cs @@ -0,0 +1,36 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class SSL + { + [NativeTypeName("#define SSL_F12_ERROR_TEXT_LENGTH 256")] + public const int SSL_F12_ERROR_TEXT_LENGTH = 256; + + [NativeTypeName("#define SSL_HPKP_PKP_HEADER_INDEX 0")] + public const int SSL_HPKP_PKP_HEADER_INDEX = 0; + + [NativeTypeName("#define SSL_HPKP_PKP_RO_HEADER_INDEX 1")] + public const int SSL_HPKP_PKP_RO_HEADER_INDEX = 1; + + [NativeTypeName("#define SSL_HPKP_HEADER_COUNT 2")] + public const int SSL_HPKP_HEADER_COUNT = 2; + + [NativeTypeName("#define SSL_KEY_PIN_ERROR_TEXT_LENGTH 512")] + public const int SSL_KEY_PIN_ERROR_TEXT_LENGTH = 512; + + [NativeTypeName("#define SSL_OBJECT_LOCATOR_PFX_FUNC \"SslObjectLocatorInitializePfx\"")] + public static ReadOnlySpan SSL_OBJECT_LOCATOR_PFX_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x50, 0x66, 0x78, 0x00 }; + + [NativeTypeName("#define SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC \"SslObjectLocatorInitializeIssuerList\"")] + public static ReadOnlySpan SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4C, 0x69, 0x73, 0x74, 0x00 }; + + [NativeTypeName("#define SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC \"SslObjectLocatorInitializeCertValidationConfig\"")] + public static ReadOnlySpan SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x43, 0x65, 0x72, 0x74, 0x56, 0x61, 0x6C, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x43, 0x6F, 0x6E, 0x66, 0x69, 0x67, 0x00 }; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/TIMESTAMP.cs b/sources/Interop/Windows/Windows/um/wincrypt/TIMESTAMP.cs new file mode 100644 index 0000000000..7523a21b11 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/TIMESTAMP.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class TIMESTAMP + { + [NativeTypeName("#define TIMESTAMP_REQUEST ((LPCSTR) 78)")] + public static sbyte* TIMESTAMP_REQUEST => ((sbyte*)(78)); + + [NativeTypeName("#define TIMESTAMP_RESPONSE ((LPCSTR) 79)")] + public static sbyte* TIMESTAMP_RESPONSE => ((sbyte*)(79)); + + [NativeTypeName("#define TIMESTAMP_INFO ((LPCSTR) 80)")] + public static sbyte* TIMESTAMP_INFO => ((sbyte*)(80)); + + [NativeTypeName("#define TIMESTAMP_VERSION 1")] + public const int TIMESTAMP_VERSION = 1; + + [NativeTypeName("#define TIMESTAMP_STATUS_GRANTED 0")] + public const int TIMESTAMP_STATUS_GRANTED = 0; + + [NativeTypeName("#define TIMESTAMP_STATUS_GRANTED_WITH_MODS 1")] + public const int TIMESTAMP_STATUS_GRANTED_WITH_MODS = 1; + + [NativeTypeName("#define TIMESTAMP_STATUS_REJECTED 2")] + public const int TIMESTAMP_STATUS_REJECTED = 2; + + [NativeTypeName("#define TIMESTAMP_STATUS_WAITING 3")] + public const int TIMESTAMP_STATUS_WAITING = 3; + + [NativeTypeName("#define TIMESTAMP_STATUS_REVOCATION_WARNING 4")] + public const int TIMESTAMP_STATUS_REVOCATION_WARNING = 4; + + [NativeTypeName("#define TIMESTAMP_STATUS_REVOKED 5")] + public const int TIMESTAMP_STATUS_REVOKED = 5; + + [NativeTypeName("#define TIMESTAMP_FAILURE_BAD_ALG 0")] + public const int TIMESTAMP_FAILURE_BAD_ALG = 0; + + [NativeTypeName("#define TIMESTAMP_FAILURE_BAD_REQUEST 2")] + public const int TIMESTAMP_FAILURE_BAD_REQUEST = 2; + + [NativeTypeName("#define TIMESTAMP_FAILURE_BAD_FORMAT 5")] + public const int TIMESTAMP_FAILURE_BAD_FORMAT = 5; + + [NativeTypeName("#define TIMESTAMP_FAILURE_TIME_NOT_AVAILABLE 14")] + public const int TIMESTAMP_FAILURE_TIME_NOT_AVAILABLE = 14; + + [NativeTypeName("#define TIMESTAMP_FAILURE_POLICY_NOT_SUPPORTED 15")] + public const int TIMESTAMP_FAILURE_POLICY_NOT_SUPPORTED = 15; + + [NativeTypeName("#define TIMESTAMP_FAILURE_EXTENSION_NOT_SUPPORTED 16")] + public const int TIMESTAMP_FAILURE_EXTENSION_NOT_SUPPORTED = 16; + + [NativeTypeName("#define TIMESTAMP_FAILURE_INFO_NOT_AVAILABLE 17")] + public const int TIMESTAMP_FAILURE_INFO_NOT_AVAILABLE = 17; + + [NativeTypeName("#define TIMESTAMP_FAILURE_SYSTEM_FAILURE 25")] + public const int TIMESTAMP_FAILURE_SYSTEM_FAILURE = 25; + + [NativeTypeName("#define TIMESTAMP_DONT_HASH_DATA 0x00000001")] + public const int TIMESTAMP_DONT_HASH_DATA = 0x00000001; + + [NativeTypeName("#define TIMESTAMP_VERIFY_CONTEXT_SIGNATURE 0x00000020")] + public const int TIMESTAMP_VERIFY_CONTEXT_SIGNATURE = 0x00000020; + + [NativeTypeName("#define TIMESTAMP_NO_AUTH_RETRIEVAL 0x00020000")] + public const int TIMESTAMP_NO_AUTH_RETRIEVAL = 0x00020000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/URL.cs b/sources/Interop/Windows/Windows/um/wincrypt/URL.cs new file mode 100644 index 0000000000..c5384dcff1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wincrypt/URL.cs @@ -0,0 +1,54 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincrypt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class URL + { + [NativeTypeName("#define URL_OID_GET_OBJECT_URL_FUNC \"UrlDllGetObjectUrl\"")] + public static ReadOnlySpan URL_OID_GET_OBJECT_URL_FUNC => new byte[] { 0x55, 0x72, 0x6C, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x74, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x55, 0x72, 0x6C, 0x00 }; + + [NativeTypeName("#define URL_OID_CERTIFICATE_ISSUER ((LPCSTR)1)")] + public static sbyte* URL_OID_CERTIFICATE_ISSUER => ((sbyte*)(1)); + + [NativeTypeName("#define URL_OID_CERTIFICATE_CRL_DIST_POINT ((LPCSTR)2)")] + public static sbyte* URL_OID_CERTIFICATE_CRL_DIST_POINT => ((sbyte*)(2)); + + [NativeTypeName("#define URL_OID_CTL_ISSUER ((LPCSTR)3)")] + public static sbyte* URL_OID_CTL_ISSUER => ((sbyte*)(3)); + + [NativeTypeName("#define URL_OID_CTL_NEXT_UPDATE ((LPCSTR)4)")] + public static sbyte* URL_OID_CTL_NEXT_UPDATE => ((sbyte*)(4)); + + [NativeTypeName("#define URL_OID_CRL_ISSUER ((LPCSTR)5)")] + public static sbyte* URL_OID_CRL_ISSUER => ((sbyte*)(5)); + + [NativeTypeName("#define URL_OID_CERTIFICATE_FRESHEST_CRL ((LPCSTR)6)")] + public static sbyte* URL_OID_CERTIFICATE_FRESHEST_CRL => ((sbyte*)(6)); + + [NativeTypeName("#define URL_OID_CRL_FRESHEST_CRL ((LPCSTR)7)")] + public static sbyte* URL_OID_CRL_FRESHEST_CRL => ((sbyte*)(7)); + + [NativeTypeName("#define URL_OID_CROSS_CERT_DIST_POINT ((LPCSTR)8)")] + public static sbyte* URL_OID_CROSS_CERT_DIST_POINT => ((sbyte*)(8)); + + [NativeTypeName("#define URL_OID_CERTIFICATE_OCSP ((LPCSTR)9)")] + public static sbyte* URL_OID_CERTIFICATE_OCSP => ((sbyte*)(9)); + + [NativeTypeName("#define URL_OID_CERTIFICATE_OCSP_AND_CRL_DIST_POINT ((LPCSTR)10)")] + public static sbyte* URL_OID_CERTIFICATE_OCSP_AND_CRL_DIST_POINT => ((sbyte*)(10)); + + [NativeTypeName("#define URL_OID_CERTIFICATE_CRL_DIST_POINT_AND_OCSP ((LPCSTR)11)")] + public static sbyte* URL_OID_CERTIFICATE_CRL_DIST_POINT_AND_OCSP => ((sbyte*)(11)); + + [NativeTypeName("#define URL_OID_CROSS_CERT_SUBJECT_INFO_ACCESS ((LPCSTR)12)")] + public static sbyte* URL_OID_CROSS_CERT_SUBJECT_INFO_ACCESS => ((sbyte*)(12)); + + [NativeTypeName("#define URL_OID_CERTIFICATE_ONLY_OCSP ((LPCSTR)13)")] + public static sbyte* URL_OID_CERTIFICATE_ONLY_OCSP => ((sbyte*)(13)); + } +} diff --git a/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs b/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs index 777d957a25..29e7ffe8b6 100644 --- a/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wincrypt/Windows.cs @@ -858,9 +858,6 @@ public static unsafe partial class Windows [NativeTypeName("#define RSA1024BIT_KEY 0x04000000")] public const int RSA1024BIT_KEY = 0x04000000; - [NativeTypeName("#define KEY_LENGTH_MASK 0xFFFF0000")] - public const uint KEY_LENGTH_MASK = 0xFFFF0000; - [NativeTypeName("#define SIMPLEBLOB 0x1")] public const int SIMPLEBLOB = 0x1; @@ -891,138 +888,6 @@ public static unsafe partial class Windows [NativeTypeName("#define AT_SIGNATURE 2")] public const int AT_SIGNATURE = 2; - [NativeTypeName("#define KP_IV 1")] - public const int KP_IV = 1; - - [NativeTypeName("#define KP_SALT 2")] - public const int KP_SALT = 2; - - [NativeTypeName("#define KP_PADDING 3")] - public const int KP_PADDING = 3; - - [NativeTypeName("#define KP_MODE 4")] - public const int KP_MODE = 4; - - [NativeTypeName("#define KP_MODE_BITS 5")] - public const int KP_MODE_BITS = 5; - - [NativeTypeName("#define KP_PERMISSIONS 6")] - public const int KP_PERMISSIONS = 6; - - [NativeTypeName("#define KP_ALGID 7")] - public const int KP_ALGID = 7; - - [NativeTypeName("#define KP_BLOCKLEN 8")] - public const int KP_BLOCKLEN = 8; - - [NativeTypeName("#define KP_KEYLEN 9")] - public const int KP_KEYLEN = 9; - - [NativeTypeName("#define KP_SALT_EX 10")] - public const int KP_SALT_EX = 10; - - [NativeTypeName("#define KP_P 11")] - public const int KP_P = 11; - - [NativeTypeName("#define KP_G 12")] - public const int KP_G = 12; - - [NativeTypeName("#define KP_Q 13")] - public const int KP_Q = 13; - - [NativeTypeName("#define KP_X 14")] - public const int KP_X = 14; - - [NativeTypeName("#define KP_Y 15")] - public const int KP_Y = 15; - - [NativeTypeName("#define KP_RA 16")] - public const int KP_RA = 16; - - [NativeTypeName("#define KP_RB 17")] - public const int KP_RB = 17; - - [NativeTypeName("#define KP_INFO 18")] - public const int KP_INFO = 18; - - [NativeTypeName("#define KP_EFFECTIVE_KEYLEN 19")] - public const int KP_EFFECTIVE_KEYLEN = 19; - - [NativeTypeName("#define KP_SCHANNEL_ALG 20")] - public const int KP_SCHANNEL_ALG = 20; - - [NativeTypeName("#define KP_CLIENT_RANDOM 21")] - public const int KP_CLIENT_RANDOM = 21; - - [NativeTypeName("#define KP_SERVER_RANDOM 22")] - public const int KP_SERVER_RANDOM = 22; - - [NativeTypeName("#define KP_RP 23")] - public const int KP_RP = 23; - - [NativeTypeName("#define KP_PRECOMP_MD5 24")] - public const int KP_PRECOMP_MD5 = 24; - - [NativeTypeName("#define KP_PRECOMP_SHA 25")] - public const int KP_PRECOMP_SHA = 25; - - [NativeTypeName("#define KP_CERTIFICATE 26")] - public const int KP_CERTIFICATE = 26; - - [NativeTypeName("#define KP_CLEAR_KEY 27")] - public const int KP_CLEAR_KEY = 27; - - [NativeTypeName("#define KP_PUB_EX_LEN 28")] - public const int KP_PUB_EX_LEN = 28; - - [NativeTypeName("#define KP_PUB_EX_VAL 29")] - public const int KP_PUB_EX_VAL = 29; - - [NativeTypeName("#define KP_KEYVAL 30")] - public const int KP_KEYVAL = 30; - - [NativeTypeName("#define KP_ADMIN_PIN 31")] - public const int KP_ADMIN_PIN = 31; - - [NativeTypeName("#define KP_KEYEXCHANGE_PIN 32")] - public const int KP_KEYEXCHANGE_PIN = 32; - - [NativeTypeName("#define KP_SIGNATURE_PIN 33")] - public const int KP_SIGNATURE_PIN = 33; - - [NativeTypeName("#define KP_PREHASH 34")] - public const int KP_PREHASH = 34; - - [NativeTypeName("#define KP_ROUNDS 35")] - public const int KP_ROUNDS = 35; - - [NativeTypeName("#define KP_OAEP_PARAMS 36")] - public const int KP_OAEP_PARAMS = 36; - - [NativeTypeName("#define KP_CMS_KEY_INFO 37")] - public const int KP_CMS_KEY_INFO = 37; - - [NativeTypeName("#define KP_CMS_DH_KEY_INFO 38")] - public const int KP_CMS_DH_KEY_INFO = 38; - - [NativeTypeName("#define KP_PUB_PARAMS 39")] - public const int KP_PUB_PARAMS = 39; - - [NativeTypeName("#define KP_VERIFY_PARAMS 40")] - public const int KP_VERIFY_PARAMS = 40; - - [NativeTypeName("#define KP_HIGHEST_VERSION 41")] - public const int KP_HIGHEST_VERSION = 41; - - [NativeTypeName("#define KP_GET_USE_COUNT 42")] - public const int KP_GET_USE_COUNT = 42; - - [NativeTypeName("#define KP_PIN_ID 43")] - public const int KP_PIN_ID = 43; - - [NativeTypeName("#define KP_PIN_INFO 44")] - public const int KP_PIN_INFO = 44; - [NativeTypeName("#define PKCS5_PADDING 1")] public const int PKCS5_PADDING = 1; @@ -1050,309 +915,6 @@ public static unsafe partial class Windows [NativeTypeName("#define HP_TLS1PRF_SEED 0x0007")] public const int HP_TLS1PRF_SEED = 0x0007; - [NativeTypeName("#define PP_ENUMALGS 1")] - public const int PP_ENUMALGS = 1; - - [NativeTypeName("#define PP_ENUMCONTAINERS 2")] - public const int PP_ENUMCONTAINERS = 2; - - [NativeTypeName("#define PP_IMPTYPE 3")] - public const int PP_IMPTYPE = 3; - - [NativeTypeName("#define PP_NAME 4")] - public const int PP_NAME = 4; - - [NativeTypeName("#define PP_VERSION 5")] - public const int PP_VERSION = 5; - - [NativeTypeName("#define PP_CONTAINER 6")] - public const int PP_CONTAINER = 6; - - [NativeTypeName("#define PP_CHANGE_PASSWORD 7")] - public const int PP_CHANGE_PASSWORD = 7; - - [NativeTypeName("#define PP_KEYSET_SEC_DESCR 8")] - public const int PP_KEYSET_SEC_DESCR = 8; - - [NativeTypeName("#define PP_CERTCHAIN 9")] - public const int PP_CERTCHAIN = 9; - - [NativeTypeName("#define PP_KEY_TYPE_SUBTYPE 10")] - public const int PP_KEY_TYPE_SUBTYPE = 10; - - [NativeTypeName("#define PP_PROVTYPE 16")] - public const int PP_PROVTYPE = 16; - - [NativeTypeName("#define PP_KEYSTORAGE 17")] - public const int PP_KEYSTORAGE = 17; - - [NativeTypeName("#define PP_APPLI_CERT 18")] - public const int PP_APPLI_CERT = 18; - - [NativeTypeName("#define PP_SYM_KEYSIZE 19")] - public const int PP_SYM_KEYSIZE = 19; - - [NativeTypeName("#define PP_SESSION_KEYSIZE 20")] - public const int PP_SESSION_KEYSIZE = 20; - - [NativeTypeName("#define PP_UI_PROMPT 21")] - public const int PP_UI_PROMPT = 21; - - [NativeTypeName("#define PP_ENUMALGS_EX 22")] - public const int PP_ENUMALGS_EX = 22; - - [NativeTypeName("#define PP_ENUMMANDROOTS 25")] - public const int PP_ENUMMANDROOTS = 25; - - [NativeTypeName("#define PP_ENUMELECTROOTS 26")] - public const int PP_ENUMELECTROOTS = 26; - - [NativeTypeName("#define PP_KEYSET_TYPE 27")] - public const int PP_KEYSET_TYPE = 27; - - [NativeTypeName("#define PP_ADMIN_PIN 31")] - public const int PP_ADMIN_PIN = 31; - - [NativeTypeName("#define PP_KEYEXCHANGE_PIN 32")] - public const int PP_KEYEXCHANGE_PIN = 32; - - [NativeTypeName("#define PP_SIGNATURE_PIN 33")] - public const int PP_SIGNATURE_PIN = 33; - - [NativeTypeName("#define PP_SIG_KEYSIZE_INC 34")] - public const int PP_SIG_KEYSIZE_INC = 34; - - [NativeTypeName("#define PP_KEYX_KEYSIZE_INC 35")] - public const int PP_KEYX_KEYSIZE_INC = 35; - - [NativeTypeName("#define PP_UNIQUE_CONTAINER 36")] - public const int PP_UNIQUE_CONTAINER = 36; - - [NativeTypeName("#define PP_SGC_INFO 37")] - public const int PP_SGC_INFO = 37; - - [NativeTypeName("#define PP_USE_HARDWARE_RNG 38")] - public const int PP_USE_HARDWARE_RNG = 38; - - [NativeTypeName("#define PP_KEYSPEC 39")] - public const int PP_KEYSPEC = 39; - - [NativeTypeName("#define PP_ENUMEX_SIGNING_PROT 40")] - public const int PP_ENUMEX_SIGNING_PROT = 40; - - [NativeTypeName("#define PP_CRYPT_COUNT_KEY_USE 41")] - public const int PP_CRYPT_COUNT_KEY_USE = 41; - - [NativeTypeName("#define PP_USER_CERTSTORE 42")] - public const int PP_USER_CERTSTORE = 42; - - [NativeTypeName("#define PP_SMARTCARD_READER 43")] - public const int PP_SMARTCARD_READER = 43; - - [NativeTypeName("#define PP_SMARTCARD_GUID 45")] - public const int PP_SMARTCARD_GUID = 45; - - [NativeTypeName("#define PP_ROOT_CERTSTORE 46")] - public const int PP_ROOT_CERTSTORE = 46; - - [NativeTypeName("#define PP_SMARTCARD_READER_ICON 47")] - public const int PP_SMARTCARD_READER_ICON = 47; - - [NativeTypeName("#define PP_CLIENT_HWND 1")] - public const int PP_CLIENT_HWND = 1; - - [NativeTypeName("#define PP_CONTEXT_INFO 11")] - public const int PP_CONTEXT_INFO = 11; - - [NativeTypeName("#define PP_KEYEXCHANGE_KEYSIZE 12")] - public const int PP_KEYEXCHANGE_KEYSIZE = 12; - - [NativeTypeName("#define PP_SIGNATURE_KEYSIZE 13")] - public const int PP_SIGNATURE_KEYSIZE = 13; - - [NativeTypeName("#define PP_KEYEXCHANGE_ALG 14")] - public const int PP_KEYEXCHANGE_ALG = 14; - - [NativeTypeName("#define PP_SIGNATURE_ALG 15")] - public const int PP_SIGNATURE_ALG = 15; - - [NativeTypeName("#define PP_DELETEKEY 24")] - public const int PP_DELETEKEY = 24; - - [NativeTypeName("#define PP_PIN_PROMPT_STRING 44")] - public const int PP_PIN_PROMPT_STRING = 44; - - [NativeTypeName("#define PP_SECURE_KEYEXCHANGE_PIN 47")] - public const int PP_SECURE_KEYEXCHANGE_PIN = 47; - - [NativeTypeName("#define PP_SECURE_SIGNATURE_PIN 48")] - public const int PP_SECURE_SIGNATURE_PIN = 48; - - [NativeTypeName("#define PP_DISMISS_PIN_UI_SEC 49")] - public const int PP_DISMISS_PIN_UI_SEC = 49; - - [NativeTypeName("#define PROV_RSA_FULL 1")] - public const int PROV_RSA_FULL = 1; - - [NativeTypeName("#define PROV_RSA_SIG 2")] - public const int PROV_RSA_SIG = 2; - - [NativeTypeName("#define PROV_DSS 3")] - public const int PROV_DSS = 3; - - [NativeTypeName("#define PROV_FORTEZZA 4")] - public const int PROV_FORTEZZA = 4; - - [NativeTypeName("#define PROV_MS_EXCHANGE 5")] - public const int PROV_MS_EXCHANGE = 5; - - [NativeTypeName("#define PROV_SSL 6")] - public const int PROV_SSL = 6; - - [NativeTypeName("#define PROV_RSA_SCHANNEL 12")] - public const int PROV_RSA_SCHANNEL = 12; - - [NativeTypeName("#define PROV_DSS_DH 13")] - public const int PROV_DSS_DH = 13; - - [NativeTypeName("#define PROV_EC_ECDSA_SIG 14")] - public const int PROV_EC_ECDSA_SIG = 14; - - [NativeTypeName("#define PROV_EC_ECNRA_SIG 15")] - public const int PROV_EC_ECNRA_SIG = 15; - - [NativeTypeName("#define PROV_EC_ECDSA_FULL 16")] - public const int PROV_EC_ECDSA_FULL = 16; - - [NativeTypeName("#define PROV_EC_ECNRA_FULL 17")] - public const int PROV_EC_ECNRA_FULL = 17; - - [NativeTypeName("#define PROV_DH_SCHANNEL 18")] - public const int PROV_DH_SCHANNEL = 18; - - [NativeTypeName("#define PROV_SPYRUS_LYNKS 20")] - public const int PROV_SPYRUS_LYNKS = 20; - - [NativeTypeName("#define PROV_RNG 21")] - public const int PROV_RNG = 21; - - [NativeTypeName("#define PROV_INTEL_SEC 22")] - public const int PROV_INTEL_SEC = 22; - - [NativeTypeName("#define PROV_REPLACE_OWF 23")] - public const int PROV_REPLACE_OWF = 23; - - [NativeTypeName("#define PROV_RSA_AES 24")] - public const int PROV_RSA_AES = 24; - - [NativeTypeName("#define MS_DEF_PROV_A \"Microsoft Base Cryptographic Provider v1.0\"")] - public static ReadOnlySpan MS_DEF_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x76, 0x31, 0x2E, 0x30, 0x00 }; - - [NativeTypeName("#define MS_DEF_PROV_W L\"Microsoft Base Cryptographic Provider v1.0\"")] - public const string MS_DEF_PROV_W = "Microsoft Base Cryptographic Provider v1.0"; - - [NativeTypeName("#define MS_DEF_PROV MS_DEF_PROV_W")] - public const string MS_DEF_PROV = "Microsoft Base Cryptographic Provider v1.0"; - - [NativeTypeName("#define MS_ENHANCED_PROV_A \"Microsoft Enhanced Cryptographic Provider v1.0\"")] - public static ReadOnlySpan MS_ENHANCED_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x76, 0x31, 0x2E, 0x30, 0x00 }; - - [NativeTypeName("#define MS_ENHANCED_PROV_W L\"Microsoft Enhanced Cryptographic Provider v1.0\"")] - public const string MS_ENHANCED_PROV_W = "Microsoft Enhanced Cryptographic Provider v1.0"; - - [NativeTypeName("#define MS_ENHANCED_PROV MS_ENHANCED_PROV_W")] - public const string MS_ENHANCED_PROV = "Microsoft Enhanced Cryptographic Provider v1.0"; - - [NativeTypeName("#define MS_STRONG_PROV_A \"Microsoft Strong Cryptographic Provider\"")] - public static ReadOnlySpan MS_STRONG_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x53, 0x74, 0x72, 0x6F, 0x6E, 0x67, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_STRONG_PROV_W L\"Microsoft Strong Cryptographic Provider\"")] - public const string MS_STRONG_PROV_W = "Microsoft Strong Cryptographic Provider"; - - [NativeTypeName("#define MS_STRONG_PROV MS_STRONG_PROV_W")] - public const string MS_STRONG_PROV = "Microsoft Strong Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_RSA_SIG_PROV_A \"Microsoft RSA Signature Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_RSA_SIG_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x52, 0x53, 0x41, 0x20, 0x53, 0x69, 0x67, 0x6E, 0x61, 0x74, 0x75, 0x72, 0x65, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_DEF_RSA_SIG_PROV_W L\"Microsoft RSA Signature Cryptographic Provider\"")] - public const string MS_DEF_RSA_SIG_PROV_W = "Microsoft RSA Signature Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_RSA_SIG_PROV MS_DEF_RSA_SIG_PROV_W")] - public const string MS_DEF_RSA_SIG_PROV = "Microsoft RSA Signature Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV_A \"Microsoft RSA SChannel Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_RSA_SCHANNEL_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x52, 0x53, 0x41, 0x20, 0x53, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV_W L\"Microsoft RSA SChannel Cryptographic Provider\"")] - public const string MS_DEF_RSA_SCHANNEL_PROV_W = "Microsoft RSA SChannel Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_RSA_SCHANNEL_PROV MS_DEF_RSA_SCHANNEL_PROV_W")] - public const string MS_DEF_RSA_SCHANNEL_PROV = "Microsoft RSA SChannel Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_DSS_PROV_A \"Microsoft Base DSS Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_DSS_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x44, 0x53, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_DEF_DSS_PROV_W L\"Microsoft Base DSS Cryptographic Provider\"")] - public const string MS_DEF_DSS_PROV_W = "Microsoft Base DSS Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_DSS_PROV MS_DEF_DSS_PROV_W")] - public const string MS_DEF_DSS_PROV = "Microsoft Base DSS Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_DSS_DH_PROV_A \"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_DSS_DH_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x44, 0x53, 0x53, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x44, 0x69, 0x66, 0x66, 0x69, 0x65, 0x2D, 0x48, 0x65, 0x6C, 0x6C, 0x6D, 0x61, 0x6E, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_DEF_DSS_DH_PROV_W L\"Microsoft Base DSS and Diffie-Hellman Cryptographic Provider\"")] - public const string MS_DEF_DSS_DH_PROV_W = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_DSS_DH_PROV MS_DEF_DSS_DH_PROV_W")] - public const string MS_DEF_DSS_DH_PROV = "Microsoft Base DSS and Diffie-Hellman Cryptographic Provider"; - - [NativeTypeName("#define MS_ENH_DSS_DH_PROV_A \"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\"")] - public static ReadOnlySpan MS_ENH_DSS_DH_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x44, 0x53, 0x53, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x44, 0x69, 0x66, 0x66, 0x69, 0x65, 0x2D, 0x48, 0x65, 0x6C, 0x6C, 0x6D, 0x61, 0x6E, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_ENH_DSS_DH_PROV_W L\"Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider\"")] - public const string MS_ENH_DSS_DH_PROV_W = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"; - - [NativeTypeName("#define MS_ENH_DSS_DH_PROV MS_ENH_DSS_DH_PROV_W")] - public const string MS_ENH_DSS_DH_PROV = "Microsoft Enhanced DSS and Diffie-Hellman Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV_A \"Microsoft DH SChannel Cryptographic Provider\"")] - public static ReadOnlySpan MS_DEF_DH_SCHANNEL_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x44, 0x48, 0x20, 0x53, 0x43, 0x68, 0x61, 0x6E, 0x6E, 0x65, 0x6C, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV_W L\"Microsoft DH SChannel Cryptographic Provider\"")] - public const string MS_DEF_DH_SCHANNEL_PROV_W = "Microsoft DH SChannel Cryptographic Provider"; - - [NativeTypeName("#define MS_DEF_DH_SCHANNEL_PROV MS_DEF_DH_SCHANNEL_PROV_W")] - public const string MS_DEF_DH_SCHANNEL_PROV = "Microsoft DH SChannel Cryptographic Provider"; - - [NativeTypeName("#define MS_SCARD_PROV_A \"Microsoft Base Smart Card Crypto Provider\"")] - public static ReadOnlySpan MS_SCARD_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x42, 0x61, 0x73, 0x65, 0x20, 0x53, 0x6D, 0x61, 0x72, 0x74, 0x20, 0x43, 0x61, 0x72, 0x64, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_SCARD_PROV_W L\"Microsoft Base Smart Card Crypto Provider\"")] - public const string MS_SCARD_PROV_W = "Microsoft Base Smart Card Crypto Provider"; - - [NativeTypeName("#define MS_SCARD_PROV MS_SCARD_PROV_W")] - public const string MS_SCARD_PROV = "Microsoft Base Smart Card Crypto Provider"; - - [NativeTypeName("#define MS_ENH_RSA_AES_PROV_A \"Microsoft Enhanced RSA and AES Cryptographic Provider\"")] - public static ReadOnlySpan MS_ENH_RSA_AES_PROV_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x52, 0x53, 0x41, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x41, 0x45, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x00 }; - - [NativeTypeName("#define MS_ENH_RSA_AES_PROV_W L\"Microsoft Enhanced RSA and AES Cryptographic Provider\"")] - public const string MS_ENH_RSA_AES_PROV_W = "Microsoft Enhanced RSA and AES Cryptographic Provider"; - - [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP_A \"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\"")] - public static ReadOnlySpan MS_ENH_RSA_AES_PROV_XP_A => new byte[] { 0x4D, 0x69, 0x63, 0x72, 0x6F, 0x73, 0x6F, 0x66, 0x74, 0x20, 0x45, 0x6E, 0x68, 0x61, 0x6E, 0x63, 0x65, 0x64, 0x20, 0x52, 0x53, 0x41, 0x20, 0x61, 0x6E, 0x64, 0x20, 0x41, 0x45, 0x53, 0x20, 0x43, 0x72, 0x79, 0x70, 0x74, 0x6F, 0x67, 0x72, 0x61, 0x70, 0x68, 0x69, 0x63, 0x20, 0x50, 0x72, 0x6F, 0x76, 0x69, 0x64, 0x65, 0x72, 0x20, 0x28, 0x50, 0x72, 0x6F, 0x74, 0x6F, 0x74, 0x79, 0x70, 0x65, 0x29, 0x00 }; - - [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP_W L\"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)\"")] - public const string MS_ENH_RSA_AES_PROV_XP_W = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"; - - [NativeTypeName("#define MS_ENH_RSA_AES_PROV_XP MS_ENH_RSA_AES_PROV_XP_W")] - public const string MS_ENH_RSA_AES_PROV_XP = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"; - - [NativeTypeName("#define MS_ENH_RSA_AES_PROV MS_ENH_RSA_AES_PROV_W")] - public const string MS_ENH_RSA_AES_PROV = "Microsoft Enhanced RSA and AES Cryptographic Provider"; - [NativeTypeName("#define MAXUIDLEN 64")] public const int MAXUIDLEN = 64; @@ -1386,12 +948,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CUR_BLOB_VERSION 2")] public const int CUR_BLOB_VERSION = 2; - [NativeTypeName("#define SCHANNEL_MAC_KEY 0x00000000")] - public const int SCHANNEL_MAC_KEY = 0x00000000; - - [NativeTypeName("#define SCHANNEL_ENC_KEY 0x00000001")] - public const int SCHANNEL_ENC_KEY = 0x00000001; - [NativeTypeName("#define INTERNATIONAL_USAGE 0x00000001")] public const int INTERNATIONAL_USAGE = 0x00000001; @@ -2151,15 +1707,6 @@ public static unsafe partial class Windows [NativeTypeName("#define szOID_EV_RDN_COUNTRY \"1.3.6.1.4.1.311.60.2.1.3\"")] public static ReadOnlySpan szOID_EV_RDN_COUNTRY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x36, 0x30, 0x2E, 0x32, 0x2E, 0x31, 0x2E, 0x33, 0x00 }; - [NativeTypeName("#define CRL_V1 0")] - public const int CRL_V1 = 0; - - [NativeTypeName("#define CRL_V2 1")] - public const int CRL_V2 = 1; - - [NativeTypeName("#define CTL_V1 0")] - public const int CTL_V1 = 0; - [NativeTypeName("#define X509_ASN_ENCODING 0x00000001")] public const int X509_ASN_ENCODING = 0x00000001; @@ -2370,39 +1917,9 @@ public static unsafe partial class Windows [NativeTypeName("#define X509_CROSS_CERT_DIST_POINTS ((LPCSTR) 58)")] public static sbyte* X509_CROSS_CERT_DIST_POINTS => ((sbyte*)(58)); - [NativeTypeName("#define CMC_DATA ((LPCSTR) 59)")] - public static sbyte* CMC_DATA => ((sbyte*)(59)); - - [NativeTypeName("#define CMC_RESPONSE ((LPCSTR) 60)")] - public static sbyte* CMC_RESPONSE => ((sbyte*)(60)); - - [NativeTypeName("#define CMC_STATUS ((LPCSTR) 61)")] - public static sbyte* CMC_STATUS => ((sbyte*)(61)); - - [NativeTypeName("#define CMC_ADD_EXTENSIONS ((LPCSTR) 62)")] - public static sbyte* CMC_ADD_EXTENSIONS => ((sbyte*)(62)); - - [NativeTypeName("#define CMC_ADD_ATTRIBUTES ((LPCSTR) 63)")] - public static sbyte* CMC_ADD_ATTRIBUTES => ((sbyte*)(63)); - [NativeTypeName("#define X509_CERTIFICATE_TEMPLATE ((LPCSTR) 64)")] public static sbyte* X509_CERTIFICATE_TEMPLATE => ((sbyte*)(64)); - [NativeTypeName("#define OCSP_SIGNED_REQUEST ((LPCSTR) 65)")] - public static sbyte* OCSP_SIGNED_REQUEST => ((sbyte*)(65)); - - [NativeTypeName("#define OCSP_REQUEST ((LPCSTR) 66)")] - public static sbyte* OCSP_REQUEST => ((sbyte*)(66)); - - [NativeTypeName("#define OCSP_RESPONSE ((LPCSTR) 67)")] - public static sbyte* OCSP_RESPONSE => ((sbyte*)(67)); - - [NativeTypeName("#define OCSP_BASIC_SIGNED_RESPONSE ((LPCSTR) 68)")] - public static sbyte* OCSP_BASIC_SIGNED_RESPONSE => ((sbyte*)(68)); - - [NativeTypeName("#define OCSP_BASIC_RESPONSE ((LPCSTR) 69)")] - public static sbyte* OCSP_BASIC_RESPONSE => ((sbyte*)(69)); - [NativeTypeName("#define X509_LOGOTYPE_EXT ((LPCSTR) 70)")] public static sbyte* X509_LOGOTYPE_EXT => ((sbyte*)(70)); @@ -2427,15 +1944,6 @@ public static unsafe partial class Windows [NativeTypeName("#define ECC_CMS_SHARED_INFO ((LPCSTR) 77)")] public static sbyte* ECC_CMS_SHARED_INFO => ((sbyte*)(77)); - [NativeTypeName("#define TIMESTAMP_REQUEST ((LPCSTR) 78)")] - public static sbyte* TIMESTAMP_REQUEST => ((sbyte*)(78)); - - [NativeTypeName("#define TIMESTAMP_RESPONSE ((LPCSTR) 79)")] - public static sbyte* TIMESTAMP_RESPONSE => ((sbyte*)(79)); - - [NativeTypeName("#define TIMESTAMP_INFO ((LPCSTR) 80)")] - public static sbyte* TIMESTAMP_INFO => ((sbyte*)(80)); - [NativeTypeName("#define X509_CERT_BUNDLE ((LPCSTR) 81)")] public static sbyte* X509_CERT_BUNDLE => ((sbyte*)(81)); @@ -3042,81 +2550,6 @@ public static unsafe partial class Windows [NativeTypeName("#define szOID_PKIX_CA_REPOSITORY \"1.3.6.1.5.5.7.48.5\"")] public static ReadOnlySpan szOID_PKIX_CA_REPOSITORY => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x35, 0x00 }; - [NativeTypeName("#define CRL_REASON_UNSPECIFIED 0")] - public const int CRL_REASON_UNSPECIFIED = 0; - - [NativeTypeName("#define CRL_REASON_KEY_COMPROMISE 1")] - public const int CRL_REASON_KEY_COMPROMISE = 1; - - [NativeTypeName("#define CRL_REASON_CA_COMPROMISE 2")] - public const int CRL_REASON_CA_COMPROMISE = 2; - - [NativeTypeName("#define CRL_REASON_AFFILIATION_CHANGED 3")] - public const int CRL_REASON_AFFILIATION_CHANGED = 3; - - [NativeTypeName("#define CRL_REASON_SUPERSEDED 4")] - public const int CRL_REASON_SUPERSEDED = 4; - - [NativeTypeName("#define CRL_REASON_CESSATION_OF_OPERATION 5")] - public const int CRL_REASON_CESSATION_OF_OPERATION = 5; - - [NativeTypeName("#define CRL_REASON_CERTIFICATE_HOLD 6")] - public const int CRL_REASON_CERTIFICATE_HOLD = 6; - - [NativeTypeName("#define CRL_REASON_REMOVE_FROM_CRL 8")] - public const int CRL_REASON_REMOVE_FROM_CRL = 8; - - [NativeTypeName("#define CRL_REASON_PRIVILEGE_WITHDRAWN 9")] - public const int CRL_REASON_PRIVILEGE_WITHDRAWN = 9; - - [NativeTypeName("#define CRL_REASON_AA_COMPROMISE 10")] - public const int CRL_REASON_AA_COMPROMISE = 10; - - [NativeTypeName("#define CRL_DIST_POINT_NO_NAME 0")] - public const int CRL_DIST_POINT_NO_NAME = 0; - - [NativeTypeName("#define CRL_DIST_POINT_FULL_NAME 1")] - public const int CRL_DIST_POINT_FULL_NAME = 1; - - [NativeTypeName("#define CRL_DIST_POINT_ISSUER_RDN_NAME 2")] - public const int CRL_DIST_POINT_ISSUER_RDN_NAME = 2; - - [NativeTypeName("#define CRL_REASON_UNUSED_FLAG 0x80")] - public const int CRL_REASON_UNUSED_FLAG = 0x80; - - [NativeTypeName("#define CRL_REASON_KEY_COMPROMISE_FLAG 0x40")] - public const int CRL_REASON_KEY_COMPROMISE_FLAG = 0x40; - - [NativeTypeName("#define CRL_REASON_CA_COMPROMISE_FLAG 0x20")] - public const int CRL_REASON_CA_COMPROMISE_FLAG = 0x20; - - [NativeTypeName("#define CRL_REASON_AFFILIATION_CHANGED_FLAG 0x10")] - public const int CRL_REASON_AFFILIATION_CHANGED_FLAG = 0x10; - - [NativeTypeName("#define CRL_REASON_SUPERSEDED_FLAG 0x08")] - public const int CRL_REASON_SUPERSEDED_FLAG = 0x08; - - [NativeTypeName("#define CRL_REASON_CESSATION_OF_OPERATION_FLAG 0x04")] - public const int CRL_REASON_CESSATION_OF_OPERATION_FLAG = 0x04; - - [NativeTypeName("#define CRL_REASON_CERTIFICATE_HOLD_FLAG 0x02")] - public const int CRL_REASON_CERTIFICATE_HOLD_FLAG = 0x02; - - [NativeTypeName("#define CRL_REASON_PRIVILEGE_WITHDRAWN_FLAG 0x01")] - public const int CRL_REASON_PRIVILEGE_WITHDRAWN_FLAG = 0x01; - - [NativeTypeName("#define CRL_REASON_AA_COMPROMISE_FLAG 0x80")] - public const int CRL_REASON_AA_COMPROMISE_FLAG = 0x80; - - [NativeTypeName("#define CRL_DIST_POINT_ERR_INDEX_MASK 0x7F")] - public const int CRL_DIST_POINT_ERR_INDEX_MASK = 0x7F; - - [NativeTypeName("#define CRL_DIST_POINT_ERR_INDEX_SHIFT 24")] - public const int CRL_DIST_POINT_ERR_INDEX_SHIFT = 24; - - [NativeTypeName("#define CRL_DIST_POINT_ERR_CRL_ISSUER_BIT 0x80000000L")] - public const uint CRL_DIST_POINT_ERR_CRL_ISSUER_BIT = 0x80000000; - [NativeTypeName("#define CROSS_CERT_DIST_POINT_ERR_INDEX_MASK 0xFF")] public const int CROSS_CERT_DIST_POINT_ERR_INDEX_MASK = 0xFF; @@ -3309,120 +2742,15 @@ public static unsafe partial class Windows [NativeTypeName("#define szOID_CMC_ADD_ATTRIBUTES \"1.3.6.1.4.1.311.10.10.1\"")] public static ReadOnlySpan szOID_CMC_ADD_ATTRIBUTES => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x30, 0x2E, 0x31, 0x00 }; - [NativeTypeName("#define CMC_TAGGED_CERT_REQUEST_CHOICE 1")] - public const int CMC_TAGGED_CERT_REQUEST_CHOICE = 1; - - [NativeTypeName("#define CMC_OTHER_INFO_NO_CHOICE 0")] - public const int CMC_OTHER_INFO_NO_CHOICE = 0; - - [NativeTypeName("#define CMC_OTHER_INFO_FAIL_CHOICE 1")] - public const int CMC_OTHER_INFO_FAIL_CHOICE = 1; - - [NativeTypeName("#define CMC_OTHER_INFO_PEND_CHOICE 2")] - public const int CMC_OTHER_INFO_PEND_CHOICE = 2; - - [NativeTypeName("#define CMC_STATUS_SUCCESS 0")] - public const int CMC_STATUS_SUCCESS = 0; - - [NativeTypeName("#define CMC_STATUS_FAILED 2")] - public const int CMC_STATUS_FAILED = 2; - - [NativeTypeName("#define CMC_STATUS_PENDING 3")] - public const int CMC_STATUS_PENDING = 3; - - [NativeTypeName("#define CMC_STATUS_NO_SUPPORT 4")] - public const int CMC_STATUS_NO_SUPPORT = 4; - - [NativeTypeName("#define CMC_STATUS_CONFIRM_REQUIRED 5")] - public const int CMC_STATUS_CONFIRM_REQUIRED = 5; - - [NativeTypeName("#define CMC_FAIL_BAD_ALG 0")] - public const int CMC_FAIL_BAD_ALG = 0; - - [NativeTypeName("#define CMC_FAIL_BAD_MESSAGE_CHECK 1")] - public const int CMC_FAIL_BAD_MESSAGE_CHECK = 1; - - [NativeTypeName("#define CMC_FAIL_BAD_REQUEST 2")] - public const int CMC_FAIL_BAD_REQUEST = 2; - - [NativeTypeName("#define CMC_FAIL_BAD_TIME 3")] - public const int CMC_FAIL_BAD_TIME = 3; - - [NativeTypeName("#define CMC_FAIL_BAD_CERT_ID 4")] - public const int CMC_FAIL_BAD_CERT_ID = 4; - - [NativeTypeName("#define CMC_FAIL_UNSUPORTED_EXT 5")] - public const int CMC_FAIL_UNSUPORTED_EXT = 5; - - [NativeTypeName("#define CMC_FAIL_MUST_ARCHIVE_KEYS 6")] - public const int CMC_FAIL_MUST_ARCHIVE_KEYS = 6; - - [NativeTypeName("#define CMC_FAIL_BAD_IDENTITY 7")] - public const int CMC_FAIL_BAD_IDENTITY = 7; - - [NativeTypeName("#define CMC_FAIL_POP_REQUIRED 8")] - public const int CMC_FAIL_POP_REQUIRED = 8; - - [NativeTypeName("#define CMC_FAIL_POP_FAILED 9")] - public const int CMC_FAIL_POP_FAILED = 9; - - [NativeTypeName("#define CMC_FAIL_NO_KEY_REUSE 10")] - public const int CMC_FAIL_NO_KEY_REUSE = 10; - - [NativeTypeName("#define CMC_FAIL_INTERNAL_CA_ERROR 11")] - public const int CMC_FAIL_INTERNAL_CA_ERROR = 11; - - [NativeTypeName("#define CMC_FAIL_TRY_LATER 12")] - public const int CMC_FAIL_TRY_LATER = 12; - [NativeTypeName("#define szOID_LOYALTY_OTHER_LOGOTYPE \"1.3.6.1.5.5.7.20.1\"")] public static ReadOnlySpan szOID_LOYALTY_OTHER_LOGOTYPE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x32, 0x30, 0x2E, 0x31, 0x00 }; [NativeTypeName("#define szOID_BACKGROUND_OTHER_LOGOTYPE \"1.3.6.1.5.5.7.20.2\"")] public static ReadOnlySpan szOID_BACKGROUND_OTHER_LOGOTYPE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x32, 0x30, 0x2E, 0x32, 0x00 }; - [NativeTypeName("#define OCSP_REQUEST_V1 0")] - public const int OCSP_REQUEST_V1 = 0; - - [NativeTypeName("#define OCSP_SUCCESSFUL_RESPONSE 0")] - public const int OCSP_SUCCESSFUL_RESPONSE = 0; - - [NativeTypeName("#define OCSP_MALFORMED_REQUEST_RESPONSE 1")] - public const int OCSP_MALFORMED_REQUEST_RESPONSE = 1; - - [NativeTypeName("#define OCSP_INTERNAL_ERROR_RESPONSE 2")] - public const int OCSP_INTERNAL_ERROR_RESPONSE = 2; - - [NativeTypeName("#define OCSP_TRY_LATER_RESPONSE 3")] - public const int OCSP_TRY_LATER_RESPONSE = 3; - - [NativeTypeName("#define OCSP_SIG_REQUIRED_RESPONSE 5")] - public const int OCSP_SIG_REQUIRED_RESPONSE = 5; - - [NativeTypeName("#define OCSP_UNAUTHORIZED_RESPONSE 6")] - public const int OCSP_UNAUTHORIZED_RESPONSE = 6; - [NativeTypeName("#define szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE \"1.3.6.1.5.5.7.48.1.1\"")] public static ReadOnlySpan szOID_PKIX_OCSP_BASIC_SIGNED_RESPONSE => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x35, 0x2E, 0x37, 0x2E, 0x34, 0x38, 0x2E, 0x31, 0x2E, 0x31, 0x00 }; - [NativeTypeName("#define OCSP_BASIC_GOOD_CERT_STATUS 0")] - public const int OCSP_BASIC_GOOD_CERT_STATUS = 0; - - [NativeTypeName("#define OCSP_BASIC_REVOKED_CERT_STATUS 1")] - public const int OCSP_BASIC_REVOKED_CERT_STATUS = 1; - - [NativeTypeName("#define OCSP_BASIC_UNKNOWN_CERT_STATUS 2")] - public const int OCSP_BASIC_UNKNOWN_CERT_STATUS = 2; - - [NativeTypeName("#define OCSP_BASIC_RESPONSE_V1 0")] - public const int OCSP_BASIC_RESPONSE_V1 = 0; - - [NativeTypeName("#define OCSP_BASIC_BY_NAME_RESPONDER_ID 1")] - public const int OCSP_BASIC_BY_NAME_RESPONDER_ID = 1; - - [NativeTypeName("#define OCSP_BASIC_BY_KEY_RESPONDER_ID 2")] - public const int OCSP_BASIC_BY_KEY_RESPONDER_ID = 2; - [NativeTypeName("#define szOID_CERT_STRONG_SIGN_OS_PREFIX \"1.3.6.1.4.1.311.72.1.\"")] public static ReadOnlySpan szOID_CERT_STRONG_SIGN_OS_PREFIX => new byte[] { 0x31, 0x2E, 0x33, 0x2E, 0x36, 0x2E, 0x31, 0x2E, 0x34, 0x2E, 0x31, 0x2E, 0x33, 0x31, 0x31, 0x2E, 0x37, 0x32, 0x2E, 0x31, 0x2E, 0x00 }; @@ -3549,69 +2877,6 @@ public static unsafe partial class Windows [NativeTypeName("#define sz_CERT_STORE_PROV_LDAP sz_CERT_STORE_PROV_LDAP_W")] public static ReadOnlySpan sz_CERT_STORE_PROV_LDAP => new byte[] { 0x4C, 0x64, 0x61, 0x70, 0x00 }; - [NativeTypeName("#define CTL_ENTRY_FROM_PROP_CHAIN_FLAG 0x1")] - public const int CTL_ENTRY_FROM_PROP_CHAIN_FLAG = 0x1; - - [NativeTypeName("#define CRL_FIND_ANY 0")] - public const int CRL_FIND_ANY = 0; - - [NativeTypeName("#define CRL_FIND_ISSUED_BY 1")] - public const int CRL_FIND_ISSUED_BY = 1; - - [NativeTypeName("#define CRL_FIND_EXISTING 2")] - public const int CRL_FIND_EXISTING = 2; - - [NativeTypeName("#define CRL_FIND_ISSUED_FOR 3")] - public const int CRL_FIND_ISSUED_FOR = 3; - - [NativeTypeName("#define CRL_FIND_ISSUED_BY_AKI_FLAG 0x1")] - public const int CRL_FIND_ISSUED_BY_AKI_FLAG = 0x1; - - [NativeTypeName("#define CRL_FIND_ISSUED_BY_SIGNATURE_FLAG 0x2")] - public const int CRL_FIND_ISSUED_BY_SIGNATURE_FLAG = 0x2; - - [NativeTypeName("#define CRL_FIND_ISSUED_BY_DELTA_FLAG 0x4")] - public const int CRL_FIND_ISSUED_BY_DELTA_FLAG = 0x4; - - [NativeTypeName("#define CRL_FIND_ISSUED_BY_BASE_FLAG 0x8")] - public const int CRL_FIND_ISSUED_BY_BASE_FLAG = 0x8; - - [NativeTypeName("#define CRL_FIND_ISSUED_FOR_SET_STRONG_PROPERTIES_FLAG 0x10")] - public const int CRL_FIND_ISSUED_FOR_SET_STRONG_PROPERTIES_FLAG = 0x10; - - [NativeTypeName("#define CTL_ANY_SUBJECT_TYPE 1")] - public const int CTL_ANY_SUBJECT_TYPE = 1; - - [NativeTypeName("#define CTL_CERT_SUBJECT_TYPE 2")] - public const int CTL_CERT_SUBJECT_TYPE = 2; - - [NativeTypeName("#define CTL_FIND_ANY 0")] - public const int CTL_FIND_ANY = 0; - - [NativeTypeName("#define CTL_FIND_SHA1_HASH 1")] - public const int CTL_FIND_SHA1_HASH = 1; - - [NativeTypeName("#define CTL_FIND_MD5_HASH 2")] - public const int CTL_FIND_MD5_HASH = 2; - - [NativeTypeName("#define CTL_FIND_USAGE 3")] - public const int CTL_FIND_USAGE = 3; - - [NativeTypeName("#define CTL_FIND_SUBJECT 4")] - public const int CTL_FIND_SUBJECT = 4; - - [NativeTypeName("#define CTL_FIND_EXISTING 5")] - public const int CTL_FIND_EXISTING = 5; - - [NativeTypeName("#define CTL_FIND_NO_LIST_ID_CBDATA 0xFFFFFFFF")] - public const uint CTL_FIND_NO_LIST_ID_CBDATA = 0xFFFFFFFF; - - [NativeTypeName("#define CTL_FIND_NO_SIGNER_PTR ((PCERT_INFO) -1)")] - public static CERT_INFO* CTL_FIND_NO_SIGNER_PTR => unchecked((CERT_INFO*)(-1)); - - [NativeTypeName("#define CTL_FIND_SAME_USAGE_FLAG 0x1")] - public const int CTL_FIND_SAME_USAGE_FLAG = 0x1; - [NativeTypeName("#define CertRDNValueToStr CertRDNValueToStrW")] public static delegate* CertRDNValueToStr => &CertRDNValueToStrW; @@ -3648,48 +2913,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CryptRetrieveObjectByUrl CryptRetrieveObjectByUrlW")] public static delegate* CryptRetrieveObjectByUrl => &CryptRetrieveObjectByUrlW; - [NativeTypeName("#define URL_OID_GET_OBJECT_URL_FUNC \"UrlDllGetObjectUrl\"")] - public static ReadOnlySpan URL_OID_GET_OBJECT_URL_FUNC => new byte[] { 0x55, 0x72, 0x6C, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x74, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x55, 0x72, 0x6C, 0x00 }; - - [NativeTypeName("#define URL_OID_CERTIFICATE_ISSUER ((LPCSTR)1)")] - public static sbyte* URL_OID_CERTIFICATE_ISSUER => ((sbyte*)(1)); - - [NativeTypeName("#define URL_OID_CERTIFICATE_CRL_DIST_POINT ((LPCSTR)2)")] - public static sbyte* URL_OID_CERTIFICATE_CRL_DIST_POINT => ((sbyte*)(2)); - - [NativeTypeName("#define URL_OID_CTL_ISSUER ((LPCSTR)3)")] - public static sbyte* URL_OID_CTL_ISSUER => ((sbyte*)(3)); - - [NativeTypeName("#define URL_OID_CTL_NEXT_UPDATE ((LPCSTR)4)")] - public static sbyte* URL_OID_CTL_NEXT_UPDATE => ((sbyte*)(4)); - - [NativeTypeName("#define URL_OID_CRL_ISSUER ((LPCSTR)5)")] - public static sbyte* URL_OID_CRL_ISSUER => ((sbyte*)(5)); - - [NativeTypeName("#define URL_OID_CERTIFICATE_FRESHEST_CRL ((LPCSTR)6)")] - public static sbyte* URL_OID_CERTIFICATE_FRESHEST_CRL => ((sbyte*)(6)); - - [NativeTypeName("#define URL_OID_CRL_FRESHEST_CRL ((LPCSTR)7)")] - public static sbyte* URL_OID_CRL_FRESHEST_CRL => ((sbyte*)(7)); - - [NativeTypeName("#define URL_OID_CROSS_CERT_DIST_POINT ((LPCSTR)8)")] - public static sbyte* URL_OID_CROSS_CERT_DIST_POINT => ((sbyte*)(8)); - - [NativeTypeName("#define URL_OID_CERTIFICATE_OCSP ((LPCSTR)9)")] - public static sbyte* URL_OID_CERTIFICATE_OCSP => ((sbyte*)(9)); - - [NativeTypeName("#define URL_OID_CERTIFICATE_OCSP_AND_CRL_DIST_POINT ((LPCSTR)10)")] - public static sbyte* URL_OID_CERTIFICATE_OCSP_AND_CRL_DIST_POINT => ((sbyte*)(10)); - - [NativeTypeName("#define URL_OID_CERTIFICATE_CRL_DIST_POINT_AND_OCSP ((LPCSTR)11)")] - public static sbyte* URL_OID_CERTIFICATE_CRL_DIST_POINT_AND_OCSP => ((sbyte*)(11)); - - [NativeTypeName("#define URL_OID_CROSS_CERT_SUBJECT_INFO_ACCESS ((LPCSTR)12)")] - public static sbyte* URL_OID_CROSS_CERT_SUBJECT_INFO_ACCESS => ((sbyte*)(12)); - - [NativeTypeName("#define URL_OID_CERTIFICATE_ONLY_OCSP ((LPCSTR)13)")] - public static sbyte* URL_OID_CERTIFICATE_ONLY_OCSP => ((sbyte*)(13)); - [NativeTypeName("#define TIME_VALID_OID_GET_OBJECT_FUNC \"TimeValidDllGetObject\"")] public static ReadOnlySpan TIME_VALID_OID_GET_OBJECT_FUNC => new byte[] { 0x54, 0x69, 0x6D, 0x65, 0x56, 0x61, 0x6C, 0x69, 0x64, 0x44, 0x6C, 0x6C, 0x47, 0x65, 0x74, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; @@ -3756,21 +2979,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MICROSOFT_ROOT_CERT_CHAIN_POLICY_DISABLE_FLIGHT_ROOT_FLAG 0x00040000")] public const int MICROSOFT_ROOT_CERT_CHAIN_POLICY_DISABLE_FLIGHT_ROOT_FLAG = 0x00040000; - [NativeTypeName("#define SSL_F12_ERROR_TEXT_LENGTH 256")] - public const int SSL_F12_ERROR_TEXT_LENGTH = 256; - - [NativeTypeName("#define SSL_HPKP_PKP_HEADER_INDEX 0")] - public const int SSL_HPKP_PKP_HEADER_INDEX = 0; - - [NativeTypeName("#define SSL_HPKP_PKP_RO_HEADER_INDEX 1")] - public const int SSL_HPKP_PKP_RO_HEADER_INDEX = 1; - - [NativeTypeName("#define SSL_HPKP_HEADER_COUNT 2")] - public const int SSL_HPKP_HEADER_COUNT = 2; - - [NativeTypeName("#define SSL_KEY_PIN_ERROR_TEXT_LENGTH 512")] - public const int SSL_KEY_PIN_ERROR_TEXT_LENGTH = 512; - [NativeTypeName("#define CryptStringToBinary CryptStringToBinaryW")] public static delegate* CryptStringToBinary => &CryptStringToBinaryW; @@ -3804,45 +3012,6 @@ public static unsafe partial class Windows [NativeTypeName("#define szOID_PKCS_5_PBES2 \"1.2.840.113549.1.5.13\"")] public static ReadOnlySpan szOID_PKCS_5_PBES2 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x31, 0x2E, 0x35, 0x2E, 0x31, 0x33, 0x00 }; - [NativeTypeName("#define PKCS12_IMPORT_SILENT 0x00000040")] - public const int PKCS12_IMPORT_SILENT = 0x00000040; - - [NativeTypeName("#define PKCS12_PREFER_CNG_KSP 0x00000100")] - public const int PKCS12_PREFER_CNG_KSP = 0x00000100; - - [NativeTypeName("#define PKCS12_ALWAYS_CNG_KSP 0x00000200")] - public const int PKCS12_ALWAYS_CNG_KSP = 0x00000200; - - [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES 0x00000400")] - public const int PKCS12_ONLY_CERTIFICATES = 0x00000400; - - [NativeTypeName("#define PKCS12_ONLY_NOT_ENCRYPTED_CERTIFICATES 0x00000800")] - public const int PKCS12_ONLY_NOT_ENCRYPTED_CERTIFICATES = 0x00000800; - - [NativeTypeName("#define PKCS12_ALLOW_OVERWRITE_KEY 0x00004000")] - public const int PKCS12_ALLOW_OVERWRITE_KEY = 0x00004000; - - [NativeTypeName("#define PKCS12_NO_PERSIST_KEY 0x00008000")] - public const int PKCS12_NO_PERSIST_KEY = 0x00008000; - - [NativeTypeName("#define PKCS12_VIRTUAL_ISOLATION_KEY 0x00010000")] - public const int PKCS12_VIRTUAL_ISOLATION_KEY = 0x00010000; - - [NativeTypeName("#define PKCS12_IMPORT_RESERVED_MASK 0xffff0000")] - public const uint PKCS12_IMPORT_RESERVED_MASK = 0xffff0000; - - [NativeTypeName("#define PKCS12_OBJECT_LOCATOR_ALL_IMPORT_FLAGS ( PKCS12_ALWAYS_CNG_KSP | \\\r\n PKCS12_NO_PERSIST_KEY | \\\r\n PKCS12_IMPORT_SILENT | \\\r\n PKCS12_INCLUDE_EXTENDED_PROPERTIES )")] - public const int PKCS12_OBJECT_LOCATOR_ALL_IMPORT_FLAGS = (0x00000200 | 0x00008000 | 0x00000040 | 0x0010); - - [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES_PROVIDER_TYPE 0")] - public const int PKCS12_ONLY_CERTIFICATES_PROVIDER_TYPE = 0; - - [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES_PROVIDER_NAME L\"PfxProvider\"")] - public const string PKCS12_ONLY_CERTIFICATES_PROVIDER_NAME = "PfxProvider"; - - [NativeTypeName("#define PKCS12_ONLY_CERTIFICATES_CONTAINER_NAME L\"PfxContainer\"")] - public const string PKCS12_ONLY_CERTIFICATES_CONTAINER_NAME = "PfxContainer"; - [NativeTypeName("#define REPORT_NO_PRIVATE_KEY 0x0001")] public const int REPORT_NO_PRIVATE_KEY = 0x0001; @@ -3851,116 +3020,5 @@ public static unsafe partial class Windows [NativeTypeName("#define EXPORT_PRIVATE_KEYS 0x0004")] public const int EXPORT_PRIVATE_KEYS = 0x0004; - - [NativeTypeName("#define PKCS12_INCLUDE_EXTENDED_PROPERTIES 0x0010")] - public const int PKCS12_INCLUDE_EXTENDED_PROPERTIES = 0x0010; - - [NativeTypeName("#define PKCS12_PROTECT_TO_DOMAIN_SIDS 0x0020")] - public const int PKCS12_PROTECT_TO_DOMAIN_SIDS = 0x0020; - - [NativeTypeName("#define PKCS12_EXPORT_SILENT 0x0040")] - public const int PKCS12_EXPORT_SILENT = 0x0040; - - [NativeTypeName("#define PKCS12_EXPORT_PBES2_PARAMS 0x0080")] - public const int PKCS12_EXPORT_PBES2_PARAMS = 0x0080; - - [NativeTypeName("#define PKCS12_DISABLE_ENCRYPT_CERTIFICATES 0x0100")] - public const int PKCS12_DISABLE_ENCRYPT_CERTIFICATES = 0x0100; - - [NativeTypeName("#define PKCS12_ENCRYPT_CERTIFICATES 0x0200")] - public const int PKCS12_ENCRYPT_CERTIFICATES = 0x0200; - - [NativeTypeName("#define PKCS12_EXPORT_ECC_CURVE_PARAMETERS 0x1000")] - public const int PKCS12_EXPORT_ECC_CURVE_PARAMETERS = 0x1000; - - [NativeTypeName("#define PKCS12_EXPORT_ECC_CURVE_OID 0x2000")] - public const int PKCS12_EXPORT_ECC_CURVE_OID = 0x2000; - - [NativeTypeName("#define PKCS12_EXPORT_RESERVED_MASK 0xffff0000")] - public const uint PKCS12_EXPORT_RESERVED_MASK = 0xffff0000; - - [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA1 \"1.2.840.113549.2.7\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA1 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x37, 0x00 }; - - [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA256 \"1.2.840.113549.2.9\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA256 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x39, 0x00 }; - - [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA384 \"1.2.840.113549.2.10\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA384 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x31, 0x30, 0x00 }; - - [NativeTypeName("#define PKCS12_PBKDF2_ID_HMAC_SHA512 \"1.2.840.113549.2.11\"")] - public static ReadOnlySpan PKCS12_PBKDF2_ID_HMAC_SHA512 => new byte[] { 0x31, 0x2E, 0x32, 0x2E, 0x38, 0x34, 0x30, 0x2E, 0x31, 0x31, 0x33, 0x35, 0x34, 0x39, 0x2E, 0x32, 0x2E, 0x31, 0x31, 0x00 }; - - [NativeTypeName("#define PKCS12_PBES2_ALG_AES256_SHA256 L\"AES256-SHA256\"")] - public const string PKCS12_PBES2_ALG_AES256_SHA256 = "AES256-SHA256"; - - [NativeTypeName("#define PKCS12_CONFIG_REGPATH L\"Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\PFX\"")] - public const string PKCS12_CONFIG_REGPATH = "Software\\Microsoft\\Windows\\CurrentVersion\\PFX"; - - [NativeTypeName("#define PKCS12_ENCRYPT_CERTIFICATES_VALUE_NAME L\"EncryptCertificates\"")] - public const string PKCS12_ENCRYPT_CERTIFICATES_VALUE_NAME = "EncryptCertificates"; - - [NativeTypeName("#define TIMESTAMP_VERSION 1")] - public const int TIMESTAMP_VERSION = 1; - - [NativeTypeName("#define TIMESTAMP_STATUS_GRANTED 0")] - public const int TIMESTAMP_STATUS_GRANTED = 0; - - [NativeTypeName("#define TIMESTAMP_STATUS_GRANTED_WITH_MODS 1")] - public const int TIMESTAMP_STATUS_GRANTED_WITH_MODS = 1; - - [NativeTypeName("#define TIMESTAMP_STATUS_REJECTED 2")] - public const int TIMESTAMP_STATUS_REJECTED = 2; - - [NativeTypeName("#define TIMESTAMP_STATUS_WAITING 3")] - public const int TIMESTAMP_STATUS_WAITING = 3; - - [NativeTypeName("#define TIMESTAMP_STATUS_REVOCATION_WARNING 4")] - public const int TIMESTAMP_STATUS_REVOCATION_WARNING = 4; - - [NativeTypeName("#define TIMESTAMP_STATUS_REVOKED 5")] - public const int TIMESTAMP_STATUS_REVOKED = 5; - - [NativeTypeName("#define TIMESTAMP_FAILURE_BAD_ALG 0")] - public const int TIMESTAMP_FAILURE_BAD_ALG = 0; - - [NativeTypeName("#define TIMESTAMP_FAILURE_BAD_REQUEST 2")] - public const int TIMESTAMP_FAILURE_BAD_REQUEST = 2; - - [NativeTypeName("#define TIMESTAMP_FAILURE_BAD_FORMAT 5")] - public const int TIMESTAMP_FAILURE_BAD_FORMAT = 5; - - [NativeTypeName("#define TIMESTAMP_FAILURE_TIME_NOT_AVAILABLE 14")] - public const int TIMESTAMP_FAILURE_TIME_NOT_AVAILABLE = 14; - - [NativeTypeName("#define TIMESTAMP_FAILURE_POLICY_NOT_SUPPORTED 15")] - public const int TIMESTAMP_FAILURE_POLICY_NOT_SUPPORTED = 15; - - [NativeTypeName("#define TIMESTAMP_FAILURE_EXTENSION_NOT_SUPPORTED 16")] - public const int TIMESTAMP_FAILURE_EXTENSION_NOT_SUPPORTED = 16; - - [NativeTypeName("#define TIMESTAMP_FAILURE_INFO_NOT_AVAILABLE 17")] - public const int TIMESTAMP_FAILURE_INFO_NOT_AVAILABLE = 17; - - [NativeTypeName("#define TIMESTAMP_FAILURE_SYSTEM_FAILURE 25")] - public const int TIMESTAMP_FAILURE_SYSTEM_FAILURE = 25; - - [NativeTypeName("#define TIMESTAMP_DONT_HASH_DATA 0x00000001")] - public const int TIMESTAMP_DONT_HASH_DATA = 0x00000001; - - [NativeTypeName("#define TIMESTAMP_VERIFY_CONTEXT_SIGNATURE 0x00000020")] - public const int TIMESTAMP_VERIFY_CONTEXT_SIGNATURE = 0x00000020; - - [NativeTypeName("#define TIMESTAMP_NO_AUTH_RETRIEVAL 0x00020000")] - public const int TIMESTAMP_NO_AUTH_RETRIEVAL = 0x00020000; - - [NativeTypeName("#define SSL_OBJECT_LOCATOR_PFX_FUNC \"SslObjectLocatorInitializePfx\"")] - public static ReadOnlySpan SSL_OBJECT_LOCATOR_PFX_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x50, 0x66, 0x78, 0x00 }; - - [NativeTypeName("#define SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC \"SslObjectLocatorInitializeIssuerList\"")] - public static ReadOnlySpan SSL_OBJECT_LOCATOR_ISSUER_LIST_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x49, 0x73, 0x73, 0x75, 0x65, 0x72, 0x4C, 0x69, 0x73, 0x74, 0x00 }; - - [NativeTypeName("#define SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC \"SslObjectLocatorInitializeCertValidationConfig\"")] - public static ReadOnlySpan SSL_OBJECT_LOCATOR_CERT_VALIDATION_CONFIG_FUNC => new byte[] { 0x53, 0x73, 0x6C, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x4C, 0x6F, 0x63, 0x61, 0x74, 0x6F, 0x72, 0x49, 0x6E, 0x69, 0x74, 0x69, 0x61, 0x6C, 0x69, 0x7A, 0x65, 0x43, 0x65, 0x72, 0x74, 0x56, 0x61, 0x6C, 0x69, 0x64, 0x61, 0x74, 0x69, 0x6F, 0x6E, 0x43, 0x6F, 0x6E, 0x66, 0x69, 0x67, 0x00 }; } } diff --git a/sources/Interop/Windows/Windows/um/wingdi/BS.cs b/sources/Interop/Windows/Windows/um/wingdi/BS.cs new file mode 100644 index 0000000000..75828a1bee --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/BS.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BS + { + [NativeTypeName("#define BS_SOLID 0")] + public const int BS_SOLID = 0; + + [NativeTypeName("#define BS_NULL 1")] + public const int BS_NULL = 1; + + [NativeTypeName("#define BS_HOLLOW BS_NULL")] + public const int BS_HOLLOW = 1; + + [NativeTypeName("#define BS_HATCHED 2")] + public const int BS_HATCHED = 2; + + [NativeTypeName("#define BS_PATTERN 3")] + public const int BS_PATTERN = 3; + + [NativeTypeName("#define BS_INDEXED 4")] + public const int BS_INDEXED = 4; + + [NativeTypeName("#define BS_DIBPATTERN 5")] + public const int BS_DIBPATTERN = 5; + + [NativeTypeName("#define BS_DIBPATTERNPT 6")] + public const int BS_DIBPATTERNPT = 6; + + [NativeTypeName("#define BS_PATTERN8X8 7")] + public const int BS_PATTERN8X8 = 7; + + [NativeTypeName("#define BS_DIBPATTERN8X8 8")] + public const int BS_DIBPATTERN8X8 = 8; + + [NativeTypeName("#define BS_MONOPATTERN 9")] + public const int BS_MONOPATTERN = 9; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/CC.cs b/sources/Interop/Windows/Windows/um/wingdi/CC.cs new file mode 100644 index 0000000000..8c3a2d566a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/CC.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CC + { + [NativeTypeName("#define CC_NONE 0")] + public const int CC_NONE = 0; + + [NativeTypeName("#define CC_CIRCLES 1")] + public const int CC_CIRCLES = 1; + + [NativeTypeName("#define CC_PIE 2")] + public const int CC_PIE = 2; + + [NativeTypeName("#define CC_CHORD 4")] + public const int CC_CHORD = 4; + + [NativeTypeName("#define CC_ELLIPSES 8")] + public const int CC_ELLIPSES = 8; + + [NativeTypeName("#define CC_WIDE 16")] + public const int CC_WIDE = 16; + + [NativeTypeName("#define CC_STYLED 32")] + public const int CC_STYLED = 32; + + [NativeTypeName("#define CC_WIDESTYLED 64")] + public const int CC_WIDESTYLED = 64; + + [NativeTypeName("#define CC_INTERIORS 128")] + public const int CC_INTERIORS = 128; + + [NativeTypeName("#define CC_ROUNDRECT 256")] + public const int CC_ROUNDRECT = 256; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/CM.cs b/sources/Interop/Windows/Windows/um/wingdi/CM.cs new file mode 100644 index 0000000000..cf046370c5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/CM.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CM + { + [NativeTypeName("#define CM_OUT_OF_GAMUT 255")] + public const int CM_OUT_OF_GAMUT = 255; + + [NativeTypeName("#define CM_IN_GAMUT 0")] + public const int CM_IN_GAMUT = 0; + + [NativeTypeName("#define CM_NONE 0x00000000")] + public const int CM_NONE = 0x00000000; + + [NativeTypeName("#define CM_DEVICE_ICM 0x00000001")] + public const int CM_DEVICE_ICM = 0x00000001; + + [NativeTypeName("#define CM_GAMMA_RAMP 0x00000002")] + public const int CM_GAMMA_RAMP = 0x00000002; + + [NativeTypeName("#define CM_CMYK_COLOR 0x00000004")] + public const int CM_CMYK_COLOR = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/COLOR.cs b/sources/Interop/Windows/Windows/um/wingdi/COLOR.cs new file mode 100644 index 0000000000..d943a7bee8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/COLOR.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class COLOR + { + [NativeTypeName("#define COLOR_ADJ_MIN (SHORT)-100")] + public const short COLOR_ADJ_MIN = (short)(-100); + + [NativeTypeName("#define COLOR_ADJ_MAX (SHORT)100")] + public const short COLOR_ADJ_MAX = (short)(100); + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/CS.cs b/sources/Interop/Windows/Windows/um/wingdi/CS.cs new file mode 100644 index 0000000000..95ce4b4e56 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/CS.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CS + { + [NativeTypeName("#define CS_ENABLE 0x00000001L")] + public const int CS_ENABLE = 0x00000001; + + [NativeTypeName("#define CS_DISABLE 0x00000002L")] + public const int CS_DISABLE = 0x00000002; + + [NativeTypeName("#define CS_DELETE_TRANSFORM 0x00000003L")] + public const int CS_DELETE_TRANSFORM = 0x00000003; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DC.cs b/sources/Interop/Windows/Windows/um/wingdi/DC.cs new file mode 100644 index 0000000000..dde8013b94 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DC.cs @@ -0,0 +1,121 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DC + { + [NativeTypeName("#define DC_BRUSH 18")] + public const int DC_BRUSH = 18; + + [NativeTypeName("#define DC_PEN 19")] + public const int DC_PEN = 19; + + [NativeTypeName("#define DC_FIELDS 1")] + public const int DC_FIELDS = 1; + + [NativeTypeName("#define DC_PAPERS 2")] + public const int DC_PAPERS = 2; + + [NativeTypeName("#define DC_PAPERSIZE 3")] + public const int DC_PAPERSIZE = 3; + + [NativeTypeName("#define DC_MINEXTENT 4")] + public const int DC_MINEXTENT = 4; + + [NativeTypeName("#define DC_MAXEXTENT 5")] + public const int DC_MAXEXTENT = 5; + + [NativeTypeName("#define DC_BINS 6")] + public const int DC_BINS = 6; + + [NativeTypeName("#define DC_DUPLEX 7")] + public const int DC_DUPLEX = 7; + + [NativeTypeName("#define DC_SIZE 8")] + public const int DC_SIZE = 8; + + [NativeTypeName("#define DC_EXTRA 9")] + public const int DC_EXTRA = 9; + + [NativeTypeName("#define DC_VERSION 10")] + public const int DC_VERSION = 10; + + [NativeTypeName("#define DC_DRIVER 11")] + public const int DC_DRIVER = 11; + + [NativeTypeName("#define DC_BINNAMES 12")] + public const int DC_BINNAMES = 12; + + [NativeTypeName("#define DC_ENUMRESOLUTIONS 13")] + public const int DC_ENUMRESOLUTIONS = 13; + + [NativeTypeName("#define DC_FILEDEPENDENCIES 14")] + public const int DC_FILEDEPENDENCIES = 14; + + [NativeTypeName("#define DC_TRUETYPE 15")] + public const int DC_TRUETYPE = 15; + + [NativeTypeName("#define DC_PAPERNAMES 16")] + public const int DC_PAPERNAMES = 16; + + [NativeTypeName("#define DC_ORIENTATION 17")] + public const int DC_ORIENTATION = 17; + + [NativeTypeName("#define DC_COPIES 18")] + public const int DC_COPIES = 18; + + [NativeTypeName("#define DC_BINADJUST 19")] + public const int DC_BINADJUST = 19; + + [NativeTypeName("#define DC_EMF_COMPLIANT 20")] + public const int DC_EMF_COMPLIANT = 20; + + [NativeTypeName("#define DC_DATATYPE_PRODUCED 21")] + public const int DC_DATATYPE_PRODUCED = 21; + + [NativeTypeName("#define DC_COLLATE 22")] + public const int DC_COLLATE = 22; + + [NativeTypeName("#define DC_MANUFACTURER 23")] + public const int DC_MANUFACTURER = 23; + + [NativeTypeName("#define DC_MODEL 24")] + public const int DC_MODEL = 24; + + [NativeTypeName("#define DC_PERSONALITY 25")] + public const int DC_PERSONALITY = 25; + + [NativeTypeName("#define DC_PRINTRATE 26")] + public const int DC_PRINTRATE = 26; + + [NativeTypeName("#define DC_PRINTRATEUNIT 27")] + public const int DC_PRINTRATEUNIT = 27; + + [NativeTypeName("#define DC_PRINTERMEM 28")] + public const int DC_PRINTERMEM = 28; + + [NativeTypeName("#define DC_MEDIAREADY 29")] + public const int DC_MEDIAREADY = 29; + + [NativeTypeName("#define DC_STAPLE 30")] + public const int DC_STAPLE = 30; + + [NativeTypeName("#define DC_PRINTRATEPPM 31")] + public const int DC_PRINTRATEPPM = 31; + + [NativeTypeName("#define DC_COLORDEVICE 32")] + public const int DC_COLORDEVICE = 32; + + [NativeTypeName("#define DC_NUP 33")] + public const int DC_NUP = 33; + + [NativeTypeName("#define DC_MEDIATYPENAMES 34")] + public const int DC_MEDIATYPENAMES = 34; + + [NativeTypeName("#define DC_MEDIATYPES 35")] + public const int DC_MEDIATYPES = 35; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DEFAULT.cs b/sources/Interop/Windows/Windows/um/wingdi/DEFAULT.cs new file mode 100644 index 0000000000..a2d1aedb53 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DEFAULT.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEFAULT + { + [NativeTypeName("#define DEFAULT_QUALITY 0")] + public const int DEFAULT_QUALITY = 0; + + [NativeTypeName("#define DEFAULT_PITCH 0")] + public const int DEFAULT_PITCH = 0; + + [NativeTypeName("#define DEFAULT_CHARSET 1")] + public const int DEFAULT_CHARSET = 1; + + [NativeTypeName("#define DEFAULT_PALETTE 15")] + public const int DEFAULT_PALETTE = 15; + + [NativeTypeName("#define DEFAULT_GUI_FONT 17")] + public const int DEFAULT_GUI_FONT = 17; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DEVICE.cs b/sources/Interop/Windows/Windows/um/wingdi/DEVICE.cs new file mode 100644 index 0000000000..f8f10e7962 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DEVICE.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICE + { + [NativeTypeName("#define DEVICE_FONTTYPE 0x0002")] + public const int DEVICE_FONTTYPE = 0x0002; + + [NativeTypeName("#define DEVICE_DEFAULT_FONT 14")] + public const int DEVICE_DEFAULT_FONT = 14; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAY.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAY.cs new file mode 100644 index 0000000000..dfe8d3e29f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAY.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DISPLAY + { + [NativeTypeName("#define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP 0x00000001")] + public const int DISPLAY_DEVICE_ATTACHED_TO_DESKTOP = 0x00000001; + + [NativeTypeName("#define DISPLAY_DEVICE_MULTI_DRIVER 0x00000002")] + public const int DISPLAY_DEVICE_MULTI_DRIVER = 0x00000002; + + [NativeTypeName("#define DISPLAY_DEVICE_PRIMARY_DEVICE 0x00000004")] + public const int DISPLAY_DEVICE_PRIMARY_DEVICE = 0x00000004; + + [NativeTypeName("#define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008")] + public const int DISPLAY_DEVICE_MIRRORING_DRIVER = 0x00000008; + + [NativeTypeName("#define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010")] + public const int DISPLAY_DEVICE_VGA_COMPATIBLE = 0x00000010; + + [NativeTypeName("#define DISPLAY_DEVICE_REMOVABLE 0x00000020")] + public const int DISPLAY_DEVICE_REMOVABLE = 0x00000020; + + [NativeTypeName("#define DISPLAY_DEVICE_ACC_DRIVER 0x00000040")] + public const int DISPLAY_DEVICE_ACC_DRIVER = 0x00000040; + + [NativeTypeName("#define DISPLAY_DEVICE_MODESPRUNED 0x08000000")] + public const int DISPLAY_DEVICE_MODESPRUNED = 0x08000000; + + [NativeTypeName("#define DISPLAY_DEVICE_RDPUDD 0x01000000")] + public const int DISPLAY_DEVICE_RDPUDD = 0x01000000; + + [NativeTypeName("#define DISPLAY_DEVICE_REMOTE 0x04000000")] + public const int DISPLAY_DEVICE_REMOTE = 0x04000000; + + [NativeTypeName("#define DISPLAY_DEVICE_DISCONNECT 0x02000000")] + public const int DISPLAY_DEVICE_DISCONNECT = 0x02000000; + + [NativeTypeName("#define DISPLAY_DEVICE_TS_COMPATIBLE 0x00200000")] + public const int DISPLAY_DEVICE_TS_COMPATIBLE = 0x00200000; + + [NativeTypeName("#define DISPLAY_DEVICE_UNSAFE_MODES_ON 0x00080000")] + public const int DISPLAY_DEVICE_UNSAFE_MODES_ON = 0x00080000; + + [NativeTypeName("#define DISPLAY_DEVICE_ACTIVE 0x00000001")] + public const int DISPLAY_DEVICE_ACTIVE = 0x00000001; + + [NativeTypeName("#define DISPLAY_DEVICE_ATTACHED 0x00000002")] + public const int DISPLAY_DEVICE_ATTACHED = 0x00000002; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG.cs b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG.cs new file mode 100644 index 0000000000..1158d4cf74 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DISPLAYCONFIG.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DISPLAYCONFIG + { + [NativeTypeName("#define DISPLAYCONFIG_MAXPATH 1024")] + public const int DISPLAYCONFIG_MAXPATH = 1024; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_MODE_IDX_INVALID 0xffffffff")] + public const uint DISPLAYCONFIG_PATH_MODE_IDX_INVALID = 0xffffffff; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_TARGET_MODE_IDX_INVALID 0xffff")] + public const int DISPLAYCONFIG_PATH_TARGET_MODE_IDX_INVALID = 0xffff; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_DESKTOP_IMAGE_IDX_INVALID 0xffff")] + public const int DISPLAYCONFIG_PATH_DESKTOP_IMAGE_IDX_INVALID = 0xffff; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID 0xffff")] + public const int DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID = 0xffff; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_CLONE_GROUP_INVALID 0xffff")] + public const int DISPLAYCONFIG_PATH_CLONE_GROUP_INVALID = 0xffff; + + [NativeTypeName("#define DISPLAYCONFIG_SOURCE_IN_USE 0x00000001")] + public const int DISPLAYCONFIG_SOURCE_IN_USE = 0x00000001; + + [NativeTypeName("#define DISPLAYCONFIG_TARGET_IN_USE 0x00000001")] + public const int DISPLAYCONFIG_TARGET_IN_USE = 0x00000001; + + [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCIBLE 0x00000002")] + public const int DISPLAYCONFIG_TARGET_FORCIBLE = 0x00000002; + + [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_BOOT 0x00000004")] + public const int DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_BOOT = 0x00000004; + + [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_PATH 0x00000008")] + public const int DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_PATH = 0x00000008; + + [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_SYSTEM 0x00000010")] + public const int DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_SYSTEM = 0x00000010; + + [NativeTypeName("#define DISPLAYCONFIG_TARGET_IS_HMD 0x00000020")] + public const int DISPLAYCONFIG_TARGET_IS_HMD = 0x00000020; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_ACTIVE 0x00000001")] + public const int DISPLAYCONFIG_PATH_ACTIVE = 0x00000001; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_PREFERRED_UNSCALED 0x00000004")] + public const int DISPLAYCONFIG_PATH_PREFERRED_UNSCALED = 0x00000004; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_SUPPORT_VIRTUAL_MODE 0x00000008")] + public const int DISPLAYCONFIG_PATH_SUPPORT_VIRTUAL_MODE = 0x00000008; + + [NativeTypeName("#define DISPLAYCONFIG_PATH_VALID_FLAGS 0x0000000D")] + public const int DISPLAYCONFIG_PATH_VALID_FLAGS = 0x0000000D; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DM.cs b/sources/Interop/Windows/Windows/um/wingdi/DM.cs new file mode 100644 index 0000000000..f408b6f4af --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DM.cs @@ -0,0 +1,130 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DM + { + [NativeTypeName("#define DM_SPECVERSION 0x0401")] + public const int DM_SPECVERSION = 0x0401; + + [NativeTypeName("#define DM_ORIENTATION 0x00000001L")] + public const int DM_ORIENTATION = 0x00000001; + + [NativeTypeName("#define DM_PAPERSIZE 0x00000002L")] + public const int DM_PAPERSIZE = 0x00000002; + + [NativeTypeName("#define DM_PAPERLENGTH 0x00000004L")] + public const int DM_PAPERLENGTH = 0x00000004; + + [NativeTypeName("#define DM_PAPERWIDTH 0x00000008L")] + public const int DM_PAPERWIDTH = 0x00000008; + + [NativeTypeName("#define DM_SCALE 0x00000010L")] + public const int DM_SCALE = 0x00000010; + + [NativeTypeName("#define DM_POSITION 0x00000020L")] + public const int DM_POSITION = 0x00000020; + + [NativeTypeName("#define DM_NUP 0x00000040L")] + public const int DM_NUP = 0x00000040; + + [NativeTypeName("#define DM_DISPLAYORIENTATION 0x00000080L")] + public const int DM_DISPLAYORIENTATION = 0x00000080; + + [NativeTypeName("#define DM_COPIES 0x00000100L")] + public const int DM_COPIES = 0x00000100; + + [NativeTypeName("#define DM_DEFAULTSOURCE 0x00000200L")] + public const int DM_DEFAULTSOURCE = 0x00000200; + + [NativeTypeName("#define DM_PRINTQUALITY 0x00000400L")] + public const int DM_PRINTQUALITY = 0x00000400; + + [NativeTypeName("#define DM_COLOR 0x00000800L")] + public const int DM_COLOR = 0x00000800; + + [NativeTypeName("#define DM_DUPLEX 0x00001000L")] + public const int DM_DUPLEX = 0x00001000; + + [NativeTypeName("#define DM_YRESOLUTION 0x00002000L")] + public const int DM_YRESOLUTION = 0x00002000; + + [NativeTypeName("#define DM_TTOPTION 0x00004000L")] + public const int DM_TTOPTION = 0x00004000; + + [NativeTypeName("#define DM_COLLATE 0x00008000L")] + public const int DM_COLLATE = 0x00008000; + + [NativeTypeName("#define DM_FORMNAME 0x00010000L")] + public const int DM_FORMNAME = 0x00010000; + + [NativeTypeName("#define DM_LOGPIXELS 0x00020000L")] + public const int DM_LOGPIXELS = 0x00020000; + + [NativeTypeName("#define DM_BITSPERPEL 0x00040000L")] + public const int DM_BITSPERPEL = 0x00040000; + + [NativeTypeName("#define DM_PELSWIDTH 0x00080000L")] + public const int DM_PELSWIDTH = 0x00080000; + + [NativeTypeName("#define DM_PELSHEIGHT 0x00100000L")] + public const int DM_PELSHEIGHT = 0x00100000; + + [NativeTypeName("#define DM_DISPLAYFLAGS 0x00200000L")] + public const int DM_DISPLAYFLAGS = 0x00200000; + + [NativeTypeName("#define DM_DISPLAYFREQUENCY 0x00400000L")] + public const int DM_DISPLAYFREQUENCY = 0x00400000; + + [NativeTypeName("#define DM_ICMMETHOD 0x00800000L")] + public const int DM_ICMMETHOD = 0x00800000; + + [NativeTypeName("#define DM_ICMINTENT 0x01000000L")] + public const int DM_ICMINTENT = 0x01000000; + + [NativeTypeName("#define DM_MEDIATYPE 0x02000000L")] + public const int DM_MEDIATYPE = 0x02000000; + + [NativeTypeName("#define DM_DITHERTYPE 0x04000000L")] + public const int DM_DITHERTYPE = 0x04000000; + + [NativeTypeName("#define DM_PANNINGWIDTH 0x08000000L")] + public const int DM_PANNINGWIDTH = 0x08000000; + + [NativeTypeName("#define DM_PANNINGHEIGHT 0x10000000L")] + public const int DM_PANNINGHEIGHT = 0x10000000; + + [NativeTypeName("#define DM_DISPLAYFIXEDOUTPUT 0x20000000L")] + public const int DM_DISPLAYFIXEDOUTPUT = 0x20000000; + + [NativeTypeName("#define DM_INTERLACED 0x00000002")] + public const int DM_INTERLACED = 0x00000002; + + [NativeTypeName("#define DM_UPDATE 1")] + public const int DM_UPDATE = 1; + + [NativeTypeName("#define DM_COPY 2")] + public const int DM_COPY = 2; + + [NativeTypeName("#define DM_PROMPT 4")] + public const int DM_PROMPT = 4; + + [NativeTypeName("#define DM_MODIFY 8")] + public const int DM_MODIFY = 8; + + [NativeTypeName("#define DM_IN_BUFFER DM_MODIFY")] + public const int DM_IN_BUFFER = 8; + + [NativeTypeName("#define DM_IN_PROMPT DM_PROMPT")] + public const int DM_IN_PROMPT = 4; + + [NativeTypeName("#define DM_OUT_BUFFER DM_COPY")] + public const int DM_OUT_BUFFER = 2; + + [NativeTypeName("#define DM_OUT_DEFAULT DM_UPDATE")] + public const int DM_OUT_DEFAULT = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DMBIN.cs b/sources/Interop/Windows/Windows/um/wingdi/DMBIN.cs new file mode 100644 index 0000000000..3e017e876f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DMBIN.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DMBIN + { + [NativeTypeName("#define DMBIN_FIRST DMBIN_UPPER")] + public const int DMBIN_FIRST = 1; + + [NativeTypeName("#define DMBIN_UPPER 1")] + public const int DMBIN_UPPER = 1; + + [NativeTypeName("#define DMBIN_ONLYONE 1")] + public const int DMBIN_ONLYONE = 1; + + [NativeTypeName("#define DMBIN_LOWER 2")] + public const int DMBIN_LOWER = 2; + + [NativeTypeName("#define DMBIN_MIDDLE 3")] + public const int DMBIN_MIDDLE = 3; + + [NativeTypeName("#define DMBIN_MANUAL 4")] + public const int DMBIN_MANUAL = 4; + + [NativeTypeName("#define DMBIN_ENVELOPE 5")] + public const int DMBIN_ENVELOPE = 5; + + [NativeTypeName("#define DMBIN_ENVMANUAL 6")] + public const int DMBIN_ENVMANUAL = 6; + + [NativeTypeName("#define DMBIN_AUTO 7")] + public const int DMBIN_AUTO = 7; + + [NativeTypeName("#define DMBIN_TRACTOR 8")] + public const int DMBIN_TRACTOR = 8; + + [NativeTypeName("#define DMBIN_SMALLFMT 9")] + public const int DMBIN_SMALLFMT = 9; + + [NativeTypeName("#define DMBIN_LARGEFMT 10")] + public const int DMBIN_LARGEFMT = 10; + + [NativeTypeName("#define DMBIN_LARGECAPACITY 11")] + public const int DMBIN_LARGECAPACITY = 11; + + [NativeTypeName("#define DMBIN_CASSETTE 14")] + public const int DMBIN_CASSETTE = 14; + + [NativeTypeName("#define DMBIN_FORMSOURCE 15")] + public const int DMBIN_FORMSOURCE = 15; + + [NativeTypeName("#define DMBIN_LAST DMBIN_FORMSOURCE")] + public const int DMBIN_LAST = 15; + + [NativeTypeName("#define DMBIN_USER 256")] + public const int DMBIN_USER = 256; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DMDITHER.cs b/sources/Interop/Windows/Windows/um/wingdi/DMDITHER.cs new file mode 100644 index 0000000000..1b18560d57 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DMDITHER.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DMDITHER + { + [NativeTypeName("#define DMDITHER_NONE 1")] + public const int DMDITHER_NONE = 1; + + [NativeTypeName("#define DMDITHER_COARSE 2")] + public const int DMDITHER_COARSE = 2; + + [NativeTypeName("#define DMDITHER_FINE 3")] + public const int DMDITHER_FINE = 3; + + [NativeTypeName("#define DMDITHER_LINEART 4")] + public const int DMDITHER_LINEART = 4; + + [NativeTypeName("#define DMDITHER_ERRORDIFFUSION 5")] + public const int DMDITHER_ERRORDIFFUSION = 5; + + [NativeTypeName("#define DMDITHER_RESERVED6 6")] + public const int DMDITHER_RESERVED6 = 6; + + [NativeTypeName("#define DMDITHER_RESERVED7 7")] + public const int DMDITHER_RESERVED7 = 7; + + [NativeTypeName("#define DMDITHER_RESERVED8 8")] + public const int DMDITHER_RESERVED8 = 8; + + [NativeTypeName("#define DMDITHER_RESERVED9 9")] + public const int DMDITHER_RESERVED9 = 9; + + [NativeTypeName("#define DMDITHER_GRAYSCALE 10")] + public const int DMDITHER_GRAYSCALE = 10; + + [NativeTypeName("#define DMDITHER_USER 256")] + public const int DMDITHER_USER = 256; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/DT.cs b/sources/Interop/Windows/Windows/um/wingdi/DT.cs new file mode 100644 index 0000000000..13604f3a0c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/DT.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DT + { + [NativeTypeName("#define DT_PLOTTER 0")] + public const int DT_PLOTTER = 0; + + [NativeTypeName("#define DT_RASDISPLAY 1")] + public const int DT_RASDISPLAY = 1; + + [NativeTypeName("#define DT_RASPRINTER 2")] + public const int DT_RASPRINTER = 2; + + [NativeTypeName("#define DT_RASCAMERA 3")] + public const int DT_RASCAMERA = 3; + + [NativeTypeName("#define DT_CHARSTREAM 4")] + public const int DT_CHARSTREAM = 4; + + [NativeTypeName("#define DT_METAFILE 5")] + public const int DT_METAFILE = 5; + + [NativeTypeName("#define DT_DISPFILE 6")] + public const int DT_DISPFILE = 6; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/FS.cs b/sources/Interop/Windows/Windows/um/wingdi/FS.cs new file mode 100644 index 0000000000..83d1d98796 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/FS.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FS + { + [NativeTypeName("#define FS_LATIN1 0x00000001L")] + public const int FS_LATIN1 = 0x00000001; + + [NativeTypeName("#define FS_LATIN2 0x00000002L")] + public const int FS_LATIN2 = 0x00000002; + + [NativeTypeName("#define FS_CYRILLIC 0x00000004L")] + public const int FS_CYRILLIC = 0x00000004; + + [NativeTypeName("#define FS_GREEK 0x00000008L")] + public const int FS_GREEK = 0x00000008; + + [NativeTypeName("#define FS_TURKISH 0x00000010L")] + public const int FS_TURKISH = 0x00000010; + + [NativeTypeName("#define FS_HEBREW 0x00000020L")] + public const int FS_HEBREW = 0x00000020; + + [NativeTypeName("#define FS_ARABIC 0x00000040L")] + public const int FS_ARABIC = 0x00000040; + + [NativeTypeName("#define FS_BALTIC 0x00000080L")] + public const int FS_BALTIC = 0x00000080; + + [NativeTypeName("#define FS_VIETNAMESE 0x00000100L")] + public const int FS_VIETNAMESE = 0x00000100; + + [NativeTypeName("#define FS_THAI 0x00010000L")] + public const int FS_THAI = 0x00010000; + + [NativeTypeName("#define FS_JISJAPAN 0x00020000L")] + public const int FS_JISJAPAN = 0x00020000; + + [NativeTypeName("#define FS_CHINESESIMP 0x00040000L")] + public const int FS_CHINESESIMP = 0x00040000; + + [NativeTypeName("#define FS_WANSUNG 0x00080000L")] + public const int FS_WANSUNG = 0x00080000; + + [NativeTypeName("#define FS_CHINESETRAD 0x00100000L")] + public const int FS_CHINESETRAD = 0x00100000; + + [NativeTypeName("#define FS_JOHAB 0x00200000L")] + public const int FS_JOHAB = 0x00200000; + + [NativeTypeName("#define FS_SYMBOL 0x80000000L")] + public const uint FS_SYMBOL = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/FW.cs b/sources/Interop/Windows/Windows/um/wingdi/FW.cs new file mode 100644 index 0000000000..39f6143748 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/FW.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FW + { + [NativeTypeName("#define FW_DONTCARE 0")] + public const int FW_DONTCARE = 0; + + [NativeTypeName("#define FW_THIN 100")] + public const int FW_THIN = 100; + + [NativeTypeName("#define FW_EXTRALIGHT 200")] + public const int FW_EXTRALIGHT = 200; + + [NativeTypeName("#define FW_LIGHT 300")] + public const int FW_LIGHT = 300; + + [NativeTypeName("#define FW_NORMAL 400")] + public const int FW_NORMAL = 400; + + [NativeTypeName("#define FW_MEDIUM 500")] + public const int FW_MEDIUM = 500; + + [NativeTypeName("#define FW_SEMIBOLD 600")] + public const int FW_SEMIBOLD = 600; + + [NativeTypeName("#define FW_BOLD 700")] + public const int FW_BOLD = 700; + + [NativeTypeName("#define FW_EXTRABOLD 800")] + public const int FW_EXTRABOLD = 800; + + [NativeTypeName("#define FW_HEAVY 900")] + public const int FW_HEAVY = 900; + + [NativeTypeName("#define FW_ULTRALIGHT FW_EXTRALIGHT")] + public const int FW_ULTRALIGHT = 200; + + [NativeTypeName("#define FW_REGULAR FW_NORMAL")] + public const int FW_REGULAR = 400; + + [NativeTypeName("#define FW_DEMIBOLD FW_SEMIBOLD")] + public const int FW_DEMIBOLD = 600; + + [NativeTypeName("#define FW_ULTRABOLD FW_EXTRABOLD")] + public const int FW_ULTRABOLD = 800; + + [NativeTypeName("#define FW_BLACK FW_HEAVY")] + public const int FW_BLACK = 900; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/GCP.cs b/sources/Interop/Windows/Windows/um/wingdi/GCP.cs new file mode 100644 index 0000000000..75361382ee --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/GCP.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GCP + { + [NativeTypeName("#define GCP_DBCS 0x0001")] + public const int GCP_DBCS = 0x0001; + + [NativeTypeName("#define GCP_REORDER 0x0002")] + public const int GCP_REORDER = 0x0002; + + [NativeTypeName("#define GCP_USEKERNING 0x0008")] + public const int GCP_USEKERNING = 0x0008; + + [NativeTypeName("#define GCP_GLYPHSHAPE 0x0010")] + public const int GCP_GLYPHSHAPE = 0x0010; + + [NativeTypeName("#define GCP_LIGATE 0x0020")] + public const int GCP_LIGATE = 0x0020; + + [NativeTypeName("#define GCP_DIACRITIC 0x0100")] + public const int GCP_DIACRITIC = 0x0100; + + [NativeTypeName("#define GCP_KASHIDA 0x0400")] + public const int GCP_KASHIDA = 0x0400; + + [NativeTypeName("#define GCP_ERROR 0x8000")] + public const int GCP_ERROR = 0x8000; + + [NativeTypeName("#define GCP_JUSTIFY 0x00010000L")] + public const int GCP_JUSTIFY = 0x00010000; + + [NativeTypeName("#define GCP_CLASSIN 0x00080000L")] + public const int GCP_CLASSIN = 0x00080000; + + [NativeTypeName("#define GCP_MAXEXTENT 0x00100000L")] + public const int GCP_MAXEXTENT = 0x00100000; + + [NativeTypeName("#define GCP_JUSTIFYIN 0x00200000L")] + public const int GCP_JUSTIFYIN = 0x00200000; + + [NativeTypeName("#define GCP_DISPLAYZWG 0x00400000L")] + public const int GCP_DISPLAYZWG = 0x00400000; + + [NativeTypeName("#define GCP_SYMSWAPOFF 0x00800000L")] + public const int GCP_SYMSWAPOFF = 0x00800000; + + [NativeTypeName("#define GCP_NUMERICOVERRIDE 0x01000000L")] + public const int GCP_NUMERICOVERRIDE = 0x01000000; + + [NativeTypeName("#define GCP_NEUTRALOVERRIDE 0x02000000L")] + public const int GCP_NEUTRALOVERRIDE = 0x02000000; + + [NativeTypeName("#define GCP_NUMERICSLATIN 0x04000000L")] + public const int GCP_NUMERICSLATIN = 0x04000000; + + [NativeTypeName("#define GCP_NUMERICSLOCAL 0x08000000L")] + public const int GCP_NUMERICSLOCAL = 0x08000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/GCPCLASS.cs b/sources/Interop/Windows/Windows/um/wingdi/GCPCLASS.cs new file mode 100644 index 0000000000..42dc185b9f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/GCPCLASS.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GCPCLASS + { + [NativeTypeName("#define GCPCLASS_LATIN 1")] + public const int GCPCLASS_LATIN = 1; + + [NativeTypeName("#define GCPCLASS_HEBREW 2")] + public const int GCPCLASS_HEBREW = 2; + + [NativeTypeName("#define GCPCLASS_ARABIC 2")] + public const int GCPCLASS_ARABIC = 2; + + [NativeTypeName("#define GCPCLASS_NEUTRAL 3")] + public const int GCPCLASS_NEUTRAL = 3; + + [NativeTypeName("#define GCPCLASS_LOCALNUMBER 4")] + public const int GCPCLASS_LOCALNUMBER = 4; + + [NativeTypeName("#define GCPCLASS_LATINNUMBER 5")] + public const int GCPCLASS_LATINNUMBER = 5; + + [NativeTypeName("#define GCPCLASS_LATINNUMERICTERMINATOR 6")] + public const int GCPCLASS_LATINNUMERICTERMINATOR = 6; + + [NativeTypeName("#define GCPCLASS_LATINNUMERICSEPARATOR 7")] + public const int GCPCLASS_LATINNUMERICSEPARATOR = 7; + + [NativeTypeName("#define GCPCLASS_NUMERICSEPARATOR 8")] + public const int GCPCLASS_NUMERICSEPARATOR = 8; + + [NativeTypeName("#define GCPCLASS_PREBOUNDLTR 0x80")] + public const int GCPCLASS_PREBOUNDLTR = 0x80; + + [NativeTypeName("#define GCPCLASS_PREBOUNDRTL 0x40")] + public const int GCPCLASS_PREBOUNDRTL = 0x40; + + [NativeTypeName("#define GCPCLASS_POSTBOUNDLTR 0x20")] + public const int GCPCLASS_POSTBOUNDLTR = 0x20; + + [NativeTypeName("#define GCPCLASS_POSTBOUNDRTL 0x10")] + public const int GCPCLASS_POSTBOUNDRTL = 0x10; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/GET.cs b/sources/Interop/Windows/Windows/um/wingdi/GET.cs new file mode 100644 index 0000000000..241c5c6dfe --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/GET.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GET + { + [NativeTypeName("#define GET_PS_FEATURESETTING 4121")] + public const int GET_PS_FEATURESETTING = 4121; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/ICM.cs b/sources/Interop/Windows/Windows/um/wingdi/ICM.cs new file mode 100644 index 0000000000..3a255942e9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/ICM.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ICM + { + [NativeTypeName("#define ICM_ADDPROFILE 1")] + public const int ICM_ADDPROFILE = 1; + + [NativeTypeName("#define ICM_DELETEPROFILE 2")] + public const int ICM_DELETEPROFILE = 2; + + [NativeTypeName("#define ICM_QUERYPROFILE 3")] + public const int ICM_QUERYPROFILE = 3; + + [NativeTypeName("#define ICM_SETDEFAULTPROFILE 4")] + public const int ICM_SETDEFAULTPROFILE = 4; + + [NativeTypeName("#define ICM_REGISTERICMATCHER 5")] + public const int ICM_REGISTERICMATCHER = 5; + + [NativeTypeName("#define ICM_UNREGISTERICMATCHER 6")] + public const int ICM_UNREGISTERICMATCHER = 6; + + [NativeTypeName("#define ICM_QUERYMATCH 7")] + public const int ICM_QUERYMATCH = 7; + + [NativeTypeName("#define ICM_OFF 1")] + public const int ICM_OFF = 1; + + [NativeTypeName("#define ICM_ON 2")] + public const int ICM_ON = 2; + + [NativeTypeName("#define ICM_QUERY 3")] + public const int ICM_QUERY = 3; + + [NativeTypeName("#define ICM_DONE_OUTSIDEDC 4")] + public const int ICM_DONE_OUTSIDEDC = 4; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/ILLUMINANT.cs b/sources/Interop/Windows/Windows/um/wingdi/ILLUMINANT.cs new file mode 100644 index 0000000000..bcd521d531 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/ILLUMINANT.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ILLUMINANT + { + [NativeTypeName("#define ILLUMINANT_DEVICE_DEFAULT 0")] + public const int ILLUMINANT_DEVICE_DEFAULT = 0; + + [NativeTypeName("#define ILLUMINANT_A 1")] + public const int ILLUMINANT_A = 1; + + [NativeTypeName("#define ILLUMINANT_B 2")] + public const int ILLUMINANT_B = 2; + + [NativeTypeName("#define ILLUMINANT_C 3")] + public const int ILLUMINANT_C = 3; + + [NativeTypeName("#define ILLUMINANT_D50 4")] + public const int ILLUMINANT_D50 = 4; + + [NativeTypeName("#define ILLUMINANT_D55 5")] + public const int ILLUMINANT_D55 = 5; + + [NativeTypeName("#define ILLUMINANT_D65 6")] + public const int ILLUMINANT_D65 = 6; + + [NativeTypeName("#define ILLUMINANT_D75 7")] + public const int ILLUMINANT_D75 = 7; + + [NativeTypeName("#define ILLUMINANT_F2 8")] + public const int ILLUMINANT_F2 = 8; + + [NativeTypeName("#define ILLUMINANT_MAX_INDEX ILLUMINANT_F2")] + public const int ILLUMINANT_MAX_INDEX = 8; + + [NativeTypeName("#define ILLUMINANT_TUNGSTEN ILLUMINANT_A")] + public const int ILLUMINANT_TUNGSTEN = 1; + + [NativeTypeName("#define ILLUMINANT_DAYLIGHT ILLUMINANT_C")] + public const int ILLUMINANT_DAYLIGHT = 3; + + [NativeTypeName("#define ILLUMINANT_FLUORESCENT ILLUMINANT_F2")] + public const int ILLUMINANT_FLUORESCENT = 8; + + [NativeTypeName("#define ILLUMINANT_NTSC ILLUMINANT_C")] + public const int ILLUMINANT_NTSC = 3; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/LPD.cs b/sources/Interop/Windows/Windows/um/wingdi/LPD.cs new file mode 100644 index 0000000000..1a99bec87c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/LPD.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LPD + { + [NativeTypeName("#define LPD_DOUBLEBUFFER 0x00000001")] + public const int LPD_DOUBLEBUFFER = 0x00000001; + + [NativeTypeName("#define LPD_STEREO 0x00000002")] + public const int LPD_STEREO = 0x00000002; + + [NativeTypeName("#define LPD_SUPPORT_GDI 0x00000010")] + public const int LPD_SUPPORT_GDI = 0x00000010; + + [NativeTypeName("#define LPD_SUPPORT_OPENGL 0x00000020")] + public const int LPD_SUPPORT_OPENGL = 0x00000020; + + [NativeTypeName("#define LPD_SHARE_DEPTH 0x00000040")] + public const int LPD_SHARE_DEPTH = 0x00000040; + + [NativeTypeName("#define LPD_SHARE_STENCIL 0x00000080")] + public const int LPD_SHARE_STENCIL = 0x00000080; + + [NativeTypeName("#define LPD_SHARE_ACCUM 0x00000100")] + public const int LPD_SHARE_ACCUM = 0x00000100; + + [NativeTypeName("#define LPD_SWAP_EXCHANGE 0x00000200")] + public const int LPD_SWAP_EXCHANGE = 0x00000200; + + [NativeTypeName("#define LPD_SWAP_COPY 0x00000400")] + public const int LPD_SWAP_COPY = 0x00000400; + + [NativeTypeName("#define LPD_TRANSPARENT 0x00001000")] + public const int LPD_TRANSPARENT = 0x00001000; + + [NativeTypeName("#define LPD_TYPE_RGBA 0")] + public const int LPD_TYPE_RGBA = 0; + + [NativeTypeName("#define LPD_TYPE_COLORINDEX 1")] + public const int LPD_TYPE_COLORINDEX = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/OBJ.cs b/sources/Interop/Windows/Windows/um/wingdi/OBJ.cs new file mode 100644 index 0000000000..047b1fce96 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/OBJ.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OBJ + { + [NativeTypeName("#define OBJ_PEN 1")] + public const int OBJ_PEN = 1; + + [NativeTypeName("#define OBJ_BRUSH 2")] + public const int OBJ_BRUSH = 2; + + [NativeTypeName("#define OBJ_DC 3")] + public const int OBJ_DC = 3; + + [NativeTypeName("#define OBJ_METADC 4")] + public const int OBJ_METADC = 4; + + [NativeTypeName("#define OBJ_PAL 5")] + public const int OBJ_PAL = 5; + + [NativeTypeName("#define OBJ_FONT 6")] + public const int OBJ_FONT = 6; + + [NativeTypeName("#define OBJ_BITMAP 7")] + public const int OBJ_BITMAP = 7; + + [NativeTypeName("#define OBJ_REGION 8")] + public const int OBJ_REGION = 8; + + [NativeTypeName("#define OBJ_METAFILE 9")] + public const int OBJ_METAFILE = 9; + + [NativeTypeName("#define OBJ_MEMDC 10")] + public const int OBJ_MEMDC = 10; + + [NativeTypeName("#define OBJ_EXTPEN 11")] + public const int OBJ_EXTPEN = 11; + + [NativeTypeName("#define OBJ_ENHMETADC 12")] + public const int OBJ_ENHMETADC = 12; + + [NativeTypeName("#define OBJ_ENHMETAFILE 13")] + public const int OBJ_ENHMETAFILE = 13; + + [NativeTypeName("#define OBJ_COLORSPACE 14")] + public const int OBJ_COLORSPACE = 14; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/OUT.cs b/sources/Interop/Windows/Windows/um/wingdi/OUT.cs new file mode 100644 index 0000000000..1af80fbedd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/OUT.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class OUT + { + [NativeTypeName("#define OUT_DEFAULT_PRECIS 0")] + public const int OUT_DEFAULT_PRECIS = 0; + + [NativeTypeName("#define OUT_STRING_PRECIS 1")] + public const int OUT_STRING_PRECIS = 1; + + [NativeTypeName("#define OUT_CHARACTER_PRECIS 2")] + public const int OUT_CHARACTER_PRECIS = 2; + + [NativeTypeName("#define OUT_STROKE_PRECIS 3")] + public const int OUT_STROKE_PRECIS = 3; + + [NativeTypeName("#define OUT_TT_PRECIS 4")] + public const int OUT_TT_PRECIS = 4; + + [NativeTypeName("#define OUT_DEVICE_PRECIS 5")] + public const int OUT_DEVICE_PRECIS = 5; + + [NativeTypeName("#define OUT_RASTER_PRECIS 6")] + public const int OUT_RASTER_PRECIS = 6; + + [NativeTypeName("#define OUT_TT_ONLY_PRECIS 7")] + public const int OUT_TT_ONLY_PRECIS = 7; + + [NativeTypeName("#define OUT_OUTLINE_PRECIS 8")] + public const int OUT_OUTLINE_PRECIS = 8; + + [NativeTypeName("#define OUT_SCREEN_OUTLINE_PRECIS 9")] + public const int OUT_SCREEN_OUTLINE_PRECIS = 9; + + [NativeTypeName("#define OUT_PS_ONLY_PRECIS 10")] + public const int OUT_PS_ONLY_PRECIS = 10; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/PC.cs b/sources/Interop/Windows/Windows/um/wingdi/PC.cs new file mode 100644 index 0000000000..03073f968d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/PC.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PC + { + [NativeTypeName("#define PC_RESERVED 0x01")] + public const int PC_RESERVED = 0x01; + + [NativeTypeName("#define PC_EXPLICIT 0x02")] + public const int PC_EXPLICIT = 0x02; + + [NativeTypeName("#define PC_NOCOLLAPSE 0x04")] + public const int PC_NOCOLLAPSE = 0x04; + + [NativeTypeName("#define PC_NONE 0")] + public const int PC_NONE = 0; + + [NativeTypeName("#define PC_POLYGON 1")] + public const int PC_POLYGON = 1; + + [NativeTypeName("#define PC_RECTANGLE 2")] + public const int PC_RECTANGLE = 2; + + [NativeTypeName("#define PC_WINDPOLYGON 4")] + public const int PC_WINDPOLYGON = 4; + + [NativeTypeName("#define PC_TRAPEZOID 4")] + public const int PC_TRAPEZOID = 4; + + [NativeTypeName("#define PC_SCANLINE 8")] + public const int PC_SCANLINE = 8; + + [NativeTypeName("#define PC_WIDE 16")] + public const int PC_WIDE = 16; + + [NativeTypeName("#define PC_STYLED 32")] + public const int PC_STYLED = 32; + + [NativeTypeName("#define PC_WIDESTYLED 64")] + public const int PC_WIDESTYLED = 64; + + [NativeTypeName("#define PC_INTERIORS 128")] + public const int PC_INTERIORS = 128; + + [NativeTypeName("#define PC_POLYPOLYGON 256")] + public const int PC_POLYPOLYGON = 256; + + [NativeTypeName("#define PC_PATHS 512")] + public const int PC_PATHS = 512; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/PFD.cs b/sources/Interop/Windows/Windows/um/wingdi/PFD.cs new file mode 100644 index 0000000000..85a76f8b51 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/PFD.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PFD + { + [NativeTypeName("#define PFD_TYPE_RGBA 0")] + public const int PFD_TYPE_RGBA = 0; + + [NativeTypeName("#define PFD_TYPE_COLORINDEX 1")] + public const int PFD_TYPE_COLORINDEX = 1; + + [NativeTypeName("#define PFD_MAIN_PLANE 0")] + public const int PFD_MAIN_PLANE = 0; + + [NativeTypeName("#define PFD_OVERLAY_PLANE 1")] + public const int PFD_OVERLAY_PLANE = 1; + + [NativeTypeName("#define PFD_UNDERLAY_PLANE (-1)")] + public const int PFD_UNDERLAY_PLANE = (-1); + + [NativeTypeName("#define PFD_DOUBLEBUFFER 0x00000001")] + public const int PFD_DOUBLEBUFFER = 0x00000001; + + [NativeTypeName("#define PFD_STEREO 0x00000002")] + public const int PFD_STEREO = 0x00000002; + + [NativeTypeName("#define PFD_DRAW_TO_WINDOW 0x00000004")] + public const int PFD_DRAW_TO_WINDOW = 0x00000004; + + [NativeTypeName("#define PFD_DRAW_TO_BITMAP 0x00000008")] + public const int PFD_DRAW_TO_BITMAP = 0x00000008; + + [NativeTypeName("#define PFD_SUPPORT_GDI 0x00000010")] + public const int PFD_SUPPORT_GDI = 0x00000010; + + [NativeTypeName("#define PFD_SUPPORT_OPENGL 0x00000020")] + public const int PFD_SUPPORT_OPENGL = 0x00000020; + + [NativeTypeName("#define PFD_GENERIC_FORMAT 0x00000040")] + public const int PFD_GENERIC_FORMAT = 0x00000040; + + [NativeTypeName("#define PFD_NEED_PALETTE 0x00000080")] + public const int PFD_NEED_PALETTE = 0x00000080; + + [NativeTypeName("#define PFD_NEED_SYSTEM_PALETTE 0x00000100")] + public const int PFD_NEED_SYSTEM_PALETTE = 0x00000100; + + [NativeTypeName("#define PFD_SWAP_EXCHANGE 0x00000200")] + public const int PFD_SWAP_EXCHANGE = 0x00000200; + + [NativeTypeName("#define PFD_SWAP_COPY 0x00000400")] + public const int PFD_SWAP_COPY = 0x00000400; + + [NativeTypeName("#define PFD_SWAP_LAYER_BUFFERS 0x00000800")] + public const int PFD_SWAP_LAYER_BUFFERS = 0x00000800; + + [NativeTypeName("#define PFD_GENERIC_ACCELERATED 0x00001000")] + public const int PFD_GENERIC_ACCELERATED = 0x00001000; + + [NativeTypeName("#define PFD_SUPPORT_DIRECTDRAW 0x00002000")] + public const int PFD_SUPPORT_DIRECTDRAW = 0x00002000; + + [NativeTypeName("#define PFD_DIRECT3D_ACCELERATED 0x00004000")] + public const int PFD_DIRECT3D_ACCELERATED = 0x00004000; + + [NativeTypeName("#define PFD_SUPPORT_COMPOSITION 0x00008000")] + public const int PFD_SUPPORT_COMPOSITION = 0x00008000; + + [NativeTypeName("#define PFD_DEPTH_DONTCARE 0x20000000")] + public const int PFD_DEPTH_DONTCARE = 0x20000000; + + [NativeTypeName("#define PFD_DOUBLEBUFFER_DONTCARE 0x40000000")] + public const int PFD_DOUBLEBUFFER_DONTCARE = 0x40000000; + + [NativeTypeName("#define PFD_STEREO_DONTCARE 0x80000000")] + public const uint PFD_STEREO_DONTCARE = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/PS.cs b/sources/Interop/Windows/Windows/um/wingdi/PS.cs new file mode 100644 index 0000000000..6c28fba1e3 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/PS.cs @@ -0,0 +1,73 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PS + { + [NativeTypeName("#define PS_SOLID 0")] + public const int PS_SOLID = 0; + + [NativeTypeName("#define PS_DASH 1")] + public const int PS_DASH = 1; + + [NativeTypeName("#define PS_DOT 2")] + public const int PS_DOT = 2; + + [NativeTypeName("#define PS_DASHDOT 3")] + public const int PS_DASHDOT = 3; + + [NativeTypeName("#define PS_DASHDOTDOT 4")] + public const int PS_DASHDOTDOT = 4; + + [NativeTypeName("#define PS_NULL 5")] + public const int PS_NULL = 5; + + [NativeTypeName("#define PS_INSIDEFRAME 6")] + public const int PS_INSIDEFRAME = 6; + + [NativeTypeName("#define PS_USERSTYLE 7")] + public const int PS_USERSTYLE = 7; + + [NativeTypeName("#define PS_ALTERNATE 8")] + public const int PS_ALTERNATE = 8; + + [NativeTypeName("#define PS_STYLE_MASK 0x0000000F")] + public const int PS_STYLE_MASK = 0x0000000F; + + [NativeTypeName("#define PS_ENDCAP_ROUND 0x00000000")] + public const int PS_ENDCAP_ROUND = 0x00000000; + + [NativeTypeName("#define PS_ENDCAP_SQUARE 0x00000100")] + public const int PS_ENDCAP_SQUARE = 0x00000100; + + [NativeTypeName("#define PS_ENDCAP_FLAT 0x00000200")] + public const int PS_ENDCAP_FLAT = 0x00000200; + + [NativeTypeName("#define PS_ENDCAP_MASK 0x00000F00")] + public const int PS_ENDCAP_MASK = 0x00000F00; + + [NativeTypeName("#define PS_JOIN_ROUND 0x00000000")] + public const int PS_JOIN_ROUND = 0x00000000; + + [NativeTypeName("#define PS_JOIN_BEVEL 0x00001000")] + public const int PS_JOIN_BEVEL = 0x00001000; + + [NativeTypeName("#define PS_JOIN_MITER 0x00002000")] + public const int PS_JOIN_MITER = 0x00002000; + + [NativeTypeName("#define PS_JOIN_MASK 0x0000F000")] + public const int PS_JOIN_MASK = 0x0000F000; + + [NativeTypeName("#define PS_COSMETIC 0x00000000")] + public const int PS_COSMETIC = 0x00000000; + + [NativeTypeName("#define PS_GEOMETRIC 0x00010000")] + public const int PS_GEOMETRIC = 0x00010000; + + [NativeTypeName("#define PS_TYPE_MASK 0x000F0000")] + public const int PS_TYPE_MASK = 0x000F0000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/PSINJECT.cs b/sources/Interop/Windows/Windows/um/wingdi/PSINJECT.cs new file mode 100644 index 0000000000..f1ffa32d93 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/PSINJECT.cs @@ -0,0 +1,106 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PSINJECT + { + [NativeTypeName("#define PSINJECT_BEGINSTREAM 1")] + public const int PSINJECT_BEGINSTREAM = 1; + + [NativeTypeName("#define PSINJECT_PSADOBE 2")] + public const int PSINJECT_PSADOBE = 2; + + [NativeTypeName("#define PSINJECT_PAGESATEND 3")] + public const int PSINJECT_PAGESATEND = 3; + + [NativeTypeName("#define PSINJECT_PAGES 4")] + public const int PSINJECT_PAGES = 4; + + [NativeTypeName("#define PSINJECT_DOCNEEDEDRES 5")] + public const int PSINJECT_DOCNEEDEDRES = 5; + + [NativeTypeName("#define PSINJECT_DOCSUPPLIEDRES 6")] + public const int PSINJECT_DOCSUPPLIEDRES = 6; + + [NativeTypeName("#define PSINJECT_PAGEORDER 7")] + public const int PSINJECT_PAGEORDER = 7; + + [NativeTypeName("#define PSINJECT_ORIENTATION 8")] + public const int PSINJECT_ORIENTATION = 8; + + [NativeTypeName("#define PSINJECT_BOUNDINGBOX 9")] + public const int PSINJECT_BOUNDINGBOX = 9; + + [NativeTypeName("#define PSINJECT_DOCUMENTPROCESSCOLORS 10")] + public const int PSINJECT_DOCUMENTPROCESSCOLORS = 10; + + [NativeTypeName("#define PSINJECT_COMMENTS 11")] + public const int PSINJECT_COMMENTS = 11; + + [NativeTypeName("#define PSINJECT_BEGINDEFAULTS 12")] + public const int PSINJECT_BEGINDEFAULTS = 12; + + [NativeTypeName("#define PSINJECT_ENDDEFAULTS 13")] + public const int PSINJECT_ENDDEFAULTS = 13; + + [NativeTypeName("#define PSINJECT_BEGINPROLOG 14")] + public const int PSINJECT_BEGINPROLOG = 14; + + [NativeTypeName("#define PSINJECT_ENDPROLOG 15")] + public const int PSINJECT_ENDPROLOG = 15; + + [NativeTypeName("#define PSINJECT_BEGINSETUP 16")] + public const int PSINJECT_BEGINSETUP = 16; + + [NativeTypeName("#define PSINJECT_ENDSETUP 17")] + public const int PSINJECT_ENDSETUP = 17; + + [NativeTypeName("#define PSINJECT_TRAILER 18")] + public const int PSINJECT_TRAILER = 18; + + [NativeTypeName("#define PSINJECT_EOF 19")] + public const int PSINJECT_EOF = 19; + + [NativeTypeName("#define PSINJECT_ENDSTREAM 20")] + public const int PSINJECT_ENDSTREAM = 20; + + [NativeTypeName("#define PSINJECT_DOCUMENTPROCESSCOLORSATEND 21")] + public const int PSINJECT_DOCUMENTPROCESSCOLORSATEND = 21; + + [NativeTypeName("#define PSINJECT_PAGENUMBER 100")] + public const int PSINJECT_PAGENUMBER = 100; + + [NativeTypeName("#define PSINJECT_BEGINPAGESETUP 101")] + public const int PSINJECT_BEGINPAGESETUP = 101; + + [NativeTypeName("#define PSINJECT_ENDPAGESETUP 102")] + public const int PSINJECT_ENDPAGESETUP = 102; + + [NativeTypeName("#define PSINJECT_PAGETRAILER 103")] + public const int PSINJECT_PAGETRAILER = 103; + + [NativeTypeName("#define PSINJECT_PLATECOLOR 104")] + public const int PSINJECT_PLATECOLOR = 104; + + [NativeTypeName("#define PSINJECT_SHOWPAGE 105")] + public const int PSINJECT_SHOWPAGE = 105; + + [NativeTypeName("#define PSINJECT_PAGEBBOX 106")] + public const int PSINJECT_PAGEBBOX = 106; + + [NativeTypeName("#define PSINJECT_ENDPAGECOMMENTS 107")] + public const int PSINJECT_ENDPAGECOMMENTS = 107; + + [NativeTypeName("#define PSINJECT_VMSAVE 200")] + public const int PSINJECT_VMSAVE = 200; + + [NativeTypeName("#define PSINJECT_VMRESTORE 201")] + public const int PSINJECT_VMRESTORE = 201; + + [NativeTypeName("#define PSINJECT_DLFONT 0xdddddddd")] + public const uint PSINJECT_DLFONT = 0xdddddddd; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/R2.cs b/sources/Interop/Windows/Windows/um/wingdi/R2.cs new file mode 100644 index 0000000000..1463468a2a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/R2.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class R2 + { + [NativeTypeName("#define R2_BLACK 1")] + public const int R2_BLACK = 1; + + [NativeTypeName("#define R2_NOTMERGEPEN 2")] + public const int R2_NOTMERGEPEN = 2; + + [NativeTypeName("#define R2_MASKNOTPEN 3")] + public const int R2_MASKNOTPEN = 3; + + [NativeTypeName("#define R2_NOTCOPYPEN 4")] + public const int R2_NOTCOPYPEN = 4; + + [NativeTypeName("#define R2_MASKPENNOT 5")] + public const int R2_MASKPENNOT = 5; + + [NativeTypeName("#define R2_NOT 6")] + public const int R2_NOT = 6; + + [NativeTypeName("#define R2_XORPEN 7")] + public const int R2_XORPEN = 7; + + [NativeTypeName("#define R2_NOTMASKPEN 8")] + public const int R2_NOTMASKPEN = 8; + + [NativeTypeName("#define R2_MASKPEN 9")] + public const int R2_MASKPEN = 9; + + [NativeTypeName("#define R2_NOTXORPEN 10")] + public const int R2_NOTXORPEN = 10; + + [NativeTypeName("#define R2_NOP 11")] + public const int R2_NOP = 11; + + [NativeTypeName("#define R2_MERGENOTPEN 12")] + public const int R2_MERGENOTPEN = 12; + + [NativeTypeName("#define R2_COPYPEN 13")] + public const int R2_COPYPEN = 13; + + [NativeTypeName("#define R2_MERGEPENNOT 14")] + public const int R2_MERGEPENNOT = 14; + + [NativeTypeName("#define R2_MERGEPEN 15")] + public const int R2_MERGEPEN = 15; + + [NativeTypeName("#define R2_WHITE 16")] + public const int R2_WHITE = 16; + + [NativeTypeName("#define R2_LAST 16")] + public const int R2_LAST = 16; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/RC.cs b/sources/Interop/Windows/Windows/um/wingdi/RC.cs new file mode 100644 index 0000000000..61f726ebba --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/RC.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RC + { + [NativeTypeName("#define RC_BITBLT 1")] + public const int RC_BITBLT = 1; + + [NativeTypeName("#define RC_BANDING 2")] + public const int RC_BANDING = 2; + + [NativeTypeName("#define RC_SCALING 4")] + public const int RC_SCALING = 4; + + [NativeTypeName("#define RC_BITMAP64 8")] + public const int RC_BITMAP64 = 8; + + [NativeTypeName("#define RC_GDI20_OUTPUT 0x0010")] + public const int RC_GDI20_OUTPUT = 0x0010; + + [NativeTypeName("#define RC_GDI20_STATE 0x0020")] + public const int RC_GDI20_STATE = 0x0020; + + [NativeTypeName("#define RC_SAVEBITMAP 0x0040")] + public const int RC_SAVEBITMAP = 0x0040; + + [NativeTypeName("#define RC_DI_BITMAP 0x0080")] + public const int RC_DI_BITMAP = 0x0080; + + [NativeTypeName("#define RC_PALETTE 0x0100")] + public const int RC_PALETTE = 0x0100; + + [NativeTypeName("#define RC_DIBTODEV 0x0200")] + public const int RC_DIBTODEV = 0x0200; + + [NativeTypeName("#define RC_BIGFONT 0x0400")] + public const int RC_BIGFONT = 0x0400; + + [NativeTypeName("#define RC_STRETCHBLT 0x0800")] + public const int RC_STRETCHBLT = 0x0800; + + [NativeTypeName("#define RC_FLOODFILL 0x1000")] + public const int RC_FLOODFILL = 0x1000; + + [NativeTypeName("#define RC_STRETCHDIB 0x2000")] + public const int RC_STRETCHDIB = 0x2000; + + [NativeTypeName("#define RC_OP_DX_OUTPUT 0x4000")] + public const int RC_OP_DX_OUTPUT = 0x4000; + + [NativeTypeName("#define RC_DEVBITS 0x8000")] + public const int RC_DEVBITS = 0x8000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/SDC.cs b/sources/Interop/Windows/Windows/um/wingdi/SDC.cs new file mode 100644 index 0000000000..65d312e934 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/SDC.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SDC + { + [NativeTypeName("#define SDC_TOPOLOGY_INTERNAL 0x00000001")] + public const int SDC_TOPOLOGY_INTERNAL = 0x00000001; + + [NativeTypeName("#define SDC_TOPOLOGY_CLONE 0x00000002")] + public const int SDC_TOPOLOGY_CLONE = 0x00000002; + + [NativeTypeName("#define SDC_TOPOLOGY_EXTEND 0x00000004")] + public const int SDC_TOPOLOGY_EXTEND = 0x00000004; + + [NativeTypeName("#define SDC_TOPOLOGY_EXTERNAL 0x00000008")] + public const int SDC_TOPOLOGY_EXTERNAL = 0x00000008; + + [NativeTypeName("#define SDC_TOPOLOGY_SUPPLIED 0x00000010")] + public const int SDC_TOPOLOGY_SUPPLIED = 0x00000010; + + [NativeTypeName("#define SDC_USE_DATABASE_CURRENT (SDC_TOPOLOGY_INTERNAL | SDC_TOPOLOGY_CLONE | SDC_TOPOLOGY_EXTEND | SDC_TOPOLOGY_EXTERNAL)")] + public const int SDC_USE_DATABASE_CURRENT = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008); + + [NativeTypeName("#define SDC_USE_SUPPLIED_DISPLAY_CONFIG 0x00000020")] + public const int SDC_USE_SUPPLIED_DISPLAY_CONFIG = 0x00000020; + + [NativeTypeName("#define SDC_VALIDATE 0x00000040")] + public const int SDC_VALIDATE = 0x00000040; + + [NativeTypeName("#define SDC_APPLY 0x00000080")] + public const int SDC_APPLY = 0x00000080; + + [NativeTypeName("#define SDC_NO_OPTIMIZATION 0x00000100")] + public const int SDC_NO_OPTIMIZATION = 0x00000100; + + [NativeTypeName("#define SDC_SAVE_TO_DATABASE 0x00000200")] + public const int SDC_SAVE_TO_DATABASE = 0x00000200; + + [NativeTypeName("#define SDC_ALLOW_CHANGES 0x00000400")] + public const int SDC_ALLOW_CHANGES = 0x00000400; + + [NativeTypeName("#define SDC_PATH_PERSIST_IF_REQUIRED 0x00000800")] + public const int SDC_PATH_PERSIST_IF_REQUIRED = 0x00000800; + + [NativeTypeName("#define SDC_FORCE_MODE_ENUMERATION 0x00001000")] + public const int SDC_FORCE_MODE_ENUMERATION = 0x00001000; + + [NativeTypeName("#define SDC_ALLOW_PATH_ORDER_CHANGES 0x00002000")] + public const int SDC_ALLOW_PATH_ORDER_CHANGES = 0x00002000; + + [NativeTypeName("#define SDC_VIRTUAL_MODE_AWARE 0x00008000")] + public const int SDC_VIRTUAL_MODE_AWARE = 0x00008000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/SET.cs b/sources/Interop/Windows/Windows/um/wingdi/SET.cs new file mode 100644 index 0000000000..b33a7d4820 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/SET.cs @@ -0,0 +1,34 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SET + { + [NativeTypeName("#define SET_ARC_DIRECTION 4102")] + public const int SET_ARC_DIRECTION = 4102; + + [NativeTypeName("#define SET_BACKGROUND_COLOR 4103")] + public const int SET_BACKGROUND_COLOR = 4103; + + [NativeTypeName("#define SET_POLY_MODE 4104")] + public const int SET_POLY_MODE = 4104; + + [NativeTypeName("#define SET_SCREEN_ANGLE 4105")] + public const int SET_SCREEN_ANGLE = 4105; + + [NativeTypeName("#define SET_SPREAD 4106")] + public const int SET_SPREAD = 4106; + + [NativeTypeName("#define SET_CLIP_BOX 4108")] + public const int SET_CLIP_BOX = 4108; + + [NativeTypeName("#define SET_BOUNDS 4109")] + public const int SET_BOUNDS = 4109; + + [NativeTypeName("#define SET_MIRROR_MODE 4110")] + public const int SET_MIRROR_MODE = 4110; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/SYSTEM.cs b/sources/Interop/Windows/Windows/um/wingdi/SYSTEM.cs new file mode 100644 index 0000000000..be16329cb1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/SYSTEM.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SYSTEM + { + [NativeTypeName("#define SYSTEM_FONT 13")] + public const int SYSTEM_FONT = 13; + + [NativeTypeName("#define SYSTEM_FIXED_FONT 16")] + public const int SYSTEM_FIXED_FONT = 16; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/TA.cs b/sources/Interop/Windows/Windows/um/wingdi/TA.cs new file mode 100644 index 0000000000..055b776d4e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/TA.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TA + { + [NativeTypeName("#define TA_NOUPDATECP 0")] + public const int TA_NOUPDATECP = 0; + + [NativeTypeName("#define TA_UPDATECP 1")] + public const int TA_UPDATECP = 1; + + [NativeTypeName("#define TA_LEFT 0")] + public const int TA_LEFT = 0; + + [NativeTypeName("#define TA_RIGHT 2")] + public const int TA_RIGHT = 2; + + [NativeTypeName("#define TA_CENTER 6")] + public const int TA_CENTER = 6; + + [NativeTypeName("#define TA_TOP 0")] + public const int TA_TOP = 0; + + [NativeTypeName("#define TA_BOTTOM 8")] + public const int TA_BOTTOM = 8; + + [NativeTypeName("#define TA_BASELINE 24")] + public const int TA_BASELINE = 24; + + [NativeTypeName("#define TA_RTLREADING 256")] + public const int TA_RTLREADING = 256; + + [NativeTypeName("#define TA_MASK (TA_BASELINE+TA_CENTER+TA_UPDATECP+TA_RTLREADING)")] + public const int TA_MASK = (24 + 6 + 1 + 256); + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/TC.cs b/sources/Interop/Windows/Windows/um/wingdi/TC.cs new file mode 100644 index 0000000000..911256df57 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/TC.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TC + { + [NativeTypeName("#define TC_OP_CHARACTER 0x00000001")] + public const int TC_OP_CHARACTER = 0x00000001; + + [NativeTypeName("#define TC_OP_STROKE 0x00000002")] + public const int TC_OP_STROKE = 0x00000002; + + [NativeTypeName("#define TC_CP_STROKE 0x00000004")] + public const int TC_CP_STROKE = 0x00000004; + + [NativeTypeName("#define TC_CR_90 0x00000008")] + public const int TC_CR_90 = 0x00000008; + + [NativeTypeName("#define TC_CR_ANY 0x00000010")] + public const int TC_CR_ANY = 0x00000010; + + [NativeTypeName("#define TC_SF_X_YINDEP 0x00000020")] + public const int TC_SF_X_YINDEP = 0x00000020; + + [NativeTypeName("#define TC_SA_DOUBLE 0x00000040")] + public const int TC_SA_DOUBLE = 0x00000040; + + [NativeTypeName("#define TC_SA_INTEGER 0x00000080")] + public const int TC_SA_INTEGER = 0x00000080; + + [NativeTypeName("#define TC_SA_CONTIN 0x00000100")] + public const int TC_SA_CONTIN = 0x00000100; + + [NativeTypeName("#define TC_EA_DOUBLE 0x00000200")] + public const int TC_EA_DOUBLE = 0x00000200; + + [NativeTypeName("#define TC_IA_ABLE 0x00000400")] + public const int TC_IA_ABLE = 0x00000400; + + [NativeTypeName("#define TC_UA_ABLE 0x00000800")] + public const int TC_UA_ABLE = 0x00000800; + + [NativeTypeName("#define TC_SO_ABLE 0x00001000")] + public const int TC_SO_ABLE = 0x00001000; + + [NativeTypeName("#define TC_RA_ABLE 0x00002000")] + public const int TC_RA_ABLE = 0x00002000; + + [NativeTypeName("#define TC_VA_ABLE 0x00004000")] + public const int TC_VA_ABLE = 0x00004000; + + [NativeTypeName("#define TC_RESERVED 0x00008000")] + public const int TC_RESERVED = 0x00008000; + + [NativeTypeName("#define TC_SCROLLBLT 0x00010000")] + public const int TC_SCROLLBLT = 0x00010000; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/WGL.cs b/sources/Interop/Windows/Windows/um/wingdi/WGL.cs new file mode 100644 index 0000000000..8ec181a8d6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/wingdi/WGL.cs @@ -0,0 +1,112 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wingdi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WGL + { + [NativeTypeName("#define WGL_FONT_LINES 0")] + public const int WGL_FONT_LINES = 0; + + [NativeTypeName("#define WGL_FONT_POLYGONS 1")] + public const int WGL_FONT_POLYGONS = 1; + + [NativeTypeName("#define WGL_SWAP_MAIN_PLANE 0x00000001")] + public const int WGL_SWAP_MAIN_PLANE = 0x00000001; + + [NativeTypeName("#define WGL_SWAP_OVERLAY1 0x00000002")] + public const int WGL_SWAP_OVERLAY1 = 0x00000002; + + [NativeTypeName("#define WGL_SWAP_OVERLAY2 0x00000004")] + public const int WGL_SWAP_OVERLAY2 = 0x00000004; + + [NativeTypeName("#define WGL_SWAP_OVERLAY3 0x00000008")] + public const int WGL_SWAP_OVERLAY3 = 0x00000008; + + [NativeTypeName("#define WGL_SWAP_OVERLAY4 0x00000010")] + public const int WGL_SWAP_OVERLAY4 = 0x00000010; + + [NativeTypeName("#define WGL_SWAP_OVERLAY5 0x00000020")] + public const int WGL_SWAP_OVERLAY5 = 0x00000020; + + [NativeTypeName("#define WGL_SWAP_OVERLAY6 0x00000040")] + public const int WGL_SWAP_OVERLAY6 = 0x00000040; + + [NativeTypeName("#define WGL_SWAP_OVERLAY7 0x00000080")] + public const int WGL_SWAP_OVERLAY7 = 0x00000080; + + [NativeTypeName("#define WGL_SWAP_OVERLAY8 0x00000100")] + public const int WGL_SWAP_OVERLAY8 = 0x00000100; + + [NativeTypeName("#define WGL_SWAP_OVERLAY9 0x00000200")] + public const int WGL_SWAP_OVERLAY9 = 0x00000200; + + [NativeTypeName("#define WGL_SWAP_OVERLAY10 0x00000400")] + public const int WGL_SWAP_OVERLAY10 = 0x00000400; + + [NativeTypeName("#define WGL_SWAP_OVERLAY11 0x00000800")] + public const int WGL_SWAP_OVERLAY11 = 0x00000800; + + [NativeTypeName("#define WGL_SWAP_OVERLAY12 0x00001000")] + public const int WGL_SWAP_OVERLAY12 = 0x00001000; + + [NativeTypeName("#define WGL_SWAP_OVERLAY13 0x00002000")] + public const int WGL_SWAP_OVERLAY13 = 0x00002000; + + [NativeTypeName("#define WGL_SWAP_OVERLAY14 0x00004000")] + public const int WGL_SWAP_OVERLAY14 = 0x00004000; + + [NativeTypeName("#define WGL_SWAP_OVERLAY15 0x00008000")] + public const int WGL_SWAP_OVERLAY15 = 0x00008000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY1 0x00010000")] + public const int WGL_SWAP_UNDERLAY1 = 0x00010000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY2 0x00020000")] + public const int WGL_SWAP_UNDERLAY2 = 0x00020000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY3 0x00040000")] + public const int WGL_SWAP_UNDERLAY3 = 0x00040000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY4 0x00080000")] + public const int WGL_SWAP_UNDERLAY4 = 0x00080000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY5 0x00100000")] + public const int WGL_SWAP_UNDERLAY5 = 0x00100000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY6 0x00200000")] + public const int WGL_SWAP_UNDERLAY6 = 0x00200000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY7 0x00400000")] + public const int WGL_SWAP_UNDERLAY7 = 0x00400000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY8 0x00800000")] + public const int WGL_SWAP_UNDERLAY8 = 0x00800000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY9 0x01000000")] + public const int WGL_SWAP_UNDERLAY9 = 0x01000000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY10 0x02000000")] + public const int WGL_SWAP_UNDERLAY10 = 0x02000000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY11 0x04000000")] + public const int WGL_SWAP_UNDERLAY11 = 0x04000000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY12 0x08000000")] + public const int WGL_SWAP_UNDERLAY12 = 0x08000000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY13 0x10000000")] + public const int WGL_SWAP_UNDERLAY13 = 0x10000000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY14 0x20000000")] + public const int WGL_SWAP_UNDERLAY14 = 0x20000000; + + [NativeTypeName("#define WGL_SWAP_UNDERLAY15 0x40000000")] + public const int WGL_SWAP_UNDERLAY15 = 0x40000000; + + [NativeTypeName("#define WGL_SWAPMULTIPLE_MAX 16")] + public const int WGL_SWAPMULTIPLE_MAX = 16; + } +} diff --git a/sources/Interop/Windows/Windows/um/wingdi/Windows.cs b/sources/Interop/Windows/Windows/um/wingdi/Windows.cs index bf970eb804..0e4a8de4aa 100644 --- a/sources/Interop/Windows/Windows/um/wingdi/Windows.cs +++ b/sources/Interop/Windows/Windows/um/wingdi/Windows.cs @@ -1118,57 +1118,6 @@ public static unsafe partial class Windows [return: NativeTypeName("DWORD")] public static extern uint wglSwapMultipleBuffers(uint param0, [NativeTypeName("const WGLSWAP *")] WGLSWAP* param1); - [NativeTypeName("#define R2_BLACK 1")] - public const int R2_BLACK = 1; - - [NativeTypeName("#define R2_NOTMERGEPEN 2")] - public const int R2_NOTMERGEPEN = 2; - - [NativeTypeName("#define R2_MASKNOTPEN 3")] - public const int R2_MASKNOTPEN = 3; - - [NativeTypeName("#define R2_NOTCOPYPEN 4")] - public const int R2_NOTCOPYPEN = 4; - - [NativeTypeName("#define R2_MASKPENNOT 5")] - public const int R2_MASKPENNOT = 5; - - [NativeTypeName("#define R2_NOT 6")] - public const int R2_NOT = 6; - - [NativeTypeName("#define R2_XORPEN 7")] - public const int R2_XORPEN = 7; - - [NativeTypeName("#define R2_NOTMASKPEN 8")] - public const int R2_NOTMASKPEN = 8; - - [NativeTypeName("#define R2_MASKPEN 9")] - public const int R2_MASKPEN = 9; - - [NativeTypeName("#define R2_NOTXORPEN 10")] - public const int R2_NOTXORPEN = 10; - - [NativeTypeName("#define R2_NOP 11")] - public const int R2_NOP = 11; - - [NativeTypeName("#define R2_MERGENOTPEN 12")] - public const int R2_MERGENOTPEN = 12; - - [NativeTypeName("#define R2_COPYPEN 13")] - public const int R2_COPYPEN = 13; - - [NativeTypeName("#define R2_MERGEPENNOT 14")] - public const int R2_MERGEPENNOT = 14; - - [NativeTypeName("#define R2_MERGEPEN 15")] - public const int R2_MERGEPEN = 15; - - [NativeTypeName("#define R2_WHITE 16")] - public const int R2_WHITE = 16; - - [NativeTypeName("#define R2_LAST 16")] - public const int R2_LAST = 16; - [NativeTypeName("#define SRCCOPY (DWORD)0x00CC0020")] public const uint SRCCOPY = (uint)(0x00CC0020); @@ -1310,36 +1259,6 @@ public static unsafe partial class Windows [NativeTypeName("#define LAYOUT_BITMAPORIENTATIONPRESERVED 0x00000008")] public const int LAYOUT_BITMAPORIENTATIONPRESERVED = 0x00000008; - [NativeTypeName("#define TA_NOUPDATECP 0")] - public const int TA_NOUPDATECP = 0; - - [NativeTypeName("#define TA_UPDATECP 1")] - public const int TA_UPDATECP = 1; - - [NativeTypeName("#define TA_LEFT 0")] - public const int TA_LEFT = 0; - - [NativeTypeName("#define TA_RIGHT 2")] - public const int TA_RIGHT = 2; - - [NativeTypeName("#define TA_CENTER 6")] - public const int TA_CENTER = 6; - - [NativeTypeName("#define TA_TOP 0")] - public const int TA_TOP = 0; - - [NativeTypeName("#define TA_BOTTOM 8")] - public const int TA_BOTTOM = 8; - - [NativeTypeName("#define TA_BASELINE 24")] - public const int TA_BASELINE = 24; - - [NativeTypeName("#define TA_RTLREADING 256")] - public const int TA_RTLREADING = 256; - - [NativeTypeName("#define TA_MASK (TA_BASELINE+TA_CENTER+TA_UPDATECP+TA_RTLREADING)")] - public const int TA_MASK = (24 + 6 + 1 + 256); - [NativeTypeName("#define VTA_BASELINE TA_BASELINE")] public const int VTA_BASELINE = 24; @@ -1595,33 +1514,9 @@ public static unsafe partial class Windows [NativeTypeName("#define SAVE_CTM 4101")] public const int SAVE_CTM = 4101; - [NativeTypeName("#define SET_ARC_DIRECTION 4102")] - public const int SET_ARC_DIRECTION = 4102; - - [NativeTypeName("#define SET_BACKGROUND_COLOR 4103")] - public const int SET_BACKGROUND_COLOR = 4103; - - [NativeTypeName("#define SET_POLY_MODE 4104")] - public const int SET_POLY_MODE = 4104; - - [NativeTypeName("#define SET_SCREEN_ANGLE 4105")] - public const int SET_SCREEN_ANGLE = 4105; - - [NativeTypeName("#define SET_SPREAD 4106")] - public const int SET_SPREAD = 4106; - [NativeTypeName("#define TRANSFORM_CTM 4107")] public const int TRANSFORM_CTM = 4107; - [NativeTypeName("#define SET_CLIP_BOX 4108")] - public const int SET_CLIP_BOX = 4108; - - [NativeTypeName("#define SET_BOUNDS 4109")] - public const int SET_BOUNDS = 4109; - - [NativeTypeName("#define SET_MIRROR_MODE 4110")] - public const int SET_MIRROR_MODE = 4110; - [NativeTypeName("#define OPENCHANNEL 4110")] public const int OPENCHANNEL = 4110; @@ -1649,9 +1544,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CHECKPNGFORMAT 4120")] public const int CHECKPNGFORMAT = 4120; - [NativeTypeName("#define GET_PS_FEATURESETTING 4121")] - public const int GET_PS_FEATURESETTING = 4121; - [NativeTypeName("#define GDIPLUS_TS_QUERYVER 4122")] public const int GDIPLUS_TS_QUERYVER = 4122; @@ -1673,102 +1565,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PSIDENT_PSCENTRIC 1")] public const int PSIDENT_PSCENTRIC = 1; - [NativeTypeName("#define PSINJECT_BEGINSTREAM 1")] - public const int PSINJECT_BEGINSTREAM = 1; - - [NativeTypeName("#define PSINJECT_PSADOBE 2")] - public const int PSINJECT_PSADOBE = 2; - - [NativeTypeName("#define PSINJECT_PAGESATEND 3")] - public const int PSINJECT_PAGESATEND = 3; - - [NativeTypeName("#define PSINJECT_PAGES 4")] - public const int PSINJECT_PAGES = 4; - - [NativeTypeName("#define PSINJECT_DOCNEEDEDRES 5")] - public const int PSINJECT_DOCNEEDEDRES = 5; - - [NativeTypeName("#define PSINJECT_DOCSUPPLIEDRES 6")] - public const int PSINJECT_DOCSUPPLIEDRES = 6; - - [NativeTypeName("#define PSINJECT_PAGEORDER 7")] - public const int PSINJECT_PAGEORDER = 7; - - [NativeTypeName("#define PSINJECT_ORIENTATION 8")] - public const int PSINJECT_ORIENTATION = 8; - - [NativeTypeName("#define PSINJECT_BOUNDINGBOX 9")] - public const int PSINJECT_BOUNDINGBOX = 9; - - [NativeTypeName("#define PSINJECT_DOCUMENTPROCESSCOLORS 10")] - public const int PSINJECT_DOCUMENTPROCESSCOLORS = 10; - - [NativeTypeName("#define PSINJECT_COMMENTS 11")] - public const int PSINJECT_COMMENTS = 11; - - [NativeTypeName("#define PSINJECT_BEGINDEFAULTS 12")] - public const int PSINJECT_BEGINDEFAULTS = 12; - - [NativeTypeName("#define PSINJECT_ENDDEFAULTS 13")] - public const int PSINJECT_ENDDEFAULTS = 13; - - [NativeTypeName("#define PSINJECT_BEGINPROLOG 14")] - public const int PSINJECT_BEGINPROLOG = 14; - - [NativeTypeName("#define PSINJECT_ENDPROLOG 15")] - public const int PSINJECT_ENDPROLOG = 15; - - [NativeTypeName("#define PSINJECT_BEGINSETUP 16")] - public const int PSINJECT_BEGINSETUP = 16; - - [NativeTypeName("#define PSINJECT_ENDSETUP 17")] - public const int PSINJECT_ENDSETUP = 17; - - [NativeTypeName("#define PSINJECT_TRAILER 18")] - public const int PSINJECT_TRAILER = 18; - - [NativeTypeName("#define PSINJECT_EOF 19")] - public const int PSINJECT_EOF = 19; - - [NativeTypeName("#define PSINJECT_ENDSTREAM 20")] - public const int PSINJECT_ENDSTREAM = 20; - - [NativeTypeName("#define PSINJECT_DOCUMENTPROCESSCOLORSATEND 21")] - public const int PSINJECT_DOCUMENTPROCESSCOLORSATEND = 21; - - [NativeTypeName("#define PSINJECT_PAGENUMBER 100")] - public const int PSINJECT_PAGENUMBER = 100; - - [NativeTypeName("#define PSINJECT_BEGINPAGESETUP 101")] - public const int PSINJECT_BEGINPAGESETUP = 101; - - [NativeTypeName("#define PSINJECT_ENDPAGESETUP 102")] - public const int PSINJECT_ENDPAGESETUP = 102; - - [NativeTypeName("#define PSINJECT_PAGETRAILER 103")] - public const int PSINJECT_PAGETRAILER = 103; - - [NativeTypeName("#define PSINJECT_PLATECOLOR 104")] - public const int PSINJECT_PLATECOLOR = 104; - - [NativeTypeName("#define PSINJECT_SHOWPAGE 105")] - public const int PSINJECT_SHOWPAGE = 105; - - [NativeTypeName("#define PSINJECT_PAGEBBOX 106")] - public const int PSINJECT_PAGEBBOX = 106; - - [NativeTypeName("#define PSINJECT_ENDPAGECOMMENTS 107")] - public const int PSINJECT_ENDPAGECOMMENTS = 107; - - [NativeTypeName("#define PSINJECT_VMSAVE 200")] - public const int PSINJECT_VMSAVE = 200; - - [NativeTypeName("#define PSINJECT_VMRESTORE 201")] - public const int PSINJECT_VMRESTORE = 201; - - [NativeTypeName("#define PSINJECT_DLFONT 0xdddddddd")] - public const uint PSINJECT_DLFONT = 0xdddddddd; - [NativeTypeName("#define FEATURESETTING_NUP 0")] public const int FEATURESETTING_NUP = 0; @@ -1823,48 +1619,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PR_JOBSTATUS 0x0000")] public const int PR_JOBSTATUS = 0x0000; - [NativeTypeName("#define OBJ_PEN 1")] - public const int OBJ_PEN = 1; - - [NativeTypeName("#define OBJ_BRUSH 2")] - public const int OBJ_BRUSH = 2; - - [NativeTypeName("#define OBJ_DC 3")] - public const int OBJ_DC = 3; - - [NativeTypeName("#define OBJ_METADC 4")] - public const int OBJ_METADC = 4; - - [NativeTypeName("#define OBJ_PAL 5")] - public const int OBJ_PAL = 5; - - [NativeTypeName("#define OBJ_FONT 6")] - public const int OBJ_FONT = 6; - - [NativeTypeName("#define OBJ_BITMAP 7")] - public const int OBJ_BITMAP = 7; - - [NativeTypeName("#define OBJ_REGION 8")] - public const int OBJ_REGION = 8; - - [NativeTypeName("#define OBJ_METAFILE 9")] - public const int OBJ_METAFILE = 9; - - [NativeTypeName("#define OBJ_MEMDC 10")] - public const int OBJ_MEMDC = 10; - - [NativeTypeName("#define OBJ_EXTPEN 11")] - public const int OBJ_EXTPEN = 11; - - [NativeTypeName("#define OBJ_ENHMETADC 12")] - public const int OBJ_ENHMETADC = 12; - - [NativeTypeName("#define OBJ_ENHMETAFILE 13")] - public const int OBJ_ENHMETAFILE = 13; - - [NativeTypeName("#define OBJ_COLORSPACE 14")] - public const int OBJ_COLORSPACE = 14; - [NativeTypeName("#define GDI_OBJ_LAST OBJ_COLORSPACE")] public const int GDI_OBJ_LAST = 14; @@ -1883,15 +1637,6 @@ public static unsafe partial class Windows [NativeTypeName("#define MWT_MAX MWT_RIGHTMULTIPLY")] public const int MWT_MAX = 3; - [NativeTypeName("#define CS_ENABLE 0x00000001L")] - public const int CS_ENABLE = 0x00000001; - - [NativeTypeName("#define CS_DISABLE 0x00000002L")] - public const int CS_DISABLE = 0x00000002; - - [NativeTypeName("#define CS_DELETE_TRANSFORM 0x00000003L")] - public const int CS_DELETE_TRANSFORM = 0x00000003; - [NativeTypeName("#define LCS_SIGNATURE 'PSOC'")] public const int LCS_SIGNATURE = 0x50534F43; @@ -1916,33 +1661,6 @@ public static unsafe partial class Windows [NativeTypeName("#define LCS_GM_ABS_COLORIMETRIC 0x00000008L")] public const int LCS_GM_ABS_COLORIMETRIC = 0x00000008; - [NativeTypeName("#define CM_OUT_OF_GAMUT 255")] - public const int CM_OUT_OF_GAMUT = 255; - - [NativeTypeName("#define CM_IN_GAMUT 0")] - public const int CM_IN_GAMUT = 0; - - [NativeTypeName("#define ICM_ADDPROFILE 1")] - public const int ICM_ADDPROFILE = 1; - - [NativeTypeName("#define ICM_DELETEPROFILE 2")] - public const int ICM_DELETEPROFILE = 2; - - [NativeTypeName("#define ICM_QUERYPROFILE 3")] - public const int ICM_QUERYPROFILE = 3; - - [NativeTypeName("#define ICM_SETDEFAULTPROFILE 4")] - public const int ICM_SETDEFAULTPROFILE = 4; - - [NativeTypeName("#define ICM_REGISTERICMATCHER 5")] - public const int ICM_REGISTERICMATCHER = 5; - - [NativeTypeName("#define ICM_UNREGISTERICMATCHER 6")] - public const int ICM_UNREGISTERICMATCHER = 6; - - [NativeTypeName("#define ICM_QUERYMATCH 7")] - public const int ICM_QUERYMATCH = 7; - [NativeTypeName("#define PROFILE_LINKED 'LINK'")] public const int PROFILE_LINKED = 0x4C494E4B; @@ -2024,39 +1742,6 @@ public static unsafe partial class Windows [NativeTypeName("#define LF_FULLFACESIZE 64")] public const int LF_FULLFACESIZE = 64; - [NativeTypeName("#define OUT_DEFAULT_PRECIS 0")] - public const int OUT_DEFAULT_PRECIS = 0; - - [NativeTypeName("#define OUT_STRING_PRECIS 1")] - public const int OUT_STRING_PRECIS = 1; - - [NativeTypeName("#define OUT_CHARACTER_PRECIS 2")] - public const int OUT_CHARACTER_PRECIS = 2; - - [NativeTypeName("#define OUT_STROKE_PRECIS 3")] - public const int OUT_STROKE_PRECIS = 3; - - [NativeTypeName("#define OUT_TT_PRECIS 4")] - public const int OUT_TT_PRECIS = 4; - - [NativeTypeName("#define OUT_DEVICE_PRECIS 5")] - public const int OUT_DEVICE_PRECIS = 5; - - [NativeTypeName("#define OUT_RASTER_PRECIS 6")] - public const int OUT_RASTER_PRECIS = 6; - - [NativeTypeName("#define OUT_TT_ONLY_PRECIS 7")] - public const int OUT_TT_ONLY_PRECIS = 7; - - [NativeTypeName("#define OUT_OUTLINE_PRECIS 8")] - public const int OUT_OUTLINE_PRECIS = 8; - - [NativeTypeName("#define OUT_SCREEN_OUTLINE_PRECIS 9")] - public const int OUT_SCREEN_OUTLINE_PRECIS = 9; - - [NativeTypeName("#define OUT_PS_ONLY_PRECIS 10")] - public const int OUT_PS_ONLY_PRECIS = 10; - [NativeTypeName("#define CLIP_DEFAULT_PRECIS 0")] public const int CLIP_DEFAULT_PRECIS = 0; @@ -2081,9 +1766,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CLIP_EMBEDDED (8<<4)")] public const int CLIP_EMBEDDED = (8 << 4); - [NativeTypeName("#define DEFAULT_QUALITY 0")] - public const int DEFAULT_QUALITY = 0; - [NativeTypeName("#define DRAFT_QUALITY 1")] public const int DRAFT_QUALITY = 1; @@ -2102,9 +1784,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CLEARTYPE_NATURAL_QUALITY 6")] public const int CLEARTYPE_NATURAL_QUALITY = 6; - [NativeTypeName("#define DEFAULT_PITCH 0")] - public const int DEFAULT_PITCH = 0; - [NativeTypeName("#define FIXED_PITCH 1")] public const int FIXED_PITCH = 1; @@ -2117,9 +1796,6 @@ public static unsafe partial class Windows [NativeTypeName("#define ANSI_CHARSET 0")] public const int ANSI_CHARSET = 0; - [NativeTypeName("#define DEFAULT_CHARSET 1")] - public const int DEFAULT_CHARSET = 1; - [NativeTypeName("#define SYMBOL_CHARSET 2")] public const int SYMBOL_CHARSET = 2; @@ -2174,54 +1850,6 @@ public static unsafe partial class Windows [NativeTypeName("#define BALTIC_CHARSET 186")] public const int BALTIC_CHARSET = 186; - [NativeTypeName("#define FS_LATIN1 0x00000001L")] - public const int FS_LATIN1 = 0x00000001; - - [NativeTypeName("#define FS_LATIN2 0x00000002L")] - public const int FS_LATIN2 = 0x00000002; - - [NativeTypeName("#define FS_CYRILLIC 0x00000004L")] - public const int FS_CYRILLIC = 0x00000004; - - [NativeTypeName("#define FS_GREEK 0x00000008L")] - public const int FS_GREEK = 0x00000008; - - [NativeTypeName("#define FS_TURKISH 0x00000010L")] - public const int FS_TURKISH = 0x00000010; - - [NativeTypeName("#define FS_HEBREW 0x00000020L")] - public const int FS_HEBREW = 0x00000020; - - [NativeTypeName("#define FS_ARABIC 0x00000040L")] - public const int FS_ARABIC = 0x00000040; - - [NativeTypeName("#define FS_BALTIC 0x00000080L")] - public const int FS_BALTIC = 0x00000080; - - [NativeTypeName("#define FS_VIETNAMESE 0x00000100L")] - public const int FS_VIETNAMESE = 0x00000100; - - [NativeTypeName("#define FS_THAI 0x00010000L")] - public const int FS_THAI = 0x00010000; - - [NativeTypeName("#define FS_JISJAPAN 0x00020000L")] - public const int FS_JISJAPAN = 0x00020000; - - [NativeTypeName("#define FS_CHINESESIMP 0x00040000L")] - public const int FS_CHINESESIMP = 0x00040000; - - [NativeTypeName("#define FS_WANSUNG 0x00080000L")] - public const int FS_WANSUNG = 0x00080000; - - [NativeTypeName("#define FS_CHINESETRAD 0x00100000L")] - public const int FS_CHINESETRAD = 0x00100000; - - [NativeTypeName("#define FS_JOHAB 0x00200000L")] - public const int FS_JOHAB = 0x00200000; - - [NativeTypeName("#define FS_SYMBOL 0x80000000L")] - public const uint FS_SYMBOL = 0x80000000; - [NativeTypeName("#define FF_DONTCARE (0<<4)")] public const int FF_DONTCARE = (0 << 4); @@ -2240,51 +1868,6 @@ public static unsafe partial class Windows [NativeTypeName("#define FF_DECORATIVE (5<<4)")] public const int FF_DECORATIVE = (5 << 4); - [NativeTypeName("#define FW_DONTCARE 0")] - public const int FW_DONTCARE = 0; - - [NativeTypeName("#define FW_THIN 100")] - public const int FW_THIN = 100; - - [NativeTypeName("#define FW_EXTRALIGHT 200")] - public const int FW_EXTRALIGHT = 200; - - [NativeTypeName("#define FW_LIGHT 300")] - public const int FW_LIGHT = 300; - - [NativeTypeName("#define FW_NORMAL 400")] - public const int FW_NORMAL = 400; - - [NativeTypeName("#define FW_MEDIUM 500")] - public const int FW_MEDIUM = 500; - - [NativeTypeName("#define FW_SEMIBOLD 600")] - public const int FW_SEMIBOLD = 600; - - [NativeTypeName("#define FW_BOLD 700")] - public const int FW_BOLD = 700; - - [NativeTypeName("#define FW_EXTRABOLD 800")] - public const int FW_EXTRABOLD = 800; - - [NativeTypeName("#define FW_HEAVY 900")] - public const int FW_HEAVY = 900; - - [NativeTypeName("#define FW_ULTRALIGHT FW_EXTRALIGHT")] - public const int FW_ULTRALIGHT = 200; - - [NativeTypeName("#define FW_REGULAR FW_NORMAL")] - public const int FW_REGULAR = 400; - - [NativeTypeName("#define FW_DEMIBOLD FW_SEMIBOLD")] - public const int FW_DEMIBOLD = 600; - - [NativeTypeName("#define FW_ULTRABOLD FW_EXTRABOLD")] - public const int FW_ULTRABOLD = 800; - - [NativeTypeName("#define FW_BLACK FW_HEAVY")] - public const int FW_BLACK = 900; - [NativeTypeName("#define PANOSE_COUNT 10")] public const int PANOSE_COUNT = 10; @@ -2300,21 +1883,9 @@ public static unsafe partial class Windows [NativeTypeName("#define RASTER_FONTTYPE 0x0001")] public const int RASTER_FONTTYPE = 0x0001; - [NativeTypeName("#define DEVICE_FONTTYPE 0x0002")] - public const int DEVICE_FONTTYPE = 0x0002; - [NativeTypeName("#define TRUETYPE_FONTTYPE 0x0004")] public const int TRUETYPE_FONTTYPE = 0x0004; - [NativeTypeName("#define PC_RESERVED 0x01")] - public const int PC_RESERVED = 0x01; - - [NativeTypeName("#define PC_EXPLICIT 0x02")] - public const int PC_EXPLICIT = 0x02; - - [NativeTypeName("#define PC_NOCOLLAPSE 0x04")] - public const int PC_NOCOLLAPSE = 0x04; - [NativeTypeName("#define TRANSPARENT 1")] public const int TRANSPARENT = 1; @@ -2390,66 +1961,12 @@ public static unsafe partial class Windows [NativeTypeName("#define ANSI_VAR_FONT 12")] public const int ANSI_VAR_FONT = 12; - [NativeTypeName("#define SYSTEM_FONT 13")] - public const int SYSTEM_FONT = 13; - - [NativeTypeName("#define DEVICE_DEFAULT_FONT 14")] - public const int DEVICE_DEFAULT_FONT = 14; - - [NativeTypeName("#define DEFAULT_PALETTE 15")] - public const int DEFAULT_PALETTE = 15; - - [NativeTypeName("#define SYSTEM_FIXED_FONT 16")] - public const int SYSTEM_FIXED_FONT = 16; - - [NativeTypeName("#define DEFAULT_GUI_FONT 17")] - public const int DEFAULT_GUI_FONT = 17; - - [NativeTypeName("#define DC_BRUSH 18")] - public const int DC_BRUSH = 18; - - [NativeTypeName("#define DC_PEN 19")] - public const int DC_PEN = 19; - [NativeTypeName("#define STOCK_LAST 19")] public const int STOCK_LAST = 19; [NativeTypeName("#define CLR_INVALID 0xFFFFFFFF")] public const uint CLR_INVALID = 0xFFFFFFFF; - [NativeTypeName("#define BS_SOLID 0")] - public const int BS_SOLID = 0; - - [NativeTypeName("#define BS_NULL 1")] - public const int BS_NULL = 1; - - [NativeTypeName("#define BS_HOLLOW BS_NULL")] - public const int BS_HOLLOW = 1; - - [NativeTypeName("#define BS_HATCHED 2")] - public const int BS_HATCHED = 2; - - [NativeTypeName("#define BS_PATTERN 3")] - public const int BS_PATTERN = 3; - - [NativeTypeName("#define BS_INDEXED 4")] - public const int BS_INDEXED = 4; - - [NativeTypeName("#define BS_DIBPATTERN 5")] - public const int BS_DIBPATTERN = 5; - - [NativeTypeName("#define BS_DIBPATTERNPT 6")] - public const int BS_DIBPATTERNPT = 6; - - [NativeTypeName("#define BS_PATTERN8X8 7")] - public const int BS_PATTERN8X8 = 7; - - [NativeTypeName("#define BS_DIBPATTERN8X8 8")] - public const int BS_DIBPATTERN8X8 = 8; - - [NativeTypeName("#define BS_MONOPATTERN 9")] - public const int BS_MONOPATTERN = 9; - [NativeTypeName("#define HS_HORIZONTAL 0")] public const int HS_HORIZONTAL = 0; @@ -2471,69 +1988,6 @@ public static unsafe partial class Windows [NativeTypeName("#define HS_API_MAX 12")] public const int HS_API_MAX = 12; - [NativeTypeName("#define PS_SOLID 0")] - public const int PS_SOLID = 0; - - [NativeTypeName("#define PS_DASH 1")] - public const int PS_DASH = 1; - - [NativeTypeName("#define PS_DOT 2")] - public const int PS_DOT = 2; - - [NativeTypeName("#define PS_DASHDOT 3")] - public const int PS_DASHDOT = 3; - - [NativeTypeName("#define PS_DASHDOTDOT 4")] - public const int PS_DASHDOTDOT = 4; - - [NativeTypeName("#define PS_NULL 5")] - public const int PS_NULL = 5; - - [NativeTypeName("#define PS_INSIDEFRAME 6")] - public const int PS_INSIDEFRAME = 6; - - [NativeTypeName("#define PS_USERSTYLE 7")] - public const int PS_USERSTYLE = 7; - - [NativeTypeName("#define PS_ALTERNATE 8")] - public const int PS_ALTERNATE = 8; - - [NativeTypeName("#define PS_STYLE_MASK 0x0000000F")] - public const int PS_STYLE_MASK = 0x0000000F; - - [NativeTypeName("#define PS_ENDCAP_ROUND 0x00000000")] - public const int PS_ENDCAP_ROUND = 0x00000000; - - [NativeTypeName("#define PS_ENDCAP_SQUARE 0x00000100")] - public const int PS_ENDCAP_SQUARE = 0x00000100; - - [NativeTypeName("#define PS_ENDCAP_FLAT 0x00000200")] - public const int PS_ENDCAP_FLAT = 0x00000200; - - [NativeTypeName("#define PS_ENDCAP_MASK 0x00000F00")] - public const int PS_ENDCAP_MASK = 0x00000F00; - - [NativeTypeName("#define PS_JOIN_ROUND 0x00000000")] - public const int PS_JOIN_ROUND = 0x00000000; - - [NativeTypeName("#define PS_JOIN_BEVEL 0x00001000")] - public const int PS_JOIN_BEVEL = 0x00001000; - - [NativeTypeName("#define PS_JOIN_MITER 0x00002000")] - public const int PS_JOIN_MITER = 0x00002000; - - [NativeTypeName("#define PS_JOIN_MASK 0x0000F000")] - public const int PS_JOIN_MASK = 0x0000F000; - - [NativeTypeName("#define PS_COSMETIC 0x00000000")] - public const int PS_COSMETIC = 0x00000000; - - [NativeTypeName("#define PS_GEOMETRIC 0x00010000")] - public const int PS_GEOMETRIC = 0x00010000; - - [NativeTypeName("#define PS_TYPE_MASK 0x000F0000")] - public const int PS_TYPE_MASK = 0x000F0000; - [NativeTypeName("#define AD_COUNTERCLOCKWISE 1")] public const int AD_COUNTERCLOCKWISE = 1; @@ -2660,57 +2114,6 @@ public static unsafe partial class Windows [NativeTypeName("#define COLORMGMTCAPS 121")] public const int COLORMGMTCAPS = 121; - [NativeTypeName("#define DT_PLOTTER 0")] - public const int DT_PLOTTER = 0; - - [NativeTypeName("#define DT_RASDISPLAY 1")] - public const int DT_RASDISPLAY = 1; - - [NativeTypeName("#define DT_RASPRINTER 2")] - public const int DT_RASPRINTER = 2; - - [NativeTypeName("#define DT_RASCAMERA 3")] - public const int DT_RASCAMERA = 3; - - [NativeTypeName("#define DT_CHARSTREAM 4")] - public const int DT_CHARSTREAM = 4; - - [NativeTypeName("#define DT_METAFILE 5")] - public const int DT_METAFILE = 5; - - [NativeTypeName("#define DT_DISPFILE 6")] - public const int DT_DISPFILE = 6; - - [NativeTypeName("#define CC_NONE 0")] - public const int CC_NONE = 0; - - [NativeTypeName("#define CC_CIRCLES 1")] - public const int CC_CIRCLES = 1; - - [NativeTypeName("#define CC_PIE 2")] - public const int CC_PIE = 2; - - [NativeTypeName("#define CC_CHORD 4")] - public const int CC_CHORD = 4; - - [NativeTypeName("#define CC_ELLIPSES 8")] - public const int CC_ELLIPSES = 8; - - [NativeTypeName("#define CC_WIDE 16")] - public const int CC_WIDE = 16; - - [NativeTypeName("#define CC_STYLED 32")] - public const int CC_STYLED = 32; - - [NativeTypeName("#define CC_WIDESTYLED 64")] - public const int CC_WIDESTYLED = 64; - - [NativeTypeName("#define CC_INTERIORS 128")] - public const int CC_INTERIORS = 128; - - [NativeTypeName("#define CC_ROUNDRECT 256")] - public const int CC_ROUNDRECT = 256; - [NativeTypeName("#define LC_NONE 0")] public const int LC_NONE = 0; @@ -2735,42 +2138,6 @@ public static unsafe partial class Windows [NativeTypeName("#define LC_INTERIORS 128")] public const int LC_INTERIORS = 128; - [NativeTypeName("#define PC_NONE 0")] - public const int PC_NONE = 0; - - [NativeTypeName("#define PC_POLYGON 1")] - public const int PC_POLYGON = 1; - - [NativeTypeName("#define PC_RECTANGLE 2")] - public const int PC_RECTANGLE = 2; - - [NativeTypeName("#define PC_WINDPOLYGON 4")] - public const int PC_WINDPOLYGON = 4; - - [NativeTypeName("#define PC_TRAPEZOID 4")] - public const int PC_TRAPEZOID = 4; - - [NativeTypeName("#define PC_SCANLINE 8")] - public const int PC_SCANLINE = 8; - - [NativeTypeName("#define PC_WIDE 16")] - public const int PC_WIDE = 16; - - [NativeTypeName("#define PC_STYLED 32")] - public const int PC_STYLED = 32; - - [NativeTypeName("#define PC_WIDESTYLED 64")] - public const int PC_WIDESTYLED = 64; - - [NativeTypeName("#define PC_INTERIORS 128")] - public const int PC_INTERIORS = 128; - - [NativeTypeName("#define PC_POLYPOLYGON 256")] - public const int PC_POLYPOLYGON = 256; - - [NativeTypeName("#define PC_PATHS 512")] - public const int PC_PATHS = 512; - [NativeTypeName("#define CP_NONE 0")] public const int CP_NONE = 0; @@ -2780,117 +2147,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CP_REGION 2")] public const int CP_REGION = 2; - [NativeTypeName("#define TC_OP_CHARACTER 0x00000001")] - public const int TC_OP_CHARACTER = 0x00000001; - - [NativeTypeName("#define TC_OP_STROKE 0x00000002")] - public const int TC_OP_STROKE = 0x00000002; - - [NativeTypeName("#define TC_CP_STROKE 0x00000004")] - public const int TC_CP_STROKE = 0x00000004; - - [NativeTypeName("#define TC_CR_90 0x00000008")] - public const int TC_CR_90 = 0x00000008; - - [NativeTypeName("#define TC_CR_ANY 0x00000010")] - public const int TC_CR_ANY = 0x00000010; - - [NativeTypeName("#define TC_SF_X_YINDEP 0x00000020")] - public const int TC_SF_X_YINDEP = 0x00000020; - - [NativeTypeName("#define TC_SA_DOUBLE 0x00000040")] - public const int TC_SA_DOUBLE = 0x00000040; - - [NativeTypeName("#define TC_SA_INTEGER 0x00000080")] - public const int TC_SA_INTEGER = 0x00000080; - - [NativeTypeName("#define TC_SA_CONTIN 0x00000100")] - public const int TC_SA_CONTIN = 0x00000100; - - [NativeTypeName("#define TC_EA_DOUBLE 0x00000200")] - public const int TC_EA_DOUBLE = 0x00000200; - - [NativeTypeName("#define TC_IA_ABLE 0x00000400")] - public const int TC_IA_ABLE = 0x00000400; - - [NativeTypeName("#define TC_UA_ABLE 0x00000800")] - public const int TC_UA_ABLE = 0x00000800; - - [NativeTypeName("#define TC_SO_ABLE 0x00001000")] - public const int TC_SO_ABLE = 0x00001000; - - [NativeTypeName("#define TC_RA_ABLE 0x00002000")] - public const int TC_RA_ABLE = 0x00002000; - - [NativeTypeName("#define TC_VA_ABLE 0x00004000")] - public const int TC_VA_ABLE = 0x00004000; - - [NativeTypeName("#define TC_RESERVED 0x00008000")] - public const int TC_RESERVED = 0x00008000; - - [NativeTypeName("#define TC_SCROLLBLT 0x00010000")] - public const int TC_SCROLLBLT = 0x00010000; - - [NativeTypeName("#define RC_BITBLT 1")] - public const int RC_BITBLT = 1; - - [NativeTypeName("#define RC_BANDING 2")] - public const int RC_BANDING = 2; - - [NativeTypeName("#define RC_SCALING 4")] - public const int RC_SCALING = 4; - - [NativeTypeName("#define RC_BITMAP64 8")] - public const int RC_BITMAP64 = 8; - - [NativeTypeName("#define RC_GDI20_OUTPUT 0x0010")] - public const int RC_GDI20_OUTPUT = 0x0010; - - [NativeTypeName("#define RC_GDI20_STATE 0x0020")] - public const int RC_GDI20_STATE = 0x0020; - - [NativeTypeName("#define RC_SAVEBITMAP 0x0040")] - public const int RC_SAVEBITMAP = 0x0040; - - [NativeTypeName("#define RC_DI_BITMAP 0x0080")] - public const int RC_DI_BITMAP = 0x0080; - - [NativeTypeName("#define RC_PALETTE 0x0100")] - public const int RC_PALETTE = 0x0100; - - [NativeTypeName("#define RC_DIBTODEV 0x0200")] - public const int RC_DIBTODEV = 0x0200; - - [NativeTypeName("#define RC_BIGFONT 0x0400")] - public const int RC_BIGFONT = 0x0400; - - [NativeTypeName("#define RC_STRETCHBLT 0x0800")] - public const int RC_STRETCHBLT = 0x0800; - - [NativeTypeName("#define RC_FLOODFILL 0x1000")] - public const int RC_FLOODFILL = 0x1000; - - [NativeTypeName("#define RC_STRETCHDIB 0x2000")] - public const int RC_STRETCHDIB = 0x2000; - - [NativeTypeName("#define RC_OP_DX_OUTPUT 0x4000")] - public const int RC_OP_DX_OUTPUT = 0x4000; - - [NativeTypeName("#define RC_DEVBITS 0x8000")] - public const int RC_DEVBITS = 0x8000; - - [NativeTypeName("#define CM_NONE 0x00000000")] - public const int CM_NONE = 0x00000000; - - [NativeTypeName("#define CM_DEVICE_ICM 0x00000001")] - public const int CM_DEVICE_ICM = 0x00000001; - - [NativeTypeName("#define CM_GAMMA_RAMP 0x00000002")] - public const int CM_GAMMA_RAMP = 0x00000002; - - [NativeTypeName("#define CM_CMYK_COLOR 0x00000004")] - public const int CM_CMYK_COLOR = 0x00000004; - [NativeTypeName("#define DIB_RGB_COLORS 0")] public const int DIB_RGB_COLORS = 0; @@ -2924,161 +2180,17 @@ public static unsafe partial class Windows [NativeTypeName("#define CCHFORMNAME 32")] public const int CCHFORMNAME = 32; - [NativeTypeName("#define DM_SPECVERSION 0x0401")] - public const int DM_SPECVERSION = 0x0401; + [NativeTypeName("#define DMORIENT_PORTRAIT 1")] + public const int DMORIENT_PORTRAIT = 1; - [NativeTypeName("#define DM_ORIENTATION 0x00000001L")] - public const int DM_ORIENTATION = 0x00000001; + [NativeTypeName("#define DMORIENT_LANDSCAPE 2")] + public const int DMORIENT_LANDSCAPE = 2; - [NativeTypeName("#define DM_PAPERSIZE 0x00000002L")] - public const int DM_PAPERSIZE = 0x00000002; + [NativeTypeName("#define DMRES_DRAFT (-1)")] + public const int DMRES_DRAFT = (-1); - [NativeTypeName("#define DM_PAPERLENGTH 0x00000004L")] - public const int DM_PAPERLENGTH = 0x00000004; - - [NativeTypeName("#define DM_PAPERWIDTH 0x00000008L")] - public const int DM_PAPERWIDTH = 0x00000008; - - [NativeTypeName("#define DM_SCALE 0x00000010L")] - public const int DM_SCALE = 0x00000010; - - [NativeTypeName("#define DM_POSITION 0x00000020L")] - public const int DM_POSITION = 0x00000020; - - [NativeTypeName("#define DM_NUP 0x00000040L")] - public const int DM_NUP = 0x00000040; - - [NativeTypeName("#define DM_DISPLAYORIENTATION 0x00000080L")] - public const int DM_DISPLAYORIENTATION = 0x00000080; - - [NativeTypeName("#define DM_COPIES 0x00000100L")] - public const int DM_COPIES = 0x00000100; - - [NativeTypeName("#define DM_DEFAULTSOURCE 0x00000200L")] - public const int DM_DEFAULTSOURCE = 0x00000200; - - [NativeTypeName("#define DM_PRINTQUALITY 0x00000400L")] - public const int DM_PRINTQUALITY = 0x00000400; - - [NativeTypeName("#define DM_COLOR 0x00000800L")] - public const int DM_COLOR = 0x00000800; - - [NativeTypeName("#define DM_DUPLEX 0x00001000L")] - public const int DM_DUPLEX = 0x00001000; - - [NativeTypeName("#define DM_YRESOLUTION 0x00002000L")] - public const int DM_YRESOLUTION = 0x00002000; - - [NativeTypeName("#define DM_TTOPTION 0x00004000L")] - public const int DM_TTOPTION = 0x00004000; - - [NativeTypeName("#define DM_COLLATE 0x00008000L")] - public const int DM_COLLATE = 0x00008000; - - [NativeTypeName("#define DM_FORMNAME 0x00010000L")] - public const int DM_FORMNAME = 0x00010000; - - [NativeTypeName("#define DM_LOGPIXELS 0x00020000L")] - public const int DM_LOGPIXELS = 0x00020000; - - [NativeTypeName("#define DM_BITSPERPEL 0x00040000L")] - public const int DM_BITSPERPEL = 0x00040000; - - [NativeTypeName("#define DM_PELSWIDTH 0x00080000L")] - public const int DM_PELSWIDTH = 0x00080000; - - [NativeTypeName("#define DM_PELSHEIGHT 0x00100000L")] - public const int DM_PELSHEIGHT = 0x00100000; - - [NativeTypeName("#define DM_DISPLAYFLAGS 0x00200000L")] - public const int DM_DISPLAYFLAGS = 0x00200000; - - [NativeTypeName("#define DM_DISPLAYFREQUENCY 0x00400000L")] - public const int DM_DISPLAYFREQUENCY = 0x00400000; - - [NativeTypeName("#define DM_ICMMETHOD 0x00800000L")] - public const int DM_ICMMETHOD = 0x00800000; - - [NativeTypeName("#define DM_ICMINTENT 0x01000000L")] - public const int DM_ICMINTENT = 0x01000000; - - [NativeTypeName("#define DM_MEDIATYPE 0x02000000L")] - public const int DM_MEDIATYPE = 0x02000000; - - [NativeTypeName("#define DM_DITHERTYPE 0x04000000L")] - public const int DM_DITHERTYPE = 0x04000000; - - [NativeTypeName("#define DM_PANNINGWIDTH 0x08000000L")] - public const int DM_PANNINGWIDTH = 0x08000000; - - [NativeTypeName("#define DM_PANNINGHEIGHT 0x10000000L")] - public const int DM_PANNINGHEIGHT = 0x10000000; - - [NativeTypeName("#define DM_DISPLAYFIXEDOUTPUT 0x20000000L")] - public const int DM_DISPLAYFIXEDOUTPUT = 0x20000000; - - [NativeTypeName("#define DMORIENT_PORTRAIT 1")] - public const int DMORIENT_PORTRAIT = 1; - - [NativeTypeName("#define DMORIENT_LANDSCAPE 2")] - public const int DMORIENT_LANDSCAPE = 2; - - [NativeTypeName("#define DMBIN_FIRST DMBIN_UPPER")] - public const int DMBIN_FIRST = 1; - - [NativeTypeName("#define DMBIN_UPPER 1")] - public const int DMBIN_UPPER = 1; - - [NativeTypeName("#define DMBIN_ONLYONE 1")] - public const int DMBIN_ONLYONE = 1; - - [NativeTypeName("#define DMBIN_LOWER 2")] - public const int DMBIN_LOWER = 2; - - [NativeTypeName("#define DMBIN_MIDDLE 3")] - public const int DMBIN_MIDDLE = 3; - - [NativeTypeName("#define DMBIN_MANUAL 4")] - public const int DMBIN_MANUAL = 4; - - [NativeTypeName("#define DMBIN_ENVELOPE 5")] - public const int DMBIN_ENVELOPE = 5; - - [NativeTypeName("#define DMBIN_ENVMANUAL 6")] - public const int DMBIN_ENVMANUAL = 6; - - [NativeTypeName("#define DMBIN_AUTO 7")] - public const int DMBIN_AUTO = 7; - - [NativeTypeName("#define DMBIN_TRACTOR 8")] - public const int DMBIN_TRACTOR = 8; - - [NativeTypeName("#define DMBIN_SMALLFMT 9")] - public const int DMBIN_SMALLFMT = 9; - - [NativeTypeName("#define DMBIN_LARGEFMT 10")] - public const int DMBIN_LARGEFMT = 10; - - [NativeTypeName("#define DMBIN_LARGECAPACITY 11")] - public const int DMBIN_LARGECAPACITY = 11; - - [NativeTypeName("#define DMBIN_CASSETTE 14")] - public const int DMBIN_CASSETTE = 14; - - [NativeTypeName("#define DMBIN_FORMSOURCE 15")] - public const int DMBIN_FORMSOURCE = 15; - - [NativeTypeName("#define DMBIN_LAST DMBIN_FORMSOURCE")] - public const int DMBIN_LAST = 15; - - [NativeTypeName("#define DMBIN_USER 256")] - public const int DMBIN_USER = 256; - - [NativeTypeName("#define DMRES_DRAFT (-1)")] - public const int DMRES_DRAFT = (-1); - - [NativeTypeName("#define DMRES_LOW (-2)")] - public const int DMRES_LOW = (-2); + [NativeTypeName("#define DMRES_LOW (-2)")] + public const int DMRES_LOW = (-2); [NativeTypeName("#define DMRES_MEDIUM (-3)")] public const int DMRES_MEDIUM = (-3); @@ -3140,9 +2252,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DMDFO_CENTER 2")] public const int DMDFO_CENTER = 2; - [NativeTypeName("#define DM_INTERLACED 0x00000002")] - public const int DM_INTERLACED = 0x00000002; - [NativeTypeName("#define DMDISPLAYFLAGS_TEXTMODE 0x00000004")] public const int DMDISPLAYFLAGS_TEXTMODE = 0x00000004; @@ -3194,135 +2303,6 @@ public static unsafe partial class Windows [NativeTypeName("#define DMMEDIA_USER 256")] public const int DMMEDIA_USER = 256; - [NativeTypeName("#define DMDITHER_NONE 1")] - public const int DMDITHER_NONE = 1; - - [NativeTypeName("#define DMDITHER_COARSE 2")] - public const int DMDITHER_COARSE = 2; - - [NativeTypeName("#define DMDITHER_FINE 3")] - public const int DMDITHER_FINE = 3; - - [NativeTypeName("#define DMDITHER_LINEART 4")] - public const int DMDITHER_LINEART = 4; - - [NativeTypeName("#define DMDITHER_ERRORDIFFUSION 5")] - public const int DMDITHER_ERRORDIFFUSION = 5; - - [NativeTypeName("#define DMDITHER_RESERVED6 6")] - public const int DMDITHER_RESERVED6 = 6; - - [NativeTypeName("#define DMDITHER_RESERVED7 7")] - public const int DMDITHER_RESERVED7 = 7; - - [NativeTypeName("#define DMDITHER_RESERVED8 8")] - public const int DMDITHER_RESERVED8 = 8; - - [NativeTypeName("#define DMDITHER_RESERVED9 9")] - public const int DMDITHER_RESERVED9 = 9; - - [NativeTypeName("#define DMDITHER_GRAYSCALE 10")] - public const int DMDITHER_GRAYSCALE = 10; - - [NativeTypeName("#define DMDITHER_USER 256")] - public const int DMDITHER_USER = 256; - - [NativeTypeName("#define DISPLAY_DEVICE_ATTACHED_TO_DESKTOP 0x00000001")] - public const int DISPLAY_DEVICE_ATTACHED_TO_DESKTOP = 0x00000001; - - [NativeTypeName("#define DISPLAY_DEVICE_MULTI_DRIVER 0x00000002")] - public const int DISPLAY_DEVICE_MULTI_DRIVER = 0x00000002; - - [NativeTypeName("#define DISPLAY_DEVICE_PRIMARY_DEVICE 0x00000004")] - public const int DISPLAY_DEVICE_PRIMARY_DEVICE = 0x00000004; - - [NativeTypeName("#define DISPLAY_DEVICE_MIRRORING_DRIVER 0x00000008")] - public const int DISPLAY_DEVICE_MIRRORING_DRIVER = 0x00000008; - - [NativeTypeName("#define DISPLAY_DEVICE_VGA_COMPATIBLE 0x00000010")] - public const int DISPLAY_DEVICE_VGA_COMPATIBLE = 0x00000010; - - [NativeTypeName("#define DISPLAY_DEVICE_REMOVABLE 0x00000020")] - public const int DISPLAY_DEVICE_REMOVABLE = 0x00000020; - - [NativeTypeName("#define DISPLAY_DEVICE_ACC_DRIVER 0x00000040")] - public const int DISPLAY_DEVICE_ACC_DRIVER = 0x00000040; - - [NativeTypeName("#define DISPLAY_DEVICE_MODESPRUNED 0x08000000")] - public const int DISPLAY_DEVICE_MODESPRUNED = 0x08000000; - - [NativeTypeName("#define DISPLAY_DEVICE_RDPUDD 0x01000000")] - public const int DISPLAY_DEVICE_RDPUDD = 0x01000000; - - [NativeTypeName("#define DISPLAY_DEVICE_REMOTE 0x04000000")] - public const int DISPLAY_DEVICE_REMOTE = 0x04000000; - - [NativeTypeName("#define DISPLAY_DEVICE_DISCONNECT 0x02000000")] - public const int DISPLAY_DEVICE_DISCONNECT = 0x02000000; - - [NativeTypeName("#define DISPLAY_DEVICE_TS_COMPATIBLE 0x00200000")] - public const int DISPLAY_DEVICE_TS_COMPATIBLE = 0x00200000; - - [NativeTypeName("#define DISPLAY_DEVICE_UNSAFE_MODES_ON 0x00080000")] - public const int DISPLAY_DEVICE_UNSAFE_MODES_ON = 0x00080000; - - [NativeTypeName("#define DISPLAY_DEVICE_ACTIVE 0x00000001")] - public const int DISPLAY_DEVICE_ACTIVE = 0x00000001; - - [NativeTypeName("#define DISPLAY_DEVICE_ATTACHED 0x00000002")] - public const int DISPLAY_DEVICE_ATTACHED = 0x00000002; - - [NativeTypeName("#define DISPLAYCONFIG_MAXPATH 1024")] - public const int DISPLAYCONFIG_MAXPATH = 1024; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_MODE_IDX_INVALID 0xffffffff")] - public const uint DISPLAYCONFIG_PATH_MODE_IDX_INVALID = 0xffffffff; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_TARGET_MODE_IDX_INVALID 0xffff")] - public const int DISPLAYCONFIG_PATH_TARGET_MODE_IDX_INVALID = 0xffff; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_DESKTOP_IMAGE_IDX_INVALID 0xffff")] - public const int DISPLAYCONFIG_PATH_DESKTOP_IMAGE_IDX_INVALID = 0xffff; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID 0xffff")] - public const int DISPLAYCONFIG_PATH_SOURCE_MODE_IDX_INVALID = 0xffff; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_CLONE_GROUP_INVALID 0xffff")] - public const int DISPLAYCONFIG_PATH_CLONE_GROUP_INVALID = 0xffff; - - [NativeTypeName("#define DISPLAYCONFIG_SOURCE_IN_USE 0x00000001")] - public const int DISPLAYCONFIG_SOURCE_IN_USE = 0x00000001; - - [NativeTypeName("#define DISPLAYCONFIG_TARGET_IN_USE 0x00000001")] - public const int DISPLAYCONFIG_TARGET_IN_USE = 0x00000001; - - [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCIBLE 0x00000002")] - public const int DISPLAYCONFIG_TARGET_FORCIBLE = 0x00000002; - - [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_BOOT 0x00000004")] - public const int DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_BOOT = 0x00000004; - - [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_PATH 0x00000008")] - public const int DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_PATH = 0x00000008; - - [NativeTypeName("#define DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_SYSTEM 0x00000010")] - public const int DISPLAYCONFIG_TARGET_FORCED_AVAILABILITY_SYSTEM = 0x00000010; - - [NativeTypeName("#define DISPLAYCONFIG_TARGET_IS_HMD 0x00000020")] - public const int DISPLAYCONFIG_TARGET_IS_HMD = 0x00000020; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_ACTIVE 0x00000001")] - public const int DISPLAYCONFIG_PATH_ACTIVE = 0x00000001; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_PREFERRED_UNSCALED 0x00000004")] - public const int DISPLAYCONFIG_PATH_PREFERRED_UNSCALED = 0x00000004; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_SUPPORT_VIRTUAL_MODE 0x00000008")] - public const int DISPLAYCONFIG_PATH_SUPPORT_VIRTUAL_MODE = 0x00000008; - - [NativeTypeName("#define DISPLAYCONFIG_PATH_VALID_FLAGS 0x0000000D")] - public const int DISPLAYCONFIG_PATH_VALID_FLAGS = 0x0000000D; - [NativeTypeName("#define QDC_ALL_PATHS 0x00000001")] public const int QDC_ALL_PATHS = 0x00000001; @@ -3338,54 +2318,6 @@ public static unsafe partial class Windows [NativeTypeName("#define QDC_INCLUDE_HMD 0x00000020")] public const int QDC_INCLUDE_HMD = 0x00000020; - [NativeTypeName("#define SDC_TOPOLOGY_INTERNAL 0x00000001")] - public const int SDC_TOPOLOGY_INTERNAL = 0x00000001; - - [NativeTypeName("#define SDC_TOPOLOGY_CLONE 0x00000002")] - public const int SDC_TOPOLOGY_CLONE = 0x00000002; - - [NativeTypeName("#define SDC_TOPOLOGY_EXTEND 0x00000004")] - public const int SDC_TOPOLOGY_EXTEND = 0x00000004; - - [NativeTypeName("#define SDC_TOPOLOGY_EXTERNAL 0x00000008")] - public const int SDC_TOPOLOGY_EXTERNAL = 0x00000008; - - [NativeTypeName("#define SDC_TOPOLOGY_SUPPLIED 0x00000010")] - public const int SDC_TOPOLOGY_SUPPLIED = 0x00000010; - - [NativeTypeName("#define SDC_USE_DATABASE_CURRENT (SDC_TOPOLOGY_INTERNAL | SDC_TOPOLOGY_CLONE | SDC_TOPOLOGY_EXTEND | SDC_TOPOLOGY_EXTERNAL)")] - public const int SDC_USE_DATABASE_CURRENT = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008); - - [NativeTypeName("#define SDC_USE_SUPPLIED_DISPLAY_CONFIG 0x00000020")] - public const int SDC_USE_SUPPLIED_DISPLAY_CONFIG = 0x00000020; - - [NativeTypeName("#define SDC_VALIDATE 0x00000040")] - public const int SDC_VALIDATE = 0x00000040; - - [NativeTypeName("#define SDC_APPLY 0x00000080")] - public const int SDC_APPLY = 0x00000080; - - [NativeTypeName("#define SDC_NO_OPTIMIZATION 0x00000100")] - public const int SDC_NO_OPTIMIZATION = 0x00000100; - - [NativeTypeName("#define SDC_SAVE_TO_DATABASE 0x00000200")] - public const int SDC_SAVE_TO_DATABASE = 0x00000200; - - [NativeTypeName("#define SDC_ALLOW_CHANGES 0x00000400")] - public const int SDC_ALLOW_CHANGES = 0x00000400; - - [NativeTypeName("#define SDC_PATH_PERSIST_IF_REQUIRED 0x00000800")] - public const int SDC_PATH_PERSIST_IF_REQUIRED = 0x00000800; - - [NativeTypeName("#define SDC_FORCE_MODE_ENUMERATION 0x00001000")] - public const int SDC_FORCE_MODE_ENUMERATION = 0x00001000; - - [NativeTypeName("#define SDC_ALLOW_PATH_ORDER_CHANGES 0x00002000")] - public const int SDC_ALLOW_PATH_ORDER_CHANGES = 0x00002000; - - [NativeTypeName("#define SDC_VIRTUAL_MODE_AWARE 0x00008000")] - public const int SDC_VIRTUAL_MODE_AWARE = 0x00008000; - [NativeTypeName("#define RDH_RECTANGLES 1")] public const int RDH_RECTANGLES = 1; @@ -3431,105 +2363,12 @@ public static unsafe partial class Windows [NativeTypeName("#define TT_PRIM_CSPLINE 3")] public const int TT_PRIM_CSPLINE = 3; - [NativeTypeName("#define GCP_DBCS 0x0001")] - public const int GCP_DBCS = 0x0001; - - [NativeTypeName("#define GCP_REORDER 0x0002")] - public const int GCP_REORDER = 0x0002; - - [NativeTypeName("#define GCP_USEKERNING 0x0008")] - public const int GCP_USEKERNING = 0x0008; - - [NativeTypeName("#define GCP_GLYPHSHAPE 0x0010")] - public const int GCP_GLYPHSHAPE = 0x0010; - - [NativeTypeName("#define GCP_LIGATE 0x0020")] - public const int GCP_LIGATE = 0x0020; - - [NativeTypeName("#define GCP_DIACRITIC 0x0100")] - public const int GCP_DIACRITIC = 0x0100; - - [NativeTypeName("#define GCP_KASHIDA 0x0400")] - public const int GCP_KASHIDA = 0x0400; - - [NativeTypeName("#define GCP_ERROR 0x8000")] - public const int GCP_ERROR = 0x8000; - [NativeTypeName("#define FLI_MASK 0x103B")] public const int FLI_MASK = 0x103B; - [NativeTypeName("#define GCP_JUSTIFY 0x00010000L")] - public const int GCP_JUSTIFY = 0x00010000; - [NativeTypeName("#define FLI_GLYPHS 0x00040000L")] public const int FLI_GLYPHS = 0x00040000; - [NativeTypeName("#define GCP_CLASSIN 0x00080000L")] - public const int GCP_CLASSIN = 0x00080000; - - [NativeTypeName("#define GCP_MAXEXTENT 0x00100000L")] - public const int GCP_MAXEXTENT = 0x00100000; - - [NativeTypeName("#define GCP_JUSTIFYIN 0x00200000L")] - public const int GCP_JUSTIFYIN = 0x00200000; - - [NativeTypeName("#define GCP_DISPLAYZWG 0x00400000L")] - public const int GCP_DISPLAYZWG = 0x00400000; - - [NativeTypeName("#define GCP_SYMSWAPOFF 0x00800000L")] - public const int GCP_SYMSWAPOFF = 0x00800000; - - [NativeTypeName("#define GCP_NUMERICOVERRIDE 0x01000000L")] - public const int GCP_NUMERICOVERRIDE = 0x01000000; - - [NativeTypeName("#define GCP_NEUTRALOVERRIDE 0x02000000L")] - public const int GCP_NEUTRALOVERRIDE = 0x02000000; - - [NativeTypeName("#define GCP_NUMERICSLATIN 0x04000000L")] - public const int GCP_NUMERICSLATIN = 0x04000000; - - [NativeTypeName("#define GCP_NUMERICSLOCAL 0x08000000L")] - public const int GCP_NUMERICSLOCAL = 0x08000000; - - [NativeTypeName("#define GCPCLASS_LATIN 1")] - public const int GCPCLASS_LATIN = 1; - - [NativeTypeName("#define GCPCLASS_HEBREW 2")] - public const int GCPCLASS_HEBREW = 2; - - [NativeTypeName("#define GCPCLASS_ARABIC 2")] - public const int GCPCLASS_ARABIC = 2; - - [NativeTypeName("#define GCPCLASS_NEUTRAL 3")] - public const int GCPCLASS_NEUTRAL = 3; - - [NativeTypeName("#define GCPCLASS_LOCALNUMBER 4")] - public const int GCPCLASS_LOCALNUMBER = 4; - - [NativeTypeName("#define GCPCLASS_LATINNUMBER 5")] - public const int GCPCLASS_LATINNUMBER = 5; - - [NativeTypeName("#define GCPCLASS_LATINNUMERICTERMINATOR 6")] - public const int GCPCLASS_LATINNUMERICTERMINATOR = 6; - - [NativeTypeName("#define GCPCLASS_LATINNUMERICSEPARATOR 7")] - public const int GCPCLASS_LATINNUMERICSEPARATOR = 7; - - [NativeTypeName("#define GCPCLASS_NUMERICSEPARATOR 8")] - public const int GCPCLASS_NUMERICSEPARATOR = 8; - - [NativeTypeName("#define GCPCLASS_PREBOUNDLTR 0x80")] - public const int GCPCLASS_PREBOUNDLTR = 0x80; - - [NativeTypeName("#define GCPCLASS_PREBOUNDRTL 0x40")] - public const int GCPCLASS_PREBOUNDRTL = 0x40; - - [NativeTypeName("#define GCPCLASS_POSTBOUNDLTR 0x20")] - public const int GCPCLASS_POSTBOUNDLTR = 0x20; - - [NativeTypeName("#define GCPCLASS_POSTBOUNDRTL 0x10")] - public const int GCPCLASS_POSTBOUNDRTL = 0x10; - [NativeTypeName("#define GCPGLYPH_LINKBEFORE 0x8000")] public const int GCPGLYPH_LINKBEFORE = 0x8000; @@ -3542,78 +2381,6 @@ public static unsafe partial class Windows [NativeTypeName("#define TT_ENABLED 0x0002")] public const int TT_ENABLED = 0x0002; - [NativeTypeName("#define PFD_TYPE_RGBA 0")] - public const int PFD_TYPE_RGBA = 0; - - [NativeTypeName("#define PFD_TYPE_COLORINDEX 1")] - public const int PFD_TYPE_COLORINDEX = 1; - - [NativeTypeName("#define PFD_MAIN_PLANE 0")] - public const int PFD_MAIN_PLANE = 0; - - [NativeTypeName("#define PFD_OVERLAY_PLANE 1")] - public const int PFD_OVERLAY_PLANE = 1; - - [NativeTypeName("#define PFD_UNDERLAY_PLANE (-1)")] - public const int PFD_UNDERLAY_PLANE = (-1); - - [NativeTypeName("#define PFD_DOUBLEBUFFER 0x00000001")] - public const int PFD_DOUBLEBUFFER = 0x00000001; - - [NativeTypeName("#define PFD_STEREO 0x00000002")] - public const int PFD_STEREO = 0x00000002; - - [NativeTypeName("#define PFD_DRAW_TO_WINDOW 0x00000004")] - public const int PFD_DRAW_TO_WINDOW = 0x00000004; - - [NativeTypeName("#define PFD_DRAW_TO_BITMAP 0x00000008")] - public const int PFD_DRAW_TO_BITMAP = 0x00000008; - - [NativeTypeName("#define PFD_SUPPORT_GDI 0x00000010")] - public const int PFD_SUPPORT_GDI = 0x00000010; - - [NativeTypeName("#define PFD_SUPPORT_OPENGL 0x00000020")] - public const int PFD_SUPPORT_OPENGL = 0x00000020; - - [NativeTypeName("#define PFD_GENERIC_FORMAT 0x00000040")] - public const int PFD_GENERIC_FORMAT = 0x00000040; - - [NativeTypeName("#define PFD_NEED_PALETTE 0x00000080")] - public const int PFD_NEED_PALETTE = 0x00000080; - - [NativeTypeName("#define PFD_NEED_SYSTEM_PALETTE 0x00000100")] - public const int PFD_NEED_SYSTEM_PALETTE = 0x00000100; - - [NativeTypeName("#define PFD_SWAP_EXCHANGE 0x00000200")] - public const int PFD_SWAP_EXCHANGE = 0x00000200; - - [NativeTypeName("#define PFD_SWAP_COPY 0x00000400")] - public const int PFD_SWAP_COPY = 0x00000400; - - [NativeTypeName("#define PFD_SWAP_LAYER_BUFFERS 0x00000800")] - public const int PFD_SWAP_LAYER_BUFFERS = 0x00000800; - - [NativeTypeName("#define PFD_GENERIC_ACCELERATED 0x00001000")] - public const int PFD_GENERIC_ACCELERATED = 0x00001000; - - [NativeTypeName("#define PFD_SUPPORT_DIRECTDRAW 0x00002000")] - public const int PFD_SUPPORT_DIRECTDRAW = 0x00002000; - - [NativeTypeName("#define PFD_DIRECT3D_ACCELERATED 0x00004000")] - public const int PFD_DIRECT3D_ACCELERATED = 0x00004000; - - [NativeTypeName("#define PFD_SUPPORT_COMPOSITION 0x00008000")] - public const int PFD_SUPPORT_COMPOSITION = 0x00008000; - - [NativeTypeName("#define PFD_DEPTH_DONTCARE 0x20000000")] - public const int PFD_DEPTH_DONTCARE = 0x20000000; - - [NativeTypeName("#define PFD_DOUBLEBUFFER_DONTCARE 0x40000000")] - public const int PFD_DOUBLEBUFFER_DONTCARE = 0x40000000; - - [NativeTypeName("#define PFD_STEREO_DONTCARE 0x80000000")] - public const uint PFD_STEREO_DONTCARE = 0x80000000; - [NativeTypeName("#define AddFontResource AddFontResourceW")] public static delegate* AddFontResource => &AddFontResourceW; @@ -3638,111 +2405,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CreateScalableFontResource CreateScalableFontResourceW")] public static delegate* CreateScalableFontResource => &CreateScalableFontResourceW; - [NativeTypeName("#define DM_UPDATE 1")] - public const int DM_UPDATE = 1; - - [NativeTypeName("#define DM_COPY 2")] - public const int DM_COPY = 2; - - [NativeTypeName("#define DM_PROMPT 4")] - public const int DM_PROMPT = 4; - - [NativeTypeName("#define DM_MODIFY 8")] - public const int DM_MODIFY = 8; - - [NativeTypeName("#define DM_IN_BUFFER DM_MODIFY")] - public const int DM_IN_BUFFER = 8; - - [NativeTypeName("#define DM_IN_PROMPT DM_PROMPT")] - public const int DM_IN_PROMPT = 4; - - [NativeTypeName("#define DM_OUT_BUFFER DM_COPY")] - public const int DM_OUT_BUFFER = 2; - - [NativeTypeName("#define DM_OUT_DEFAULT DM_UPDATE")] - public const int DM_OUT_DEFAULT = 1; - - [NativeTypeName("#define DC_FIELDS 1")] - public const int DC_FIELDS = 1; - - [NativeTypeName("#define DC_PAPERS 2")] - public const int DC_PAPERS = 2; - - [NativeTypeName("#define DC_PAPERSIZE 3")] - public const int DC_PAPERSIZE = 3; - - [NativeTypeName("#define DC_MINEXTENT 4")] - public const int DC_MINEXTENT = 4; - - [NativeTypeName("#define DC_MAXEXTENT 5")] - public const int DC_MAXEXTENT = 5; - - [NativeTypeName("#define DC_BINS 6")] - public const int DC_BINS = 6; - - [NativeTypeName("#define DC_DUPLEX 7")] - public const int DC_DUPLEX = 7; - - [NativeTypeName("#define DC_SIZE 8")] - public const int DC_SIZE = 8; - - [NativeTypeName("#define DC_EXTRA 9")] - public const int DC_EXTRA = 9; - - [NativeTypeName("#define DC_VERSION 10")] - public const int DC_VERSION = 10; - - [NativeTypeName("#define DC_DRIVER 11")] - public const int DC_DRIVER = 11; - - [NativeTypeName("#define DC_BINNAMES 12")] - public const int DC_BINNAMES = 12; - - [NativeTypeName("#define DC_ENUMRESOLUTIONS 13")] - public const int DC_ENUMRESOLUTIONS = 13; - - [NativeTypeName("#define DC_FILEDEPENDENCIES 14")] - public const int DC_FILEDEPENDENCIES = 14; - - [NativeTypeName("#define DC_TRUETYPE 15")] - public const int DC_TRUETYPE = 15; - - [NativeTypeName("#define DC_PAPERNAMES 16")] - public const int DC_PAPERNAMES = 16; - - [NativeTypeName("#define DC_ORIENTATION 17")] - public const int DC_ORIENTATION = 17; - - [NativeTypeName("#define DC_COPIES 18")] - public const int DC_COPIES = 18; - - [NativeTypeName("#define DC_BINADJUST 19")] - public const int DC_BINADJUST = 19; - - [NativeTypeName("#define DC_EMF_COMPLIANT 20")] - public const int DC_EMF_COMPLIANT = 20; - - [NativeTypeName("#define DC_DATATYPE_PRODUCED 21")] - public const int DC_DATATYPE_PRODUCED = 21; - - [NativeTypeName("#define DC_COLLATE 22")] - public const int DC_COLLATE = 22; - - [NativeTypeName("#define DC_MANUFACTURER 23")] - public const int DC_MANUFACTURER = 23; - - [NativeTypeName("#define DC_MODEL 24")] - public const int DC_MODEL = 24; - - [NativeTypeName("#define DC_PERSONALITY 25")] - public const int DC_PERSONALITY = 25; - - [NativeTypeName("#define DC_PRINTRATE 26")] - public const int DC_PRINTRATE = 26; - - [NativeTypeName("#define DC_PRINTRATEUNIT 27")] - public const int DC_PRINTRATEUNIT = 27; - [NativeTypeName("#define PRINTRATEUNIT_PPM 1")] public const int PRINTRATEUNIT_PPM = 1; @@ -3755,30 +2417,6 @@ public static unsafe partial class Windows [NativeTypeName("#define PRINTRATEUNIT_IPM 4")] public const int PRINTRATEUNIT_IPM = 4; - [NativeTypeName("#define DC_PRINTERMEM 28")] - public const int DC_PRINTERMEM = 28; - - [NativeTypeName("#define DC_MEDIAREADY 29")] - public const int DC_MEDIAREADY = 29; - - [NativeTypeName("#define DC_STAPLE 30")] - public const int DC_STAPLE = 30; - - [NativeTypeName("#define DC_PRINTRATEPPM 31")] - public const int DC_PRINTRATEPPM = 31; - - [NativeTypeName("#define DC_COLORDEVICE 32")] - public const int DC_COLORDEVICE = 32; - - [NativeTypeName("#define DC_NUP 33")] - public const int DC_NUP = 33; - - [NativeTypeName("#define DC_MEDIATYPENAMES 34")] - public const int DC_MEDIATYPENAMES = 34; - - [NativeTypeName("#define DC_MEDIATYPES 35")] - public const int DC_MEDIATYPES = 35; - [NativeTypeName("#define DCTT_BITMAP 0x0000001L")] public const int DCTT_BITMAP = 0x0000001; @@ -3941,48 +2579,6 @@ public static unsafe partial class Windows [NativeTypeName("#define CA_LOG_FILTER 0x0002")] public const int CA_LOG_FILTER = 0x0002; - [NativeTypeName("#define ILLUMINANT_DEVICE_DEFAULT 0")] - public const int ILLUMINANT_DEVICE_DEFAULT = 0; - - [NativeTypeName("#define ILLUMINANT_A 1")] - public const int ILLUMINANT_A = 1; - - [NativeTypeName("#define ILLUMINANT_B 2")] - public const int ILLUMINANT_B = 2; - - [NativeTypeName("#define ILLUMINANT_C 3")] - public const int ILLUMINANT_C = 3; - - [NativeTypeName("#define ILLUMINANT_D50 4")] - public const int ILLUMINANT_D50 = 4; - - [NativeTypeName("#define ILLUMINANT_D55 5")] - public const int ILLUMINANT_D55 = 5; - - [NativeTypeName("#define ILLUMINANT_D65 6")] - public const int ILLUMINANT_D65 = 6; - - [NativeTypeName("#define ILLUMINANT_D75 7")] - public const int ILLUMINANT_D75 = 7; - - [NativeTypeName("#define ILLUMINANT_F2 8")] - public const int ILLUMINANT_F2 = 8; - - [NativeTypeName("#define ILLUMINANT_MAX_INDEX ILLUMINANT_F2")] - public const int ILLUMINANT_MAX_INDEX = 8; - - [NativeTypeName("#define ILLUMINANT_TUNGSTEN ILLUMINANT_A")] - public const int ILLUMINANT_TUNGSTEN = 1; - - [NativeTypeName("#define ILLUMINANT_DAYLIGHT ILLUMINANT_C")] - public const int ILLUMINANT_DAYLIGHT = 3; - - [NativeTypeName("#define ILLUMINANT_FLUORESCENT ILLUMINANT_F2")] - public const int ILLUMINANT_FLUORESCENT = 8; - - [NativeTypeName("#define ILLUMINANT_NTSC ILLUMINANT_C")] - public const int ILLUMINANT_NTSC = 3; - [NativeTypeName("#define RGB_GAMMA_MIN (WORD)02500")] public const ushort RGB_GAMMA_MIN = (ushort)(02500); @@ -4001,12 +2597,6 @@ public static unsafe partial class Windows [NativeTypeName("#define REFERENCE_BLACK_MAX (WORD)4000")] public const ushort REFERENCE_BLACK_MAX = (ushort)(4000); - [NativeTypeName("#define COLOR_ADJ_MIN (SHORT)-100")] - public const short COLOR_ADJ_MIN = (short)(-100); - - [NativeTypeName("#define COLOR_ADJ_MAX (SHORT)100")] - public const short COLOR_ADJ_MAX = (short)(100); - [NativeTypeName("#define StartDoc StartDocW")] public static delegate* StartDoc => &StartDocW; @@ -4031,18 +2621,6 @@ public static unsafe partial class Windows [NativeTypeName("#define GetKerningPairs GetKerningPairsW")] public static delegate* GetKerningPairs => &GetKerningPairsW; - [NativeTypeName("#define ICM_OFF 1")] - public const int ICM_OFF = 1; - - [NativeTypeName("#define ICM_ON 2")] - public const int ICM_ON = 2; - - [NativeTypeName("#define ICM_QUERY 3")] - public const int ICM_QUERY = 3; - - [NativeTypeName("#define ICM_DONE_OUTSIDEDC 4")] - public const int ICM_DONE_OUTSIDEDC = 4; - [NativeTypeName("#define GetLogColorSpace GetLogColorSpaceW")] public static delegate* GetLogColorSpace => &GetLogColorSpaceW; @@ -4472,145 +3050,7 @@ public static unsafe partial class Windows [NativeTypeName("#define wglUseFontBitmaps wglUseFontBitmapsW")] public static delegate* wglUseFontBitmaps => &wglUseFontBitmapsW; - [NativeTypeName("#define WGL_FONT_LINES 0")] - public const int WGL_FONT_LINES = 0; - - [NativeTypeName("#define WGL_FONT_POLYGONS 1")] - public const int WGL_FONT_POLYGONS = 1; - [NativeTypeName("#define wglUseFontOutlines wglUseFontOutlinesW")] public static delegate* wglUseFontOutlines => &wglUseFontOutlinesW; - - [NativeTypeName("#define LPD_DOUBLEBUFFER 0x00000001")] - public const int LPD_DOUBLEBUFFER = 0x00000001; - - [NativeTypeName("#define LPD_STEREO 0x00000002")] - public const int LPD_STEREO = 0x00000002; - - [NativeTypeName("#define LPD_SUPPORT_GDI 0x00000010")] - public const int LPD_SUPPORT_GDI = 0x00000010; - - [NativeTypeName("#define LPD_SUPPORT_OPENGL 0x00000020")] - public const int LPD_SUPPORT_OPENGL = 0x00000020; - - [NativeTypeName("#define LPD_SHARE_DEPTH 0x00000040")] - public const int LPD_SHARE_DEPTH = 0x00000040; - - [NativeTypeName("#define LPD_SHARE_STENCIL 0x00000080")] - public const int LPD_SHARE_STENCIL = 0x00000080; - - [NativeTypeName("#define LPD_SHARE_ACCUM 0x00000100")] - public const int LPD_SHARE_ACCUM = 0x00000100; - - [NativeTypeName("#define LPD_SWAP_EXCHANGE 0x00000200")] - public const int LPD_SWAP_EXCHANGE = 0x00000200; - - [NativeTypeName("#define LPD_SWAP_COPY 0x00000400")] - public const int LPD_SWAP_COPY = 0x00000400; - - [NativeTypeName("#define LPD_TRANSPARENT 0x00001000")] - public const int LPD_TRANSPARENT = 0x00001000; - - [NativeTypeName("#define LPD_TYPE_RGBA 0")] - public const int LPD_TYPE_RGBA = 0; - - [NativeTypeName("#define LPD_TYPE_COLORINDEX 1")] - public const int LPD_TYPE_COLORINDEX = 1; - - [NativeTypeName("#define WGL_SWAP_MAIN_PLANE 0x00000001")] - public const int WGL_SWAP_MAIN_PLANE = 0x00000001; - - [NativeTypeName("#define WGL_SWAP_OVERLAY1 0x00000002")] - public const int WGL_SWAP_OVERLAY1 = 0x00000002; - - [NativeTypeName("#define WGL_SWAP_OVERLAY2 0x00000004")] - public const int WGL_SWAP_OVERLAY2 = 0x00000004; - - [NativeTypeName("#define WGL_SWAP_OVERLAY3 0x00000008")] - public const int WGL_SWAP_OVERLAY3 = 0x00000008; - - [NativeTypeName("#define WGL_SWAP_OVERLAY4 0x00000010")] - public const int WGL_SWAP_OVERLAY4 = 0x00000010; - - [NativeTypeName("#define WGL_SWAP_OVERLAY5 0x00000020")] - public const int WGL_SWAP_OVERLAY5 = 0x00000020; - - [NativeTypeName("#define WGL_SWAP_OVERLAY6 0x00000040")] - public const int WGL_SWAP_OVERLAY6 = 0x00000040; - - [NativeTypeName("#define WGL_SWAP_OVERLAY7 0x00000080")] - public const int WGL_SWAP_OVERLAY7 = 0x00000080; - - [NativeTypeName("#define WGL_SWAP_OVERLAY8 0x00000100")] - public const int WGL_SWAP_OVERLAY8 = 0x00000100; - - [NativeTypeName("#define WGL_SWAP_OVERLAY9 0x00000200")] - public const int WGL_SWAP_OVERLAY9 = 0x00000200; - - [NativeTypeName("#define WGL_SWAP_OVERLAY10 0x00000400")] - public const int WGL_SWAP_OVERLAY10 = 0x00000400; - - [NativeTypeName("#define WGL_SWAP_OVERLAY11 0x00000800")] - public const int WGL_SWAP_OVERLAY11 = 0x00000800; - - [NativeTypeName("#define WGL_SWAP_OVERLAY12 0x00001000")] - public const int WGL_SWAP_OVERLAY12 = 0x00001000; - - [NativeTypeName("#define WGL_SWAP_OVERLAY13 0x00002000")] - public const int WGL_SWAP_OVERLAY13 = 0x00002000; - - [NativeTypeName("#define WGL_SWAP_OVERLAY14 0x00004000")] - public const int WGL_SWAP_OVERLAY14 = 0x00004000; - - [NativeTypeName("#define WGL_SWAP_OVERLAY15 0x00008000")] - public const int WGL_SWAP_OVERLAY15 = 0x00008000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY1 0x00010000")] - public const int WGL_SWAP_UNDERLAY1 = 0x00010000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY2 0x00020000")] - public const int WGL_SWAP_UNDERLAY2 = 0x00020000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY3 0x00040000")] - public const int WGL_SWAP_UNDERLAY3 = 0x00040000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY4 0x00080000")] - public const int WGL_SWAP_UNDERLAY4 = 0x00080000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY5 0x00100000")] - public const int WGL_SWAP_UNDERLAY5 = 0x00100000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY6 0x00200000")] - public const int WGL_SWAP_UNDERLAY6 = 0x00200000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY7 0x00400000")] - public const int WGL_SWAP_UNDERLAY7 = 0x00400000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY8 0x00800000")] - public const int WGL_SWAP_UNDERLAY8 = 0x00800000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY9 0x01000000")] - public const int WGL_SWAP_UNDERLAY9 = 0x01000000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY10 0x02000000")] - public const int WGL_SWAP_UNDERLAY10 = 0x02000000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY11 0x04000000")] - public const int WGL_SWAP_UNDERLAY11 = 0x04000000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY12 0x08000000")] - public const int WGL_SWAP_UNDERLAY12 = 0x08000000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY13 0x10000000")] - public const int WGL_SWAP_UNDERLAY13 = 0x10000000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY14 0x20000000")] - public const int WGL_SWAP_UNDERLAY14 = 0x20000000; - - [NativeTypeName("#define WGL_SWAP_UNDERLAY15 0x40000000")] - public const int WGL_SWAP_UNDERLAY15 = 0x40000000; - - [NativeTypeName("#define WGL_SWAPMULTIPLE_MAX 16")] - public const int WGL_SWAPMULTIPLE_MAX = 16; } } diff --git a/sources/Interop/Windows/Windows/um/winhttp/INTERNET.cs b/sources/Interop/Windows/Windows/um/winhttp/INTERNET.cs new file mode 100644 index 0000000000..755e564257 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winhttp/INTERNET.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winhttp.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class INTERNET + { + [NativeTypeName("#define INTERNET_DEFAULT_PORT 0")] + public const int INTERNET_DEFAULT_PORT = 0; + + [NativeTypeName("#define INTERNET_DEFAULT_HTTP_PORT 80")] + public const int INTERNET_DEFAULT_HTTP_PORT = 80; + + [NativeTypeName("#define INTERNET_DEFAULT_HTTPS_PORT 443")] + public const int INTERNET_DEFAULT_HTTPS_PORT = 443; + + [NativeTypeName("#define INTERNET_SCHEME_HTTP (1)")] + public const int INTERNET_SCHEME_HTTP = (1); + + [NativeTypeName("#define INTERNET_SCHEME_HTTPS (2)")] + public const int INTERNET_SCHEME_HTTPS = (2); + + [NativeTypeName("#define INTERNET_SCHEME_FTP (3)")] + public const int INTERNET_SCHEME_FTP = (3); + + [NativeTypeName("#define INTERNET_SCHEME_SOCKS (4)")] + public const int INTERNET_SCHEME_SOCKS = (4); + } +} diff --git a/sources/Interop/Windows/Windows/um/winhttp/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/winhttp/WINHTTP.Manual.cs similarity index 93% rename from sources/Interop/Windows/Windows/um/winhttp/Windows.Manual.cs rename to sources/Interop/Windows/Windows/um/winhttp/WINHTTP.Manual.cs index 174f44a2f5..df9e3dfd6c 100644 --- a/sources/Interop/Windows/Windows/um/winhttp/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winhttp/WINHTTP.Manual.cs @@ -5,7 +5,7 @@ namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static unsafe partial class WINHTTP { [NativeTypeName("#define WINHTTP_INVALID_STATUS_CALLBACK ((WINHTTP_STATUS_CALLBACK)(-1L))")] public static delegate* unmanaged WINHTTP_INVALID_STATUS_CALLBACK => ((delegate* unmanaged)(-1)); diff --git a/sources/Interop/Windows/Windows/um/winhttp/Windows.cs b/sources/Interop/Windows/Windows/um/winhttp/Windows.cs index 6b006e1ddd..b424ce0419 100644 --- a/sources/Interop/Windows/Windows/um/winhttp/Windows.cs +++ b/sources/Interop/Windows/Windows/um/winhttp/Windows.cs @@ -187,27 +187,6 @@ public static unsafe partial class Windows [return: NativeTypeName("DWORD")] public static extern uint WinHttpWebSocketQueryCloseStatus(HINTERNET hWebSocket, ushort* pusStatus, [NativeTypeName("PVOID")] void* pvReason, [NativeTypeName("DWORD")] uint dwReasonLength, [NativeTypeName("DWORD *")] uint* pdwReasonLengthConsumed); - [NativeTypeName("#define INTERNET_DEFAULT_PORT 0")] - public const int INTERNET_DEFAULT_PORT = 0; - - [NativeTypeName("#define INTERNET_DEFAULT_HTTP_PORT 80")] - public const int INTERNET_DEFAULT_HTTP_PORT = 80; - - [NativeTypeName("#define INTERNET_DEFAULT_HTTPS_PORT 443")] - public const int INTERNET_DEFAULT_HTTPS_PORT = 443; - - [NativeTypeName("#define INTERNET_SCHEME_HTTP (1)")] - public const int INTERNET_SCHEME_HTTP = (1); - - [NativeTypeName("#define INTERNET_SCHEME_HTTPS (2)")] - public const int INTERNET_SCHEME_HTTPS = (2); - - [NativeTypeName("#define INTERNET_SCHEME_FTP (3)")] - public const int INTERNET_SCHEME_FTP = (3); - - [NativeTypeName("#define INTERNET_SCHEME_SOCKS (4)")] - public const int INTERNET_SCHEME_SOCKS = (4); - [NativeTypeName("#define NETWORKING_KEY_BUFSIZE 128")] public const int NETWORKING_KEY_BUFSIZE = 128; diff --git a/sources/Interop/Windows/Windows/um/winioctl/CHANGER.cs b/sources/Interop/Windows/Windows/um/winioctl/CHANGER.cs new file mode 100644 index 0000000000..e92948ecd9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/CHANGER.cs @@ -0,0 +1,145 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CHANGER + { + [NativeTypeName("#define CHANGER_BAR_CODE_SCANNER_INSTALLED 0x00000001")] + public const int CHANGER_BAR_CODE_SCANNER_INSTALLED = 0x00000001; + + [NativeTypeName("#define CHANGER_INIT_ELEM_STAT_WITH_RANGE 0x00000002")] + public const int CHANGER_INIT_ELEM_STAT_WITH_RANGE = 0x00000002; + + [NativeTypeName("#define CHANGER_CLOSE_IEPORT 0x00000004")] + public const int CHANGER_CLOSE_IEPORT = 0x00000004; + + [NativeTypeName("#define CHANGER_OPEN_IEPORT 0x00000008")] + public const int CHANGER_OPEN_IEPORT = 0x00000008; + + [NativeTypeName("#define CHANGER_STATUS_NON_VOLATILE 0x00000010")] + public const int CHANGER_STATUS_NON_VOLATILE = 0x00000010; + + [NativeTypeName("#define CHANGER_EXCHANGE_MEDIA 0x00000020")] + public const int CHANGER_EXCHANGE_MEDIA = 0x00000020; + + [NativeTypeName("#define CHANGER_CLEANER_SLOT 0x00000040")] + public const int CHANGER_CLEANER_SLOT = 0x00000040; + + [NativeTypeName("#define CHANGER_LOCK_UNLOCK 0x00000080")] + public const int CHANGER_LOCK_UNLOCK = 0x00000080; + + [NativeTypeName("#define CHANGER_CARTRIDGE_MAGAZINE 0x00000100")] + public const int CHANGER_CARTRIDGE_MAGAZINE = 0x00000100; + + [NativeTypeName("#define CHANGER_MEDIUM_FLIP 0x00000200")] + public const int CHANGER_MEDIUM_FLIP = 0x00000200; + + [NativeTypeName("#define CHANGER_POSITION_TO_ELEMENT 0x00000400")] + public const int CHANGER_POSITION_TO_ELEMENT = 0x00000400; + + [NativeTypeName("#define CHANGER_REPORT_IEPORT_STATE 0x00000800")] + public const int CHANGER_REPORT_IEPORT_STATE = 0x00000800; + + [NativeTypeName("#define CHANGER_STORAGE_DRIVE 0x00001000")] + public const int CHANGER_STORAGE_DRIVE = 0x00001000; + + [NativeTypeName("#define CHANGER_STORAGE_IEPORT 0x00002000")] + public const int CHANGER_STORAGE_IEPORT = 0x00002000; + + [NativeTypeName("#define CHANGER_STORAGE_SLOT 0x00004000")] + public const int CHANGER_STORAGE_SLOT = 0x00004000; + + [NativeTypeName("#define CHANGER_STORAGE_TRANSPORT 0x00008000")] + public const int CHANGER_STORAGE_TRANSPORT = 0x00008000; + + [NativeTypeName("#define CHANGER_DRIVE_CLEANING_REQUIRED 0x00010000")] + public const int CHANGER_DRIVE_CLEANING_REQUIRED = 0x00010000; + + [NativeTypeName("#define CHANGER_PREDISMOUNT_EJECT_REQUIRED 0x00020000")] + public const int CHANGER_PREDISMOUNT_EJECT_REQUIRED = 0x00020000; + + [NativeTypeName("#define CHANGER_CLEANER_ACCESS_NOT_VALID 0x00040000")] + public const int CHANGER_CLEANER_ACCESS_NOT_VALID = 0x00040000; + + [NativeTypeName("#define CHANGER_PREMOUNT_EJECT_REQUIRED 0x00080000")] + public const int CHANGER_PREMOUNT_EJECT_REQUIRED = 0x00080000; + + [NativeTypeName("#define CHANGER_VOLUME_IDENTIFICATION 0x00100000")] + public const int CHANGER_VOLUME_IDENTIFICATION = 0x00100000; + + [NativeTypeName("#define CHANGER_VOLUME_SEARCH 0x00200000")] + public const int CHANGER_VOLUME_SEARCH = 0x00200000; + + [NativeTypeName("#define CHANGER_VOLUME_ASSERT 0x00400000")] + public const int CHANGER_VOLUME_ASSERT = 0x00400000; + + [NativeTypeName("#define CHANGER_VOLUME_REPLACE 0x00800000")] + public const int CHANGER_VOLUME_REPLACE = 0x00800000; + + [NativeTypeName("#define CHANGER_VOLUME_UNDEFINE 0x01000000")] + public const int CHANGER_VOLUME_UNDEFINE = 0x01000000; + + [NativeTypeName("#define CHANGER_SERIAL_NUMBER_VALID 0x04000000")] + public const int CHANGER_SERIAL_NUMBER_VALID = 0x04000000; + + [NativeTypeName("#define CHANGER_DEVICE_REINITIALIZE_CAPABLE 0x08000000")] + public const int CHANGER_DEVICE_REINITIALIZE_CAPABLE = 0x08000000; + + [NativeTypeName("#define CHANGER_KEYPAD_ENABLE_DISABLE 0x10000000")] + public const int CHANGER_KEYPAD_ENABLE_DISABLE = 0x10000000; + + [NativeTypeName("#define CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS 0x20000000")] + public const int CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS = 0x20000000; + + [NativeTypeName("#define CHANGER_RESERVED_BIT 0x80000000")] + public const uint CHANGER_RESERVED_BIT = 0x80000000; + + [NativeTypeName("#define CHANGER_PREDISMOUNT_ALIGN_TO_SLOT 0x80000001")] + public const uint CHANGER_PREDISMOUNT_ALIGN_TO_SLOT = 0x80000001; + + [NativeTypeName("#define CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE 0x80000002")] + public const uint CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE = 0x80000002; + + [NativeTypeName("#define CHANGER_CLEANER_AUTODISMOUNT 0x80000004")] + public const uint CHANGER_CLEANER_AUTODISMOUNT = 0x80000004; + + [NativeTypeName("#define CHANGER_TRUE_EXCHANGE_CAPABLE 0x80000008")] + public const uint CHANGER_TRUE_EXCHANGE_CAPABLE = 0x80000008; + + [NativeTypeName("#define CHANGER_SLOTS_USE_TRAYS 0x80000010")] + public const uint CHANGER_SLOTS_USE_TRAYS = 0x80000010; + + [NativeTypeName("#define CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR 0x80000020")] + public const uint CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR = 0x80000020; + + [NativeTypeName("#define CHANGER_CLEANER_OPS_NOT_SUPPORTED 0x80000040")] + public const uint CHANGER_CLEANER_OPS_NOT_SUPPORTED = 0x80000040; + + [NativeTypeName("#define CHANGER_IEPORT_USER_CONTROL_OPEN 0x80000080")] + public const uint CHANGER_IEPORT_USER_CONTROL_OPEN = 0x80000080; + + [NativeTypeName("#define CHANGER_IEPORT_USER_CONTROL_CLOSE 0x80000100")] + public const uint CHANGER_IEPORT_USER_CONTROL_CLOSE = 0x80000100; + + [NativeTypeName("#define CHANGER_MOVE_EXTENDS_IEPORT 0x80000200")] + public const uint CHANGER_MOVE_EXTENDS_IEPORT = 0x80000200; + + [NativeTypeName("#define CHANGER_MOVE_RETRACTS_IEPORT 0x80000400")] + public const uint CHANGER_MOVE_RETRACTS_IEPORT = 0x80000400; + + [NativeTypeName("#define CHANGER_TO_TRANSPORT 0x01")] + public const int CHANGER_TO_TRANSPORT = 0x01; + + [NativeTypeName("#define CHANGER_TO_SLOT 0x02")] + public const int CHANGER_TO_SLOT = 0x02; + + [NativeTypeName("#define CHANGER_TO_IEPORT 0x04")] + public const int CHANGER_TO_IEPORT = 0x04; + + [NativeTypeName("#define CHANGER_TO_DRIVE 0x08")] + public const int CHANGER_TO_DRIVE = 0x08; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/CONTAINER.cs b/sources/Interop/Windows/Windows/um/winioctl/CONTAINER.cs new file mode 100644 index 0000000000..b7e4c20409 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/CONTAINER.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CONTAINER + { + [NativeTypeName("#define CONTAINER_VOLUME_STATE_HOSTING_CONTAINER (0x00000001)")] + public const int CONTAINER_VOLUME_STATE_HOSTING_CONTAINER = (0x00000001); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_SCRATCH_ROOT (0x00000001)")] + public const int CONTAINER_ROOT_INFO_FLAG_SCRATCH_ROOT = (0x00000001); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_LAYER_ROOT (0x00000002)")] + public const int CONTAINER_ROOT_INFO_FLAG_LAYER_ROOT = (0x00000002); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_ROOT (0x00000004)")] + public const int CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_ROOT = (0x00000004); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_TARGET_ROOT (0x00000008)")] + public const int CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_TARGET_ROOT = (0x00000008); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_EXCEPTION_ROOT (0x00000010)")] + public const int CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_EXCEPTION_ROOT = (0x00000010); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_ROOT (0x00000020)")] + public const int CONTAINER_ROOT_INFO_FLAG_BIND_ROOT = (0x00000020); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_TARGET_ROOT (0x00000040)")] + public const int CONTAINER_ROOT_INFO_FLAG_BIND_TARGET_ROOT = (0x00000040); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_EXCEPTION_ROOT (0x00000080)")] + public const int CONTAINER_ROOT_INFO_FLAG_BIND_EXCEPTION_ROOT = (0x00000080); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_DO_NOT_MAP_NAME (0x00000100)")] + public const int CONTAINER_ROOT_INFO_FLAG_BIND_DO_NOT_MAP_NAME = (0x00000100); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_UNION_LAYER_ROOT (0x00000200)")] + public const int CONTAINER_ROOT_INFO_FLAG_UNION_LAYER_ROOT = (0x00000200); + + [NativeTypeName("#define CONTAINER_ROOT_INFO_VALID_FLAGS (0x000003ff)")] + public const int CONTAINER_ROOT_INFO_VALID_FLAGS = (0x000003ff); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/DEVICE.cs b/sources/Interop/Windows/Windows/um/winioctl/DEVICE.cs new file mode 100644 index 0000000000..fc005c9aa5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/DEVICE.cs @@ -0,0 +1,79 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICE + { + [NativeTypeName("#define DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE 0x00000001")] + public const int DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE = 0x00000001; + + [NativeTypeName("#define DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED 0x80000000")] + public const uint DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED = 0x80000000; + + [NativeTypeName("#define DEVICE_DSM_FLAG_TRIM_BYPASS_RZAT 0x40000000")] + public const int DEVICE_DSM_FLAG_TRIM_BYPASS_RZAT = 0x40000000; + + [NativeTypeName("#define DEVICE_DSM_NOTIFY_FLAG_BEGIN 0x00000001")] + public const int DEVICE_DSM_NOTIFY_FLAG_BEGIN = 0x00000001; + + [NativeTypeName("#define DEVICE_DSM_NOTIFY_FLAG_END 0x00000002")] + public const int DEVICE_DSM_NOTIFY_FLAG_END = 0x00000002; + + [NativeTypeName("#define DEVICE_DSM_FLAG_ALLOCATION_CONSOLIDATEABLE_ONLY 0x40000000")] + public const int DEVICE_DSM_FLAG_ALLOCATION_CONSOLIDATEABLE_ONLY = 0x40000000; + + [NativeTypeName("#define DEVICE_DSM_PARAMETERS_V1 1")] + public const int DEVICE_DSM_PARAMETERS_V1 = 1; + + [NativeTypeName("#define DEVICE_DATA_SET_LBP_STATE_PARAMETERS_VERSION_V1 DEVICE_DSM_PARAMETERS_V1")] + public const int DEVICE_DATA_SET_LBP_STATE_PARAMETERS_VERSION_V1 = 1; + + [NativeTypeName("#define DEVICE_DSM_ALLOCATION_OUTPUT_V1 (sizeof(DEVICE_DSM_ALLOCATION_OUTPUT))")] + public const uint DEVICE_DSM_ALLOCATION_OUTPUT_V1 = (32); + + [NativeTypeName("#define DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V1 DEVICE_DSM_ALLOCATION_OUTPUT_V1")] + public const uint DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V1 = (32); + + [NativeTypeName("#define DEVICE_DSM_ALLOCATION_OUTPUT_V2 (sizeof(DEVICE_DSM_ALLOCATION_OUTPUT2))")] + public const uint DEVICE_DSM_ALLOCATION_OUTPUT_V2 = (40); + + [NativeTypeName("#define DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V2 DEVICE_DSM_ALLOCATION_OUTPUT_V2")] + public const uint DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V2 = (40); + + [NativeTypeName("#define DEVICE_DSM_FLAG_REPAIR_INPUT_TOPOLOGY_ID_PRESENT 0x40000000")] + public const int DEVICE_DSM_FLAG_REPAIR_INPUT_TOPOLOGY_ID_PRESENT = 0x40000000; + + [NativeTypeName("#define DEVICE_DSM_FLAG_REPAIR_OUTPUT_PARITY_EXTENT 0x20000000")] + public const int DEVICE_DSM_FLAG_REPAIR_OUTPUT_PARITY_EXTENT = 0x20000000; + + [NativeTypeName("#define DEVICE_DSM_FLAG_SCRUB_SKIP_IN_SYNC 0x10000000")] + public const int DEVICE_DSM_FLAG_SCRUB_SKIP_IN_SYNC = 0x10000000; + + [NativeTypeName("#define DEVICE_DSM_FLAG_SCRUB_OUTPUT_PARITY_EXTENT 0x20000000")] + public const int DEVICE_DSM_FLAG_SCRUB_OUTPUT_PARITY_EXTENT = 0x20000000; + + [NativeTypeName("#define DEVICE_DSM_FLAG_PHYSICAL_ADDRESSES_OMIT_TOTAL_RANGES 0x10000000")] + public const int DEVICE_DSM_FLAG_PHYSICAL_ADDRESSES_OMIT_TOTAL_RANGES = 0x10000000; + + [NativeTypeName("#define DEVICE_DSM_PHYSICAL_ADDRESS_HAS_MEMORY_ERROR ((LONGLONG)-1)")] + public const long DEVICE_DSM_PHYSICAL_ADDRESS_HAS_MEMORY_ERROR = ((long)(-1)); + + [NativeTypeName("#define DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1 1")] + public const int DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1 = 1; + + [NativeTypeName("#define DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_VERSION_V1 DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1")] + public const int DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_VERSION_V1 = 1; + + [NativeTypeName("#define DEVICE_STORAGE_NO_ERRORS 0x1")] + public const int DEVICE_STORAGE_NO_ERRORS = 0x1; + + [NativeTypeName("#define DEVICE_DSM_RANGE_ERROR_OUTPUT_V1 1")] + public const int DEVICE_DSM_RANGE_ERROR_OUTPUT_V1 = 1; + + [NativeTypeName("#define DEVICE_DSM_RANGE_ERROR_INFO_VERSION_V1 DEVICE_DSM_RANGE_ERROR_OUTPUT_V1")] + public const int DEVICE_DSM_RANGE_ERROR_INFO_VERSION_V1 = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/DeviceDsmAction.cs b/sources/Interop/Windows/Windows/um/winioctl/DeviceDsmAction.cs new file mode 100644 index 0000000000..f857a769ce --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/DeviceDsmAction.cs @@ -0,0 +1,100 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DeviceDsmAction + { + [NativeTypeName("#define DeviceDsmAction_None (0x00000000u)")] + public const uint DeviceDsmAction_None = (0x00000000U); + + [NativeTypeName("#define DeviceDsmAction_Trim (0x00000001u)")] + public const uint DeviceDsmAction_Trim = (0x00000001U); + + [NativeTypeName("#define DeviceDsmAction_Notification (0x00000002u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_Notification = (0x00000002U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_OffloadRead (0x00000003u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_OffloadRead = (0x00000003U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_OffloadWrite (0x00000004u)")] + public const uint DeviceDsmAction_OffloadWrite = (0x00000004U); + + [NativeTypeName("#define DeviceDsmAction_Allocation (0x00000005u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_Allocation = (0x00000005U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_Repair (0x00000006u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_Repair = (0x00000006U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_Scrub (0x00000007u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_Scrub = (0x00000007U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_DrtQuery (0x00000008u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_DrtQuery = (0x00000008U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_DrtClear (0x00000009u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_DrtClear = (0x00000009U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_DrtDisable (0x0000000Au | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_DrtDisable = (0x0000000AU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_TieringQuery (0x0000000Bu | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_TieringQuery = (0x0000000BU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_Map (0x0000000Cu | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_Map = (0x0000000CU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_RegenerateParity (0x0000000Du | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_RegenerateParity = (0x0000000DU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_NvCache_Change_Priority (0x0000000Eu | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_NvCache_Change_Priority = (0x0000000EU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_NvCache_Evict (0x0000000Fu | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_NvCache_Evict = (0x0000000FU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_TopologyIdQuery (0x00000010u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_TopologyIdQuery = (0x00000010U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_GetPhysicalAddresses (0x00000011u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_GetPhysicalAddresses = (0x00000011U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_ScopeRegen (0x00000012u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_ScopeRegen = (0x00000012U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_ReportZones (0x00000013u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_ReportZones = (0x00000013U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_OpenZone (0x00000014u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_OpenZone = (0x00000014U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_FinishZone (0x00000015u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_FinishZone = (0x00000015U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_CloseZone (0x00000016u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_CloseZone = (0x00000016U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_ResetWritePointer (0x00000017u)")] + public const uint DeviceDsmAction_ResetWritePointer = (0x00000017U); + + [NativeTypeName("#define DeviceDsmAction_GetRangeErrorInfo (0x00000018u | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_GetRangeErrorInfo = (0x00000018U | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_WriteZeroes (0x00000019u)")] + public const uint DeviceDsmAction_WriteZeroes = (0x00000019U); + + [NativeTypeName("#define DeviceDsmAction_LostQuery (0x0000001Au | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_LostQuery = (0x0000001AU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_GetFreeSpace (0x0000001Bu | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_GetFreeSpace = (0x0000001BU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_ConversionQuery (0x0000001Cu | DeviceDsmActionFlag_NonDestructive)")] + public const uint DeviceDsmAction_ConversionQuery = (0x0000001CU | (0x80000000)); + + [NativeTypeName("#define DeviceDsmAction_VdtSet (0x0000001Du)")] + public const uint DeviceDsmAction_VdtSet = (0x0000001DU); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/ELEMENT.cs b/sources/Interop/Windows/Windows/um/winioctl/ELEMENT.cs new file mode 100644 index 0000000000..136713653c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/ELEMENT.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ELEMENT + { + [NativeTypeName("#define ELEMENT_STATUS_FULL 0x00000001")] + public const int ELEMENT_STATUS_FULL = 0x00000001; + + [NativeTypeName("#define ELEMENT_STATUS_IMPEXP 0x00000002")] + public const int ELEMENT_STATUS_IMPEXP = 0x00000002; + + [NativeTypeName("#define ELEMENT_STATUS_EXCEPT 0x00000004")] + public const int ELEMENT_STATUS_EXCEPT = 0x00000004; + + [NativeTypeName("#define ELEMENT_STATUS_ACCESS 0x00000008")] + public const int ELEMENT_STATUS_ACCESS = 0x00000008; + + [NativeTypeName("#define ELEMENT_STATUS_EXENAB 0x00000010")] + public const int ELEMENT_STATUS_EXENAB = 0x00000010; + + [NativeTypeName("#define ELEMENT_STATUS_INENAB 0x00000020")] + public const int ELEMENT_STATUS_INENAB = 0x00000020; + + [NativeTypeName("#define ELEMENT_STATUS_PRODUCT_DATA 0x00000040")] + public const int ELEMENT_STATUS_PRODUCT_DATA = 0x00000040; + + [NativeTypeName("#define ELEMENT_STATUS_LUN_VALID 0x00001000")] + public const int ELEMENT_STATUS_LUN_VALID = 0x00001000; + + [NativeTypeName("#define ELEMENT_STATUS_ID_VALID 0x00002000")] + public const int ELEMENT_STATUS_ID_VALID = 0x00002000; + + [NativeTypeName("#define ELEMENT_STATUS_NOT_BUS 0x00008000")] + public const int ELEMENT_STATUS_NOT_BUS = 0x00008000; + + [NativeTypeName("#define ELEMENT_STATUS_INVERT 0x00400000")] + public const int ELEMENT_STATUS_INVERT = 0x00400000; + + [NativeTypeName("#define ELEMENT_STATUS_SVALID 0x00800000")] + public const int ELEMENT_STATUS_SVALID = 0x00800000; + + [NativeTypeName("#define ELEMENT_STATUS_PVOLTAG 0x10000000")] + public const int ELEMENT_STATUS_PVOLTAG = 0x10000000; + + [NativeTypeName("#define ELEMENT_STATUS_AVOLTAG 0x20000000")] + public const int ELEMENT_STATUS_AVOLTAG = 0x20000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/ENABLE.cs b/sources/Interop/Windows/Windows/um/winioctl/ENABLE.cs new file mode 100644 index 0000000000..4dfb8d97a2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/ENABLE.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ENABLE + { + [NativeTypeName("#define ENABLE_DISABLE_AUTOSAVE 0xD2")] + public const int ENABLE_DISABLE_AUTOSAVE = 0xD2; + + [NativeTypeName("#define ENABLE_SMART 0xD8")] + public const int ENABLE_SMART = 0xD8; + + [NativeTypeName("#define ENABLE_DISABLE_AUTO_OFFLINE 0xDB")] + public const int ENABLE_DISABLE_AUTO_OFFLINE = 0xDB; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/FILE.Manual.cs b/sources/Interop/Windows/Windows/um/winioctl/FILE.Manual.cs new file mode 100644 index 0000000000..e537528701 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/FILE.Manual.cs @@ -0,0 +1,104 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class FILE + { + [NativeTypeName("#define FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT 0x00000010")] + public static int FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT + { + get + { + if (sizeof(nint) == 4) + { + return 0; + } + else + { + return 0x00000010; + } + } + } + + [NativeTypeName("#define FILE_REGION_USAGE_QUERY_ALIGNMENT (FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT |\\\r\n FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT)")] + public static int FILE_REGION_USAGE_QUERY_ALIGNMENT = FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT | FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT; + + + + public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA1, 0x64, 0x0A, 0x0D, + 0xFC, 0x38, + 0xB8, 0x4D, + 0x9F, + 0xE7, + 0x3F, + 0x43, + 0x52, + 0xCD, + 0x7C, + 0x5C + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x64, 0x4D, 0x62, 0xB7, + 0xA3, 0xB9, + 0xF8, 0x4C, + 0x80, + 0x11, + 0x5B, + 0x86, + 0xC9, + 0x40, + 0xE7, + 0xB7 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB7, 0x3E, 0x45, 0x9D, + 0xA6, 0xD2, + 0xBD, 0x4D, + 0xA2, + 0xE3, + 0xFB, + 0xD0, + 0xED, + 0x91, + 0x09, + 0xA9 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/FLAG.cs b/sources/Interop/Windows/Windows/um/winioctl/FLAG.cs new file mode 100644 index 0000000000..8b55290151 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/FLAG.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FLAG + { + [NativeTypeName("#define FLAG_USN_TRACK_MODIFIED_RANGES_ENABLE 0x00000001")] + public const int FLAG_USN_TRACK_MODIFIED_RANGES_ENABLE = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/FSCTL.Manual.cs b/sources/Interop/Windows/Windows/um/winioctl/FSCTL.Manual.cs new file mode 100644 index 0000000000..051727a4bb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/FSCTL.Manual.cs @@ -0,0 +1,26 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class FSCTL + { + [NativeTypeName("#define FSCTL_ENABLE_PER_IO_FLAGS CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 267, METHOD_BUFFERED, FILE_ANY_ACCESS)")] + public static int FSCTL_ENABLE_PER_IO_FLAGS + { + get + { + if (sizeof(nint) == 4) + { + return 0; + } + else + { + return (((0x00000009) << 16) | ((0) << 14) | ((267) << 2) | (0)); + } + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/FW.cs b/sources/Interop/Windows/Windows/um/winioctl/FW.cs new file mode 100644 index 0000000000..f06c444243 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/FW.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class FW + { + [NativeTypeName("#define FW_ISSUEID_NO_ISSUE 0x00000000")] + public const int FW_ISSUEID_NO_ISSUE = 0x00000000; + + [NativeTypeName("#define FW_ISSUEID_UNKNOWN 0xFFFFFFFF")] + public const uint FW_ISSUEID_UNKNOWN = 0xFFFFFFFF; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/GET.cs b/sources/Interop/Windows/Windows/um/winioctl/GET.cs new file mode 100644 index 0000000000..951c112134 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/GET.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GET + { + [NativeTypeName("#define GET_VOLUME_BITMAP_FLAG_MASK_METADATA 0x00000001")] + public const int GET_VOLUME_BITMAP_FLAG_MASK_METADATA = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/GPT.cs b/sources/Interop/Windows/Windows/um/winioctl/GPT.cs new file mode 100644 index 0000000000..572f51168b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/GPT.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class GPT + { + [NativeTypeName("#define GPT_ATTRIBUTE_PLATFORM_REQUIRED (0x0000000000000001)")] + public const int GPT_ATTRIBUTE_PLATFORM_REQUIRED = (0x0000000000000001); + + [NativeTypeName("#define GPT_ATTRIBUTE_NO_BLOCK_IO_PROTOCOL (0x0000000000000002)")] + public const int GPT_ATTRIBUTE_NO_BLOCK_IO_PROTOCOL = (0x0000000000000002); + + [NativeTypeName("#define GPT_ATTRIBUTE_LEGACY_BIOS_BOOTABLE (0x0000000000000004)")] + public const int GPT_ATTRIBUTE_LEGACY_BIOS_BOOTABLE = (0x0000000000000004); + + [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER (0x8000000000000000)")] + public const ulong GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER = (0x8000000000000000); + + [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_HIDDEN (0x4000000000000000)")] + public const long GPT_BASIC_DATA_ATTRIBUTE_HIDDEN = (0x4000000000000000); + + [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY (0x2000000000000000)")] + public const long GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY = (0x2000000000000000); + + [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY (0x1000000000000000)")] + public const long GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY = (0x1000000000000000); + + [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_OFFLINE (0x0800000000000000)")] + public const long GPT_BASIC_DATA_ATTRIBUTE_OFFLINE = (0x0800000000000000); + + [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_DAX (0x0400000000000000)")] + public const long GPT_BASIC_DATA_ATTRIBUTE_DAX = (0x0400000000000000); + + [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_SERVICE (0x0200000000000000)")] + public const long GPT_BASIC_DATA_ATTRIBUTE_SERVICE = (0x0200000000000000); + + [NativeTypeName("#define GPT_SPACES_ATTRIBUTE_NO_METADATA (0x8000000000000000)")] + public const ulong GPT_SPACES_ATTRIBUTE_NO_METADATA = (0x8000000000000000); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/GUID.Manual.cs b/sources/Interop/Windows/Windows/um/winioctl/GUID.Manual.cs new file mode 100644 index 0000000000..5d38c6ce99 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/GUID.Manual.cs @@ -0,0 +1,474 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class GUID + { + public static ref readonly Guid GUID_DEVINTERFACE_DISK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x07, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_CDROM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x08, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_PARTITION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0A, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_TAPE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0B, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_WRITEONCEDISK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0C, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_VOLUME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0D, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_MEDIUMCHANGER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x10, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_FLOPPY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x11, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_CDCHANGER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x12, 0x63, 0xF5, 0x53, + 0xBF, 0xB6, + 0xD0, 0x11, + 0x94, + 0xF2, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_STORAGEPORT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x60, 0xFE, 0xCC, 0x2A, + 0x30, 0xC1, + 0xD2, 0x11, + 0xB0, + 0x82, + 0x00, + 0xA0, + 0xC9, + 0x1E, + 0xFB, + 0x8B + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_VMLUN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x66, 0x41, 0x6F, + 0x29, 0x9F, + 0xA5, 0x42, + 0xB2, + 0x0B, + 0x37, + 0xE2, + 0x19, + 0xCA, + 0x02, + 0xB0 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_SES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEC, 0xC9, 0x90, 0x17, + 0xD5, 0x47, + 0xF3, 0x4D, + 0xB5, + 0xAF, + 0x9A, + 0xDF, + 0x3C, + 0xF2, + 0x3E, + 0x48 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_SERVICE_VOLUME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x82, 0x3D, 0xAD, 0x6E, + 0xEC, 0x25, + 0xBC, 0x46, + 0xB7, + 0xFD, + 0xC1, + 0xF0, + 0xDF, + 0x8F, + 0x50, + 0x37 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_HIDDEN_VOLUME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x28, 0x8A, 0x10, 0x7F, + 0x33, 0x98, + 0x3B, 0x4B, + 0xB7, + 0x80, + 0x2C, + 0x6B, + 0x5F, + 0xA5, + 0xC0, + 0x62 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x21, 0x7C, 0x44, 0x27, + 0xC3, 0xBC, + 0x07, 0x4D, + 0xA0, + 0x5B, + 0xA3, + 0x39, + 0x5B, + 0xB4, + 0xEE, + 0xE7 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9D, 0x60, 0x83, 0x42, + 0xC2, 0x4D, + 0xBE, 0x43, + 0xBB, + 0xB4, + 0x4F, + 0x15, + 0xDF, + 0xCE, + 0x2C, + 0x61 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_SCM_PD_HEALTH_NOTIFICATION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x86, 0xD3, 0xA2, 0x9D, + 0xF5, 0x72, + 0xE3, 0x4E, + 0x81, + 0x55, + 0xEC, + 0xA0, + 0x67, + 0x8E, + 0x3B, + 0x06 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_SCM_PD_PASSTHROUGH_INVDIMM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x30, 0xAC, 0x09, 0x43, + 0x11, 0x0D, + 0xE4, 0x11, + 0x91, + 0x91, + 0x08, + 0x00, + 0x20, + 0x0C, + 0x9A, + 0x66 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_COMPORT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE0, 0xD1, 0xE0, 0x86, + 0x89, 0x80, + 0xD0, 0x11, + 0x9C, + 0xE4, + 0x08, + 0x00, + 0x3E, + 0x30, + 0x1F, + 0x73 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + public static ref readonly Guid GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x78, 0xE9, 0x36, 0x4D, + 0x25, 0xE3, + 0xCE, 0x11, + 0xBF, + 0xC1, + 0x08, + 0x00, + 0x2B, + 0xE1, + 0x03, + 0x18 + }; + + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/GUID.cs b/sources/Interop/Windows/Windows/um/winioctl/GUID.cs new file mode 100644 index 0000000000..b16262adf0 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/GUID.cs @@ -0,0 +1,18 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("#define GUID_CLASS_COMPORT GUID_DEVINTERFACE_COMPORT")] + public static ref readonly Guid GUID_CLASS_COMPORT => ref GUID_DEVINTERFACE_COMPORT; + + [NativeTypeName("#define GUID_SERENUM_BUS_ENUMERATOR GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR")] + public static ref readonly Guid GUID_SERENUM_BUS_ENUMERATOR => ref GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/MARK.cs b/sources/Interop/Windows/Windows/um/winioctl/MARK.cs new file mode 100644 index 0000000000..bc5a8fbcc6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/MARK.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MARK + { + [NativeTypeName("#define MARK_HANDLE_PROTECT_CLUSTERS (0x00000001)")] + public const int MARK_HANDLE_PROTECT_CLUSTERS = (0x00000001); + + [NativeTypeName("#define MARK_HANDLE_TXF_SYSTEM_LOG (0x00000004)")] + public const int MARK_HANDLE_TXF_SYSTEM_LOG = (0x00000004); + + [NativeTypeName("#define MARK_HANDLE_NOT_TXF_SYSTEM_LOG (0x00000008)")] + public const int MARK_HANDLE_NOT_TXF_SYSTEM_LOG = (0x00000008); + + [NativeTypeName("#define MARK_HANDLE_REALTIME (0x00000020)")] + public const int MARK_HANDLE_REALTIME = (0x00000020); + + [NativeTypeName("#define MARK_HANDLE_NOT_REALTIME (0x00000040)")] + public const int MARK_HANDLE_NOT_REALTIME = (0x00000040); + + [NativeTypeName("#define MARK_HANDLE_CLOUD_SYNC (0x00000800)")] + public const int MARK_HANDLE_CLOUD_SYNC = (0x00000800); + + [NativeTypeName("#define MARK_HANDLE_READ_COPY (0x00000080)")] + public const int MARK_HANDLE_READ_COPY = (0x00000080); + + [NativeTypeName("#define MARK_HANDLE_NOT_READ_COPY (0x00000100)")] + public const int MARK_HANDLE_NOT_READ_COPY = (0x00000100); + + [NativeTypeName("#define MARK_HANDLE_FILTER_METADATA (0x00000200)")] + public const int MARK_HANDLE_FILTER_METADATA = (0x00000200); + + [NativeTypeName("#define MARK_HANDLE_RETURN_PURGE_FAILURE (0x00000400)")] + public const int MARK_HANDLE_RETURN_PURGE_FAILURE = (0x00000400); + + [NativeTypeName("#define MARK_HANDLE_DISABLE_FILE_METADATA_OPTIMIZATION (0x00001000)")] + public const int MARK_HANDLE_DISABLE_FILE_METADATA_OPTIMIZATION = (0x00001000); + + [NativeTypeName("#define MARK_HANDLE_ENABLE_USN_SOURCE_ON_PAGING_IO (0x00002000)")] + public const int MARK_HANDLE_ENABLE_USN_SOURCE_ON_PAGING_IO = (0x00002000); + + [NativeTypeName("#define MARK_HANDLE_SKIP_COHERENCY_SYNC_DISALLOW_WRITES (0x00004000)")] + public const int MARK_HANDLE_SKIP_COHERENCY_SYNC_DISALLOW_WRITES = (0x00004000); + + [NativeTypeName("#define MARK_HANDLE_ENABLE_CPU_CACHE (0x10000000)")] + public const int MARK_HANDLE_ENABLE_CPU_CACHE = (0x10000000); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/PARTITION.cs b/sources/Interop/Windows/Windows/um/winioctl/PARTITION.cs new file mode 100644 index 0000000000..44e7f1fb5f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/PARTITION.cs @@ -0,0 +1,97 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PARTITION + { + [NativeTypeName("#define PARTITION_ENTRY_UNUSED 0x00")] + public const int PARTITION_ENTRY_UNUSED = 0x00; + + [NativeTypeName("#define PARTITION_FAT_12 0x01")] + public const int PARTITION_FAT_12 = 0x01; + + [NativeTypeName("#define PARTITION_XENIX_1 0x02")] + public const int PARTITION_XENIX_1 = 0x02; + + [NativeTypeName("#define PARTITION_XENIX_2 0x03")] + public const int PARTITION_XENIX_2 = 0x03; + + [NativeTypeName("#define PARTITION_FAT_16 0x04")] + public const int PARTITION_FAT_16 = 0x04; + + [NativeTypeName("#define PARTITION_EXTENDED 0x05")] + public const int PARTITION_EXTENDED = 0x05; + + [NativeTypeName("#define PARTITION_HUGE 0x06")] + public const int PARTITION_HUGE = 0x06; + + [NativeTypeName("#define PARTITION_IFS 0x07")] + public const int PARTITION_IFS = 0x07; + + [NativeTypeName("#define PARTITION_OS2BOOTMGR 0x0A")] + public const int PARTITION_OS2BOOTMGR = 0x0A; + + [NativeTypeName("#define PARTITION_FAT32 0x0B")] + public const int PARTITION_FAT32 = 0x0B; + + [NativeTypeName("#define PARTITION_FAT32_XINT13 0x0C")] + public const int PARTITION_FAT32_XINT13 = 0x0C; + + [NativeTypeName("#define PARTITION_XINT13 0x0E")] + public const int PARTITION_XINT13 = 0x0E; + + [NativeTypeName("#define PARTITION_XINT13_EXTENDED 0x0F")] + public const int PARTITION_XINT13_EXTENDED = 0x0F; + + [NativeTypeName("#define PARTITION_MSFT_RECOVERY 0x27")] + public const int PARTITION_MSFT_RECOVERY = 0x27; + + [NativeTypeName("#define PARTITION_MAIN_OS 0x28")] + public const int PARTITION_MAIN_OS = 0x28; + + [NativeTypeName("#define PARTITION_PRE_INSTALLED 0x2a")] + public const int PARTITION_PRE_INSTALLED = 0x2a; + + [NativeTypeName("#define PARTITION_BSP 0x2b")] + public const int PARTITION_BSP = 0x2b; + + [NativeTypeName("#define PARTITION_DPP 0x2c")] + public const int PARTITION_DPP = 0x2c; + + [NativeTypeName("#define PARTITION_WINDOWS_SYSTEM 0x2d")] + public const int PARTITION_WINDOWS_SYSTEM = 0x2d; + + [NativeTypeName("#define PARTITION_PREP 0x41")] + public const int PARTITION_PREP = 0x41; + + [NativeTypeName("#define PARTITION_LDM 0x42")] + public const int PARTITION_LDM = 0x42; + + [NativeTypeName("#define PARTITION_DM 0x54")] + public const int PARTITION_DM = 0x54; + + [NativeTypeName("#define PARTITION_EZDRIVE 0x55")] + public const int PARTITION_EZDRIVE = 0x55; + + [NativeTypeName("#define PARTITION_UNIX 0x63")] + public const int PARTITION_UNIX = 0x63; + + [NativeTypeName("#define PARTITION_SPACES_DATA 0xD7")] + public const int PARTITION_SPACES_DATA = 0xD7; + + [NativeTypeName("#define PARTITION_SPACES 0xE7")] + public const int PARTITION_SPACES = 0xE7; + + [NativeTypeName("#define PARTITION_GPT 0xEE")] + public const int PARTITION_GPT = 0xEE; + + [NativeTypeName("#define PARTITION_SYSTEM 0xEF")] + public const int PARTITION_SYSTEM = 0xEF; + + [NativeTypeName("#define PARTITION_NTFT 0x80")] + public const int PARTITION_NTFT = 0x80; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/PERSISTENT.cs b/sources/Interop/Windows/Windows/um/winioctl/PERSISTENT.cs new file mode 100644 index 0000000000..478f3a67c2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/PERSISTENT.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PERSISTENT + { + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED (0x00000001)")] + public const int PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED = (0x00000001); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_VOLUME_SCRUB_DISABLED (0x00000002)")] + public const int PERSISTENT_VOLUME_STATE_VOLUME_SCRUB_DISABLED = (0x00000002); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_GLOBAL_METADATA_NO_SEEK_PENALTY (0x00000004)")] + public const int PERSISTENT_VOLUME_STATE_GLOBAL_METADATA_NO_SEEK_PENALTY = (0x00000004); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_LOCAL_METADATA_NO_SEEK_PENALTY (0x00000008)")] + public const int PERSISTENT_VOLUME_STATE_LOCAL_METADATA_NO_SEEK_PENALTY = (0x00000008); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_NO_HEAT_GATHERING (0x00000010)")] + public const int PERSISTENT_VOLUME_STATE_NO_HEAT_GATHERING = (0x00000010); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_CONTAINS_BACKING_WIM (0x00000020)")] + public const int PERSISTENT_VOLUME_STATE_CONTAINS_BACKING_WIM = (0x00000020); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_BACKED_BY_WIM (0x00000040)")] + public const int PERSISTENT_VOLUME_STATE_BACKED_BY_WIM = (0x00000040); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_NO_WRITE_AUTO_TIERING (0x00000080)")] + public const int PERSISTENT_VOLUME_STATE_NO_WRITE_AUTO_TIERING = (0x00000080); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_TXF_DISABLED (0x00000100)")] + public const int PERSISTENT_VOLUME_STATE_TXF_DISABLED = (0x00000100); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_REALLOCATE_ALL_DATA_WRITES (0x00000200)")] + public const int PERSISTENT_VOLUME_STATE_REALLOCATE_ALL_DATA_WRITES = (0x00000200); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_CHKDSK_RAN_ONCE (0x00000400)")] + public const int PERSISTENT_VOLUME_STATE_CHKDSK_RAN_ONCE = (0x00000400); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_MODIFIED_BY_CHKDSK (0x00000800)")] + public const int PERSISTENT_VOLUME_STATE_MODIFIED_BY_CHKDSK = (0x00000800); + + [NativeTypeName("#define PERSISTENT_VOLUME_STATE_DAX_FORMATTED (0x00001000)")] + public const int PERSISTENT_VOLUME_STATE_DAX_FORMATTED = (0x00001000); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/QUERY.cs b/sources/Interop/Windows/Windows/um/winioctl/QUERY.cs new file mode 100644 index 0000000000..e289c94e0b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/QUERY.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class QUERY + { + [NativeTypeName("#define QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_HOST_VOLUMES 0x1")] + public const int QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_HOST_VOLUMES = 0x1; + + [NativeTypeName("#define QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_GUEST_VOLUMES 0x2")] + public const int QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_GUEST_VOLUMES = 0x2; + + [NativeTypeName("#define QUERY_FILE_LAYOUT_RESTART (0x00000001)")] + public const int QUERY_FILE_LAYOUT_RESTART = (0x00000001); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_NAMES (0x00000002)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_NAMES = (0x00000002); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAMS (0x00000004)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAMS = (0x00000004); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_EXTENTS (0x00000008)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_EXTENTS = (0x00000008); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_EXTRA_INFO (0x00000010)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_EXTRA_INFO = (0x00000010); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAMS_WITH_NO_CLUSTERS_ALLOCATED (0x00000020)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAMS_WITH_NO_CLUSTERS_ALLOCATED = (0x00000020); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_FULL_PATH_IN_NAMES (0x00000040)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_FULL_PATH_IN_NAMES = (0x00000040); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION (0x00000080)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION = (0x00000080); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DSC_ATTRIBUTE (0x00000100)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DSC_ATTRIBUTE = (0x00000100); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_TXF_ATTRIBUTE (0x00000200)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_TXF_ATTRIBUTE = (0x00000200); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EFS_ATTRIBUTE (0x00000400)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EFS_ATTRIBUTE = (0x00000400); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_ONLY_FILES_WITH_SPECIFIC_ATTRIBUTES (0x00000800)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_ONLY_FILES_WITH_SPECIFIC_ATTRIBUTES = (0x00000800); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_FILES_WITH_DSC_ATTRIBUTE (0x00001000)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_FILES_WITH_DSC_ATTRIBUTE = (0x00001000); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DATA_ATTRIBUTE (0x00002000)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DATA_ATTRIBUTE = (0x00002000); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_REPARSE_ATTRIBUTE (0x00004000)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_REPARSE_ATTRIBUTE = (0x00004000); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EA_ATTRIBUTE (0x00008000)")] + public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EA_ATTRIBUTE = (0x00008000); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_SINGLE_INSTANCED (0x00000001)")] + public const int QUERY_FILE_LAYOUT_SINGLE_INSTANCED = (0x00000001); + + [NativeTypeName("#define QUERY_STORAGE_CLASSES_FLAGS_MEASURE_WRITE 0x80000000")] + public const uint QUERY_STORAGE_CLASSES_FLAGS_MEASURE_WRITE = 0x80000000; + + [NativeTypeName("#define QUERY_STORAGE_CLASSES_FLAGS_MEASURE_READ 0x40000000")] + public const int QUERY_STORAGE_CLASSES_FLAGS_MEASURE_READ = 0x40000000; + + [NativeTypeName("#define QUERY_STORAGE_CLASSES_FLAGS_NO_DEFRAG_VOLUME 0x20000000")] + public const int QUERY_STORAGE_CLASSES_FLAGS_NO_DEFRAG_VOLUME = 0x20000000; + + [NativeTypeName("#define QUERY_FILE_LAYOUT_REPARSE_DATA_INVALID (0x0001)")] + public const int QUERY_FILE_LAYOUT_REPARSE_DATA_INVALID = (0x0001); + + [NativeTypeName("#define QUERY_FILE_LAYOUT_REPARSE_TAG_INVALID (0x0002)")] + public const int QUERY_FILE_LAYOUT_REPARSE_TAG_INVALID = (0x0002); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/READ.cs b/sources/Interop/Windows/Windows/um/winioctl/READ.cs new file mode 100644 index 0000000000..eefa60979d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/READ.cs @@ -0,0 +1,31 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class READ + { + [NativeTypeName("#define READ_COMPRESSION_INFO_VALID 0x00000020")] + public const int READ_COMPRESSION_INFO_VALID = 0x00000020; + + [NativeTypeName("#define READ_COPY_NUMBER_KEY 0x52434e00")] + public const int READ_COPY_NUMBER_KEY = 0x52434e00; + + [NativeTypeName("#define READ_COPY_NUMBER_BYPASS_CACHE_FLAG 0x00000100")] + public const int READ_COPY_NUMBER_BYPASS_CACHE_FLAG = 0x00000100; + + [NativeTypeName("#define READ_ATTRIBUTE_BUFFER_SIZE 512")] + public const int READ_ATTRIBUTE_BUFFER_SIZE = 512; + + [NativeTypeName("#define READ_THRESHOLD_BUFFER_SIZE 512")] + public const int READ_THRESHOLD_BUFFER_SIZE = 512; + + [NativeTypeName("#define READ_ATTRIBUTES 0xD0")] + public const int READ_ATTRIBUTES = 0xD0; + + [NativeTypeName("#define READ_THRESHOLDS 0xD1")] + public const int READ_THRESHOLDS = 0xD1; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/SERIAL.cs b/sources/Interop/Windows/Windows/um/winioctl/SERIAL.cs new file mode 100644 index 0000000000..ac9b356d7b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/SERIAL.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SERIAL + { + [NativeTypeName("#define SERIAL_NUMBER_LENGTH 32")] + public const int SERIAL_NUMBER_LENGTH = 32; + + [NativeTypeName("#define SERIAL_LSRMST_ESCAPE ((BYTE )0x00)")] + public const byte SERIAL_LSRMST_ESCAPE = ((byte)(0x00)); + + [NativeTypeName("#define SERIAL_LSRMST_LSR_DATA ((BYTE )0x01)")] + public const byte SERIAL_LSRMST_LSR_DATA = ((byte)(0x01)); + + [NativeTypeName("#define SERIAL_LSRMST_LSR_NODATA ((BYTE )0x02)")] + public const byte SERIAL_LSRMST_LSR_NODATA = ((byte)(0x02)); + + [NativeTypeName("#define SERIAL_LSRMST_MST ((BYTE )0x03)")] + public const byte SERIAL_LSRMST_MST = ((byte)(0x03)); + + [NativeTypeName("#define SERIAL_IOC_FCR_FIFO_ENABLE ((DWORD)0x00000001)")] + public const uint SERIAL_IOC_FCR_FIFO_ENABLE = ((uint)(0x00000001)); + + [NativeTypeName("#define SERIAL_IOC_FCR_RCVR_RESET ((DWORD)0x00000002)")] + public const uint SERIAL_IOC_FCR_RCVR_RESET = ((uint)(0x00000002)); + + [NativeTypeName("#define SERIAL_IOC_FCR_XMIT_RESET ((DWORD)0x00000004)")] + public const uint SERIAL_IOC_FCR_XMIT_RESET = ((uint)(0x00000004)); + + [NativeTypeName("#define SERIAL_IOC_FCR_DMA_MODE ((DWORD)0x00000008)")] + public const uint SERIAL_IOC_FCR_DMA_MODE = ((uint)(0x00000008)); + + [NativeTypeName("#define SERIAL_IOC_FCR_RES1 ((DWORD)0x00000010)")] + public const uint SERIAL_IOC_FCR_RES1 = ((uint)(0x00000010)); + + [NativeTypeName("#define SERIAL_IOC_FCR_RES2 ((DWORD)0x00000020)")] + public const uint SERIAL_IOC_FCR_RES2 = ((uint)(0x00000020)); + + [NativeTypeName("#define SERIAL_IOC_FCR_RCVR_TRIGGER_LSB ((DWORD)0x00000040)")] + public const uint SERIAL_IOC_FCR_RCVR_TRIGGER_LSB = ((uint)(0x00000040)); + + [NativeTypeName("#define SERIAL_IOC_FCR_RCVR_TRIGGER_MSB ((DWORD)0x00000080)")] + public const uint SERIAL_IOC_FCR_RCVR_TRIGGER_MSB = ((uint)(0x00000080)); + + [NativeTypeName("#define SERIAL_IOC_MCR_DTR ((DWORD)0x00000001)")] + public const uint SERIAL_IOC_MCR_DTR = ((uint)(0x00000001)); + + [NativeTypeName("#define SERIAL_IOC_MCR_RTS ((DWORD)0x00000002)")] + public const uint SERIAL_IOC_MCR_RTS = ((uint)(0x00000002)); + + [NativeTypeName("#define SERIAL_IOC_MCR_OUT1 ((DWORD)0x00000004)")] + public const uint SERIAL_IOC_MCR_OUT1 = ((uint)(0x00000004)); + + [NativeTypeName("#define SERIAL_IOC_MCR_OUT2 ((DWORD)0x00000008)")] + public const uint SERIAL_IOC_MCR_OUT2 = ((uint)(0x00000008)); + + [NativeTypeName("#define SERIAL_IOC_MCR_LOOP ((DWORD)0x00000010)")] + public const uint SERIAL_IOC_MCR_LOOP = ((uint)(0x00000010)); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/SET.cs b/sources/Interop/Windows/Windows/um/winioctl/SET.cs new file mode 100644 index 0000000000..c73ecd60c8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/SET.cs @@ -0,0 +1,28 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SET + { + [NativeTypeName("#define SET_REPAIR_ENABLED (0x00000001)")] + public const int SET_REPAIR_ENABLED = (0x00000001); + + [NativeTypeName("#define SET_REPAIR_WARN_ABOUT_DATA_LOSS (0x00000008)")] + public const int SET_REPAIR_WARN_ABOUT_DATA_LOSS = (0x00000008); + + [NativeTypeName("#define SET_REPAIR_DISABLED_AND_BUGCHECK_ON_CORRUPT (0x00000010)")] + public const int SET_REPAIR_DISABLED_AND_BUGCHECK_ON_CORRUPT = (0x00000010); + + [NativeTypeName("#define SET_REPAIR_VALID_MASK (0x00000019)")] + public const int SET_REPAIR_VALID_MASK = (0x00000019); + + [NativeTypeName("#define SET_PURGE_FAILURE_MODE_ENABLED 0x00000001")] + public const int SET_PURGE_FAILURE_MODE_ENABLED = 0x00000001; + + [NativeTypeName("#define SET_PURGE_FAILURE_MODE_DISABLED 0x00000002")] + public const int SET_PURGE_FAILURE_MODE_DISABLED = 0x00000002; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/SMART.cs b/sources/Interop/Windows/Windows/um/winioctl/SMART.cs new file mode 100644 index 0000000000..091adad326 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/SMART.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SMART + { + [NativeTypeName("#define SMART_GET_VERSION CTL_CODE(IOCTL_DISK_BASE, 0x0020, METHOD_BUFFERED, FILE_READ_ACCESS)")] + public const int SMART_GET_VERSION = (((0x00000007) << 16) | (((0x0001)) << 14) | ((0x0020) << 2) | (0)); + + [NativeTypeName("#define SMART_SEND_DRIVE_COMMAND CTL_CODE(IOCTL_DISK_BASE, 0x0021, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)")] + public const int SMART_SEND_DRIVE_COMMAND = (((0x00000007) << 16) | (((0x0001) | (0x0002)) << 14) | ((0x0021) << 2) | (0)); + + [NativeTypeName("#define SMART_RCV_DRIVE_DATA CTL_CODE(IOCTL_DISK_BASE, 0x0022, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)")] + public const int SMART_RCV_DRIVE_DATA = (((0x00000007) << 16) | (((0x0001) | (0x0002)) << 14) | ((0x0022) << 2) | (0)); + + [NativeTypeName("#define SMART_CMD 0xB0")] + public const int SMART_CMD = 0xB0; + + [NativeTypeName("#define SMART_CYL_LOW 0x4F")] + public const int SMART_CYL_LOW = 0x4F; + + [NativeTypeName("#define SMART_CYL_HI 0xC2")] + public const int SMART_CYL_HI = 0xC2; + + [NativeTypeName("#define SMART_NO_ERROR 0")] + public const int SMART_NO_ERROR = 0; + + [NativeTypeName("#define SMART_IDE_ERROR 1")] + public const int SMART_IDE_ERROR = 1; + + [NativeTypeName("#define SMART_INVALID_FLAG 2")] + public const int SMART_INVALID_FLAG = 2; + + [NativeTypeName("#define SMART_INVALID_COMMAND 3")] + public const int SMART_INVALID_COMMAND = 3; + + [NativeTypeName("#define SMART_INVALID_BUFFER 4")] + public const int SMART_INVALID_BUFFER = 4; + + [NativeTypeName("#define SMART_INVALID_DRIVE 5")] + public const int SMART_INVALID_DRIVE = 5; + + [NativeTypeName("#define SMART_INVALID_IOCTL 6")] + public const int SMART_INVALID_IOCTL = 6; + + [NativeTypeName("#define SMART_ERROR_NO_MEM 7")] + public const int SMART_ERROR_NO_MEM = 7; + + [NativeTypeName("#define SMART_INVALID_REGISTER 8")] + public const int SMART_INVALID_REGISTER = 8; + + [NativeTypeName("#define SMART_NOT_SUPPORTED 9")] + public const int SMART_NOT_SUPPORTED = 9; + + [NativeTypeName("#define SMART_NO_IDE_DEVICE 10")] + public const int SMART_NO_IDE_DEVICE = 10; + + [NativeTypeName("#define SMART_OFFLINE_ROUTINE_OFFLINE 0")] + public const int SMART_OFFLINE_ROUTINE_OFFLINE = 0; + + [NativeTypeName("#define SMART_SHORT_SELFTEST_OFFLINE 1")] + public const int SMART_SHORT_SELFTEST_OFFLINE = 1; + + [NativeTypeName("#define SMART_EXTENDED_SELFTEST_OFFLINE 2")] + public const int SMART_EXTENDED_SELFTEST_OFFLINE = 2; + + [NativeTypeName("#define SMART_ABORT_OFFLINE_SELFTEST 127")] + public const int SMART_ABORT_OFFLINE_SELFTEST = 127; + + [NativeTypeName("#define SMART_SHORT_SELFTEST_CAPTIVE 129")] + public const int SMART_SHORT_SELFTEST_CAPTIVE = 129; + + [NativeTypeName("#define SMART_EXTENDED_SELFTEST_CAPTIVE 130")] + public const int SMART_EXTENDED_SELFTEST_CAPTIVE = 130; + + [NativeTypeName("#define SMART_LOG_SECTOR_SIZE 512")] + public const int SMART_LOG_SECTOR_SIZE = 512; + + [NativeTypeName("#define SMART_READ_LOG 0xD5")] + public const int SMART_READ_LOG = 0xD5; + + [NativeTypeName("#define SMART_WRITE_LOG 0xd6")] + public const int SMART_WRITE_LOG = 0xd6; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/STREAM.cs b/sources/Interop/Windows/Windows/um/winioctl/STREAM.cs new file mode 100644 index 0000000000..f8fec278b5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/STREAM.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class STREAM + { + [NativeTypeName("#define STREAM_SET_ENCRYPTION 0x00000003")] + public const int STREAM_SET_ENCRYPTION = 0x00000003; + + [NativeTypeName("#define STREAM_CLEAR_ENCRYPTION 0x00000004")] + public const int STREAM_CLEAR_ENCRYPTION = 0x00000004; + + [NativeTypeName("#define STREAM_LAYOUT_ENTRY_IMMOVABLE (0x00000001)")] + public const int STREAM_LAYOUT_ENTRY_IMMOVABLE = (0x00000001); + + [NativeTypeName("#define STREAM_LAYOUT_ENTRY_PINNED (0x00000002)")] + public const int STREAM_LAYOUT_ENTRY_PINNED = (0x00000002); + + [NativeTypeName("#define STREAM_LAYOUT_ENTRY_RESIDENT (0x00000004)")] + public const int STREAM_LAYOUT_ENTRY_RESIDENT = (0x00000004); + + [NativeTypeName("#define STREAM_LAYOUT_ENTRY_NO_CLUSTERS_ALLOCATED (0x00000008)")] + public const int STREAM_LAYOUT_ENTRY_NO_CLUSTERS_ALLOCATED = (0x00000008); + + [NativeTypeName("#define STREAM_LAYOUT_ENTRY_HAS_INFORMATION (0x00000010)")] + public const int STREAM_LAYOUT_ENTRY_HAS_INFORMATION = (0x00000010); + + [NativeTypeName("#define STREAM_EXTENT_ENTRY_AS_RETRIEVAL_POINTERS (0x00000001)")] + public const int STREAM_EXTENT_ENTRY_AS_RETRIEVAL_POINTERS = (0x00000001); + + [NativeTypeName("#define STREAM_EXTENT_ENTRY_ALL_EXTENTS (0x00000002)")] + public const int STREAM_EXTENT_ENTRY_ALL_EXTENTS = (0x00000002); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/TC.cs b/sources/Interop/Windows/Windows/um/winioctl/TC.cs new file mode 100644 index 0000000000..34c3d1f263 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/TC.cs @@ -0,0 +1,30 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class TC + { + [NativeTypeName("#define TC_PUBLIC_DEVICEDUMP_CONTENT_SMART 0x01")] + public const int TC_PUBLIC_DEVICEDUMP_CONTENT_SMART = 0x01; + + [NativeTypeName("#define TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG 0x02")] + public const int TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG = 0x02; + + [NativeTypeName("#define TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG_MAX 16")] + public const int TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG_MAX = 16; + + [NativeTypeName("#define TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH 16")] + public const int TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH = 16; + + [NativeTypeName("#define TC_PUBLIC_DATA_TYPE_ATAGP \"ATAGPLogPages\"")] + public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATAGP => new byte[] { 0x41, 0x54, 0x41, 0x47, 0x50, 0x4C, 0x6F, 0x67, 0x50, 0x61, 0x67, 0x65, 0x73, 0x00 }; + + [NativeTypeName("#define TC_PUBLIC_DATA_TYPE_ATASMART \"ATASMARTPages\"")] + public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATASMART => new byte[] { 0x41, 0x54, 0x41, 0x53, 0x4D, 0x41, 0x52, 0x54, 0x50, 0x61, 0x67, 0x65, 0x73, 0x00 }; + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/USN.cs b/sources/Interop/Windows/Windows/um/winioctl/USN.cs new file mode 100644 index 0000000000..faf41df001 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winioctl/USN.cs @@ -0,0 +1,109 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class USN + { + [NativeTypeName("#define USN_PAGE_SIZE (0x1000)")] + public const int USN_PAGE_SIZE = (0x1000); + + [NativeTypeName("#define USN_REASON_DATA_OVERWRITE (0x00000001)")] + public const int USN_REASON_DATA_OVERWRITE = (0x00000001); + + [NativeTypeName("#define USN_REASON_DATA_EXTEND (0x00000002)")] + public const int USN_REASON_DATA_EXTEND = (0x00000002); + + [NativeTypeName("#define USN_REASON_DATA_TRUNCATION (0x00000004)")] + public const int USN_REASON_DATA_TRUNCATION = (0x00000004); + + [NativeTypeName("#define USN_REASON_NAMED_DATA_OVERWRITE (0x00000010)")] + public const int USN_REASON_NAMED_DATA_OVERWRITE = (0x00000010); + + [NativeTypeName("#define USN_REASON_NAMED_DATA_EXTEND (0x00000020)")] + public const int USN_REASON_NAMED_DATA_EXTEND = (0x00000020); + + [NativeTypeName("#define USN_REASON_NAMED_DATA_TRUNCATION (0x00000040)")] + public const int USN_REASON_NAMED_DATA_TRUNCATION = (0x00000040); + + [NativeTypeName("#define USN_REASON_FILE_CREATE (0x00000100)")] + public const int USN_REASON_FILE_CREATE = (0x00000100); + + [NativeTypeName("#define USN_REASON_FILE_DELETE (0x00000200)")] + public const int USN_REASON_FILE_DELETE = (0x00000200); + + [NativeTypeName("#define USN_REASON_EA_CHANGE (0x00000400)")] + public const int USN_REASON_EA_CHANGE = (0x00000400); + + [NativeTypeName("#define USN_REASON_SECURITY_CHANGE (0x00000800)")] + public const int USN_REASON_SECURITY_CHANGE = (0x00000800); + + [NativeTypeName("#define USN_REASON_RENAME_OLD_NAME (0x00001000)")] + public const int USN_REASON_RENAME_OLD_NAME = (0x00001000); + + [NativeTypeName("#define USN_REASON_RENAME_NEW_NAME (0x00002000)")] + public const int USN_REASON_RENAME_NEW_NAME = (0x00002000); + + [NativeTypeName("#define USN_REASON_INDEXABLE_CHANGE (0x00004000)")] + public const int USN_REASON_INDEXABLE_CHANGE = (0x00004000); + + [NativeTypeName("#define USN_REASON_BASIC_INFO_CHANGE (0x00008000)")] + public const int USN_REASON_BASIC_INFO_CHANGE = (0x00008000); + + [NativeTypeName("#define USN_REASON_HARD_LINK_CHANGE (0x00010000)")] + public const int USN_REASON_HARD_LINK_CHANGE = (0x00010000); + + [NativeTypeName("#define USN_REASON_COMPRESSION_CHANGE (0x00020000)")] + public const int USN_REASON_COMPRESSION_CHANGE = (0x00020000); + + [NativeTypeName("#define USN_REASON_ENCRYPTION_CHANGE (0x00040000)")] + public const int USN_REASON_ENCRYPTION_CHANGE = (0x00040000); + + [NativeTypeName("#define USN_REASON_OBJECT_ID_CHANGE (0x00080000)")] + public const int USN_REASON_OBJECT_ID_CHANGE = (0x00080000); + + [NativeTypeName("#define USN_REASON_REPARSE_POINT_CHANGE (0x00100000)")] + public const int USN_REASON_REPARSE_POINT_CHANGE = (0x00100000); + + [NativeTypeName("#define USN_REASON_STREAM_CHANGE (0x00200000)")] + public const int USN_REASON_STREAM_CHANGE = (0x00200000); + + [NativeTypeName("#define USN_REASON_TRANSACTED_CHANGE (0x00400000)")] + public const int USN_REASON_TRANSACTED_CHANGE = (0x00400000); + + [NativeTypeName("#define USN_REASON_INTEGRITY_CHANGE (0x00800000)")] + public const int USN_REASON_INTEGRITY_CHANGE = (0x00800000); + + [NativeTypeName("#define USN_REASON_DESIRED_STORAGE_CLASS_CHANGE (0x01000000)")] + public const int USN_REASON_DESIRED_STORAGE_CLASS_CHANGE = (0x01000000); + + [NativeTypeName("#define USN_REASON_CLOSE (0x80000000)")] + public const uint USN_REASON_CLOSE = (0x80000000); + + [NativeTypeName("#define USN_DELETE_FLAG_DELETE (0x00000001)")] + public const int USN_DELETE_FLAG_DELETE = (0x00000001); + + [NativeTypeName("#define USN_DELETE_FLAG_NOTIFY (0x00000002)")] + public const int USN_DELETE_FLAG_NOTIFY = (0x00000002); + + [NativeTypeName("#define USN_DELETE_VALID_FLAGS (0x00000003)")] + public const int USN_DELETE_VALID_FLAGS = (0x00000003); + + [NativeTypeName("#define USN_SOURCE_DATA_MANAGEMENT (0x00000001)")] + public const int USN_SOURCE_DATA_MANAGEMENT = (0x00000001); + + [NativeTypeName("#define USN_SOURCE_AUXILIARY_DATA (0x00000002)")] + public const int USN_SOURCE_AUXILIARY_DATA = (0x00000002); + + [NativeTypeName("#define USN_SOURCE_REPLICATION_MANAGEMENT (0x00000004)")] + public const int USN_SOURCE_REPLICATION_MANAGEMENT = (0x00000004); + + [NativeTypeName("#define USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT (0x00000008)")] + public const int USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT = (0x00000008); + + [NativeTypeName("#define USN_SOURCE_VALID_FLAGS (USN_SOURCE_DATA_MANAGEMENT | \\\r\n USN_SOURCE_AUXILIARY_DATA | \\\r\n USN_SOURCE_REPLICATION_MANAGEMENT | \\\r\n USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT)")] + public const int USN_SOURCE_VALID_FLAGS = ((0x00000001) | (0x00000002) | (0x00000004) | (0x00000008)); + } +} diff --git a/sources/Interop/Windows/Windows/um/winioctl/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/winioctl/Windows.Manual.cs index 9fcbabd372..81dce5fb91 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/Windows.Manual.cs @@ -3,672 +3,12 @@ // Ported from um/winioctl.h in the Windows SDK for Windows 10.0.20348.0 // Original source is Copyright © Microsoft. All rights reserved. -using System; using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using static TerraFX.Interop.Windows.FILE; namespace TerraFX.Interop.Windows { public static unsafe partial class Windows { - [return: NativeTypeName("DWORD")] - public static uint DeviceDsmNumberOfDataSetRanges([NativeTypeName("PDEVICE_DSM_INPUT")] DEVICE_MANAGE_DATA_SET_ATTRIBUTES* Input) - { - return Input->DataSetRangesLength / unchecked((uint)(sizeof(DEVICE_DATA_SET_RANGE))); - } - - [return: NativeTypeName("DWORD")] - public static uint DeviceDsmGetInputLength([NativeTypeName("PDEVICE_DSM_DEFINITION")] DEVICE_DSM_DEFINITION* Definition, [NativeTypeName("DWORD")] uint ParameterBlockLength, [NativeTypeName("DWORD")] uint NumberOfDataSetRanges) - { - uint Bytes = 28; - - if (ParameterBlockLength != 0) - { - unchecked(Bytes) = unchecked(((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); - unchecked(Bytes) += ParameterBlockLength; - } - - if (NumberOfDataSetRanges != 0) - { - unchecked(Bytes) = unchecked(((Bytes) + ((8) - 1)) / (8) * (8)); - unchecked(Bytes) += unchecked((uint)(sizeof(DEVICE_DATA_SET_RANGE)) * NumberOfDataSetRanges); - } - - return Bytes; - } - - [return: NativeTypeName("DWORD")] - public static uint DeviceDsmGetNumberOfDataSetRanges([NativeTypeName("PDEVICE_DSM_DEFINITION")] DEVICE_DSM_DEFINITION* Definition, [NativeTypeName("DWORD")] uint InputLength, [NativeTypeName("DWORD")] uint ParameterBlockLength) - { - uint Bytes = 28; - - if (ParameterBlockLength != 0) - { - unchecked(Bytes) = unchecked(((Bytes) + ((Definition->ParameterBlockAlignment) - 1)) / (Definition->ParameterBlockAlignment) * (Definition->ParameterBlockAlignment)); - unchecked(Bytes) += ParameterBlockLength; - } - - unchecked(Bytes) = unchecked(((Bytes) + ((8) - 1)) / (8) * (8)); - unchecked(Bytes) = unchecked(InputLength - Bytes); - return unchecked(Bytes) / unchecked((uint)(sizeof(DEVICE_DATA_SET_RANGE))); - } - - [return: NativeTypeName("BOOLEAN")] - public static byte DeviceDsmAddDataSetRange([NativeTypeName("PDEVICE_DSM_INPUT")] DEVICE_MANAGE_DATA_SET_ATTRIBUTES* Input, [NativeTypeName("DWORD")] uint InputLength, [NativeTypeName("LONGLONG")] long Offset, [NativeTypeName("DWORDLONG")] ulong Length) - { - uint Bytes = 0; - uint Index = 0; - DEVICE_DATA_SET_RANGE* Ranges = null; - byte Return = 0; - - if ((Input->Flags & 0x00000001) != 0) - { - goto Cleanup; - } - - if (Input->DataSetRangesLength == 0) - { - if (Input->ParameterBlockLength == 0) - { - Bytes = unchecked((uint)(sizeof(DEVICE_MANAGE_DATA_SET_ATTRIBUTES))); - } - else - { - Bytes = Input->ParameterBlockOffset + Input->ParameterBlockLength; - } - - Bytes = (((Bytes) + ((8) - 1)) / (8) * (8)); - } - else - { - Bytes = Input->DataSetRangesOffset + Input->DataSetRangesLength; - } - - if ((InputLength - Bytes) < sizeof(DEVICE_DATA_SET_RANGE)) - { - goto Cleanup; - } - - if (Input->DataSetRangesOffset == 0) - { - Input->DataSetRangesOffset = Bytes; - } - - Ranges = DeviceDsmDataSetRanges(Input); - Index = DeviceDsmNumberOfDataSetRanges(Input); - Ranges[Index].StartingOffset = Offset; - Ranges[Index].LengthInBytes = Length; - Input->DataSetRangesLength += unchecked((uint)(sizeof(DEVICE_DATA_SET_RANGE))); - Return = 1; - Cleanup: - return Return; - } - - [NativeTypeName("#define FSCTL_ENABLE_PER_IO_FLAGS CTL_CODE(FILE_DEVICE_FILE_SYSTEM, 267, METHOD_BUFFERED, FILE_ANY_ACCESS)")] - public static int FSCTL_ENABLE_PER_IO_FLAGS - { - get - { - if (sizeof(nint) == 4) - { - return 0; - } - else - { - return (((0x00000009) << 16) | ((0) << 14) | ((267) << 2) | (0)); - } - } - } - - [NativeTypeName("#define FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT 0x00000010")] - public static int FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT - { - get - { - if (sizeof(nint) == 4) - { - return 0; - } - else - { - return 0x00000010; - } - } - } - - [NativeTypeName("#define FILE_REGION_USAGE_QUERY_ALIGNMENT (FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT |\\\r\n FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT)")] - public static int FILE_REGION_USAGE_QUERY_ALIGNMENT = FILE_REGION_USAGE_LARGE_PAGE_ALIGNMENT | FILE_REGION_USAGE_HUGE_PAGE_ALIGNMENT; - - public static ref readonly Guid GUID_DEVINTERFACE_DISK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x07, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_CDROM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x08, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_PARTITION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0A, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_TAPE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0B, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_WRITEONCEDISK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0C, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_VOLUME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0D, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_MEDIUMCHANGER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x10, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_FLOPPY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x11, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_CDCHANGER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x12, 0x63, 0xF5, 0x53, - 0xBF, 0xB6, - 0xD0, 0x11, - 0x94, - 0xF2, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_STORAGEPORT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x60, 0xFE, 0xCC, 0x2A, - 0x30, 0xC1, - 0xD2, 0x11, - 0xB0, - 0x82, - 0x00, - 0xA0, - 0xC9, - 0x1E, - 0xFB, - 0x8B - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_VMLUN - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0x66, 0x41, 0x6F, - 0x29, 0x9F, - 0xA5, 0x42, - 0xB2, - 0x0B, - 0x37, - 0xE2, - 0x19, - 0xCA, - 0x02, - 0xB0 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_SES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEC, 0xC9, 0x90, 0x17, - 0xD5, 0x47, - 0xF3, 0x4D, - 0xB5, - 0xAF, - 0x9A, - 0xDF, - 0x3C, - 0xF2, - 0x3E, - 0x48 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_SERVICE_VOLUME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x82, 0x3D, 0xAD, 0x6E, - 0xEC, 0x25, - 0xBC, 0x46, - 0xB7, - 0xFD, - 0xC1, - 0xF0, - 0xDF, - 0x8F, - 0x50, - 0x37 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_HIDDEN_VOLUME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x28, 0x8A, 0x10, 0x7F, - 0x33, 0x98, - 0x3B, 0x4B, - 0xB7, - 0x80, - 0x2C, - 0x6B, - 0x5F, - 0xA5, - 0xC0, - 0x62 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_UNIFIED_ACCESS_RPMB - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x21, 0x7C, 0x44, 0x27, - 0xC3, 0xBC, - 0x07, 0x4D, - 0xA0, - 0x5B, - 0xA3, - 0x39, - 0x5B, - 0xB4, - 0xEE, - 0xE7 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_SCM_PHYSICAL_DEVICE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9D, 0x60, 0x83, 0x42, - 0xC2, 0x4D, - 0xBE, 0x43, - 0xBB, - 0xB4, - 0x4F, - 0x15, - 0xDF, - 0xCE, - 0x2C, - 0x61 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_SCM_PD_HEALTH_NOTIFICATION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x86, 0xD3, 0xA2, 0x9D, - 0xF5, 0x72, - 0xE3, 0x4E, - 0x81, - 0x55, - 0xEC, - 0xA0, - 0x67, - 0x8E, - 0x3B, - 0x06 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_SCM_PD_PASSTHROUGH_INVDIMM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x30, 0xAC, 0x09, 0x43, - 0x11, 0x0D, - 0xE4, 0x11, - 0x91, - 0x91, - 0x08, - 0x00, - 0x20, - 0x0C, - 0x9A, - 0x66 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_COMPORT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE0, 0xD1, 0xE0, 0x86, - 0x89, 0x80, - 0xD0, 0x11, - 0x9C, - 0xE4, - 0x08, - 0x00, - 0x3E, - 0x30, - 0x1F, - 0x73 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x78, 0xE9, 0x36, 0x4D, - 0x25, 0xE3, - 0xCE, 0x11, - 0xBF, - 0xC1, - 0x08, - 0x00, - 0x2B, - 0xE1, - 0x03, - 0x18 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_PAGE_FILE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA1, 0x64, 0x0A, 0x0D, - 0xFC, 0x38, - 0xB8, 0x4D, - 0x9F, - 0xE7, - 0x3F, - 0x43, - 0x52, - 0xCD, - 0x7C, - 0x5C - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_HIBERNATION_FILE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x64, 0x4D, 0x62, 0xB7, - 0xA3, 0xB9, - 0xF8, 0x4C, - 0x80, - 0x11, - 0x5B, - 0x86, - 0xC9, - 0x40, - 0xE7, - 0xB7 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - public static ref readonly Guid FILE_TYPE_NOTIFICATION_GUID_CRASHDUMP_FILE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB7, 0x3E, 0x45, 0x9D, - 0xA6, 0xD2, - 0xBD, 0x4D, - 0xA2, - 0xE3, - 0xFB, - 0xD0, - 0xED, - 0x91, - 0x09, - 0xA9 - }; - - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [MethodImpl(MethodImplOptions.AggressiveInlining)] public static int CTL_CODE(int DeviceType, int Function, int Method, int Access) => (DeviceType << 16) | (Access << 14) | (Function << 2) | Method; } diff --git a/sources/Interop/Windows/Windows/um/winioctl/Windows.cs b/sources/Interop/Windows/Windows/um/winioctl/Windows.cs index a9107c0e4c..6a7f0dfcbd 100644 --- a/sources/Interop/Windows/Windows/um/winioctl/Windows.cs +++ b/sources/Interop/Windows/Windows/um/winioctl/Windows.cs @@ -6,6 +6,7 @@ using System; using System.Runtime.CompilerServices; using System.Runtime.Versioning; +using static TerraFX.Interop.Windows.GUID; using static TerraFX.Interop.Windows.STORAGE_IDENTIFIER_TYPE; namespace TerraFX.Interop.Windows @@ -281,12 +282,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define HiddenVolumeClassGuid GUID_DEVINTERFACE_HIDDEN_VOLUME")] public static ref readonly Guid HiddenVolumeClassGuid => ref GUID_DEVINTERFACE_HIDDEN_VOLUME; - [NativeTypeName("#define GUID_CLASS_COMPORT GUID_DEVINTERFACE_COMPORT")] - public static ref readonly Guid GUID_CLASS_COMPORT => ref GUID_DEVINTERFACE_COMPORT; - - [NativeTypeName("#define GUID_SERENUM_BUS_ENUMERATOR GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR")] - public static ref readonly Guid GUID_SERENUM_BUS_ENUMERATOR => ref GUID_DEVINTERFACE_SERENUM_BUS_ENUMERATOR; - [NativeTypeName("#define METHOD_BUFFERED 0")] public const int METHOD_BUFFERED = 0; @@ -326,9 +321,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define WRITE_COMPRESSION_INFO_VALID 0x00000010")] public const int WRITE_COMPRESSION_INFO_VALID = 0x00000010; - [NativeTypeName("#define READ_COMPRESSION_INFO_VALID 0x00000020")] - public const int READ_COMPRESSION_INFO_VALID = 0x00000020; - [NativeTypeName("#define MEDIA_ERASEABLE 0x00000001")] public const int MEDIA_ERASEABLE = 0x00000001; @@ -359,165 +351,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define DeviceDsmActionFlag_NonDestructive (0x80000000)")] public const uint DeviceDsmActionFlag_NonDestructive = (0x80000000); - [NativeTypeName("#define DeviceDsmAction_None (0x00000000u)")] - public const uint DeviceDsmAction_None = (0x00000000U); - - [NativeTypeName("#define DeviceDsmAction_Trim (0x00000001u)")] - public const uint DeviceDsmAction_Trim = (0x00000001U); - - [NativeTypeName("#define DeviceDsmAction_Notification (0x00000002u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_Notification = (0x00000002U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_OffloadRead (0x00000003u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_OffloadRead = (0x00000003U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_OffloadWrite (0x00000004u)")] - public const uint DeviceDsmAction_OffloadWrite = (0x00000004U); - - [NativeTypeName("#define DeviceDsmAction_Allocation (0x00000005u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_Allocation = (0x00000005U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_Repair (0x00000006u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_Repair = (0x00000006U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_Scrub (0x00000007u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_Scrub = (0x00000007U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_DrtQuery (0x00000008u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_DrtQuery = (0x00000008U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_DrtClear (0x00000009u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_DrtClear = (0x00000009U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_DrtDisable (0x0000000Au | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_DrtDisable = (0x0000000AU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_TieringQuery (0x0000000Bu | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_TieringQuery = (0x0000000BU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_Map (0x0000000Cu | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_Map = (0x0000000CU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_RegenerateParity (0x0000000Du | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_RegenerateParity = (0x0000000DU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_NvCache_Change_Priority (0x0000000Eu | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_NvCache_Change_Priority = (0x0000000EU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_NvCache_Evict (0x0000000Fu | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_NvCache_Evict = (0x0000000FU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_TopologyIdQuery (0x00000010u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_TopologyIdQuery = (0x00000010U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_GetPhysicalAddresses (0x00000011u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_GetPhysicalAddresses = (0x00000011U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_ScopeRegen (0x00000012u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_ScopeRegen = (0x00000012U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_ReportZones (0x00000013u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_ReportZones = (0x00000013U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_OpenZone (0x00000014u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_OpenZone = (0x00000014U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_FinishZone (0x00000015u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_FinishZone = (0x00000015U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_CloseZone (0x00000016u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_CloseZone = (0x00000016U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_ResetWritePointer (0x00000017u)")] - public const uint DeviceDsmAction_ResetWritePointer = (0x00000017U); - - [NativeTypeName("#define DeviceDsmAction_GetRangeErrorInfo (0x00000018u | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_GetRangeErrorInfo = (0x00000018U | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_WriteZeroes (0x00000019u)")] - public const uint DeviceDsmAction_WriteZeroes = (0x00000019U); - - [NativeTypeName("#define DeviceDsmAction_LostQuery (0x0000001Au | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_LostQuery = (0x0000001AU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_GetFreeSpace (0x0000001Bu | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_GetFreeSpace = (0x0000001BU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_ConversionQuery (0x0000001Cu | DeviceDsmActionFlag_NonDestructive)")] - public const uint DeviceDsmAction_ConversionQuery = (0x0000001CU | (0x80000000)); - - [NativeTypeName("#define DeviceDsmAction_VdtSet (0x0000001Du)")] - public const uint DeviceDsmAction_VdtSet = (0x0000001DU); - - [NativeTypeName("#define DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE 0x00000001")] - public const int DEVICE_DSM_FLAG_ENTIRE_DATA_SET_RANGE = 0x00000001; - - [NativeTypeName("#define DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED 0x80000000")] - public const uint DEVICE_DSM_FLAG_TRIM_NOT_FS_ALLOCATED = 0x80000000; - - [NativeTypeName("#define DEVICE_DSM_FLAG_TRIM_BYPASS_RZAT 0x40000000")] - public const int DEVICE_DSM_FLAG_TRIM_BYPASS_RZAT = 0x40000000; - - [NativeTypeName("#define DEVICE_DSM_NOTIFY_FLAG_BEGIN 0x00000001")] - public const int DEVICE_DSM_NOTIFY_FLAG_BEGIN = 0x00000001; - - [NativeTypeName("#define DEVICE_DSM_NOTIFY_FLAG_END 0x00000002")] - public const int DEVICE_DSM_NOTIFY_FLAG_END = 0x00000002; - - [NativeTypeName("#define DEVICE_DSM_FLAG_ALLOCATION_CONSOLIDATEABLE_ONLY 0x40000000")] - public const int DEVICE_DSM_FLAG_ALLOCATION_CONSOLIDATEABLE_ONLY = 0x40000000; - - [NativeTypeName("#define DEVICE_DSM_PARAMETERS_V1 1")] - public const int DEVICE_DSM_PARAMETERS_V1 = 1; - - [NativeTypeName("#define DEVICE_DATA_SET_LBP_STATE_PARAMETERS_VERSION_V1 DEVICE_DSM_PARAMETERS_V1")] - public const int DEVICE_DATA_SET_LBP_STATE_PARAMETERS_VERSION_V1 = 1; - - [NativeTypeName("#define DEVICE_DSM_ALLOCATION_OUTPUT_V1 (sizeof(DEVICE_DSM_ALLOCATION_OUTPUT))")] - public const uint DEVICE_DSM_ALLOCATION_OUTPUT_V1 = (32); - - [NativeTypeName("#define DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V1 DEVICE_DSM_ALLOCATION_OUTPUT_V1")] - public const uint DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V1 = (32); - - [NativeTypeName("#define DEVICE_DSM_ALLOCATION_OUTPUT_V2 (sizeof(DEVICE_DSM_ALLOCATION_OUTPUT2))")] - public const uint DEVICE_DSM_ALLOCATION_OUTPUT_V2 = (40); - - [NativeTypeName("#define DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V2 DEVICE_DSM_ALLOCATION_OUTPUT_V2")] - public const uint DEVICE_DATA_SET_LB_PROVISIONING_STATE_VERSION_V2 = (40); - - [NativeTypeName("#define DEVICE_DSM_FLAG_REPAIR_INPUT_TOPOLOGY_ID_PRESENT 0x40000000")] - public const int DEVICE_DSM_FLAG_REPAIR_INPUT_TOPOLOGY_ID_PRESENT = 0x40000000; - - [NativeTypeName("#define DEVICE_DSM_FLAG_REPAIR_OUTPUT_PARITY_EXTENT 0x20000000")] - public const int DEVICE_DSM_FLAG_REPAIR_OUTPUT_PARITY_EXTENT = 0x20000000; - - [NativeTypeName("#define DEVICE_DSM_FLAG_SCRUB_SKIP_IN_SYNC 0x10000000")] - public const int DEVICE_DSM_FLAG_SCRUB_SKIP_IN_SYNC = 0x10000000; - - [NativeTypeName("#define DEVICE_DSM_FLAG_SCRUB_OUTPUT_PARITY_EXTENT 0x20000000")] - public const int DEVICE_DSM_FLAG_SCRUB_OUTPUT_PARITY_EXTENT = 0x20000000; - - [NativeTypeName("#define DEVICE_DSM_FLAG_PHYSICAL_ADDRESSES_OMIT_TOTAL_RANGES 0x10000000")] - public const int DEVICE_DSM_FLAG_PHYSICAL_ADDRESSES_OMIT_TOTAL_RANGES = 0x10000000; - - [NativeTypeName("#define DEVICE_DSM_PHYSICAL_ADDRESS_HAS_MEMORY_ERROR ((LONGLONG)-1)")] - public const long DEVICE_DSM_PHYSICAL_ADDRESS_HAS_MEMORY_ERROR = ((long)(-1)); - - [NativeTypeName("#define DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1 1")] - public const int DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1 = 1; - - [NativeTypeName("#define DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_VERSION_V1 DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_V1")] - public const int DEVICE_DSM_PHYSICAL_ADDRESSES_OUTPUT_VERSION_V1 = 1; - - [NativeTypeName("#define DEVICE_STORAGE_NO_ERRORS 0x1")] - public const int DEVICE_STORAGE_NO_ERRORS = 0x1; - - [NativeTypeName("#define DEVICE_DSM_RANGE_ERROR_OUTPUT_V1 1")] - public const int DEVICE_DSM_RANGE_ERROR_OUTPUT_V1 = 1; - - [NativeTypeName("#define DEVICE_DSM_RANGE_ERROR_INFO_VERSION_V1 DEVICE_DSM_RANGE_ERROR_OUTPUT_V1")] - public const int DEVICE_DSM_RANGE_ERROR_INFO_VERSION_V1 = 1; - [NativeTypeName("#define DEVICEDUMP_STRUCTURE_VERSION_V1 1")] public const int DEVICEDUMP_STRUCTURE_VERSION_V1 = 1; @@ -527,30 +360,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define DDUMP_FLAG_DATA_READ_FROM_DEVICE 0x0001")] public const int DDUMP_FLAG_DATA_READ_FROM_DEVICE = 0x0001; - [NativeTypeName("#define FW_ISSUEID_NO_ISSUE 0x00000000")] - public const int FW_ISSUEID_NO_ISSUE = 0x00000000; - - [NativeTypeName("#define FW_ISSUEID_UNKNOWN 0xFFFFFFFF")] - public const uint FW_ISSUEID_UNKNOWN = 0xFFFFFFFF; - - [NativeTypeName("#define TC_PUBLIC_DEVICEDUMP_CONTENT_SMART 0x01")] - public const int TC_PUBLIC_DEVICEDUMP_CONTENT_SMART = 0x01; - - [NativeTypeName("#define TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG 0x02")] - public const int TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG = 0x02; - - [NativeTypeName("#define TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG_MAX 16")] - public const int TC_PUBLIC_DEVICEDUMP_CONTENT_GPLOG_MAX = 16; - - [NativeTypeName("#define TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH 16")] - public const int TC_DEVICEDUMP_SUBSECTION_DESC_LENGTH = 16; - - [NativeTypeName("#define TC_PUBLIC_DATA_TYPE_ATAGP \"ATAGPLogPages\"")] - public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATAGP => new byte[] { 0x41, 0x54, 0x41, 0x47, 0x50, 0x4C, 0x6F, 0x67, 0x50, 0x61, 0x67, 0x65, 0x73, 0x00 }; - - [NativeTypeName("#define TC_PUBLIC_DATA_TYPE_ATASMART \"ATASMARTPages\"")] - public static ReadOnlySpan TC_PUBLIC_DATA_TYPE_ATASMART => new byte[] { 0x41, 0x54, 0x41, 0x53, 0x4D, 0x41, 0x52, 0x54, 0x50, 0x61, 0x67, 0x65, 0x73, 0x00 }; - [NativeTypeName("#define CDB_SIZE 16")] public const int CDB_SIZE = 16; @@ -563,12 +372,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define DEVICEDUMP_CAP_RESTRICTED_SECTION 0x00000002")] public const int DEVICEDUMP_CAP_RESTRICTED_SECTION = 0x00000002; - [NativeTypeName("#define READ_COPY_NUMBER_KEY 0x52434e00")] - public const int READ_COPY_NUMBER_KEY = 0x52434e00; - - [NativeTypeName("#define READ_COPY_NUMBER_BYPASS_CACHE_FLAG 0x00000100")] - public const int READ_COPY_NUMBER_BYPASS_CACHE_FLAG = 0x00000100; - [NativeTypeName("#define STORATTRIBUTE_NONE 0")] public const int STORATTRIBUTE_NONE = 0; @@ -596,144 +399,15 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define SCM_PD_FIRMWARE_LAST_DOWNLOAD 0x1")] public const int SCM_PD_FIRMWARE_LAST_DOWNLOAD = 0x1; - [NativeTypeName("#define SMART_GET_VERSION CTL_CODE(IOCTL_DISK_BASE, 0x0020, METHOD_BUFFERED, FILE_READ_ACCESS)")] - public const int SMART_GET_VERSION = (((0x00000007) << 16) | (((0x0001)) << 14) | ((0x0020) << 2) | (0)); - - [NativeTypeName("#define SMART_SEND_DRIVE_COMMAND CTL_CODE(IOCTL_DISK_BASE, 0x0021, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)")] - public const int SMART_SEND_DRIVE_COMMAND = (((0x00000007) << 16) | (((0x0001) | (0x0002)) << 14) | ((0x0021) << 2) | (0)); - - [NativeTypeName("#define SMART_RCV_DRIVE_DATA CTL_CODE(IOCTL_DISK_BASE, 0x0022, METHOD_BUFFERED, FILE_READ_ACCESS | FILE_WRITE_ACCESS)")] - public const int SMART_RCV_DRIVE_DATA = (((0x00000007) << 16) | (((0x0001) | (0x0002)) << 14) | ((0x0022) << 2) | (0)); - [NativeTypeName("#define OBSOLETE_DISK_GET_WRITE_CACHE_STATE CTL_CODE(IOCTL_DISK_BASE, 0x0037, METHOD_BUFFERED, FILE_READ_ACCESS)")] public const int OBSOLETE_DISK_GET_WRITE_CACHE_STATE = (((0x00000007) << 16) | (((0x0001)) << 14) | ((0x0037) << 2) | (0)); - [NativeTypeName("#define PARTITION_ENTRY_UNUSED 0x00")] - public const int PARTITION_ENTRY_UNUSED = 0x00; - - [NativeTypeName("#define PARTITION_FAT_12 0x01")] - public const int PARTITION_FAT_12 = 0x01; - - [NativeTypeName("#define PARTITION_XENIX_1 0x02")] - public const int PARTITION_XENIX_1 = 0x02; - - [NativeTypeName("#define PARTITION_XENIX_2 0x03")] - public const int PARTITION_XENIX_2 = 0x03; - - [NativeTypeName("#define PARTITION_FAT_16 0x04")] - public const int PARTITION_FAT_16 = 0x04; - - [NativeTypeName("#define PARTITION_EXTENDED 0x05")] - public const int PARTITION_EXTENDED = 0x05; - - [NativeTypeName("#define PARTITION_HUGE 0x06")] - public const int PARTITION_HUGE = 0x06; - - [NativeTypeName("#define PARTITION_IFS 0x07")] - public const int PARTITION_IFS = 0x07; - - [NativeTypeName("#define PARTITION_OS2BOOTMGR 0x0A")] - public const int PARTITION_OS2BOOTMGR = 0x0A; - - [NativeTypeName("#define PARTITION_FAT32 0x0B")] - public const int PARTITION_FAT32 = 0x0B; - - [NativeTypeName("#define PARTITION_FAT32_XINT13 0x0C")] - public const int PARTITION_FAT32_XINT13 = 0x0C; - - [NativeTypeName("#define PARTITION_XINT13 0x0E")] - public const int PARTITION_XINT13 = 0x0E; - - [NativeTypeName("#define PARTITION_XINT13_EXTENDED 0x0F")] - public const int PARTITION_XINT13_EXTENDED = 0x0F; - - [NativeTypeName("#define PARTITION_MSFT_RECOVERY 0x27")] - public const int PARTITION_MSFT_RECOVERY = 0x27; - - [NativeTypeName("#define PARTITION_MAIN_OS 0x28")] - public const int PARTITION_MAIN_OS = 0x28; - [NativeTypeName("#define PARTIITON_OS_DATA 0x29")] public const int PARTIITON_OS_DATA = 0x29; - [NativeTypeName("#define PARTITION_PRE_INSTALLED 0x2a")] - public const int PARTITION_PRE_INSTALLED = 0x2a; - - [NativeTypeName("#define PARTITION_BSP 0x2b")] - public const int PARTITION_BSP = 0x2b; - - [NativeTypeName("#define PARTITION_DPP 0x2c")] - public const int PARTITION_DPP = 0x2c; - - [NativeTypeName("#define PARTITION_WINDOWS_SYSTEM 0x2d")] - public const int PARTITION_WINDOWS_SYSTEM = 0x2d; - - [NativeTypeName("#define PARTITION_PREP 0x41")] - public const int PARTITION_PREP = 0x41; - - [NativeTypeName("#define PARTITION_LDM 0x42")] - public const int PARTITION_LDM = 0x42; - - [NativeTypeName("#define PARTITION_DM 0x54")] - public const int PARTITION_DM = 0x54; - - [NativeTypeName("#define PARTITION_EZDRIVE 0x55")] - public const int PARTITION_EZDRIVE = 0x55; - - [NativeTypeName("#define PARTITION_UNIX 0x63")] - public const int PARTITION_UNIX = 0x63; - - [NativeTypeName("#define PARTITION_SPACES_DATA 0xD7")] - public const int PARTITION_SPACES_DATA = 0xD7; - - [NativeTypeName("#define PARTITION_SPACES 0xE7")] - public const int PARTITION_SPACES = 0xE7; - - [NativeTypeName("#define PARTITION_GPT 0xEE")] - public const int PARTITION_GPT = 0xEE; - - [NativeTypeName("#define PARTITION_SYSTEM 0xEF")] - public const int PARTITION_SYSTEM = 0xEF; - [NativeTypeName("#define VALID_NTFT 0xC0")] public const int VALID_NTFT = 0xC0; - [NativeTypeName("#define PARTITION_NTFT 0x80")] - public const int PARTITION_NTFT = 0x80; - - [NativeTypeName("#define GPT_ATTRIBUTE_PLATFORM_REQUIRED (0x0000000000000001)")] - public const int GPT_ATTRIBUTE_PLATFORM_REQUIRED = (0x0000000000000001); - - [NativeTypeName("#define GPT_ATTRIBUTE_NO_BLOCK_IO_PROTOCOL (0x0000000000000002)")] - public const int GPT_ATTRIBUTE_NO_BLOCK_IO_PROTOCOL = (0x0000000000000002); - - [NativeTypeName("#define GPT_ATTRIBUTE_LEGACY_BIOS_BOOTABLE (0x0000000000000004)")] - public const int GPT_ATTRIBUTE_LEGACY_BIOS_BOOTABLE = (0x0000000000000004); - - [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER (0x8000000000000000)")] - public const ulong GPT_BASIC_DATA_ATTRIBUTE_NO_DRIVE_LETTER = (0x8000000000000000); - - [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_HIDDEN (0x4000000000000000)")] - public const long GPT_BASIC_DATA_ATTRIBUTE_HIDDEN = (0x4000000000000000); - - [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY (0x2000000000000000)")] - public const long GPT_BASIC_DATA_ATTRIBUTE_SHADOW_COPY = (0x2000000000000000); - - [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY (0x1000000000000000)")] - public const long GPT_BASIC_DATA_ATTRIBUTE_READ_ONLY = (0x1000000000000000); - - [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_OFFLINE (0x0800000000000000)")] - public const long GPT_BASIC_DATA_ATTRIBUTE_OFFLINE = (0x0800000000000000); - - [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_DAX (0x0400000000000000)")] - public const long GPT_BASIC_DATA_ATTRIBUTE_DAX = (0x0400000000000000); - - [NativeTypeName("#define GPT_BASIC_DATA_ATTRIBUTE_SERVICE (0x0200000000000000)")] - public const long GPT_BASIC_DATA_ATTRIBUTE_SERVICE = (0x0200000000000000); - - [NativeTypeName("#define GPT_SPACES_ATTRIBUTE_NO_METADATA (0x8000000000000000)")] - public const ulong GPT_SPACES_ATTRIBUTE_NO_METADATA = (0x8000000000000000); - [NativeTypeName("#define HIST_NO_OF_BUCKETS 24")] public const int HIST_NO_OF_BUCKETS = 24; @@ -770,111 +444,21 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define ID_CMD 0xEC")] public const int ID_CMD = 0xEC; - [NativeTypeName("#define SMART_CMD 0xB0")] - public const int SMART_CMD = 0xB0; - - [NativeTypeName("#define SMART_CYL_LOW 0x4F")] - public const int SMART_CYL_LOW = 0x4F; - - [NativeTypeName("#define SMART_CYL_HI 0xC2")] - public const int SMART_CYL_HI = 0xC2; - - [NativeTypeName("#define SMART_NO_ERROR 0")] - public const int SMART_NO_ERROR = 0; - - [NativeTypeName("#define SMART_IDE_ERROR 1")] - public const int SMART_IDE_ERROR = 1; - - [NativeTypeName("#define SMART_INVALID_FLAG 2")] - public const int SMART_INVALID_FLAG = 2; - - [NativeTypeName("#define SMART_INVALID_COMMAND 3")] - public const int SMART_INVALID_COMMAND = 3; - - [NativeTypeName("#define SMART_INVALID_BUFFER 4")] - public const int SMART_INVALID_BUFFER = 4; - - [NativeTypeName("#define SMART_INVALID_DRIVE 5")] - public const int SMART_INVALID_DRIVE = 5; - - [NativeTypeName("#define SMART_INVALID_IOCTL 6")] - public const int SMART_INVALID_IOCTL = 6; - - [NativeTypeName("#define SMART_ERROR_NO_MEM 7")] - public const int SMART_ERROR_NO_MEM = 7; - - [NativeTypeName("#define SMART_INVALID_REGISTER 8")] - public const int SMART_INVALID_REGISTER = 8; - - [NativeTypeName("#define SMART_NOT_SUPPORTED 9")] - public const int SMART_NOT_SUPPORTED = 9; - - [NativeTypeName("#define SMART_NO_IDE_DEVICE 10")] - public const int SMART_NO_IDE_DEVICE = 10; - - [NativeTypeName("#define SMART_OFFLINE_ROUTINE_OFFLINE 0")] - public const int SMART_OFFLINE_ROUTINE_OFFLINE = 0; - - [NativeTypeName("#define SMART_SHORT_SELFTEST_OFFLINE 1")] - public const int SMART_SHORT_SELFTEST_OFFLINE = 1; - - [NativeTypeName("#define SMART_EXTENDED_SELFTEST_OFFLINE 2")] - public const int SMART_EXTENDED_SELFTEST_OFFLINE = 2; - - [NativeTypeName("#define SMART_ABORT_OFFLINE_SELFTEST 127")] - public const int SMART_ABORT_OFFLINE_SELFTEST = 127; - - [NativeTypeName("#define SMART_SHORT_SELFTEST_CAPTIVE 129")] - public const int SMART_SHORT_SELFTEST_CAPTIVE = 129; - - [NativeTypeName("#define SMART_EXTENDED_SELFTEST_CAPTIVE 130")] - public const int SMART_EXTENDED_SELFTEST_CAPTIVE = 130; - - [NativeTypeName("#define READ_ATTRIBUTE_BUFFER_SIZE 512")] - public const int READ_ATTRIBUTE_BUFFER_SIZE = 512; - [NativeTypeName("#define IDENTIFY_BUFFER_SIZE 512")] public const int IDENTIFY_BUFFER_SIZE = 512; - [NativeTypeName("#define READ_THRESHOLD_BUFFER_SIZE 512")] - public const int READ_THRESHOLD_BUFFER_SIZE = 512; - - [NativeTypeName("#define SMART_LOG_SECTOR_SIZE 512")] - public const int SMART_LOG_SECTOR_SIZE = 512; - - [NativeTypeName("#define READ_ATTRIBUTES 0xD0")] - public const int READ_ATTRIBUTES = 0xD0; - - [NativeTypeName("#define READ_THRESHOLDS 0xD1")] - public const int READ_THRESHOLDS = 0xD1; - - [NativeTypeName("#define ENABLE_DISABLE_AUTOSAVE 0xD2")] - public const int ENABLE_DISABLE_AUTOSAVE = 0xD2; - [NativeTypeName("#define SAVE_ATTRIBUTE_VALUES 0xD3")] public const int SAVE_ATTRIBUTE_VALUES = 0xD3; [NativeTypeName("#define EXECUTE_OFFLINE_DIAGS 0xD4")] public const int EXECUTE_OFFLINE_DIAGS = 0xD4; - [NativeTypeName("#define SMART_READ_LOG 0xD5")] - public const int SMART_READ_LOG = 0xD5; - - [NativeTypeName("#define SMART_WRITE_LOG 0xd6")] - public const int SMART_WRITE_LOG = 0xd6; - - [NativeTypeName("#define ENABLE_SMART 0xD8")] - public const int ENABLE_SMART = 0xD8; - [NativeTypeName("#define DISABLE_SMART 0xD9")] public const int DISABLE_SMART = 0xD9; [NativeTypeName("#define RETURN_SMART_STATUS 0xDA")] public const int RETURN_SMART_STATUS = 0xDA; - [NativeTypeName("#define ENABLE_DISABLE_AUTO_OFFLINE 0xDB")] - public const int ENABLE_DISABLE_AUTO_OFFLINE = 0xDB; - [NativeTypeName("#define DISK_ATTRIBUTE_OFFLINE 0x0000000000000001")] public const int DISK_ATTRIBUTE_OFFLINE = 0x0000000000000001; @@ -887,144 +471,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define REVISION_LENGTH 4")] public const int REVISION_LENGTH = 4; - [NativeTypeName("#define SERIAL_NUMBER_LENGTH 32")] - public const int SERIAL_NUMBER_LENGTH = 32; - - [NativeTypeName("#define CHANGER_BAR_CODE_SCANNER_INSTALLED 0x00000001")] - public const int CHANGER_BAR_CODE_SCANNER_INSTALLED = 0x00000001; - - [NativeTypeName("#define CHANGER_INIT_ELEM_STAT_WITH_RANGE 0x00000002")] - public const int CHANGER_INIT_ELEM_STAT_WITH_RANGE = 0x00000002; - - [NativeTypeName("#define CHANGER_CLOSE_IEPORT 0x00000004")] - public const int CHANGER_CLOSE_IEPORT = 0x00000004; - - [NativeTypeName("#define CHANGER_OPEN_IEPORT 0x00000008")] - public const int CHANGER_OPEN_IEPORT = 0x00000008; - - [NativeTypeName("#define CHANGER_STATUS_NON_VOLATILE 0x00000010")] - public const int CHANGER_STATUS_NON_VOLATILE = 0x00000010; - - [NativeTypeName("#define CHANGER_EXCHANGE_MEDIA 0x00000020")] - public const int CHANGER_EXCHANGE_MEDIA = 0x00000020; - - [NativeTypeName("#define CHANGER_CLEANER_SLOT 0x00000040")] - public const int CHANGER_CLEANER_SLOT = 0x00000040; - - [NativeTypeName("#define CHANGER_LOCK_UNLOCK 0x00000080")] - public const int CHANGER_LOCK_UNLOCK = 0x00000080; - - [NativeTypeName("#define CHANGER_CARTRIDGE_MAGAZINE 0x00000100")] - public const int CHANGER_CARTRIDGE_MAGAZINE = 0x00000100; - - [NativeTypeName("#define CHANGER_MEDIUM_FLIP 0x00000200")] - public const int CHANGER_MEDIUM_FLIP = 0x00000200; - - [NativeTypeName("#define CHANGER_POSITION_TO_ELEMENT 0x00000400")] - public const int CHANGER_POSITION_TO_ELEMENT = 0x00000400; - - [NativeTypeName("#define CHANGER_REPORT_IEPORT_STATE 0x00000800")] - public const int CHANGER_REPORT_IEPORT_STATE = 0x00000800; - - [NativeTypeName("#define CHANGER_STORAGE_DRIVE 0x00001000")] - public const int CHANGER_STORAGE_DRIVE = 0x00001000; - - [NativeTypeName("#define CHANGER_STORAGE_IEPORT 0x00002000")] - public const int CHANGER_STORAGE_IEPORT = 0x00002000; - - [NativeTypeName("#define CHANGER_STORAGE_SLOT 0x00004000")] - public const int CHANGER_STORAGE_SLOT = 0x00004000; - - [NativeTypeName("#define CHANGER_STORAGE_TRANSPORT 0x00008000")] - public const int CHANGER_STORAGE_TRANSPORT = 0x00008000; - - [NativeTypeName("#define CHANGER_DRIVE_CLEANING_REQUIRED 0x00010000")] - public const int CHANGER_DRIVE_CLEANING_REQUIRED = 0x00010000; - - [NativeTypeName("#define CHANGER_PREDISMOUNT_EJECT_REQUIRED 0x00020000")] - public const int CHANGER_PREDISMOUNT_EJECT_REQUIRED = 0x00020000; - - [NativeTypeName("#define CHANGER_CLEANER_ACCESS_NOT_VALID 0x00040000")] - public const int CHANGER_CLEANER_ACCESS_NOT_VALID = 0x00040000; - - [NativeTypeName("#define CHANGER_PREMOUNT_EJECT_REQUIRED 0x00080000")] - public const int CHANGER_PREMOUNT_EJECT_REQUIRED = 0x00080000; - - [NativeTypeName("#define CHANGER_VOLUME_IDENTIFICATION 0x00100000")] - public const int CHANGER_VOLUME_IDENTIFICATION = 0x00100000; - - [NativeTypeName("#define CHANGER_VOLUME_SEARCH 0x00200000")] - public const int CHANGER_VOLUME_SEARCH = 0x00200000; - - [NativeTypeName("#define CHANGER_VOLUME_ASSERT 0x00400000")] - public const int CHANGER_VOLUME_ASSERT = 0x00400000; - - [NativeTypeName("#define CHANGER_VOLUME_REPLACE 0x00800000")] - public const int CHANGER_VOLUME_REPLACE = 0x00800000; - - [NativeTypeName("#define CHANGER_VOLUME_UNDEFINE 0x01000000")] - public const int CHANGER_VOLUME_UNDEFINE = 0x01000000; - - [NativeTypeName("#define CHANGER_SERIAL_NUMBER_VALID 0x04000000")] - public const int CHANGER_SERIAL_NUMBER_VALID = 0x04000000; - - [NativeTypeName("#define CHANGER_DEVICE_REINITIALIZE_CAPABLE 0x08000000")] - public const int CHANGER_DEVICE_REINITIALIZE_CAPABLE = 0x08000000; - - [NativeTypeName("#define CHANGER_KEYPAD_ENABLE_DISABLE 0x10000000")] - public const int CHANGER_KEYPAD_ENABLE_DISABLE = 0x10000000; - - [NativeTypeName("#define CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS 0x20000000")] - public const int CHANGER_DRIVE_EMPTY_ON_DOOR_ACCESS = 0x20000000; - - [NativeTypeName("#define CHANGER_RESERVED_BIT 0x80000000")] - public const uint CHANGER_RESERVED_BIT = 0x80000000; - - [NativeTypeName("#define CHANGER_PREDISMOUNT_ALIGN_TO_SLOT 0x80000001")] - public const uint CHANGER_PREDISMOUNT_ALIGN_TO_SLOT = 0x80000001; - - [NativeTypeName("#define CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE 0x80000002")] - public const uint CHANGER_PREDISMOUNT_ALIGN_TO_DRIVE = 0x80000002; - - [NativeTypeName("#define CHANGER_CLEANER_AUTODISMOUNT 0x80000004")] - public const uint CHANGER_CLEANER_AUTODISMOUNT = 0x80000004; - - [NativeTypeName("#define CHANGER_TRUE_EXCHANGE_CAPABLE 0x80000008")] - public const uint CHANGER_TRUE_EXCHANGE_CAPABLE = 0x80000008; - - [NativeTypeName("#define CHANGER_SLOTS_USE_TRAYS 0x80000010")] - public const uint CHANGER_SLOTS_USE_TRAYS = 0x80000010; - - [NativeTypeName("#define CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR 0x80000020")] - public const uint CHANGER_RTN_MEDIA_TO_ORIGINAL_ADDR = 0x80000020; - - [NativeTypeName("#define CHANGER_CLEANER_OPS_NOT_SUPPORTED 0x80000040")] - public const uint CHANGER_CLEANER_OPS_NOT_SUPPORTED = 0x80000040; - - [NativeTypeName("#define CHANGER_IEPORT_USER_CONTROL_OPEN 0x80000080")] - public const uint CHANGER_IEPORT_USER_CONTROL_OPEN = 0x80000080; - - [NativeTypeName("#define CHANGER_IEPORT_USER_CONTROL_CLOSE 0x80000100")] - public const uint CHANGER_IEPORT_USER_CONTROL_CLOSE = 0x80000100; - - [NativeTypeName("#define CHANGER_MOVE_EXTENDS_IEPORT 0x80000200")] - public const uint CHANGER_MOVE_EXTENDS_IEPORT = 0x80000200; - - [NativeTypeName("#define CHANGER_MOVE_RETRACTS_IEPORT 0x80000400")] - public const uint CHANGER_MOVE_RETRACTS_IEPORT = 0x80000400; - - [NativeTypeName("#define CHANGER_TO_TRANSPORT 0x01")] - public const int CHANGER_TO_TRANSPORT = 0x01; - - [NativeTypeName("#define CHANGER_TO_SLOT 0x02")] - public const int CHANGER_TO_SLOT = 0x02; - - [NativeTypeName("#define CHANGER_TO_IEPORT 0x04")] - public const int CHANGER_TO_IEPORT = 0x04; - - [NativeTypeName("#define CHANGER_TO_DRIVE 0x08")] - public const int CHANGER_TO_DRIVE = 0x08; - [NativeTypeName("#define LOCK_UNLOCK_IEPORT 0x01")] public const int LOCK_UNLOCK_IEPORT = 0x01; @@ -1046,48 +492,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define RETRACT_IEPORT 3")] public const int RETRACT_IEPORT = 3; - [NativeTypeName("#define ELEMENT_STATUS_FULL 0x00000001")] - public const int ELEMENT_STATUS_FULL = 0x00000001; - - [NativeTypeName("#define ELEMENT_STATUS_IMPEXP 0x00000002")] - public const int ELEMENT_STATUS_IMPEXP = 0x00000002; - - [NativeTypeName("#define ELEMENT_STATUS_EXCEPT 0x00000004")] - public const int ELEMENT_STATUS_EXCEPT = 0x00000004; - - [NativeTypeName("#define ELEMENT_STATUS_ACCESS 0x00000008")] - public const int ELEMENT_STATUS_ACCESS = 0x00000008; - - [NativeTypeName("#define ELEMENT_STATUS_EXENAB 0x00000010")] - public const int ELEMENT_STATUS_EXENAB = 0x00000010; - - [NativeTypeName("#define ELEMENT_STATUS_INENAB 0x00000020")] - public const int ELEMENT_STATUS_INENAB = 0x00000020; - - [NativeTypeName("#define ELEMENT_STATUS_PRODUCT_DATA 0x00000040")] - public const int ELEMENT_STATUS_PRODUCT_DATA = 0x00000040; - - [NativeTypeName("#define ELEMENT_STATUS_LUN_VALID 0x00001000")] - public const int ELEMENT_STATUS_LUN_VALID = 0x00001000; - - [NativeTypeName("#define ELEMENT_STATUS_ID_VALID 0x00002000")] - public const int ELEMENT_STATUS_ID_VALID = 0x00002000; - - [NativeTypeName("#define ELEMENT_STATUS_NOT_BUS 0x00008000")] - public const int ELEMENT_STATUS_NOT_BUS = 0x00008000; - - [NativeTypeName("#define ELEMENT_STATUS_INVERT 0x00400000")] - public const int ELEMENT_STATUS_INVERT = 0x00400000; - - [NativeTypeName("#define ELEMENT_STATUS_SVALID 0x00800000")] - public const int ELEMENT_STATUS_SVALID = 0x00800000; - - [NativeTypeName("#define ELEMENT_STATUS_PVOLTAG 0x10000000")] - public const int ELEMENT_STATUS_PVOLTAG = 0x10000000; - - [NativeTypeName("#define ELEMENT_STATUS_AVOLTAG 0x20000000")] - public const int ELEMENT_STATUS_AVOLTAG = 0x20000000; - [NativeTypeName("#define SEARCH_ALL 0x0")] public const int SEARCH_ALL = 0x0; @@ -1124,204 +528,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define UNDEFINE_ALTERNATE 0xD")] public const int UNDEFINE_ALTERNATE = 0xD; - [NativeTypeName("#define SERIAL_LSRMST_ESCAPE ((BYTE )0x00)")] - public const byte SERIAL_LSRMST_ESCAPE = ((byte)(0x00)); - - [NativeTypeName("#define SERIAL_LSRMST_LSR_DATA ((BYTE )0x01)")] - public const byte SERIAL_LSRMST_LSR_DATA = ((byte)(0x01)); - - [NativeTypeName("#define SERIAL_LSRMST_LSR_NODATA ((BYTE )0x02)")] - public const byte SERIAL_LSRMST_LSR_NODATA = ((byte)(0x02)); - - [NativeTypeName("#define SERIAL_LSRMST_MST ((BYTE )0x03)")] - public const byte SERIAL_LSRMST_MST = ((byte)(0x03)); - - [NativeTypeName("#define SERIAL_IOC_FCR_FIFO_ENABLE ((DWORD)0x00000001)")] - public const uint SERIAL_IOC_FCR_FIFO_ENABLE = ((uint)(0x00000001)); - - [NativeTypeName("#define SERIAL_IOC_FCR_RCVR_RESET ((DWORD)0x00000002)")] - public const uint SERIAL_IOC_FCR_RCVR_RESET = ((uint)(0x00000002)); - - [NativeTypeName("#define SERIAL_IOC_FCR_XMIT_RESET ((DWORD)0x00000004)")] - public const uint SERIAL_IOC_FCR_XMIT_RESET = ((uint)(0x00000004)); - - [NativeTypeName("#define SERIAL_IOC_FCR_DMA_MODE ((DWORD)0x00000008)")] - public const uint SERIAL_IOC_FCR_DMA_MODE = ((uint)(0x00000008)); - - [NativeTypeName("#define SERIAL_IOC_FCR_RES1 ((DWORD)0x00000010)")] - public const uint SERIAL_IOC_FCR_RES1 = ((uint)(0x00000010)); - - [NativeTypeName("#define SERIAL_IOC_FCR_RES2 ((DWORD)0x00000020)")] - public const uint SERIAL_IOC_FCR_RES2 = ((uint)(0x00000020)); - - [NativeTypeName("#define SERIAL_IOC_FCR_RCVR_TRIGGER_LSB ((DWORD)0x00000040)")] - public const uint SERIAL_IOC_FCR_RCVR_TRIGGER_LSB = ((uint)(0x00000040)); - - [NativeTypeName("#define SERIAL_IOC_FCR_RCVR_TRIGGER_MSB ((DWORD)0x00000080)")] - public const uint SERIAL_IOC_FCR_RCVR_TRIGGER_MSB = ((uint)(0x00000080)); - - [NativeTypeName("#define SERIAL_IOC_MCR_DTR ((DWORD)0x00000001)")] - public const uint SERIAL_IOC_MCR_DTR = ((uint)(0x00000001)); - - [NativeTypeName("#define SERIAL_IOC_MCR_RTS ((DWORD)0x00000002)")] - public const uint SERIAL_IOC_MCR_RTS = ((uint)(0x00000002)); - - [NativeTypeName("#define SERIAL_IOC_MCR_OUT1 ((DWORD)0x00000004)")] - public const uint SERIAL_IOC_MCR_OUT1 = ((uint)(0x00000004)); - - [NativeTypeName("#define SERIAL_IOC_MCR_OUT2 ((DWORD)0x00000008)")] - public const uint SERIAL_IOC_MCR_OUT2 = ((uint)(0x00000008)); - - [NativeTypeName("#define SERIAL_IOC_MCR_LOOP ((DWORD)0x00000010)")] - public const uint SERIAL_IOC_MCR_LOOP = ((uint)(0x00000010)); - - [NativeTypeName("#define GET_VOLUME_BITMAP_FLAG_MASK_METADATA 0x00000001")] - public const int GET_VOLUME_BITMAP_FLAG_MASK_METADATA = 0x00000001; - - [NativeTypeName("#define FLAG_USN_TRACK_MODIFIED_RANGES_ENABLE 0x00000001")] - public const int FLAG_USN_TRACK_MODIFIED_RANGES_ENABLE = 0x00000001; - - [NativeTypeName("#define USN_PAGE_SIZE (0x1000)")] - public const int USN_PAGE_SIZE = (0x1000); - - [NativeTypeName("#define USN_REASON_DATA_OVERWRITE (0x00000001)")] - public const int USN_REASON_DATA_OVERWRITE = (0x00000001); - - [NativeTypeName("#define USN_REASON_DATA_EXTEND (0x00000002)")] - public const int USN_REASON_DATA_EXTEND = (0x00000002); - - [NativeTypeName("#define USN_REASON_DATA_TRUNCATION (0x00000004)")] - public const int USN_REASON_DATA_TRUNCATION = (0x00000004); - - [NativeTypeName("#define USN_REASON_NAMED_DATA_OVERWRITE (0x00000010)")] - public const int USN_REASON_NAMED_DATA_OVERWRITE = (0x00000010); - - [NativeTypeName("#define USN_REASON_NAMED_DATA_EXTEND (0x00000020)")] - public const int USN_REASON_NAMED_DATA_EXTEND = (0x00000020); - - [NativeTypeName("#define USN_REASON_NAMED_DATA_TRUNCATION (0x00000040)")] - public const int USN_REASON_NAMED_DATA_TRUNCATION = (0x00000040); - - [NativeTypeName("#define USN_REASON_FILE_CREATE (0x00000100)")] - public const int USN_REASON_FILE_CREATE = (0x00000100); - - [NativeTypeName("#define USN_REASON_FILE_DELETE (0x00000200)")] - public const int USN_REASON_FILE_DELETE = (0x00000200); - - [NativeTypeName("#define USN_REASON_EA_CHANGE (0x00000400)")] - public const int USN_REASON_EA_CHANGE = (0x00000400); - - [NativeTypeName("#define USN_REASON_SECURITY_CHANGE (0x00000800)")] - public const int USN_REASON_SECURITY_CHANGE = (0x00000800); - - [NativeTypeName("#define USN_REASON_RENAME_OLD_NAME (0x00001000)")] - public const int USN_REASON_RENAME_OLD_NAME = (0x00001000); - - [NativeTypeName("#define USN_REASON_RENAME_NEW_NAME (0x00002000)")] - public const int USN_REASON_RENAME_NEW_NAME = (0x00002000); - - [NativeTypeName("#define USN_REASON_INDEXABLE_CHANGE (0x00004000)")] - public const int USN_REASON_INDEXABLE_CHANGE = (0x00004000); - - [NativeTypeName("#define USN_REASON_BASIC_INFO_CHANGE (0x00008000)")] - public const int USN_REASON_BASIC_INFO_CHANGE = (0x00008000); - - [NativeTypeName("#define USN_REASON_HARD_LINK_CHANGE (0x00010000)")] - public const int USN_REASON_HARD_LINK_CHANGE = (0x00010000); - - [NativeTypeName("#define USN_REASON_COMPRESSION_CHANGE (0x00020000)")] - public const int USN_REASON_COMPRESSION_CHANGE = (0x00020000); - - [NativeTypeName("#define USN_REASON_ENCRYPTION_CHANGE (0x00040000)")] - public const int USN_REASON_ENCRYPTION_CHANGE = (0x00040000); - - [NativeTypeName("#define USN_REASON_OBJECT_ID_CHANGE (0x00080000)")] - public const int USN_REASON_OBJECT_ID_CHANGE = (0x00080000); - - [NativeTypeName("#define USN_REASON_REPARSE_POINT_CHANGE (0x00100000)")] - public const int USN_REASON_REPARSE_POINT_CHANGE = (0x00100000); - - [NativeTypeName("#define USN_REASON_STREAM_CHANGE (0x00200000)")] - public const int USN_REASON_STREAM_CHANGE = (0x00200000); - - [NativeTypeName("#define USN_REASON_TRANSACTED_CHANGE (0x00400000)")] - public const int USN_REASON_TRANSACTED_CHANGE = (0x00400000); - - [NativeTypeName("#define USN_REASON_INTEGRITY_CHANGE (0x00800000)")] - public const int USN_REASON_INTEGRITY_CHANGE = (0x00800000); - - [NativeTypeName("#define USN_REASON_DESIRED_STORAGE_CLASS_CHANGE (0x01000000)")] - public const int USN_REASON_DESIRED_STORAGE_CLASS_CHANGE = (0x01000000); - - [NativeTypeName("#define USN_REASON_CLOSE (0x80000000)")] - public const uint USN_REASON_CLOSE = (0x80000000); - - [NativeTypeName("#define USN_DELETE_FLAG_DELETE (0x00000001)")] - public const int USN_DELETE_FLAG_DELETE = (0x00000001); - - [NativeTypeName("#define USN_DELETE_FLAG_NOTIFY (0x00000002)")] - public const int USN_DELETE_FLAG_NOTIFY = (0x00000002); - - [NativeTypeName("#define USN_DELETE_VALID_FLAGS (0x00000003)")] - public const int USN_DELETE_VALID_FLAGS = (0x00000003); - - [NativeTypeName("#define USN_SOURCE_DATA_MANAGEMENT (0x00000001)")] - public const int USN_SOURCE_DATA_MANAGEMENT = (0x00000001); - - [NativeTypeName("#define USN_SOURCE_AUXILIARY_DATA (0x00000002)")] - public const int USN_SOURCE_AUXILIARY_DATA = (0x00000002); - - [NativeTypeName("#define USN_SOURCE_REPLICATION_MANAGEMENT (0x00000004)")] - public const int USN_SOURCE_REPLICATION_MANAGEMENT = (0x00000004); - - [NativeTypeName("#define USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT (0x00000008)")] - public const int USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT = (0x00000008); - - [NativeTypeName("#define USN_SOURCE_VALID_FLAGS (USN_SOURCE_DATA_MANAGEMENT | \\\r\n USN_SOURCE_AUXILIARY_DATA | \\\r\n USN_SOURCE_REPLICATION_MANAGEMENT | \\\r\n USN_SOURCE_CLIENT_REPLICATION_MANAGEMENT)")] - public const int USN_SOURCE_VALID_FLAGS = ((0x00000001) | (0x00000002) | (0x00000004) | (0x00000008)); - - [NativeTypeName("#define MARK_HANDLE_PROTECT_CLUSTERS (0x00000001)")] - public const int MARK_HANDLE_PROTECT_CLUSTERS = (0x00000001); - - [NativeTypeName("#define MARK_HANDLE_TXF_SYSTEM_LOG (0x00000004)")] - public const int MARK_HANDLE_TXF_SYSTEM_LOG = (0x00000004); - - [NativeTypeName("#define MARK_HANDLE_NOT_TXF_SYSTEM_LOG (0x00000008)")] - public const int MARK_HANDLE_NOT_TXF_SYSTEM_LOG = (0x00000008); - - [NativeTypeName("#define MARK_HANDLE_REALTIME (0x00000020)")] - public const int MARK_HANDLE_REALTIME = (0x00000020); - - [NativeTypeName("#define MARK_HANDLE_NOT_REALTIME (0x00000040)")] - public const int MARK_HANDLE_NOT_REALTIME = (0x00000040); - - [NativeTypeName("#define MARK_HANDLE_CLOUD_SYNC (0x00000800)")] - public const int MARK_HANDLE_CLOUD_SYNC = (0x00000800); - - [NativeTypeName("#define MARK_HANDLE_READ_COPY (0x00000080)")] - public const int MARK_HANDLE_READ_COPY = (0x00000080); - - [NativeTypeName("#define MARK_HANDLE_NOT_READ_COPY (0x00000100)")] - public const int MARK_HANDLE_NOT_READ_COPY = (0x00000100); - - [NativeTypeName("#define MARK_HANDLE_FILTER_METADATA (0x00000200)")] - public const int MARK_HANDLE_FILTER_METADATA = (0x00000200); - - [NativeTypeName("#define MARK_HANDLE_RETURN_PURGE_FAILURE (0x00000400)")] - public const int MARK_HANDLE_RETURN_PURGE_FAILURE = (0x00000400); - - [NativeTypeName("#define MARK_HANDLE_DISABLE_FILE_METADATA_OPTIMIZATION (0x00001000)")] - public const int MARK_HANDLE_DISABLE_FILE_METADATA_OPTIMIZATION = (0x00001000); - - [NativeTypeName("#define MARK_HANDLE_ENABLE_USN_SOURCE_ON_PAGING_IO (0x00002000)")] - public const int MARK_HANDLE_ENABLE_USN_SOURCE_ON_PAGING_IO = (0x00002000); - - [NativeTypeName("#define MARK_HANDLE_SKIP_COHERENCY_SYNC_DISALLOW_WRITES (0x00004000)")] - public const int MARK_HANDLE_SKIP_COHERENCY_SYNC_DISALLOW_WRITES = (0x00004000); - - [NativeTypeName("#define MARK_HANDLE_ENABLE_CPU_CACHE (0x10000000)")] - public const int MARK_HANDLE_ENABLE_CPU_CACHE = (0x10000000); - [NativeTypeName("#define VOLUME_IS_DIRTY (0x00000001)")] public const int VOLUME_IS_DIRTY = (0x00000001); @@ -1343,12 +549,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define FILESYSTEM_STATISTICS_TYPE_REFS 4")] public const int FILESYSTEM_STATISTICS_TYPE_REFS = 4; - [NativeTypeName("#define STREAM_SET_ENCRYPTION 0x00000003")] - public const int STREAM_SET_ENCRYPTION = 0x00000003; - - [NativeTypeName("#define STREAM_CLEAR_ENCRYPTION 0x00000004")] - public const int STREAM_CLEAR_ENCRYPTION = 0x00000004; - [NativeTypeName("#define MAXIMUM_ENCRYPTION_VALUE 0x00000004")] public const int MAXIMUM_ENCRYPTION_VALUE = 0x00000004; @@ -1367,57 +567,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define COPYFILE_SIS_FLAGS 0x0003")] public const int COPYFILE_SIS_FLAGS = 0x0003; - [NativeTypeName("#define SET_REPAIR_ENABLED (0x00000001)")] - public const int SET_REPAIR_ENABLED = (0x00000001); - - [NativeTypeName("#define SET_REPAIR_WARN_ABOUT_DATA_LOSS (0x00000008)")] - public const int SET_REPAIR_WARN_ABOUT_DATA_LOSS = (0x00000008); - - [NativeTypeName("#define SET_REPAIR_DISABLED_AND_BUGCHECK_ON_CORRUPT (0x00000010)")] - public const int SET_REPAIR_DISABLED_AND_BUGCHECK_ON_CORRUPT = (0x00000010); - - [NativeTypeName("#define SET_REPAIR_VALID_MASK (0x00000019)")] - public const int SET_REPAIR_VALID_MASK = (0x00000019); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED (0x00000001)")] - public const int PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED = (0x00000001); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_VOLUME_SCRUB_DISABLED (0x00000002)")] - public const int PERSISTENT_VOLUME_STATE_VOLUME_SCRUB_DISABLED = (0x00000002); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_GLOBAL_METADATA_NO_SEEK_PENALTY (0x00000004)")] - public const int PERSISTENT_VOLUME_STATE_GLOBAL_METADATA_NO_SEEK_PENALTY = (0x00000004); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_LOCAL_METADATA_NO_SEEK_PENALTY (0x00000008)")] - public const int PERSISTENT_VOLUME_STATE_LOCAL_METADATA_NO_SEEK_PENALTY = (0x00000008); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_NO_HEAT_GATHERING (0x00000010)")] - public const int PERSISTENT_VOLUME_STATE_NO_HEAT_GATHERING = (0x00000010); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_CONTAINS_BACKING_WIM (0x00000020)")] - public const int PERSISTENT_VOLUME_STATE_CONTAINS_BACKING_WIM = (0x00000020); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_BACKED_BY_WIM (0x00000040)")] - public const int PERSISTENT_VOLUME_STATE_BACKED_BY_WIM = (0x00000040); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_NO_WRITE_AUTO_TIERING (0x00000080)")] - public const int PERSISTENT_VOLUME_STATE_NO_WRITE_AUTO_TIERING = (0x00000080); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_TXF_DISABLED (0x00000100)")] - public const int PERSISTENT_VOLUME_STATE_TXF_DISABLED = (0x00000100); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_REALLOCATE_ALL_DATA_WRITES (0x00000200)")] - public const int PERSISTENT_VOLUME_STATE_REALLOCATE_ALL_DATA_WRITES = (0x00000200); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_CHKDSK_RAN_ONCE (0x00000400)")] - public const int PERSISTENT_VOLUME_STATE_CHKDSK_RAN_ONCE = (0x00000400); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_MODIFIED_BY_CHKDSK (0x00000800)")] - public const int PERSISTENT_VOLUME_STATE_MODIFIED_BY_CHKDSK = (0x00000800); - - [NativeTypeName("#define PERSISTENT_VOLUME_STATE_DAX_FORMATTED (0x00001000)")] - public const int PERSISTENT_VOLUME_STATE_DAX_FORMATTED = (0x00001000); - [NativeTypeName("#define OPLOCK_LEVEL_CACHE_READ (0x00000001)")] public const int OPLOCK_LEVEL_CACHE_READ = (0x00000001); @@ -1445,12 +594,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define REQUEST_OPLOCK_OUTPUT_FLAG_MODES_PROVIDED (0x00000002)")] public const int REQUEST_OPLOCK_OUTPUT_FLAG_MODES_PROVIDED = (0x00000002); - [NativeTypeName("#define QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_HOST_VOLUMES 0x1")] - public const int QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_HOST_VOLUMES = 0x1; - - [NativeTypeName("#define QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_GUEST_VOLUMES 0x2")] - public const int QUERY_DEPENDENT_VOLUME_REQUEST_FLAG_GUEST_VOLUMES = 0x2; - [NativeTypeName("#define SD_GLOBAL_CHANGE_TYPE_MACHINE_SID 1")] public const int SD_GLOBAL_CHANGE_TYPE_MACHINE_SID = 1; @@ -1505,78 +648,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define CSV_QUERY_MDS_PATH_FLAG_SMB_BYPASS_CSV_ENABLED 0x4")] public const int CSV_QUERY_MDS_PATH_FLAG_SMB_BYPASS_CSV_ENABLED = 0x4; - [NativeTypeName("#define QUERY_FILE_LAYOUT_RESTART (0x00000001)")] - public const int QUERY_FILE_LAYOUT_RESTART = (0x00000001); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_NAMES (0x00000002)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_NAMES = (0x00000002); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAMS (0x00000004)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAMS = (0x00000004); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_EXTENTS (0x00000008)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_EXTENTS = (0x00000008); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_EXTRA_INFO (0x00000010)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_EXTRA_INFO = (0x00000010); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAMS_WITH_NO_CLUSTERS_ALLOCATED (0x00000020)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAMS_WITH_NO_CLUSTERS_ALLOCATED = (0x00000020); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_FULL_PATH_IN_NAMES (0x00000040)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_FULL_PATH_IN_NAMES = (0x00000040); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION (0x00000080)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION = (0x00000080); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DSC_ATTRIBUTE (0x00000100)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DSC_ATTRIBUTE = (0x00000100); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_TXF_ATTRIBUTE (0x00000200)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_TXF_ATTRIBUTE = (0x00000200); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EFS_ATTRIBUTE (0x00000400)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EFS_ATTRIBUTE = (0x00000400); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_ONLY_FILES_WITH_SPECIFIC_ATTRIBUTES (0x00000800)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_ONLY_FILES_WITH_SPECIFIC_ATTRIBUTES = (0x00000800); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_FILES_WITH_DSC_ATTRIBUTE (0x00001000)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_FILES_WITH_DSC_ATTRIBUTE = (0x00001000); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DATA_ATTRIBUTE (0x00002000)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_DATA_ATTRIBUTE = (0x00002000); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_REPARSE_ATTRIBUTE (0x00004000)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_REPARSE_ATTRIBUTE = (0x00004000); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EA_ATTRIBUTE (0x00008000)")] - public const int QUERY_FILE_LAYOUT_INCLUDE_STREAM_INFORMATION_FOR_EA_ATTRIBUTE = (0x00008000); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_SINGLE_INSTANCED (0x00000001)")] - public const int QUERY_FILE_LAYOUT_SINGLE_INSTANCED = (0x00000001); - - [NativeTypeName("#define STREAM_LAYOUT_ENTRY_IMMOVABLE (0x00000001)")] - public const int STREAM_LAYOUT_ENTRY_IMMOVABLE = (0x00000001); - - [NativeTypeName("#define STREAM_LAYOUT_ENTRY_PINNED (0x00000002)")] - public const int STREAM_LAYOUT_ENTRY_PINNED = (0x00000002); - - [NativeTypeName("#define STREAM_LAYOUT_ENTRY_RESIDENT (0x00000004)")] - public const int STREAM_LAYOUT_ENTRY_RESIDENT = (0x00000004); - - [NativeTypeName("#define STREAM_LAYOUT_ENTRY_NO_CLUSTERS_ALLOCATED (0x00000008)")] - public const int STREAM_LAYOUT_ENTRY_NO_CLUSTERS_ALLOCATED = (0x00000008); - - [NativeTypeName("#define STREAM_LAYOUT_ENTRY_HAS_INFORMATION (0x00000010)")] - public const int STREAM_LAYOUT_ENTRY_HAS_INFORMATION = (0x00000010); - - [NativeTypeName("#define STREAM_EXTENT_ENTRY_AS_RETRIEVAL_POINTERS (0x00000001)")] - public const int STREAM_EXTENT_ENTRY_AS_RETRIEVAL_POINTERS = (0x00000001); - - [NativeTypeName("#define STREAM_EXTENT_ENTRY_ALL_EXTENTS (0x00000002)")] - public const int STREAM_EXTENT_ENTRY_ALL_EXTENTS = (0x00000002); - [NativeTypeName("#define CHECKSUM_TYPE_UNCHANGED (-1)")] public const int CHECKSUM_TYPE_UNCHANGED = (-1); @@ -1598,30 +669,9 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_CURRENT_RANGE (1)")] public const int OFFLOAD_READ_FLAG_ALL_ZERO_BEYOND_CURRENT_RANGE = (1); - [NativeTypeName("#define SET_PURGE_FAILURE_MODE_ENABLED 0x00000001")] - public const int SET_PURGE_FAILURE_MODE_ENABLED = 0x00000001; - - [NativeTypeName("#define SET_PURGE_FAILURE_MODE_DISABLED 0x00000002")] - public const int SET_PURGE_FAILURE_MODE_DISABLED = 0x00000002; - [NativeTypeName("#define VALID_WRITE_USN_REASON_MASK (USN_REASON_DATA_OVERWRITE | \\\r\n USN_REASON_CLOSE)")] public const uint VALID_WRITE_USN_REASON_MASK = ((0x00000001) | (0x80000000)); - [NativeTypeName("#define QUERY_STORAGE_CLASSES_FLAGS_MEASURE_WRITE 0x80000000")] - public const uint QUERY_STORAGE_CLASSES_FLAGS_MEASURE_WRITE = 0x80000000; - - [NativeTypeName("#define QUERY_STORAGE_CLASSES_FLAGS_MEASURE_READ 0x40000000")] - public const int QUERY_STORAGE_CLASSES_FLAGS_MEASURE_READ = 0x40000000; - - [NativeTypeName("#define QUERY_STORAGE_CLASSES_FLAGS_NO_DEFRAG_VOLUME 0x20000000")] - public const int QUERY_STORAGE_CLASSES_FLAGS_NO_DEFRAG_VOLUME = 0x20000000; - - [NativeTypeName("#define QUERY_FILE_LAYOUT_REPARSE_DATA_INVALID (0x0001)")] - public const int QUERY_FILE_LAYOUT_REPARSE_DATA_INVALID = (0x0001); - - [NativeTypeName("#define QUERY_FILE_LAYOUT_REPARSE_TAG_INVALID (0x0002)")] - public const int QUERY_FILE_LAYOUT_REPARSE_TAG_INVALID = (0x0002); - [NativeTypeName("#define DUPLICATE_EXTENTS_DATA_EX_SOURCE_ATOMIC 0x00000001")] public const int DUPLICATE_EXTENTS_DATA_EX_SOURCE_ATOMIC = 0x00000001; @@ -1688,42 +738,6 @@ public static byte DeviceDsmValidateOutput([NativeTypeName("PDEVICE_DSM_DEFINITI [NativeTypeName("#define WIM_BOOT_NOT_OS_WIM (0x00000000)")] public const int WIM_BOOT_NOT_OS_WIM = (0x00000000); - [NativeTypeName("#define CONTAINER_VOLUME_STATE_HOSTING_CONTAINER (0x00000001)")] - public const int CONTAINER_VOLUME_STATE_HOSTING_CONTAINER = (0x00000001); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_SCRATCH_ROOT (0x00000001)")] - public const int CONTAINER_ROOT_INFO_FLAG_SCRATCH_ROOT = (0x00000001); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_LAYER_ROOT (0x00000002)")] - public const int CONTAINER_ROOT_INFO_FLAG_LAYER_ROOT = (0x00000002); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_ROOT (0x00000004)")] - public const int CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_ROOT = (0x00000004); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_TARGET_ROOT (0x00000008)")] - public const int CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_TARGET_ROOT = (0x00000008); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_EXCEPTION_ROOT (0x00000010)")] - public const int CONTAINER_ROOT_INFO_FLAG_VIRTUALIZATION_EXCEPTION_ROOT = (0x00000010); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_ROOT (0x00000020)")] - public const int CONTAINER_ROOT_INFO_FLAG_BIND_ROOT = (0x00000020); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_TARGET_ROOT (0x00000040)")] - public const int CONTAINER_ROOT_INFO_FLAG_BIND_TARGET_ROOT = (0x00000040); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_EXCEPTION_ROOT (0x00000080)")] - public const int CONTAINER_ROOT_INFO_FLAG_BIND_EXCEPTION_ROOT = (0x00000080); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_BIND_DO_NOT_MAP_NAME (0x00000100)")] - public const int CONTAINER_ROOT_INFO_FLAG_BIND_DO_NOT_MAP_NAME = (0x00000100); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_FLAG_UNION_LAYER_ROOT (0x00000200)")] - public const int CONTAINER_ROOT_INFO_FLAG_UNION_LAYER_ROOT = (0x00000200); - - [NativeTypeName("#define CONTAINER_ROOT_INFO_VALID_FLAGS (0x000003ff)")] - public const int CONTAINER_ROOT_INFO_VALID_FLAGS = (0x000003ff); - [NativeTypeName("#define PROJFS_PROTOCOL_VERSION 3")] public const int PROJFS_PROTOCOL_VERSION = 3; diff --git a/sources/Interop/Windows/Windows/um/winnetwk/CONNECT.cs b/sources/Interop/Windows/Windows/um/winnetwk/CONNECT.cs new file mode 100644 index 0000000000..f73a49bcdc --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnetwk/CONNECT.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnetwk.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CONNECT + { + [NativeTypeName("#define CONNECT_UPDATE_PROFILE 0x00000001")] + public const int CONNECT_UPDATE_PROFILE = 0x00000001; + + [NativeTypeName("#define CONNECT_UPDATE_RECENT 0x00000002")] + public const int CONNECT_UPDATE_RECENT = 0x00000002; + + [NativeTypeName("#define CONNECT_TEMPORARY 0x00000004")] + public const int CONNECT_TEMPORARY = 0x00000004; + + [NativeTypeName("#define CONNECT_INTERACTIVE 0x00000008")] + public const int CONNECT_INTERACTIVE = 0x00000008; + + [NativeTypeName("#define CONNECT_PROMPT 0x00000010")] + public const int CONNECT_PROMPT = 0x00000010; + + [NativeTypeName("#define CONNECT_NEED_DRIVE 0x00000020")] + public const int CONNECT_NEED_DRIVE = 0x00000020; + + [NativeTypeName("#define CONNECT_REFCOUNT 0x00000040")] + public const int CONNECT_REFCOUNT = 0x00000040; + + [NativeTypeName("#define CONNECT_REDIRECT 0x00000080")] + public const int CONNECT_REDIRECT = 0x00000080; + + [NativeTypeName("#define CONNECT_LOCALDRIVE 0x00000100")] + public const int CONNECT_LOCALDRIVE = 0x00000100; + + [NativeTypeName("#define CONNECT_CURRENT_MEDIA 0x00000200")] + public const int CONNECT_CURRENT_MEDIA = 0x00000200; + + [NativeTypeName("#define CONNECT_DEFERRED 0x00000400")] + public const int CONNECT_DEFERRED = 0x00000400; + + [NativeTypeName("#define CONNECT_RESERVED 0xFF000000")] + public const uint CONNECT_RESERVED = 0xFF000000; + + [NativeTypeName("#define CONNECT_COMMANDLINE 0x00000800")] + public const int CONNECT_COMMANDLINE = 0x00000800; + + [NativeTypeName("#define CONNECT_CMD_SAVECRED 0x00001000")] + public const int CONNECT_CMD_SAVECRED = 0x00001000; + + [NativeTypeName("#define CONNECT_CRED_RESET 0x00002000")] + public const int CONNECT_CRED_RESET = 0x00002000; + + [NativeTypeName("#define CONNECT_REQUIRE_INTEGRITY 0x00004000")] + public const int CONNECT_REQUIRE_INTEGRITY = 0x00004000; + + [NativeTypeName("#define CONNECT_REQUIRE_PRIVACY 0x00008000")] + public const int CONNECT_REQUIRE_PRIVACY = 0x00008000; + + [NativeTypeName("#define CONNECT_WRITE_THROUGH_SEMANTICS 0x00010000")] + public const int CONNECT_WRITE_THROUGH_SEMANTICS = 0x00010000; + + [NativeTypeName("#define CONNECT_GLOBAL_MAPPING 0x00040000")] + public const int CONNECT_GLOBAL_MAPPING = 0x00040000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnetwk/RESOURCE.cs b/sources/Interop/Windows/Windows/um/winnetwk/RESOURCE.cs new file mode 100644 index 0000000000..3ee2788cd2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnetwk/RESOURCE.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnetwk.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RESOURCE + { + [NativeTypeName("#define RESOURCE_CONNECTED 0x00000001")] + public const int RESOURCE_CONNECTED = 0x00000001; + + [NativeTypeName("#define RESOURCE_GLOBALNET 0x00000002")] + public const int RESOURCE_GLOBALNET = 0x00000002; + + [NativeTypeName("#define RESOURCE_REMEMBERED 0x00000003")] + public const int RESOURCE_REMEMBERED = 0x00000003; + + [NativeTypeName("#define RESOURCE_RECENT 0x00000004")] + public const int RESOURCE_RECENT = 0x00000004; + + [NativeTypeName("#define RESOURCE_CONTEXT 0x00000005")] + public const int RESOURCE_CONTEXT = 0x00000005; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnetwk/RESOURCEDISPLAYTYPE.cs b/sources/Interop/Windows/Windows/um/winnetwk/RESOURCEDISPLAYTYPE.cs new file mode 100644 index 0000000000..c5e11a0c3b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnetwk/RESOURCEDISPLAYTYPE.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnetwk.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RESOURCEDISPLAYTYPE + { + [NativeTypeName("#define RESOURCEDISPLAYTYPE_GENERIC 0x00000000")] + public const int RESOURCEDISPLAYTYPE_GENERIC = 0x00000000; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_DOMAIN 0x00000001")] + public const int RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_SERVER 0x00000002")] + public const int RESOURCEDISPLAYTYPE_SERVER = 0x00000002; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_SHARE 0x00000003")] + public const int RESOURCEDISPLAYTYPE_SHARE = 0x00000003; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_FILE 0x00000004")] + public const int RESOURCEDISPLAYTYPE_FILE = 0x00000004; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_GROUP 0x00000005")] + public const int RESOURCEDISPLAYTYPE_GROUP = 0x00000005; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_NETWORK 0x00000006")] + public const int RESOURCEDISPLAYTYPE_NETWORK = 0x00000006; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_ROOT 0x00000007")] + public const int RESOURCEDISPLAYTYPE_ROOT = 0x00000007; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_SHAREADMIN 0x00000008")] + public const int RESOURCEDISPLAYTYPE_SHAREADMIN = 0x00000008; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_DIRECTORY 0x00000009")] + public const int RESOURCEDISPLAYTYPE_DIRECTORY = 0x00000009; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_TREE 0x0000000A")] + public const int RESOURCEDISPLAYTYPE_TREE = 0x0000000A; + + [NativeTypeName("#define RESOURCEDISPLAYTYPE_NDSCONTAINER 0x0000000B")] + public const int RESOURCEDISPLAYTYPE_NDSCONTAINER = 0x0000000B; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnetwk/WN.cs b/sources/Interop/Windows/Windows/um/winnetwk/WN.cs new file mode 100644 index 0000000000..3b2b1fd82e --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnetwk/WN.cs @@ -0,0 +1,136 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnetwk.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WN + { + [NativeTypeName("#define WN_SUCCESS NO_ERROR")] + public const int WN_SUCCESS = 0; + + [NativeTypeName("#define WN_NO_ERROR NO_ERROR")] + public const int WN_NO_ERROR = 0; + + [NativeTypeName("#define WN_NOT_SUPPORTED ERROR_NOT_SUPPORTED")] + public const int WN_NOT_SUPPORTED = 50; + + [NativeTypeName("#define WN_CANCEL ERROR_CANCELLED")] + public const int WN_CANCEL = 1223; + + [NativeTypeName("#define WN_RETRY ERROR_RETRY")] + public const int WN_RETRY = 1237; + + [NativeTypeName("#define WN_NET_ERROR ERROR_UNEXP_NET_ERR")] + public const int WN_NET_ERROR = 59; + + [NativeTypeName("#define WN_MORE_DATA ERROR_MORE_DATA")] + public const int WN_MORE_DATA = 234; + + [NativeTypeName("#define WN_BAD_POINTER ERROR_INVALID_ADDRESS")] + public const int WN_BAD_POINTER = 487; + + [NativeTypeName("#define WN_BAD_VALUE ERROR_INVALID_PARAMETER")] + public const int WN_BAD_VALUE = 87; + + [NativeTypeName("#define WN_BAD_USER ERROR_BAD_USERNAME")] + public const int WN_BAD_USER = 2202; + + [NativeTypeName("#define WN_BAD_PASSWORD ERROR_INVALID_PASSWORD")] + public const int WN_BAD_PASSWORD = 86; + + [NativeTypeName("#define WN_ACCESS_DENIED ERROR_ACCESS_DENIED")] + public const int WN_ACCESS_DENIED = 5; + + [NativeTypeName("#define WN_FUNCTION_BUSY ERROR_BUSY")] + public const int WN_FUNCTION_BUSY = 170; + + [NativeTypeName("#define WN_WINDOWS_ERROR ERROR_UNEXP_NET_ERR")] + public const int WN_WINDOWS_ERROR = 59; + + [NativeTypeName("#define WN_OUT_OF_MEMORY ERROR_NOT_ENOUGH_MEMORY")] + public const int WN_OUT_OF_MEMORY = 8; + + [NativeTypeName("#define WN_NO_NETWORK ERROR_NO_NETWORK")] + public const int WN_NO_NETWORK = 1222; + + [NativeTypeName("#define WN_EXTENDED_ERROR ERROR_EXTENDED_ERROR")] + public const int WN_EXTENDED_ERROR = 1208; + + [NativeTypeName("#define WN_BAD_LEVEL ERROR_INVALID_LEVEL")] + public const int WN_BAD_LEVEL = 124; + + [NativeTypeName("#define WN_BAD_HANDLE ERROR_INVALID_HANDLE")] + public const int WN_BAD_HANDLE = 6; + + [NativeTypeName("#define WN_NOT_INITIALIZING ERROR_ALREADY_INITIALIZED")] + public const int WN_NOT_INITIALIZING = 1247; + + [NativeTypeName("#define WN_NO_MORE_DEVICES ERROR_NO_MORE_DEVICES")] + public const int WN_NO_MORE_DEVICES = 1248; + + [NativeTypeName("#define WN_NOT_CONNECTED ERROR_NOT_CONNECTED")] + public const int WN_NOT_CONNECTED = 2250; + + [NativeTypeName("#define WN_OPEN_FILES ERROR_OPEN_FILES")] + public const int WN_OPEN_FILES = 2401; + + [NativeTypeName("#define WN_DEVICE_IN_USE ERROR_DEVICE_IN_USE")] + public const int WN_DEVICE_IN_USE = 2404; + + [NativeTypeName("#define WN_BAD_NETNAME ERROR_BAD_NET_NAME")] + public const int WN_BAD_NETNAME = 67; + + [NativeTypeName("#define WN_BAD_LOCALNAME ERROR_BAD_DEVICE")] + public const int WN_BAD_LOCALNAME = 1200; + + [NativeTypeName("#define WN_ALREADY_CONNECTED ERROR_ALREADY_ASSIGNED")] + public const int WN_ALREADY_CONNECTED = 85; + + [NativeTypeName("#define WN_DEVICE_ERROR ERROR_GEN_FAILURE")] + public const int WN_DEVICE_ERROR = 31; + + [NativeTypeName("#define WN_CONNECTION_CLOSED ERROR_CONNECTION_UNAVAIL")] + public const int WN_CONNECTION_CLOSED = 1201; + + [NativeTypeName("#define WN_NO_NET_OR_BAD_PATH ERROR_NO_NET_OR_BAD_PATH")] + public const int WN_NO_NET_OR_BAD_PATH = 1203; + + [NativeTypeName("#define WN_BAD_PROVIDER ERROR_BAD_PROVIDER")] + public const int WN_BAD_PROVIDER = 1204; + + [NativeTypeName("#define WN_CANNOT_OPEN_PROFILE ERROR_CANNOT_OPEN_PROFILE")] + public const int WN_CANNOT_OPEN_PROFILE = 1205; + + [NativeTypeName("#define WN_BAD_PROFILE ERROR_BAD_PROFILE")] + public const int WN_BAD_PROFILE = 1206; + + [NativeTypeName("#define WN_BAD_DEV_TYPE ERROR_BAD_DEV_TYPE")] + public const int WN_BAD_DEV_TYPE = 66; + + [NativeTypeName("#define WN_DEVICE_ALREADY_REMEMBERED ERROR_DEVICE_ALREADY_REMEMBERED")] + public const int WN_DEVICE_ALREADY_REMEMBERED = 1202; + + [NativeTypeName("#define WN_CONNECTED_OTHER_PASSWORD ERROR_CONNECTED_OTHER_PASSWORD")] + public const int WN_CONNECTED_OTHER_PASSWORD = 2108; + + [NativeTypeName("#define WN_CONNECTED_OTHER_PASSWORD_DEFAULT ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT")] + public const int WN_CONNECTED_OTHER_PASSWORD_DEFAULT = 2109; + + [NativeTypeName("#define WN_NO_MORE_ENTRIES ERROR_NO_MORE_ITEMS")] + public const int WN_NO_MORE_ENTRIES = 259; + + [NativeTypeName("#define WN_NOT_CONTAINER ERROR_NOT_CONTAINER")] + public const int WN_NOT_CONTAINER = 1207; + + [NativeTypeName("#define WN_NOT_AUTHENTICATED ERROR_NOT_AUTHENTICATED")] + public const int WN_NOT_AUTHENTICATED = 1244; + + [NativeTypeName("#define WN_NOT_LOGGED_ON ERROR_NOT_LOGGED_ON")] + public const int WN_NOT_LOGGED_ON = 1245; + + [NativeTypeName("#define WN_NOT_VALIDATED ERROR_NO_LOGON_SERVERS")] + public const int WN_NOT_VALIDATED = 1311; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnetwk/Windows.cs b/sources/Interop/Windows/Windows/um/winnetwk/Windows.cs index cdbb39f04f..0c46471a6e 100644 --- a/sources/Interop/Windows/Windows/um/winnetwk/Windows.cs +++ b/sources/Interop/Windows/Windows/um/winnetwk/Windows.cs @@ -193,21 +193,6 @@ public static unsafe partial class Windows [return: NativeTypeName("DWORD")] public static extern uint MultinetGetConnectionPerformanceW([NativeTypeName("LPNETRESOURCEW")] NETRESOURCEW* lpNetResource, [NativeTypeName("LPNETCONNECTINFOSTRUCT")] NETCONNECTINFOSTRUCT* lpNetConnectInfoStruct); - [NativeTypeName("#define RESOURCE_CONNECTED 0x00000001")] - public const int RESOURCE_CONNECTED = 0x00000001; - - [NativeTypeName("#define RESOURCE_GLOBALNET 0x00000002")] - public const int RESOURCE_GLOBALNET = 0x00000002; - - [NativeTypeName("#define RESOURCE_REMEMBERED 0x00000003")] - public const int RESOURCE_REMEMBERED = 0x00000003; - - [NativeTypeName("#define RESOURCE_RECENT 0x00000004")] - public const int RESOURCE_RECENT = 0x00000004; - - [NativeTypeName("#define RESOURCE_CONTEXT 0x00000005")] - public const int RESOURCE_CONTEXT = 0x00000005; - [NativeTypeName("#define RESOURCETYPE_ANY 0x00000000")] public const int RESOURCETYPE_ANY = 0x00000000; @@ -244,102 +229,9 @@ public static unsafe partial class Windows [NativeTypeName("#define RESOURCEUSAGE_RESERVED 0x80000000")] public const uint RESOURCEUSAGE_RESERVED = 0x80000000; - [NativeTypeName("#define RESOURCEDISPLAYTYPE_GENERIC 0x00000000")] - public const int RESOURCEDISPLAYTYPE_GENERIC = 0x00000000; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_DOMAIN 0x00000001")] - public const int RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_SERVER 0x00000002")] - public const int RESOURCEDISPLAYTYPE_SERVER = 0x00000002; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_SHARE 0x00000003")] - public const int RESOURCEDISPLAYTYPE_SHARE = 0x00000003; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_FILE 0x00000004")] - public const int RESOURCEDISPLAYTYPE_FILE = 0x00000004; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_GROUP 0x00000005")] - public const int RESOURCEDISPLAYTYPE_GROUP = 0x00000005; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_NETWORK 0x00000006")] - public const int RESOURCEDISPLAYTYPE_NETWORK = 0x00000006; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_ROOT 0x00000007")] - public const int RESOURCEDISPLAYTYPE_ROOT = 0x00000007; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_SHAREADMIN 0x00000008")] - public const int RESOURCEDISPLAYTYPE_SHAREADMIN = 0x00000008; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_DIRECTORY 0x00000009")] - public const int RESOURCEDISPLAYTYPE_DIRECTORY = 0x00000009; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_TREE 0x0000000A")] - public const int RESOURCEDISPLAYTYPE_TREE = 0x0000000A; - - [NativeTypeName("#define RESOURCEDISPLAYTYPE_NDSCONTAINER 0x0000000B")] - public const int RESOURCEDISPLAYTYPE_NDSCONTAINER = 0x0000000B; - [NativeTypeName("#define NETPROPERTY_PERSISTENT 1")] public const int NETPROPERTY_PERSISTENT = 1; - [NativeTypeName("#define CONNECT_UPDATE_PROFILE 0x00000001")] - public const int CONNECT_UPDATE_PROFILE = 0x00000001; - - [NativeTypeName("#define CONNECT_UPDATE_RECENT 0x00000002")] - public const int CONNECT_UPDATE_RECENT = 0x00000002; - - [NativeTypeName("#define CONNECT_TEMPORARY 0x00000004")] - public const int CONNECT_TEMPORARY = 0x00000004; - - [NativeTypeName("#define CONNECT_INTERACTIVE 0x00000008")] - public const int CONNECT_INTERACTIVE = 0x00000008; - - [NativeTypeName("#define CONNECT_PROMPT 0x00000010")] - public const int CONNECT_PROMPT = 0x00000010; - - [NativeTypeName("#define CONNECT_NEED_DRIVE 0x00000020")] - public const int CONNECT_NEED_DRIVE = 0x00000020; - - [NativeTypeName("#define CONNECT_REFCOUNT 0x00000040")] - public const int CONNECT_REFCOUNT = 0x00000040; - - [NativeTypeName("#define CONNECT_REDIRECT 0x00000080")] - public const int CONNECT_REDIRECT = 0x00000080; - - [NativeTypeName("#define CONNECT_LOCALDRIVE 0x00000100")] - public const int CONNECT_LOCALDRIVE = 0x00000100; - - [NativeTypeName("#define CONNECT_CURRENT_MEDIA 0x00000200")] - public const int CONNECT_CURRENT_MEDIA = 0x00000200; - - [NativeTypeName("#define CONNECT_DEFERRED 0x00000400")] - public const int CONNECT_DEFERRED = 0x00000400; - - [NativeTypeName("#define CONNECT_RESERVED 0xFF000000")] - public const uint CONNECT_RESERVED = 0xFF000000; - - [NativeTypeName("#define CONNECT_COMMANDLINE 0x00000800")] - public const int CONNECT_COMMANDLINE = 0x00000800; - - [NativeTypeName("#define CONNECT_CMD_SAVECRED 0x00001000")] - public const int CONNECT_CMD_SAVECRED = 0x00001000; - - [NativeTypeName("#define CONNECT_CRED_RESET 0x00002000")] - public const int CONNECT_CRED_RESET = 0x00002000; - - [NativeTypeName("#define CONNECT_REQUIRE_INTEGRITY 0x00004000")] - public const int CONNECT_REQUIRE_INTEGRITY = 0x00004000; - - [NativeTypeName("#define CONNECT_REQUIRE_PRIVACY 0x00008000")] - public const int CONNECT_REQUIRE_PRIVACY = 0x00008000; - - [NativeTypeName("#define CONNECT_WRITE_THROUGH_SEMANTICS 0x00010000")] - public const int CONNECT_WRITE_THROUGH_SEMANTICS = 0x00010000; - - [NativeTypeName("#define CONNECT_GLOBAL_MAPPING 0x00040000")] - public const int CONNECT_GLOBAL_MAPPING = 0x00040000; - [NativeTypeName("#define WNetAddConnection WNetAddConnectionW")] public static delegate* WNetAddConnection => &WNetAddConnectionW; @@ -451,132 +343,6 @@ public static unsafe partial class Windows [NativeTypeName("#define WNetGetLastError WNetGetLastErrorW")] public static delegate* WNetGetLastError => &WNetGetLastErrorW; - [NativeTypeName("#define WN_SUCCESS NO_ERROR")] - public const int WN_SUCCESS = 0; - - [NativeTypeName("#define WN_NO_ERROR NO_ERROR")] - public const int WN_NO_ERROR = 0; - - [NativeTypeName("#define WN_NOT_SUPPORTED ERROR_NOT_SUPPORTED")] - public const int WN_NOT_SUPPORTED = 50; - - [NativeTypeName("#define WN_CANCEL ERROR_CANCELLED")] - public const int WN_CANCEL = 1223; - - [NativeTypeName("#define WN_RETRY ERROR_RETRY")] - public const int WN_RETRY = 1237; - - [NativeTypeName("#define WN_NET_ERROR ERROR_UNEXP_NET_ERR")] - public const int WN_NET_ERROR = 59; - - [NativeTypeName("#define WN_MORE_DATA ERROR_MORE_DATA")] - public const int WN_MORE_DATA = 234; - - [NativeTypeName("#define WN_BAD_POINTER ERROR_INVALID_ADDRESS")] - public const int WN_BAD_POINTER = 487; - - [NativeTypeName("#define WN_BAD_VALUE ERROR_INVALID_PARAMETER")] - public const int WN_BAD_VALUE = 87; - - [NativeTypeName("#define WN_BAD_USER ERROR_BAD_USERNAME")] - public const int WN_BAD_USER = 2202; - - [NativeTypeName("#define WN_BAD_PASSWORD ERROR_INVALID_PASSWORD")] - public const int WN_BAD_PASSWORD = 86; - - [NativeTypeName("#define WN_ACCESS_DENIED ERROR_ACCESS_DENIED")] - public const int WN_ACCESS_DENIED = 5; - - [NativeTypeName("#define WN_FUNCTION_BUSY ERROR_BUSY")] - public const int WN_FUNCTION_BUSY = 170; - - [NativeTypeName("#define WN_WINDOWS_ERROR ERROR_UNEXP_NET_ERR")] - public const int WN_WINDOWS_ERROR = 59; - - [NativeTypeName("#define WN_OUT_OF_MEMORY ERROR_NOT_ENOUGH_MEMORY")] - public const int WN_OUT_OF_MEMORY = 8; - - [NativeTypeName("#define WN_NO_NETWORK ERROR_NO_NETWORK")] - public const int WN_NO_NETWORK = 1222; - - [NativeTypeName("#define WN_EXTENDED_ERROR ERROR_EXTENDED_ERROR")] - public const int WN_EXTENDED_ERROR = 1208; - - [NativeTypeName("#define WN_BAD_LEVEL ERROR_INVALID_LEVEL")] - public const int WN_BAD_LEVEL = 124; - - [NativeTypeName("#define WN_BAD_HANDLE ERROR_INVALID_HANDLE")] - public const int WN_BAD_HANDLE = 6; - - [NativeTypeName("#define WN_NOT_INITIALIZING ERROR_ALREADY_INITIALIZED")] - public const int WN_NOT_INITIALIZING = 1247; - - [NativeTypeName("#define WN_NO_MORE_DEVICES ERROR_NO_MORE_DEVICES")] - public const int WN_NO_MORE_DEVICES = 1248; - - [NativeTypeName("#define WN_NOT_CONNECTED ERROR_NOT_CONNECTED")] - public const int WN_NOT_CONNECTED = 2250; - - [NativeTypeName("#define WN_OPEN_FILES ERROR_OPEN_FILES")] - public const int WN_OPEN_FILES = 2401; - - [NativeTypeName("#define WN_DEVICE_IN_USE ERROR_DEVICE_IN_USE")] - public const int WN_DEVICE_IN_USE = 2404; - - [NativeTypeName("#define WN_BAD_NETNAME ERROR_BAD_NET_NAME")] - public const int WN_BAD_NETNAME = 67; - - [NativeTypeName("#define WN_BAD_LOCALNAME ERROR_BAD_DEVICE")] - public const int WN_BAD_LOCALNAME = 1200; - - [NativeTypeName("#define WN_ALREADY_CONNECTED ERROR_ALREADY_ASSIGNED")] - public const int WN_ALREADY_CONNECTED = 85; - - [NativeTypeName("#define WN_DEVICE_ERROR ERROR_GEN_FAILURE")] - public const int WN_DEVICE_ERROR = 31; - - [NativeTypeName("#define WN_CONNECTION_CLOSED ERROR_CONNECTION_UNAVAIL")] - public const int WN_CONNECTION_CLOSED = 1201; - - [NativeTypeName("#define WN_NO_NET_OR_BAD_PATH ERROR_NO_NET_OR_BAD_PATH")] - public const int WN_NO_NET_OR_BAD_PATH = 1203; - - [NativeTypeName("#define WN_BAD_PROVIDER ERROR_BAD_PROVIDER")] - public const int WN_BAD_PROVIDER = 1204; - - [NativeTypeName("#define WN_CANNOT_OPEN_PROFILE ERROR_CANNOT_OPEN_PROFILE")] - public const int WN_CANNOT_OPEN_PROFILE = 1205; - - [NativeTypeName("#define WN_BAD_PROFILE ERROR_BAD_PROFILE")] - public const int WN_BAD_PROFILE = 1206; - - [NativeTypeName("#define WN_BAD_DEV_TYPE ERROR_BAD_DEV_TYPE")] - public const int WN_BAD_DEV_TYPE = 66; - - [NativeTypeName("#define WN_DEVICE_ALREADY_REMEMBERED ERROR_DEVICE_ALREADY_REMEMBERED")] - public const int WN_DEVICE_ALREADY_REMEMBERED = 1202; - - [NativeTypeName("#define WN_CONNECTED_OTHER_PASSWORD ERROR_CONNECTED_OTHER_PASSWORD")] - public const int WN_CONNECTED_OTHER_PASSWORD = 2108; - - [NativeTypeName("#define WN_CONNECTED_OTHER_PASSWORD_DEFAULT ERROR_CONNECTED_OTHER_PASSWORD_DEFAULT")] - public const int WN_CONNECTED_OTHER_PASSWORD_DEFAULT = 2109; - - [NativeTypeName("#define WN_NO_MORE_ENTRIES ERROR_NO_MORE_ITEMS")] - public const int WN_NO_MORE_ENTRIES = 259; - - [NativeTypeName("#define WN_NOT_CONTAINER ERROR_NOT_CONTAINER")] - public const int WN_NOT_CONTAINER = 1207; - - [NativeTypeName("#define WN_NOT_AUTHENTICATED ERROR_NOT_AUTHENTICATED")] - public const int WN_NOT_AUTHENTICATED = 1244; - - [NativeTypeName("#define WN_NOT_LOGGED_ON ERROR_NOT_LOGGED_ON")] - public const int WN_NOT_LOGGED_ON = 1245; - - [NativeTypeName("#define WN_NOT_VALIDATED ERROR_NO_LOGON_SERVERS")] - public const int WN_NOT_VALIDATED = 1311; - [NativeTypeName("#define WNCON_FORNETCARD 0x00000001")] public const int WNCON_FORNETCARD = 0x00000001; diff --git a/sources/Interop/Windows/Windows/um/winnt/ACCESS.cs b/sources/Interop/Windows/Windows/um/winnt/ACCESS.cs new file mode 100644 index 0000000000..f10eea41d0 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/ACCESS.cs @@ -0,0 +1,105 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; + +namespace TerraFX.Interop.Windows +{ + public static partial class ACCESS + { + [NativeTypeName("#define ACCESS_SYSTEM_SECURITY (0x01000000L)")] + public const int ACCESS_SYSTEM_SECURITY = (0x01000000); + + [NativeTypeName("#define ACCESS_MIN_MS_ACE_TYPE (0x0)")] + public const int ACCESS_MIN_MS_ACE_TYPE = (0x0); + + [NativeTypeName("#define ACCESS_ALLOWED_ACE_TYPE (0x0)")] + public const int ACCESS_ALLOWED_ACE_TYPE = (0x0); + + [NativeTypeName("#define ACCESS_DENIED_ACE_TYPE (0x1)")] + public const int ACCESS_DENIED_ACE_TYPE = (0x1); + + [NativeTypeName("#define ACCESS_MAX_MS_V2_ACE_TYPE (0x3)")] + public const int ACCESS_MAX_MS_V2_ACE_TYPE = (0x3); + + [NativeTypeName("#define ACCESS_ALLOWED_COMPOUND_ACE_TYPE (0x4)")] + public const int ACCESS_ALLOWED_COMPOUND_ACE_TYPE = (0x4); + + [NativeTypeName("#define ACCESS_MAX_MS_V3_ACE_TYPE (0x4)")] + public const int ACCESS_MAX_MS_V3_ACE_TYPE = (0x4); + + [NativeTypeName("#define ACCESS_MIN_MS_OBJECT_ACE_TYPE (0x5)")] + public const int ACCESS_MIN_MS_OBJECT_ACE_TYPE = (0x5); + + [NativeTypeName("#define ACCESS_ALLOWED_OBJECT_ACE_TYPE (0x5)")] + public const int ACCESS_ALLOWED_OBJECT_ACE_TYPE = (0x5); + + [NativeTypeName("#define ACCESS_DENIED_OBJECT_ACE_TYPE (0x6)")] + public const int ACCESS_DENIED_OBJECT_ACE_TYPE = (0x6); + + [NativeTypeName("#define ACCESS_MAX_MS_OBJECT_ACE_TYPE (0x8)")] + public const int ACCESS_MAX_MS_OBJECT_ACE_TYPE = (0x8); + + [NativeTypeName("#define ACCESS_MAX_MS_V4_ACE_TYPE (0x8)")] + public const int ACCESS_MAX_MS_V4_ACE_TYPE = (0x8); + + [NativeTypeName("#define ACCESS_MAX_MS_ACE_TYPE (0x8)")] + public const int ACCESS_MAX_MS_ACE_TYPE = (0x8); + + [NativeTypeName("#define ACCESS_ALLOWED_CALLBACK_ACE_TYPE (0x9)")] + public const int ACCESS_ALLOWED_CALLBACK_ACE_TYPE = (0x9); + + [NativeTypeName("#define ACCESS_DENIED_CALLBACK_ACE_TYPE (0xA)")] + public const int ACCESS_DENIED_CALLBACK_ACE_TYPE = (0xA); + + [NativeTypeName("#define ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE (0xB)")] + public const int ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE = (0xB); + + [NativeTypeName("#define ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE (0xC)")] + public const int ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE = (0xC); + + [NativeTypeName("#define ACCESS_MAX_MS_V5_ACE_TYPE (0x15)")] + public const int ACCESS_MAX_MS_V5_ACE_TYPE = (0x15); + + [NativeTypeName("#define ACCESS_OBJECT_GUID 0")] + public const int ACCESS_OBJECT_GUID = 0; + + [NativeTypeName("#define ACCESS_PROPERTY_SET_GUID 1")] + public const int ACCESS_PROPERTY_SET_GUID = 1; + + [NativeTypeName("#define ACCESS_PROPERTY_GUID 2")] + public const int ACCESS_PROPERTY_GUID = 2; + + [NativeTypeName("#define ACCESS_MAX_LEVEL 4")] + public const int ACCESS_MAX_LEVEL = 4; + + [NativeTypeName("#define ACCESS_DS_SOURCE_A \"DS\"")] + public static ReadOnlySpan ACCESS_DS_SOURCE_A => new byte[] { 0x44, 0x53, 0x00 }; + + [NativeTypeName("#define ACCESS_DS_SOURCE_W L\"DS\"")] + public const string ACCESS_DS_SOURCE_W = "DS"; + + [NativeTypeName("#define ACCESS_DS_OBJECT_TYPE_NAME_A \"Directory Service Object\"")] + public static ReadOnlySpan ACCESS_DS_OBJECT_TYPE_NAME_A => new byte[] { 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; + + [NativeTypeName("#define ACCESS_DS_OBJECT_TYPE_NAME_W L\"Directory Service Object\"")] + public const string ACCESS_DS_OBJECT_TYPE_NAME_W = "Directory Service Object"; + + [NativeTypeName("#define ACCESS_REASON_TYPE_MASK 0x00ff0000")] + public const int ACCESS_REASON_TYPE_MASK = 0x00ff0000; + + [NativeTypeName("#define ACCESS_REASON_DATA_MASK 0x0000ffff")] + public const int ACCESS_REASON_DATA_MASK = 0x0000ffff; + + [NativeTypeName("#define ACCESS_REASON_STAGING_MASK 0x80000000")] + public const uint ACCESS_REASON_STAGING_MASK = 0x80000000; + + [NativeTypeName("#define ACCESS_REASON_EXDATA_MASK 0x7f000000")] + public const int ACCESS_REASON_EXDATA_MASK = 0x7f000000; + + [NativeTypeName("#define ACCESS_FILTER_SECURITY_INFORMATION (0x00000100L)")] + public const int ACCESS_FILTER_SECURITY_INFORMATION = (0x00000100); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/ACTIVATION.cs b/sources/Interop/Windows/Windows/um/winnt/ACTIVATION.cs new file mode 100644 index 0000000000..9ba3640241 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/ACTIVATION.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ACTIVATION + { + [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_NONE (1)")] + public const int ACTIVATION_CONTEXT_PATH_TYPE_NONE = (1); + + [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE (2)")] + public const int ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE = (2); + + [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_URL (3)")] + public const int ACTIVATION_CONTEXT_PATH_TYPE_URL = (3); + + [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_ASSEMBLYREF (4)")] + public const int ACTIVATION_CONTEXT_PATH_TYPE_ASSEMBLYREF = (4); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION (1)")] + public const int ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION = (1); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION (2)")] + public const int ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION = (2); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION (3)")] + public const int ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION = (3); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION (4)")] + public const int ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION = (4); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION (5)")] + public const int ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION = (5); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION (6)")] + public const int ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION = (6); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION (7)")] + public const int ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION = (7); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_GLOBAL_OBJECT_RENAME_TABLE (8)")] + public const int ACTIVATION_CONTEXT_SECTION_GLOBAL_OBJECT_RENAME_TABLE = (8); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES (9)")] + public const int ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES = (9); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_APPLICATION_SETTINGS (10)")] + public const int ACTIVATION_CONTEXT_SECTION_APPLICATION_SETTINGS = (10); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COMPATIBILITY_INFO (11)")] + public const int ACTIVATION_CONTEXT_SECTION_COMPATIBILITY_INFO = (11); + + [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_WINRT_ACTIVATABLE_CLASSES (12)")] + public const int ACTIVATION_CONTEXT_SECTION_WINRT_ACTIVATABLE_CLASSES = (12); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/BACKUP.cs b/sources/Interop/Windows/Windows/um/winnt/BACKUP.cs new file mode 100644 index 0000000000..60faa2be7a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/BACKUP.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BACKUP + { + [NativeTypeName("#define BACKUP_SECURITY_INFORMATION (0x00010000L)")] + public const int BACKUP_SECURITY_INFORMATION = (0x00010000); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/BATTERY.cs b/sources/Interop/Windows/Windows/um/winnt/BATTERY.cs new file mode 100644 index 0000000000..8bf69d25d7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/BATTERY.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class BATTERY + { + [NativeTypeName("#define BATTERY_DISCHARGE_FLAGS_EVENTCODE_MASK 0x00000007")] + public const int BATTERY_DISCHARGE_FLAGS_EVENTCODE_MASK = 0x00000007; + + [NativeTypeName("#define BATTERY_DISCHARGE_FLAGS_ENABLE 0x80000000")] + public const uint BATTERY_DISCHARGE_FLAGS_ENABLE = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/CLAIM.cs b/sources/Interop/Windows/Windows/um/winnt/CLAIM.cs new file mode 100644 index 0000000000..a44f274910 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/CLAIM.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CLAIM + { + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_INVALID 0x00")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_INVALID = 0x00; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64 0x01")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64 = 0x01; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64 0x02")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64 = 0x02; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING 0x03")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING = 0x03; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN 0x04")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN = 0x04; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_SID 0x05")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_SID = 0x05; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN 0x06")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN = 0x06; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING 0x10")] + public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING = 0x10; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE 0x0001")] + public const int CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE = 0x0001; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE 0x0002")] + public const int CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE = 0x0002; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY 0x0004")] + public const int CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY = 0x0004; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT 0x0008")] + public const int CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT = 0x0008; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_DISABLED 0x0010")] + public const int CLAIM_SECURITY_ATTRIBUTE_DISABLED = 0x0010; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_MANDATORY 0x0020")] + public const int CLAIM_SECURITY_ATTRIBUTE_MANDATORY = 0x0020; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_VALID_FLAGS ( \\\r\n CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE | \\\r\n CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE | \\\r\n CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY | \\\r\n CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT | \\\r\n CLAIM_SECURITY_ATTRIBUTE_DISABLED | \\\r\n CLAIM_SECURITY_ATTRIBUTE_MANDATORY )")] + public const int CLAIM_SECURITY_ATTRIBUTE_VALID_FLAGS = (0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010 | 0x0020); + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_CUSTOM_FLAGS 0xFFFF0000")] + public const uint CLAIM_SECURITY_ATTRIBUTE_CUSTOM_FLAGS = 0xFFFF0000; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1 1")] + public const int CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1 = 1; + + [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1")] + public const int CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/CM.cs b/sources/Interop/Windows/Windows/um/winnt/CM.cs new file mode 100644 index 0000000000..a6c106af12 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/CM.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CM + { + [NativeTypeName("#define CM_SERVICE_NETWORK_BOOT_LOAD 0x00000001")] + public const int CM_SERVICE_NETWORK_BOOT_LOAD = 0x00000001; + + [NativeTypeName("#define CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD 0x00000002")] + public const int CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD = 0x00000002; + + [NativeTypeName("#define CM_SERVICE_USB_DISK_BOOT_LOAD 0x00000004")] + public const int CM_SERVICE_USB_DISK_BOOT_LOAD = 0x00000004; + + [NativeTypeName("#define CM_SERVICE_SD_DISK_BOOT_LOAD 0x00000008")] + public const int CM_SERVICE_SD_DISK_BOOT_LOAD = 0x00000008; + + [NativeTypeName("#define CM_SERVICE_USB3_DISK_BOOT_LOAD 0x00000010")] + public const int CM_SERVICE_USB3_DISK_BOOT_LOAD = 0x00000010; + + [NativeTypeName("#define CM_SERVICE_MEASURED_BOOT_LOAD 0x00000020")] + public const int CM_SERVICE_MEASURED_BOOT_LOAD = 0x00000020; + + [NativeTypeName("#define CM_SERVICE_VERIFIER_BOOT_LOAD 0x00000040")] + public const int CM_SERVICE_VERIFIER_BOOT_LOAD = 0x00000040; + + [NativeTypeName("#define CM_SERVICE_WINPE_BOOT_LOAD 0x00000080")] + public const int CM_SERVICE_WINPE_BOOT_LOAD = 0x00000080; + + [NativeTypeName("#define CM_SERVICE_RAM_DISK_BOOT_LOAD 0x00000100")] + public const int CM_SERVICE_RAM_DISK_BOOT_LOAD = 0x00000100; + + [NativeTypeName("#define CM_SERVICE_VALID_PROMOTION_MASK (CM_SERVICE_NETWORK_BOOT_LOAD | \\\r\n CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_USB_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_SD_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_USB3_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_MEASURED_BOOT_LOAD | \\\r\n CM_SERVICE_VERIFIER_BOOT_LOAD | \\\r\n CM_SERVICE_WINPE_BOOT_LOAD | \\\r\n CM_SERVICE_RAM_DISK_BOOT_LOAD)")] + public const int CM_SERVICE_VALID_PROMOTION_MASK = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000040 | 0x00000080 | 0x00000100); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/CONTAINER.cs b/sources/Interop/Windows/Windows/um/winnt/CONTAINER.cs new file mode 100644 index 0000000000..f1c5b394a1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/CONTAINER.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CONTAINER + { + [NativeTypeName("#define CONTAINER_INHERIT_ACE (0x2)")] + public const int CONTAINER_INHERIT_ACE = (0x2); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/CONTEXT.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/CONTEXT.Manual.cs new file mode 100644 index 0000000000..563630b4be --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/CONTEXT.Manual.cs @@ -0,0 +1,140 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System.Runtime.Intrinsics.Arm; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class SYSTEM + { + [NativeTypeName("#define CONTEXT_AMD64 0x00100000L")] + public const int CONTEXT_AMD64 = 0x00100000; + + [NativeTypeName("#define CONTEXT_CONTROL (CONTEXT_AMD64 | 0x00000001L)")] + public const int CONTEXT_AMD64_CONTROL = (0x00100000 | 0x00000001); + + [NativeTypeName("#define CONTEXT_INTEGER (CONTEXT_AMD64 | 0x00000002L)")] + public const int CONTEXT_AMD64_INTEGER = (0x00100000 | 0x00000002); + + [NativeTypeName("#define CONTEXT_SEGMENTS (CONTEXT_AMD64 | 0x00000004L)")] + public const int CONTEXT_AMD64_SEGMENTS = (0x00100000 | 0x00000004); + + [NativeTypeName("#define CONTEXT_FLOATING_POINT (CONTEXT_AMD64 | 0x00000008L)")] + public const int CONTEXT_AMD64_FLOATING_POINT = (0x00100000 | 0x00000008); + + [NativeTypeName("#define CONTEXT_DEBUG_REGISTERS (CONTEXT_AMD64 | 0x00000010L)")] + public const int CONTEXT_AMD64_DEBUG_REGISTERS = (0x00100000 | 0x00000010); + + [NativeTypeName("#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | \\\r\n CONTEXT_FLOATING_POINT)")] + public const int CONTEXT_AMD64_FULL = ((0x00100000 | 0x00000001) | (0x00100000 | 0x00000002) | (0x00100000 | 0x00000008)); + + [NativeTypeName("#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | \\\r\n CONTEXT_SEGMENTS | CONTEXT_FLOATING_POINT | \\\r\n CONTEXT_DEBUG_REGISTERS)")] + public const int CONTEXT_AMD64_ALL = ((0x00100000 | 0x00000001) | (0x00100000 | 0x00000002) | (0x00100000 | 0x00000004) | (0x00100000 | 0x00000008) | (0x00100000 | 0x00000010)); + + [NativeTypeName("#define CONTEXT_XSTATE (CONTEXT_AMD64 | 0x00000040L)")] + public const int CONTEXT_AMD64_XSTATE = (0x00100000 | 0x00000040); + + [NativeTypeName("#define CONTEXT_KERNEL_CET (CONTEXT_AMD64 | 0x00000080L)")] + public const int CONTEXT_AMD64_KERNEL_CET = (0x00100000 | 0x00000080); + + [NativeTypeName("#define CONTEXT_UNWOUND_TO_CALL 0x20000000")] + public const int CONTEXT_AMD64_UNWOUND_TO_CALL = 0x20000000; + + [NativeTypeName("#define CONTEXT_ARM64 0x00400000L")] + public const int CONTEXT_ARM64 = 0x00400000; + + [NativeTypeName("#define CONTEXT_ARM64_CONTROL (CONTEXT_ARM64 | 0x1L)")] + public const int CONTEXT_ARM64_CONTROL = (0x00400000 | 0x1); + + [NativeTypeName("#define CONTEXT_ARM64_INTEGER (CONTEXT_ARM64 | 0x2L)")] + public const int CONTEXT_ARM64_INTEGER = (0x00400000 | 0x2); + + [NativeTypeName("#define CONTEXT_ARM64_FLOATING_POINT (CONTEXT_ARM64 | 0x4L)")] + public const int CONTEXT_ARM64_FLOATING_POINT = (0x00400000 | 0x4); + + [NativeTypeName("#define CONTEXT_ARM64_DEBUG_REGISTERS (CONTEXT_ARM64 | 0x8L)")] + public const int CONTEXT_ARM64_DEBUG_REGISTERS = (0x00400000 | 0x8); + + [NativeTypeName("#define CONTEXT_ARM64_X18 (CONTEXT_ARM64 | 0x10L)")] + public const int CONTEXT_ARM64_X18 = (0x00400000 | 0x10); + + [NativeTypeName("#define CONTEXT_ARM64_FULL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT)")] + public const int CONTEXT_ARM64_FULL = ((0x00400000 | 0x1) | (0x00400000 | 0x2) | (0x00400000 | 0x4)); + + [NativeTypeName("#define CONTEXT_ARM64_ALL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT | CONTEXT_ARM64_DEBUG_REGISTERS | CONTEXT_ARM64_X18)")] + public const int CONTEXT_ARM64_ALL = ((0x00400000 | 0x1) | (0x00400000 | 0x2) | (0x00400000 | 0x4) | (0x00400000 | 0x8) | (0x00400000 | 0x10)); + + [NativeTypeName("#define CONTEXT_ARM64_UNWOUND_TO_CALL 0x20000000")] + public const int CONTEXT_ARM64_UNWOUND_TO_CALL = 0x20000000; + + [NativeTypeName("#define CONTEXT_ARM64_RET_TO_GUEST 0x04000000")] + public const int CONTEXT_ARM64_RET_TO_GUEST = 0x04000000; + + [NativeTypeName("#define CONTEXT_UNWOUND_TO_CALL CONTEXT_ARM64_UNWOUND_TO_CALL")] + public static int CONTEXT_UNWOUND_TO_CALL + { + get + { + if (ArmBase.Arm64.IsSupported) + { + return CONTEXT_ARM64_UNWOUND_TO_CALL; + } + else + { + return 0; + } + } + } + + [NativeTypeName("#define CONTEXT_RET_TO_GUEST CONTEXT_ARM64_RET_TO_GUEST")] + public static int CONTEXT_RET_TO_GUEST + { + get + { + if (ArmBase.Arm64.IsSupported) + { + return 0x04000000; + } + else + { + return 0; + } + } + } + + [NativeTypeName("#define CONTEXT_i386 0x00010000L")] + public const int CONTEXT_i386 = 0x00010000; + + [NativeTypeName("#define CONTEXT_i486 0x00010000L")] + public const int CONTEXT_i486 = 0x00010000; + + [NativeTypeName("#define CONTEXT_CONTROL (CONTEXT_i386 | 0x00000001L)")] + public const int CONTEXT_i386_CONTROL = (0x00010000 | 0x00000001); + + [NativeTypeName("#define CONTEXT_INTEGER (CONTEXT_i386 | 0x00000002L)")] + public const int CONTEXT_i386_INTEGER = (0x00010000 | 0x00000002); + + [NativeTypeName("#define CONTEXT_SEGMENTS (CONTEXT_i386 | 0x00000004L)")] + public const int CONTEXT_i386_SEGMENTS = (0x00010000 | 0x00000004); + + [NativeTypeName("#define CONTEXT_FLOATING_POINT (CONTEXT_i386 | 0x00000008L)")] + public const int CONTEXT_i386_FLOATING_POINT = (0x00010000 | 0x00000008); + + [NativeTypeName("#define CONTEXT_DEBUG_REGISTERS (CONTEXT_i386 | 0x00000010L)")] + public const int CONTEXT_i386_DEBUG_REGISTERS = (0x00010000 | 0x00000010); + + [NativeTypeName("#define CONTEXT_EXTENDED_REGISTERS (CONTEXT_i386 | 0x00000020L)")] + public const int CONTEXT_i386_EXTENDED_REGISTERS = (0x00010000 | 0x00000020); + + [NativeTypeName("#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER |\\\r\n CONTEXT_SEGMENTS)")] + public const int CONTEXT_i386_FULL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004)); + + [NativeTypeName("#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS | \\\r\n CONTEXT_FLOATING_POINT | CONTEXT_DEBUG_REGISTERS | \\\r\n CONTEXT_EXTENDED_REGISTERS)")] + public const int CONTEXT_i386_ALL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004) | (0x00010000 | 0x00000008) | (0x00010000 | 0x00000010) | (0x00010000 | 0x00000020)); + + [NativeTypeName("#define CONTEXT_XSTATE (CONTEXT_i386 | 0x00000040L)")] + public const int CONTEXT_i386_XSTATE = (0x00010000 | 0x00000040); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/CREATE.cs b/sources/Interop/Windows/Windows/um/winnt/CREATE.cs new file mode 100644 index 0000000000..d71a410b3a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/CREATE.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class CREATE + { + [NativeTypeName("#define CREATE_BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID 0x1")] + public const int CREATE_BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID = 0x1; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/DBG.cs b/sources/Interop/Windows/Windows/um/winnt/DBG.cs new file mode 100644 index 0000000000..d99d53e111 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/DBG.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DBG + { + [NativeTypeName("#define DBG_EXCEPTION_HANDLED ((DWORD )0x00010001L)")] + public const uint DBG_EXCEPTION_HANDLED = ((uint)(0x00010001)); + + [NativeTypeName("#define DBG_CONTINUE ((DWORD )0x00010002L)")] + public const uint DBG_CONTINUE = ((uint)(0x00010002)); + + [NativeTypeName("#define DBG_REPLY_LATER ((DWORD )0x40010001L)")] + public const uint DBG_REPLY_LATER = ((uint)(0x40010001)); + + [NativeTypeName("#define DBG_TERMINATE_THREAD ((DWORD )0x40010003L)")] + public const uint DBG_TERMINATE_THREAD = ((uint)(0x40010003)); + + [NativeTypeName("#define DBG_TERMINATE_PROCESS ((DWORD )0x40010004L)")] + public const uint DBG_TERMINATE_PROCESS = ((uint)(0x40010004)); + + [NativeTypeName("#define DBG_CONTROL_C ((DWORD )0x40010005L)")] + public const uint DBG_CONTROL_C = ((uint)(0x40010005)); + + [NativeTypeName("#define DBG_PRINTEXCEPTION_C ((DWORD )0x40010006L)")] + public const uint DBG_PRINTEXCEPTION_C = ((uint)(0x40010006)); + + [NativeTypeName("#define DBG_RIPEXCEPTION ((DWORD )0x40010007L)")] + public const uint DBG_RIPEXCEPTION = ((uint)(0x40010007)); + + [NativeTypeName("#define DBG_CONTROL_BREAK ((DWORD )0x40010008L)")] + public const uint DBG_CONTROL_BREAK = ((uint)(0x40010008)); + + [NativeTypeName("#define DBG_COMMAND_EXCEPTION ((DWORD )0x40010009L)")] + public const uint DBG_COMMAND_EXCEPTION = ((uint)(0x40010009)); + + [NativeTypeName("#define DBG_PRINTEXCEPTION_WIDE_C ((DWORD )0x4001000AL)")] + public const uint DBG_PRINTEXCEPTION_WIDE_C = ((uint)(0x4001000A)); + + [NativeTypeName("#define DBG_EXCEPTION_NOT_HANDLED ((DWORD )0x80010001L)")] + public const uint DBG_EXCEPTION_NOT_HANDLED = ((uint)(0x80010001)); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/DEFAULT.cs b/sources/Interop/Windows/Windows/um/winnt/DEFAULT.cs new file mode 100644 index 0000000000..5c938cae6f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/DEFAULT.cs @@ -0,0 +1,15 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using static TerraFX.Interop.Windows.SECURITY_IMPERSONATION_LEVEL; + +namespace TerraFX.Interop.Windows +{ + public static partial class DEFAULT + { + [NativeTypeName("#define DEFAULT_IMPERSONATION_LEVEL SecurityImpersonation")] + public const SECURITY_IMPERSONATION_LEVEL DEFAULT_IMPERSONATION_LEVEL = SecurityImpersonation; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/DEVICEFAMILYDEVICEFORM.cs b/sources/Interop/Windows/Windows/um/winnt/DEVICEFAMILYDEVICEFORM.cs new file mode 100644 index 0000000000..1a0794d2bb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/DEVICEFAMILYDEVICEFORM.cs @@ -0,0 +1,157 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICEFAMILYDEVICEFORM + { + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_KEY L\"\\\\Registry\\\\Machine\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\OEM\"")] + public const string DEVICEFAMILYDEVICEFORM_KEY = "\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\OEM"; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_VALUE L\"DeviceForm\"")] + public const string DEVICEFAMILYDEVICEFORM_VALUE = "DeviceForm"; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_UNKNOWN 0x00000000")] + public const int DEVICEFAMILYDEVICEFORM_UNKNOWN = 0x00000000; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_PHONE 0x00000001")] + public const int DEVICEFAMILYDEVICEFORM_PHONE = 0x00000001; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_TABLET 0x00000002")] + public const int DEVICEFAMILYDEVICEFORM_TABLET = 0x00000002; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_DESKTOP 0x00000003")] + public const int DEVICEFAMILYDEVICEFORM_DESKTOP = 0x00000003; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_NOTEBOOK 0x00000004")] + public const int DEVICEFAMILYDEVICEFORM_NOTEBOOK = 0x00000004; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_CONVERTIBLE 0x00000005")] + public const int DEVICEFAMILYDEVICEFORM_CONVERTIBLE = 0x00000005; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_DETACHABLE 0x00000006")] + public const int DEVICEFAMILYDEVICEFORM_DETACHABLE = 0x00000006; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_ALLINONE 0x00000007")] + public const int DEVICEFAMILYDEVICEFORM_ALLINONE = 0x00000007; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_STICKPC 0x00000008")] + public const int DEVICEFAMILYDEVICEFORM_STICKPC = 0x00000008; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_PUCK 0x00000009")] + public const int DEVICEFAMILYDEVICEFORM_PUCK = 0x00000009; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_LARGESCREEN 0x0000000A")] + public const int DEVICEFAMILYDEVICEFORM_LARGESCREEN = 0x0000000A; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_HMD 0x0000000B")] + public const int DEVICEFAMILYDEVICEFORM_HMD = 0x0000000B; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRY_HANDHELD 0x0000000C")] + public const int DEVICEFAMILYDEVICEFORM_INDUSTRY_HANDHELD = 0x0000000C; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRY_TABLET 0x0000000D")] + public const int DEVICEFAMILYDEVICEFORM_INDUSTRY_TABLET = 0x0000000D; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_BANKING 0x0000000E")] + public const int DEVICEFAMILYDEVICEFORM_BANKING = 0x0000000E; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_BUILDING_AUTOMATION 0x0000000F")] + public const int DEVICEFAMILYDEVICEFORM_BUILDING_AUTOMATION = 0x0000000F; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_DIGITAL_SIGNAGE 0x00000010")] + public const int DEVICEFAMILYDEVICEFORM_DIGITAL_SIGNAGE = 0x00000010; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_GAMING 0x00000011")] + public const int DEVICEFAMILYDEVICEFORM_GAMING = 0x00000011; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_HOME_AUTOMATION 0x00000012")] + public const int DEVICEFAMILYDEVICEFORM_HOME_AUTOMATION = 0x00000012; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRIAL_AUTOMATION 0x00000013")] + public const int DEVICEFAMILYDEVICEFORM_INDUSTRIAL_AUTOMATION = 0x00000013; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_KIOSK 0x00000014")] + public const int DEVICEFAMILYDEVICEFORM_KIOSK = 0x00000014; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_MAKER_BOARD 0x00000015")] + public const int DEVICEFAMILYDEVICEFORM_MAKER_BOARD = 0x00000015; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_MEDICAL 0x00000016")] + public const int DEVICEFAMILYDEVICEFORM_MEDICAL = 0x00000016; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_NETWORKING 0x00000017")] + public const int DEVICEFAMILYDEVICEFORM_NETWORKING = 0x00000017; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_POINT_OF_SERVICE 0x00000018")] + public const int DEVICEFAMILYDEVICEFORM_POINT_OF_SERVICE = 0x00000018; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_PRINTING 0x00000019")] + public const int DEVICEFAMILYDEVICEFORM_PRINTING = 0x00000019; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_THIN_CLIENT 0x0000001A")] + public const int DEVICEFAMILYDEVICEFORM_THIN_CLIENT = 0x0000001A; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_TOY 0x0000001B")] + public const int DEVICEFAMILYDEVICEFORM_TOY = 0x0000001B; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_VENDING 0x0000001C")] + public const int DEVICEFAMILYDEVICEFORM_VENDING = 0x0000001C; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRY_OTHER 0x0000001D")] + public const int DEVICEFAMILYDEVICEFORM_INDUSTRY_OTHER = 0x0000001D; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE 0x0000001E")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE = 0x0000001E; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE_S 0x0000001F")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE_S = 0x0000001F; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE_X 0x00000020")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE_X = 0x00000020; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE_X_DEVKIT 0x00000021")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE_X_DEVKIT = 0x00000021; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X 0x00000022")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X = 0x00000022; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X_DEVKIT 0x00000023")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X_DEVKIT = 0x00000023; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_00 0x00000024")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_00 = 0x00000024; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_01 0x00000025")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_01 = 0x00000025; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_02 0x00000026")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_02 = 0x00000026; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_03 0x00000027")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_03 = 0x00000027; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_04 0x00000028")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_04 = 0x00000028; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_05 0x00000029")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_05 = 0x00000029; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_06 0x0000002A")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_06 = 0x0000002A; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_07 0x0000002B")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_07 = 0x0000002B; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_08 0x0000002C")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_08 = 0x0000002C; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_09 0x0000002D")] + public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_09 = 0x0000002D; + + [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_MAX 0x0000002D")] + public const int DEVICEFAMILYDEVICEFORM_MAX = 0x0000002D; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/DEVICEFAMILYINFOENUM.cs b/sources/Interop/Windows/Windows/um/winnt/DEVICEFAMILYINFOENUM.cs new file mode 100644 index 0000000000..a9b4d265e8 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/DEVICEFAMILYINFOENUM.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class DEVICEFAMILYINFOENUM + { + [NativeTypeName("#define DEVICEFAMILYINFOENUM_UAP 0x00000000")] + public const int DEVICEFAMILYINFOENUM_UAP = 0x00000000; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_8X 0x00000001")] + public const int DEVICEFAMILYINFOENUM_WINDOWS_8X = 0x00000001; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_PHONE_8X 0x00000002")] + public const int DEVICEFAMILYINFOENUM_WINDOWS_PHONE_8X = 0x00000002; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_DESKTOP 0x00000003")] + public const int DEVICEFAMILYINFOENUM_DESKTOP = 0x00000003; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_MOBILE 0x00000004")] + public const int DEVICEFAMILYINFOENUM_MOBILE = 0x00000004; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_XBOX 0x00000005")] + public const int DEVICEFAMILYINFOENUM_XBOX = 0x00000005; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_TEAM 0x00000006")] + public const int DEVICEFAMILYINFOENUM_TEAM = 0x00000006; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_IOT 0x00000007")] + public const int DEVICEFAMILYINFOENUM_IOT = 0x00000007; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_IOT_HEADLESS 0x00000008")] + public const int DEVICEFAMILYINFOENUM_IOT_HEADLESS = 0x00000008; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_SERVER 0x00000009")] + public const int DEVICEFAMILYINFOENUM_SERVER = 0x00000009; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_HOLOGRAPHIC 0x0000000A")] + public const int DEVICEFAMILYINFOENUM_HOLOGRAPHIC = 0x0000000A; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_XBOXSRA 0x0000000B")] + public const int DEVICEFAMILYINFOENUM_XBOXSRA = 0x0000000B; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_XBOXERA 0x0000000C")] + public const int DEVICEFAMILYINFOENUM_XBOXERA = 0x0000000C; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_SERVER_NANO 0x0000000D")] + public const int DEVICEFAMILYINFOENUM_SERVER_NANO = 0x0000000D; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_8828080 0x0000000E")] + public const int DEVICEFAMILYINFOENUM_8828080 = 0x0000000E; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_7067329 0x0000000F")] + public const int DEVICEFAMILYINFOENUM_7067329 = 0x0000000F; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_CORE 0x00000010")] + public const int DEVICEFAMILYINFOENUM_WINDOWS_CORE = 0x00000010; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_CORE_HEADLESS 0x00000011")] + public const int DEVICEFAMILYINFOENUM_WINDOWS_CORE_HEADLESS = 0x00000011; + + [NativeTypeName("#define DEVICEFAMILYINFOENUM_MAX 0x00000011")] + public const int DEVICEFAMILYINFOENUM_MAX = 0x00000011; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/EMARCH.cs b/sources/Interop/Windows/Windows/um/winnt/EMARCH.cs new file mode 100644 index 0000000000..01c780ec6f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/EMARCH.cs @@ -0,0 +1,106 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EMARCH + { + [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_INST_WORD_X 3")] + public const int EMARCH_ENC_I17_IMM7B_INST_WORD_X = 3; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_SIZE_X 7")] + public const int EMARCH_ENC_I17_IMM7B_SIZE_X = 7; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_INST_WORD_POS_X 4")] + public const int EMARCH_ENC_I17_IMM7B_INST_WORD_POS_X = 4; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_VAL_POS_X 0")] + public const int EMARCH_ENC_I17_IMM7B_VAL_POS_X = 0; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_INST_WORD_X 3")] + public const int EMARCH_ENC_I17_IMM9D_INST_WORD_X = 3; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_SIZE_X 9")] + public const int EMARCH_ENC_I17_IMM9D_SIZE_X = 9; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_INST_WORD_POS_X 18")] + public const int EMARCH_ENC_I17_IMM9D_INST_WORD_POS_X = 18; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_VAL_POS_X 7")] + public const int EMARCH_ENC_I17_IMM9D_VAL_POS_X = 7; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_INST_WORD_X 3")] + public const int EMARCH_ENC_I17_IMM5C_INST_WORD_X = 3; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_SIZE_X 5")] + public const int EMARCH_ENC_I17_IMM5C_SIZE_X = 5; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_INST_WORD_POS_X 13")] + public const int EMARCH_ENC_I17_IMM5C_INST_WORD_POS_X = 13; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_VAL_POS_X 16")] + public const int EMARCH_ENC_I17_IMM5C_VAL_POS_X = 16; + + [NativeTypeName("#define EMARCH_ENC_I17_IC_INST_WORD_X 3")] + public const int EMARCH_ENC_I17_IC_INST_WORD_X = 3; + + [NativeTypeName("#define EMARCH_ENC_I17_IC_SIZE_X 1")] + public const int EMARCH_ENC_I17_IC_SIZE_X = 1; + + [NativeTypeName("#define EMARCH_ENC_I17_IC_INST_WORD_POS_X 12")] + public const int EMARCH_ENC_I17_IC_INST_WORD_POS_X = 12; + + [NativeTypeName("#define EMARCH_ENC_I17_IC_VAL_POS_X 21")] + public const int EMARCH_ENC_I17_IC_VAL_POS_X = 21; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_INST_WORD_X 1")] + public const int EMARCH_ENC_I17_IMM41a_INST_WORD_X = 1; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_SIZE_X 10")] + public const int EMARCH_ENC_I17_IMM41a_SIZE_X = 10; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_INST_WORD_POS_X 14")] + public const int EMARCH_ENC_I17_IMM41a_INST_WORD_POS_X = 14; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_VAL_POS_X 22")] + public const int EMARCH_ENC_I17_IMM41a_VAL_POS_X = 22; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_INST_WORD_X 1")] + public const int EMARCH_ENC_I17_IMM41b_INST_WORD_X = 1; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_SIZE_X 8")] + public const int EMARCH_ENC_I17_IMM41b_SIZE_X = 8; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_INST_WORD_POS_X 24")] + public const int EMARCH_ENC_I17_IMM41b_INST_WORD_POS_X = 24; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_VAL_POS_X 32")] + public const int EMARCH_ENC_I17_IMM41b_VAL_POS_X = 32; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_INST_WORD_X 2")] + public const int EMARCH_ENC_I17_IMM41c_INST_WORD_X = 2; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_SIZE_X 23")] + public const int EMARCH_ENC_I17_IMM41c_SIZE_X = 23; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_INST_WORD_POS_X 0")] + public const int EMARCH_ENC_I17_IMM41c_INST_WORD_POS_X = 0; + + [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_VAL_POS_X 40")] + public const int EMARCH_ENC_I17_IMM41c_VAL_POS_X = 40; + + [NativeTypeName("#define EMARCH_ENC_I17_SIGN_INST_WORD_X 3")] + public const int EMARCH_ENC_I17_SIGN_INST_WORD_X = 3; + + [NativeTypeName("#define EMARCH_ENC_I17_SIGN_SIZE_X 1")] + public const int EMARCH_ENC_I17_SIGN_SIZE_X = 1; + + [NativeTypeName("#define EMARCH_ENC_I17_SIGN_INST_WORD_POS_X 27")] + public const int EMARCH_ENC_I17_SIGN_INST_WORD_POS_X = 27; + + [NativeTypeName("#define EMARCH_ENC_I17_SIGN_VAL_POS_X 63")] + public const int EMARCH_ENC_I17_SIGN_VAL_POS_X = 63; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/ENLISTMENT.cs b/sources/Interop/Windows/Windows/um/winnt/ENLISTMENT.cs new file mode 100644 index 0000000000..856113f891 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/ENLISTMENT.cs @@ -0,0 +1,37 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ENLISTMENT + { + [NativeTypeName("#define ENLISTMENT_QUERY_INFORMATION ( 0x0001 )")] + public const int ENLISTMENT_QUERY_INFORMATION = (0x0001); + + [NativeTypeName("#define ENLISTMENT_SET_INFORMATION ( 0x0002 )")] + public const int ENLISTMENT_SET_INFORMATION = (0x0002); + + [NativeTypeName("#define ENLISTMENT_RECOVER ( 0x0004 )")] + public const int ENLISTMENT_RECOVER = (0x0004); + + [NativeTypeName("#define ENLISTMENT_SUBORDINATE_RIGHTS ( 0x0008 )")] + public const int ENLISTMENT_SUBORDINATE_RIGHTS = (0x0008); + + [NativeTypeName("#define ENLISTMENT_SUPERIOR_RIGHTS ( 0x0010 )")] + public const int ENLISTMENT_SUPERIOR_RIGHTS = (0x0010); + + [NativeTypeName("#define ENLISTMENT_GENERIC_READ (STANDARD_RIGHTS_READ |\\\r\n ENLISTMENT_QUERY_INFORMATION)")] + public const int ENLISTMENT_GENERIC_READ = (((0x00020000)) | (0x0001)); + + [NativeTypeName("#define ENLISTMENT_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n ENLISTMENT_SET_INFORMATION |\\\r\n ENLISTMENT_RECOVER |\\\r\n ENLISTMENT_SUBORDINATE_RIGHTS |\\\r\n ENLISTMENT_SUPERIOR_RIGHTS)")] + public const int ENLISTMENT_GENERIC_WRITE = (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)); + + [NativeTypeName("#define ENLISTMENT_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\\\r\n ENLISTMENT_RECOVER |\\\r\n ENLISTMENT_SUBORDINATE_RIGHTS |\\\r\n ENLISTMENT_SUPERIOR_RIGHTS)")] + public const int ENLISTMENT_GENERIC_EXECUTE = (((0x00020000)) | (0x0004) | (0x0008) | (0x0010)); + + [NativeTypeName("#define ENLISTMENT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED |\\\r\n ENLISTMENT_GENERIC_READ |\\\r\n ENLISTMENT_GENERIC_WRITE |\\\r\n ENLISTMENT_GENERIC_EXECUTE)")] + public const int ENLISTMENT_ALL_ACCESS = ((0x000F0000) | (((0x00020000)) | (0x0001)) | (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)) | (((0x00020000)) | (0x0004) | (0x0008) | (0x0010))); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/ES.cs b/sources/Interop/Windows/Windows/um/winnt/ES.cs new file mode 100644 index 0000000000..194ad3a347 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/ES.cs @@ -0,0 +1,25 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class ES + { + [NativeTypeName("#define ES_SYSTEM_REQUIRED ((DWORD)0x00000001)")] + public const uint ES_SYSTEM_REQUIRED = ((uint)(0x00000001)); + + [NativeTypeName("#define ES_DISPLAY_REQUIRED ((DWORD)0x00000002)")] + public const uint ES_DISPLAY_REQUIRED = ((uint)(0x00000002)); + + [NativeTypeName("#define ES_USER_PRESENT ((DWORD)0x00000004)")] + public const uint ES_USER_PRESENT = ((uint)(0x00000004)); + + [NativeTypeName("#define ES_AWAYMODE_REQUIRED ((DWORD)0x00000040)")] + public const uint ES_AWAYMODE_REQUIRED = ((uint)(0x00000040)); + + [NativeTypeName("#define ES_CONTINUOUS ((DWORD)0x80000000)")] + public const uint ES_CONTINUOUS = ((uint)(0x80000000)); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/EVENTLOG.cs b/sources/Interop/Windows/Windows/um/winnt/EVENTLOG.cs new file mode 100644 index 0000000000..ae8c3ed3b2 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/EVENTLOG.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EVENTLOG + { + [NativeTypeName("#define EVENTLOG_SEQUENTIAL_READ 0x0001")] + public const int EVENTLOG_SEQUENTIAL_READ = 0x0001; + + [NativeTypeName("#define EVENTLOG_SEEK_READ 0x0002")] + public const int EVENTLOG_SEEK_READ = 0x0002; + + [NativeTypeName("#define EVENTLOG_FORWARDS_READ 0x0004")] + public const int EVENTLOG_FORWARDS_READ = 0x0004; + + [NativeTypeName("#define EVENTLOG_BACKWARDS_READ 0x0008")] + public const int EVENTLOG_BACKWARDS_READ = 0x0008; + + [NativeTypeName("#define EVENTLOG_SUCCESS 0x0000")] + public const int EVENTLOG_SUCCESS = 0x0000; + + [NativeTypeName("#define EVENTLOG_ERROR_TYPE 0x0001")] + public const int EVENTLOG_ERROR_TYPE = 0x0001; + + [NativeTypeName("#define EVENTLOG_WARNING_TYPE 0x0002")] + public const int EVENTLOG_WARNING_TYPE = 0x0002; + + [NativeTypeName("#define EVENTLOG_INFORMATION_TYPE 0x0004")] + public const int EVENTLOG_INFORMATION_TYPE = 0x0004; + + [NativeTypeName("#define EVENTLOG_AUDIT_SUCCESS 0x0008")] + public const int EVENTLOG_AUDIT_SUCCESS = 0x0008; + + [NativeTypeName("#define EVENTLOG_AUDIT_FAILURE 0x0010")] + public const int EVENTLOG_AUDIT_FAILURE = 0x0010; + + [NativeTypeName("#define EVENTLOG_START_PAIRED_EVENT 0x0001")] + public const int EVENTLOG_START_PAIRED_EVENT = 0x0001; + + [NativeTypeName("#define EVENTLOG_END_PAIRED_EVENT 0x0002")] + public const int EVENTLOG_END_PAIRED_EVENT = 0x0002; + + [NativeTypeName("#define EVENTLOG_END_ALL_PAIRED_EVENTS 0x0004")] + public const int EVENTLOG_END_ALL_PAIRED_EVENTS = 0x0004; + + [NativeTypeName("#define EVENTLOG_PAIRED_EVENT_ACTIVE 0x0008")] + public const int EVENTLOG_PAIRED_EVENT_ACTIVE = 0x0008; + + [NativeTypeName("#define EVENTLOG_PAIRED_EVENT_INACTIVE 0x0010")] + public const int EVENTLOG_PAIRED_EVENT_INACTIVE = 0x0010; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/EXCEPTION.cs b/sources/Interop/Windows/Windows/um/winnt/EXCEPTION.cs new file mode 100644 index 0000000000..f40e4d3469 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/EXCEPTION.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class EXCEPTION + { + [NativeTypeName("#define EXCEPTION_READ_FAULT 0")] + public const int EXCEPTION_READ_FAULT = 0; + + [NativeTypeName("#define EXCEPTION_WRITE_FAULT 1")] + public const int EXCEPTION_WRITE_FAULT = 1; + + [NativeTypeName("#define EXCEPTION_EXECUTE_FAULT 8")] + public const int EXCEPTION_EXECUTE_FAULT = 8; + + [NativeTypeName("#define EXCEPTION_NONCONTINUABLE 0x1")] + public const int EXCEPTION_NONCONTINUABLE = 0x1; + + [NativeTypeName("#define EXCEPTION_UNWINDING 0x2")] + public const int EXCEPTION_UNWINDING = 0x2; + + [NativeTypeName("#define EXCEPTION_EXIT_UNWIND 0x4")] + public const int EXCEPTION_EXIT_UNWIND = 0x4; + + [NativeTypeName("#define EXCEPTION_STACK_INVALID 0x8")] + public const int EXCEPTION_STACK_INVALID = 0x8; + + [NativeTypeName("#define EXCEPTION_NESTED_CALL 0x10")] + public const int EXCEPTION_NESTED_CALL = 0x10; + + [NativeTypeName("#define EXCEPTION_TARGET_UNWIND 0x20")] + public const int EXCEPTION_TARGET_UNWIND = 0x20; + + [NativeTypeName("#define EXCEPTION_COLLIDED_UNWIND 0x40")] + public const int EXCEPTION_COLLIDED_UNWIND = 0x40; + + [NativeTypeName("#define EXCEPTION_SOFTWARE_ORIGINATE 0x80")] + public const int EXCEPTION_SOFTWARE_ORIGINATE = 0x80; + + [NativeTypeName("#define EXCEPTION_UNWIND (EXCEPTION_UNWINDING | EXCEPTION_EXIT_UNWIND | \\\r\n EXCEPTION_TARGET_UNWIND | EXCEPTION_COLLIDED_UNWIND)")] + public const int EXCEPTION_UNWIND = (0x2 | 0x4 | 0x20 | 0x40); + + [NativeTypeName("#define EXCEPTION_MAXIMUM_PARAMETERS 15")] + public const int EXCEPTION_MAXIMUM_PARAMETERS = 15; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/GUID.cs b/sources/Interop/Windows/Windows/um/winnt/GUID.cs new file mode 100644 index 0000000000..b8c8ffab20 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/GUID.cs @@ -0,0 +1,4965 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class GUID + { + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MAX_POWER_SAVINGS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x08, 0x13, 0x84, 0xA1, + 0x41, 0x35, + 0xAB, 0x4F, + 0xBC, + 0x81, + 0xF7, + 0x15, + 0x56, + 0xF2, + 0x0B, + 0x4A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MIN_POWER_SAVINGS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0x7F, 0x5E, 0x8C, + 0xBF, 0xE8, + 0x96, 0x4A, + 0x9A, + 0x85, + 0xA6, + 0xE2, + 0x3A, + 0x8C, + 0x63, + 0x5C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_TYPICAL_POWER_SAVINGS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x22, 0x42, 0x1B, 0x38, + 0x94, 0xF6, + 0xF0, 0x41, + 0x96, + 0x85, + 0xFF, + 0x5B, + 0xB2, + 0x60, + 0xDF, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_POWERSCHEME_PERSONALITY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x85, 0x5D, 0x24, + 0x43, 0x39, + 0x22, 0x44, + 0xB0, + 0x25, + 0x13, + 0xA7, + 0x84, + 0xF6, + 0x79, + 0xB7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ACTIVE_POWERSCHEME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x86, 0xF2, 0xF9, 0x31, + 0x84, 0x50, + 0xFE, 0x42, + 0xB7, + 0x20, + 0x2B, + 0x02, + 0x64, + 0x99, + 0x37, + 0x63 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_IDLE_RESILIENCY_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x30, 0x11, 0x60, 0x2E, + 0x51, 0x53, + 0x9D, 0x4D, + 0x8E, + 0x04, + 0x25, + 0x29, + 0x66, + 0xBA, + 0xD0, + 0x54 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_IDLE_RESILIENCY_PERIOD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x79, 0x2B, 0xC4, + 0x3A, 0xAA, + 0x4B, 0x48, + 0xA9, + 0x8F, + 0x2C, + 0xF3, + 0x2A, + 0xA9, + 0x0A, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DEEP_SLEEP_ENABLED + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEE, 0xF7, 0x02, 0xD5, + 0xC7, 0x1D, + 0xFD, 0x4E, + 0xA5, + 0x5D, + 0xF0, + 0x4B, + 0x6F, + 0x5C, + 0x05, + 0x45 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DEEP_SLEEP_PLATFORM_STATE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB8, 0x2F, 0x3F, 0xD2, + 0x36, 0x95, + 0x38, 0x40, + 0x9C, + 0x94, + 0x1C, + 0xE0, + 0x2E, + 0x5C, + 0x21, + 0x52 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_COALESCING_POWERDOWN_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB4, 0x0E, 0x6F, 0xC3, + 0x88, 0x29, + 0x70, 0x4A, + 0x8E, + 0xEE, + 0x08, + 0x84, + 0xFC, + 0x2C, + 0x24, + 0x33 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0xBC, 0x66, 0x31, + 0x98, 0x7E, + 0x03, 0x4E, + 0xB3, + 0x4E, + 0xEC, + 0x0F, + 0x5F, + 0x2B, + 0x21, + 0x8E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x5F, 0xB9, 0x16, 0x75, + 0x76, 0xF7, + 0x64, 0x44, + 0x8C, + 0x53, + 0x06, + 0x16, + 0x7F, + 0x40, + 0xCC, + 0x99 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_POWERDOWN_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x21, 0xC0, 0x0B, 0x3C, + 0xA8, 0xC8, + 0x07, 0x4E, + 0xA9, + 0x73, + 0x6B, + 0x14, + 0xCB, + 0xCB, + 0x2B, + 0x7E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_ANNOYANCE_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2D, 0xCF, 0xDB, 0x82, + 0x67, 0xCD, + 0xC5, 0x40, + 0xBF, + 0xDC, + 0x9F, + 0x1A, + 0x5C, + 0xCD, + 0x46, + 0x63 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDF, 0x04, 0xD9, 0xEE, + 0x42, 0xB1, + 0x83, 0x41, + 0xB1, + 0x0B, + 0x5A, + 0x11, + 0x97, + 0xA3, + 0x78, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_DIM_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9B, 0xA2, 0xAA, 0x17, + 0x43, 0x8B, + 0x94, 0x4B, + 0xAA, + 0xFE, + 0x35, + 0xF6, + 0x4D, + 0xAA, + 0xF1, + 0xEE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_ADAPTIVE_POWERDOWN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x22, 0x9D, 0x95, 0x90, + 0xA1, 0xD6, + 0xB9, 0x49, + 0xAF, + 0x93, + 0xBC, + 0xE8, + 0x85, + 0xAD, + 0x33, + 0x5B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MONITOR_POWER_ON + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0x10, 0x73, 0x02, + 0x10, 0x45, + 0x26, 0x45, + 0x99, + 0xE6, + 0xE5, + 0xA1, + 0x7E, + 0xBD, + 0x1A, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x82, 0x5E, 0xED, 0xAD, + 0x09, 0xB9, + 0x19, 0x46, + 0x99, + 0x49, + 0xF5, + 0xD7, + 0x1D, + 0xAC, + 0x0B, + 0xCB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE2, 0xFD, 0xFB, 0xF1, + 0x60, 0xA9, + 0x65, 0x41, + 0x9F, + 0x88, + 0x50, + 0x66, + 0x79, + 0x11, + 0xCE, + 0x96 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC6, 0xE2, 0xFE, 0x8F, + 0x01, 0x2D, + 0xBE, 0x46, + 0xAD, + 0xB9, + 0x39, + 0x8A, + 0xDD, + 0xC5, + 0xB4, + 0xFF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x66, 0xAA, 0xD9, 0xFB, + 0x53, 0x95, + 0x97, 0x40, + 0xBA, + 0x44, + 0xED, + 0x6E, + 0x9D, + 0x65, + 0xEA, + 0xB8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_CONSOLE_DISPLAY_STATE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x56, 0x95, 0xE6, 0x6F, + 0x4A, 0x70, + 0xA0, 0x47, + 0x8F, + 0x24, + 0xC2, + 0x8D, + 0x93, + 0x6F, + 0xDA, + 0x47 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ALLOW_DISPLAY_REQUIRED + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDA, 0xB8, 0xCE, 0xA9, + 0x46, 0xCD, + 0xFB, 0x44, + 0xA9, + 0x8B, + 0x02, + 0xAF, + 0x69, + 0xDE, + 0x46, + 0x23 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_VIDEO_CONSOLE_LOCK_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0xB3, 0xC4, 0x8E, + 0x68, 0x68, + 0xC2, 0x48, + 0xBE, + 0x75, + 0x4F, + 0x30, + 0x44, + 0xBE, + 0x88, + 0xA7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ADVANCED_COLOR_QUALITY_BIAS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x69, 0x3E, 0x4C, 0x68, + 0xF7, 0xA4, + 0x14, 0x40, + 0x87, + 0x54, + 0xD4, + 0x51, + 0x79, + 0xA5, + 0x61, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x16, 0xB9, 0x19, 0x86, + 0x04, 0xE0, + 0xD8, 0x4D, + 0x9B, + 0x66, + 0xDA, + 0xE8, + 0x6F, + 0x80, + 0x66, + 0x98 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_NON_ADAPTIVE_INPUT_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBC, 0xBF, 0xDB, 0x5A, + 0x4E, 0x07, + 0xA1, 0x4D, + 0xBA, + 0x38, + 0xDB, + 0x8B, + 0x36, + 0xB2, + 0xC8, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ADAPTIVE_INPUT_CONTROLLER_STATE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE9, 0xFA, 0x98, 0x0E, + 0x5A, 0xF4, + 0xE1, 0x4D, + 0xA7, + 0x57, + 0x60, + 0x31, + 0xF1, + 0x97, + 0xF6, + 0xEA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0xEE, 0x12, 0x00, + 0x41, 0x90, + 0x5D, 0x4B, + 0x9B, + 0x77, + 0x53, + 0x5F, + 0xBA, + 0x8B, + 0x14, + 0x42 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_MAX_POWER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0xA5, 0xDE, 0x51, + 0x38, 0xBB, + 0xC4, 0x4B, + 0x99, + 0x1B, + 0xEA, + 0xCF, + 0x37, + 0xBE, + 0x5E, + 0xC8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_POWERDOWN_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0xE2, 0x38, 0x67, + 0xA5, 0xE8, + 0x42, 0x4A, + 0xB1, + 0x6A, + 0xE0, + 0x40, + 0xE7, + 0x69, + 0x75, + 0x6E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_IDLE_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA8, 0x9B, 0xE3, 0x58, + 0xE6, 0xB8, + 0xF6, 0x4E, + 0x90, + 0xD0, + 0x89, + 0xAE, + 0x32, + 0xB2, + 0x58, + 0xD6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_BURST_IGNORE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0xC6, 0xE3, 0x80, + 0x94, 0xBB, + 0xD8, 0x4A, + 0xBB, + 0xE0, + 0x0D, + 0x31, + 0x95, + 0xEF, + 0xC6, + 0x63 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_ADAPTIVE_POWERDOWN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE1, 0x32, 0x6A, 0x39, + 0x9A, 0x49, + 0xB2, 0x40, + 0x91, + 0x24, + 0xA9, + 0x6A, + 0xFE, + 0x70, + 0x76, + 0x67 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISK_NVME_NOPPME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB6, 0x72, 0x73, 0xFC, + 0x2D, 0xAB, + 0xEE, 0x43, + 0x87, + 0x97, + 0x15, + 0xE9, + 0x84, + 0x1F, + 0x2C, + 0xCA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SLEEP_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA8, 0x9F, 0x8C, 0x23, + 0xAD, 0x0A, + 0xED, 0x41, + 0x83, + 0xF4, + 0x97, + 0xBE, + 0x24, + 0x2C, + 0x8F, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SLEEP_IDLE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE0, 0x32, 0xCD, 0x81, + 0x33, 0x78, + 0xF3, 0x44, + 0x87, + 0x37, + 0x70, + 0x81, + 0xF3, + 0x8D, + 0x1F, + 0x70 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_STANDBY_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0xC1, 0xF6, 0x29, + 0xDA, 0x86, + 0xC5, 0x48, + 0x9F, + 0xDB, + 0xF2, + 0xB6, + 0x7B, + 0x1F, + 0x44, + 0xDA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_UNATTEND_SLEEP_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF9, 0xA2, 0xC4, 0x7B, + 0xFC, 0xD8, + 0x69, 0x44, + 0xB0, + 0x7B, + 0x33, + 0xEB, + 0x78, + 0x5A, + 0xAC, + 0xA0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_HIBERNATE_TIMEOUT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0x15, 0x78, 0x9D, + 0xE4, 0x7E, + 0x7E, 0x49, + 0x88, + 0x88, + 0x51, + 0x5A, + 0x05, + 0xF0, + 0x23, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_HIBERNATE_FASTS4_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x29, 0x6D, 0xAC, 0x94, + 0xCE, 0x73, + 0xA6, 0x41, + 0x80, + 0x9F, + 0x63, + 0x63, + 0xBA, + 0x21, + 0xB4, + 0x7E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_CRITICAL_POWER_TRANSITION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x25, 0x70, 0xA2, 0xB7, + 0x69, 0xE5, + 0xC2, 0x46, + 0xA5, + 0x04, + 0x2B, + 0x96, + 0xCA, + 0xD2, + 0x25, + 0xA1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SYSTEM_AWAYMODE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x80, 0xF5, 0xA7, 0x98, + 0xF7, 0x01, + 0xAA, 0x48, + 0x9C, + 0x0F, + 0x44, + 0x35, + 0x2C, + 0x29, + 0xE5, + 0xC0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ALLOW_AWAYMODE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0xA1, 0xDF, 0x25, + 0xD1, 0x5D, + 0x36, 0x47, + 0xB5, + 0xAB, + 0xE8, + 0xA3, + 0x7B, + 0x5B, + 0x81, + 0x87 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_USER_PRESENCE_PREDICTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x05, 0x17, 0x01, 0x82, + 0x95, 0xFB, + 0x46, 0x4D, + 0x8D, + 0x35, + 0x40, + 0x42, + 0xB1, + 0xD2, + 0x0D, + 0xEF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_STANDBY_BUDGET_GRACE_PERIOD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE1, 0x7F, 0xC0, 0x60, + 0x56, 0x05, + 0xCF, 0x45, + 0x99, + 0x03, + 0xD5, + 0x6E, + 0x32, + 0x21, + 0x02, + 0x42 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_STANDBY_BUDGET_PERCENT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xBE, 0x27, 0xE5, 0x9F, + 0x70, 0x1B, + 0xDA, 0x48, + 0x93, + 0x0D, + 0x7B, + 0xCF, + 0x17, + 0xB4, + 0x49, + 0x90 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_STANDBY_RESERVE_GRACE_PERIOD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x92, 0xEE, 0x63, 0xC7, + 0xE8, 0x71, + 0x27, 0x41, + 0x84, + 0xEB, + 0xF6, + 0xED, + 0x04, + 0x3A, + 0x3E, + 0x3D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_STANDBY_RESERVE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE5, 0xE7, 0x8F, 0x46, + 0x58, 0x11, + 0xEC, 0x46, + 0x88, + 0xBC, + 0x5B, + 0x96, + 0xC9, + 0xE4, + 0x4F, + 0xD0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_STANDBY_RESET_PERCENT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0x11, 0xCB, 0x49, + 0xE2, 0x56, + 0xFB, 0x4A, + 0x9D, + 0x38, + 0x3D, + 0xF4, + 0x78, + 0x72, + 0xE2, + 0x1B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ALLOW_STANDBY_STATES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x19, 0x25, 0xFC, 0xAB, + 0x08, 0x36, + 0x2A, 0x4C, + 0x94, + 0xEA, + 0x17, + 0x1B, + 0x0E, + 0xD5, + 0x46, + 0xAB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ALLOW_RTC_WAKE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x71, 0x3B, 0xBD, + 0x80, 0x06, + 0x9D, 0x4D, + 0x8A, + 0xB2, + 0xE1, + 0xD2, + 0xB4, + 0xAC, + 0x80, + 0x6D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_LEGACY_RTC_MITIGATION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC3, 0xBD, 0x34, 0x1A, + 0x6B, 0x7E, + 0x2E, 0x44, + 0xA9, + 0xD0, + 0x64, + 0xB6, + 0xEF, + 0x37, + 0x8E, + 0x84 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ALLOW_SYSTEM_REQUIRED + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF5, 0x95, 0xB1, 0xA4, + 0x25, 0x82, + 0xD8, 0x47, + 0x80, + 0x12, + 0x9D, + 0x41, + 0x36, + 0x97, + 0x86, + 0xE2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_POWER_SAVING_STATUS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC0, 0x58, 0x09, 0xE0, + 0x13, 0xC2, + 0xCE, 0x4A, + 0xAC, + 0x77, + 0xFE, + 0xCC, + 0xED, + 0x2E, + 0xEE, + 0xA5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ENERGY_SAVER_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x23, 0x09, 0x83, 0xDE, + 0x62, 0xA5, + 0xAF, 0x41, + 0xA0, + 0x86, + 0xE3, + 0xA2, + 0xC6, + 0xBA, + 0xD2, + 0xDA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ENERGY_SAVER_BATTERY_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCA, 0x53, 0x96, 0xE6, + 0x7F, 0xCF, + 0x05, 0x4F, + 0xAA, + 0x73, + 0xCB, + 0x83, + 0x3F, + 0xA9, + 0x0A, + 0xD4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ENERGY_SAVER_BRIGHTNESS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x84, 0x98, 0xD0, 0x13, + 0x4E, 0xF7, + 0x4A, 0x47, + 0xA8, + 0x52, + 0xB6, + 0xBD, + 0xE8, + 0xAD, + 0x03, + 0xA8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ENERGY_SAVER_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x49, 0xB3, 0x5B, 0x5C, + 0x29, 0xAD, + 0xE2, 0x4E, + 0x9D, + 0x0B, + 0x2B, + 0x25, + 0x27, + 0x0F, + 0x7A, + 0x81 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SYSTEM_BUTTON_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x89, 0x1E, 0x97, 0x4F, + 0xBD, 0xEE, + 0x55, 0x44, + 0xA8, + 0xDE, + 0x9E, + 0x59, + 0x04, + 0x0E, + 0x73, + 0x47 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_POWERBUTTON_ACTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA3, 0xEF, 0x48, 0x76, + 0x9C, 0xDD, + 0x3E, 0x4E, + 0xB5, + 0x66, + 0x50, + 0xF9, + 0x29, + 0x38, + 0x62, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SLEEPBUTTON_ACTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC0, 0x6B, 0x99, 0x96, + 0x50, 0xAD, + 0xEC, 0x47, + 0x92, + 0x3B, + 0x6F, + 0x41, + 0x87, + 0x4D, + 0xD9, + 0xEB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_USERINTERFACEBUTTON_ACTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x53, 0x66, 0x06, 0xA7, + 0x6C, 0x8D, + 0xA8, 0x40, + 0x91, + 0x0E, + 0xA1, + 0xF5, + 0x4B, + 0x84, + 0xC7, + 0xE5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_LIDCLOSE_ACTION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x67, 0x33, 0xA8, 0x5C, + 0x45, 0x6E, + 0x9F, 0x45, + 0xA2, + 0x7B, + 0x47, + 0x6B, + 0x1D, + 0x01, + 0xC9, + 0x36 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_LIDOPEN_POWERSTATE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE7, 0x10, 0xFF, 0x99, + 0xB1, 0x23, + 0x07, 0x4C, + 0xA9, + 0xD1, + 0x5C, + 0x32, + 0x06, + 0xD7, + 0x41, + 0xB4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8D, 0x04, 0x3A, 0xE7, + 0x27, 0xBF, + 0x12, 0x4F, + 0x97, + 0x31, + 0x8B, + 0x20, + 0x76, + 0xE8, + 0x89, + 0x1F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2F, 0xA0, 0x7E, 0x63, + 0xCB, 0xBB, + 0x15, 0x40, + 0x8E, + 0x2C, + 0xA1, + 0xC7, + 0xB9, + 0xC0, + 0xB5, + 0x46 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD7, 0xD8, 0x66, 0x9A, + 0xF7, 0x4F, + 0xF9, 0x4E, + 0xB5, + 0xA2, + 0x5A, + 0x32, + 0x6C, + 0xA2, + 0xA4, + 0x69 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_0 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x7C, 0xBB, 0x5D, + 0xE9, 0x38, + 0xD2, 0x40, + 0x97, + 0x49, + 0x4F, + 0x8A, + 0x0E, + 0x9F, + 0x64, + 0x0F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCB, 0x2D, 0x74, 0xD8, + 0x6A, 0x3E, + 0x3C, 0x4B, + 0xB3, + 0xFE, + 0x37, + 0x46, + 0x23, + 0xCD, + 0xCF, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9A, 0xBA, 0x83, 0x81, + 0x10, 0xE9, + 0xDA, 0x48, + 0x87, + 0x69, + 0x14, + 0xAE, + 0x6D, + 0xC1, + 0x17, + 0x0A + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0xD9, 0xDE, 0xBC, + 0x7B, 0x18, + 0x05, 0x4D, + 0xBC, + 0xCC, + 0xF7, + 0xE5, + 0x19, + 0x60, + 0xC2, + 0x58 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x38, 0xBA, 0x1C, 0x42, + 0x8E, 0x1A, + 0x81, 0x48, + 0xAC, + 0x89, + 0xE3, + 0x3A, + 0x8B, + 0x04, + 0xEC, + 0xE4 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA2, 0x7C, 0xA0, 0x07, + 0xAF, 0xAD, + 0xD7, 0x40, + 0xB0, + 0x77, + 0x53, + 0x3A, + 0xAD, + 0xED, + 0x1B, + 0xFA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_2 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC4, 0xF0, 0xD2, 0x7F, + 0xB7, 0xFE, + 0xA3, 0x4D, + 0x81, + 0x17, + 0xE3, + 0xFB, + 0xED, + 0xC4, + 0x65, + 0x82 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x13, 0x26, 0x47, 0x80, + 0x80, 0x97, + 0x5E, 0x45, + 0xB3, + 0x08, + 0x72, + 0xD3, + 0x00, + 0x3C, + 0xF2, + 0xF8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA6, 0xD5, 0xAF, 0x58, + 0xDD, 0xC2, + 0xD2, 0x47, + 0x9F, + 0xBF, + 0xEF, + 0x70, + 0xCC, + 0x5C, + 0x59, + 0x65 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_3 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCF, 0x3C, 0x61, 0x73, + 0xFA, 0xDB, + 0x79, 0x42, + 0x83, + 0x56, + 0x49, + 0x35, + 0xF6, + 0xBF, + 0x62, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_SETTINGS_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x51, 0x32, 0x53, 0x54, + 0xBE, 0x82, + 0x24, 0x48, + 0x96, + 0xC1, + 0x47, + 0xB6, + 0x0B, + 0x74, + 0x0D, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_THROTTLE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x04, 0x73, 0x02, 0x57, + 0xF6, 0x4A, + 0x04, 0x41, + 0x92, + 0x60, + 0xE3, + 0xD9, + 0x52, + 0x48, + 0xFC, + 0x36 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MAXIMUM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF7, 0x38, 0x50, 0xBC, + 0xE0, 0x23, + 0x60, 0x49, + 0x96, + 0xDA, + 0x33, + 0xAB, + 0xAF, + 0x59, + 0x35, + 0xEC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MAXIMUM_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF7, 0x38, 0x50, 0xBC, + 0xE0, 0x23, + 0x60, 0x49, + 0x96, + 0xDA, + 0x33, + 0xAB, + 0xAF, + 0x59, + 0x35, + 0xED + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MINIMUM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8E, 0xEE, 0x3D, 0x89, + 0xEF, 0x2B, + 0xE0, 0x41, + 0x89, + 0xC6, + 0xB5, + 0x5D, + 0x09, + 0x29, + 0x96, + 0x4C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MINIMUM_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8E, 0xEE, 0x3D, 0x89, + 0xEF, 0x2B, + 0xE0, 0x41, + 0x89, + 0xC6, + 0xB5, + 0x5D, + 0x09, + 0x29, + 0x96, + 0x4D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_FREQUENCY_LIMIT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3F, 0xAE, 0xB0, 0x75, + 0xE0, 0xBC, + 0xA7, 0x45, + 0x8C, + 0x89, + 0xC9, + 0x61, + 0x1C, + 0x25, + 0xE1, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_FREQUENCY_LIMIT_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3F, 0xAE, 0xB0, 0x75, + 0xE0, 0xBC, + 0xA7, 0x45, + 0x8C, + 0x89, + 0xC9, + 0x61, + 0x1C, + 0x25, + 0xE1, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_ALLOW_THROTTLING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFD, 0xD4, 0x04, 0x3B, + 0xC7, 0x1C, + 0x23, 0x4F, + 0xAB, + 0x1C, + 0xD1, + 0x33, + 0x78, + 0x19, + 0xC4, + 0xBB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_IDLESTATE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA7, 0x62, 0xF2, 0x68, + 0x21, 0xF6, + 0x69, 0x40, + 0xB9, + 0xA5, + 0x48, + 0x74, + 0x16, + 0x9B, + 0xE2, + 0x3C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERFSTATE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x14, 0x38, 0xDC, 0xBB, + 0xE9, 0x18, + 0x63, 0x44, + 0x8A, + 0x55, + 0xD1, + 0x97, + 0x32, + 0x7C, + 0x45, + 0xC0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0xDF, 0xCA, 0x06, + 0xED, 0x64, + 0x8A, 0x44, + 0x89, + 0x27, + 0xCE, + 0x7B, + 0xF9, + 0x0E, + 0xB3, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0xDF, 0xCA, 0x06, + 0xED, 0x64, + 0x8A, 0x44, + 0x89, + 0x27, + 0xCE, + 0x7B, + 0xF9, + 0x0E, + 0xB3, + 0x5E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0xAB, 0xA0, 0x12, + 0x28, 0xFE, + 0xA9, 0x4F, + 0xB3, + 0xBD, + 0x4B, + 0x64, + 0xF4, + 0x49, + 0x60, + 0xA6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0xAB, 0xA0, 0x12, + 0x28, 0xFE, + 0xA9, 0x4F, + 0xB3, + 0xBD, + 0x4B, + 0x64, + 0xF4, + 0x49, + 0x60, + 0xA7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x1F, 0x5E, 0x46, + 0x10, 0xB6, + 0x3A, 0x47, + 0xAB, + 0x58, + 0x00, + 0xD1, + 0x07, + 0x7D, + 0xC4, + 0x18 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_POLICY_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x50, 0x1F, 0x5E, 0x46, + 0x10, 0xB6, + 0x3A, 0x47, + 0xAB, + 0x58, + 0x00, + 0xD1, + 0x07, + 0x7D, + 0xC4, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0xEF, 0xFB, 0x40, + 0x9D, 0x2E, + 0x25, 0x4D, + 0xA1, + 0x85, + 0x0C, + 0xFD, + 0x85, + 0x74, + 0xBA, + 0xC6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_POLICY_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0xEF, 0xFB, 0x40, + 0x9D, 0x2E, + 0x25, 0x4D, + 0xA1, + 0x85, + 0x0C, + 0xFD, + 0x85, + 0x74, + 0xBA, + 0xC7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x92, 0xF4, 0x4C, 0x98, + 0xED, 0x3B, + 0x88, 0x44, + 0xA8, + 0xF9, + 0x42, + 0x86, + 0xC9, + 0x7B, + 0xF5, + 0xAA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_TIME_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x92, 0xF4, 0x4C, 0x98, + 0xED, 0x3B, + 0x88, 0x44, + 0xA8, + 0xF9, + 0x42, + 0x86, + 0xC9, + 0x7B, + 0xF5, + 0xAB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9B, 0xEB, 0xED, 0xD8, + 0xCF, 0x95, + 0x95, 0x4F, + 0xA7, + 0x3C, + 0xB0, + 0x61, + 0x97, + 0x36, + 0x93, + 0xC8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_TIME_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9B, 0xEB, 0xED, 0xD8, + 0xCF, 0x95, + 0x95, 0x4F, + 0xA7, + 0x3C, + 0xB0, + 0x61, + 0x97, + 0x36, + 0x93, + 0xC9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_TIME_CHECK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0x01, 0x2B, 0x4D, + 0x5C, 0x7D, + 0x8B, 0x49, + 0x88, + 0xE2, + 0x34, + 0x34, + 0x53, + 0x92, + 0xA2, + 0xC5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_BOOST_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x44, 0xC0, 0xBC, 0x45, + 0x85, 0xD8, + 0xE2, 0x43, + 0x86, + 0x05, + 0xEE, + 0x0E, + 0xC6, + 0xE9, + 0x6B, + 0x59 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_BOOST_MODE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x38, 0x72, 0x33, 0xBE, + 0x82, 0x0D, + 0x46, 0x41, + 0xA9, + 0x60, + 0x4F, + 0x37, + 0x49, + 0xD4, + 0x70, + 0xC7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_AUTONOMOUS_MODE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8A, 0x4A, 0xAA, 0x8B, + 0xC6, 0x14, + 0x51, 0x44, + 0x8E, + 0x8B, + 0x14, + 0xBD, + 0xBD, + 0x19, + 0x75, + 0x37 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9E, 0x7F, 0x68, 0x36, + 0xA5, 0xE3, + 0xBF, 0x4D, + 0xB1, + 0xDC, + 0x15, + 0xEB, + 0x38, + 0x1C, + 0x68, + 0x63 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9E, 0x7F, 0x68, 0x36, + 0xA5, 0xE3, + 0xBF, 0x4D, + 0xB1, + 0xDC, + 0x15, + 0xEB, + 0x38, + 0x1C, + 0x68, + 0x64 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD0, 0xA3, 0xED, 0xCF, + 0x97, 0x76, + 0x66, 0x45, + 0xA9, + 0x22, + 0xA9, + 0x08, + 0x6C, + 0xD4, + 0x9D, + 0xFA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_DUTY_CYCLING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB3, 0x50, 0x44, 0x4E, + 0x79, 0x61, + 0x91, 0x4E, + 0xB8, + 0xF1, + 0x5B, + 0xB9, + 0x93, + 0x8F, + 0x81, + 0xA1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_IDLE_ALLOW_SCALING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB0, 0x93, 0x29, 0x6C, + 0x48, 0x8F, + 0x1F, 0x48, + 0xBC, + 0xC6, + 0x00, + 0xDD, + 0x27, + 0x42, + 0xAA, + 0x06 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_IDLE_DISABLE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xCA, 0xA2, 0x76, 0x5D, + 0xC0, 0xE8, + 0x2F, 0x40, + 0xA1, + 0x33, + 0x21, + 0x58, + 0x49, + 0x2D, + 0x58, + 0xAD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_IDLE_STATE_MAXIMUM + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x05, 0xE9, 0x43, 0x99, + 0x30, 0x9A, + 0xC1, 0x4E, + 0x9B, + 0x99, + 0x44, + 0xDD, + 0x3B, + 0x76, + 0xF7, + 0xA2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_IDLE_TIME_CHECK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x31, 0x1C, 0x58, 0xC4, + 0xAB, 0x89, + 0x97, 0x45, + 0x8E, + 0x2B, + 0x9C, + 0x9C, + 0xAB, + 0x44, + 0x0E, + 0x6B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x58, 0xD7, 0x92, 0x4B, + 0x24, 0x5A, + 0x51, 0x48, + 0xA4, + 0x70, + 0x81, + 0x5D, + 0x78, + 0xAE, + 0xE1, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x83, 0x48, 0x22, 0x7B, + 0xCC, 0xB3, + 0x79, 0x4D, + 0x81, + 0x9F, + 0x83, + 0x74, + 0x15, + 0x2C, + 0xBE, + 0x7C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x29, 0x14, 0xDF, + 0xF3, 0x20, + 0xDF, 0x4E, + 0x9A, + 0x4A, + 0x9C, + 0x83, + 0xD3, + 0xD7, + 0x17, + 0xD1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x27, 0x2F, 0xDD, 0x68, + 0xCE, 0xA4, + 0x11, 0x4E, + 0x84, + 0x87, + 0x37, + 0x94, + 0xE4, + 0x13, + 0x5D, + 0xFA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x79, 0x06, 0xBE, 0xC7, + 0x17, 0x28, + 0x69, 0x4D, + 0x9D, + 0x02, + 0x51, + 0x9A, + 0x53, + 0x7E, + 0xD0, + 0xC6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x1B, 0x02, 0x71, + 0x49, 0xC7, + 0x21, 0x4D, + 0xBE, + 0x74, + 0xA0, + 0x0F, + 0x33, + 0x5D, + 0x58, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MAX_CORES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x31, 0x20, 0x06, 0xEA, + 0x34, 0x0E, + 0xF1, 0x4F, + 0x9B, + 0x6D, + 0xEB, + 0x10, + 0x59, + 0x33, + 0x40, + 0x28 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x31, 0x20, 0x06, 0xEA, + 0x34, 0x0E, + 0xF1, 0x4F, + 0x9B, + 0x6D, + 0xEB, + 0x10, + 0x59, + 0x33, + 0x40, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MIN_CORES + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0xB6, 0xC5, 0x0C, + 0xDF, 0xC1, + 0x37, 0x46, + 0x89, + 0x1A, + 0xDE, + 0xC3, + 0x5C, + 0x31, + 0x85, + 0x83 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x47, 0xB6, 0xC5, 0x0C, + 0xDF, 0xC1, + 0x37, 0x46, + 0x89, + 0x1A, + 0xDE, + 0xC3, + 0x5C, + 0x31, + 0x85, + 0x84 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x84, 0x5A, 0xDD, 0x2D, + 0x71, 0x5A, + 0x7E, 0x43, + 0x91, + 0x2A, + 0xDB, + 0x0B, + 0x8C, + 0x78, + 0x87, + 0x32 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x17, 0x0D, 0xD1, 0xDF, + 0xEB, 0xD5, + 0xDD, 0x45, + 0x87, + 0x7A, + 0x9A, + 0x34, + 0xDD, + 0xD1, + 0x5C, + 0x82 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE3, 0x45, 0x7B, 0x8F, + 0x93, 0xC3, + 0x0A, 0x48, + 0x87, + 0x8C, + 0xF6, + 0x7A, + 0xC3, + 0xD0, + 0x70, + 0x82 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7B, 0x69, 0x33, 0x5B, + 0x9D, 0xE8, + 0x38, 0x4D, + 0xAA, + 0x46, + 0x9E, + 0x7D, + 0xFB, + 0x7C, + 0xD2, + 0xF9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF1, 0x67, 0x08, 0xE7, + 0x2F, 0xFA, + 0x4E, 0x4F, + 0xAE, + 0xA1, + 0x4D, + 0x8A, + 0x0B, + 0xA2, + 0x3B, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3C, 0x02, 0x99, 0x12, + 0x28, 0xBC, + 0x0A, 0x4F, + 0x81, + 0xEC, + 0xD3, + 0x29, + 0x5A, + 0x8D, + 0x81, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x92, 0x8E, 0xC1, 0x9A, + 0x3C, 0xAA, + 0x27, 0x4E, + 0xB3, + 0x07, + 0x01, + 0xAE, + 0x37, + 0x30, + 0x71, + 0x29 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD8, 0xC2, 0x09, 0x88, + 0x55, 0xB1, + 0xD4, 0x42, + 0xBC, + 0xDA, + 0x0D, + 0x34, + 0x56, + 0x51, + 0xB1, + 0xDB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB6, 0x8C, 0x3C, 0x94, + 0x93, 0x6F, + 0x27, 0x42, + 0xAD, + 0x87, + 0xE9, + 0xA3, + 0xFE, + 0xEC, + 0x08, + 0xD1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PARKING_CORE_OVERRIDE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xAA, 0x12, 0x56, 0xA5, + 0x24, 0xF6, + 0xC6, 0x42, + 0xA4, + 0x43, + 0x73, + 0x97, + 0xD0, + 0x64, + 0xC0, + 0x4F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PARKING_PERF_STATE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0x35, 0x72, 0x44, + 0x8D, 0x6A, + 0xC0, 0x4C, + 0x8E, + 0x24, + 0x9E, + 0xAF, + 0x70, + 0xB9, + 0x6E, + 0x2B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PARKING_PERF_STATE_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC7, 0x35, 0x72, 0x44, + 0x8D, 0x6A, + 0xC0, 0x4C, + 0x8E, + 0x24, + 0x9E, + 0xAF, + 0x70, + 0xB9, + 0x6E, + 0x2C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x6F, 0xAB, 0x30, 0x24, + 0x20, 0xA5, + 0xA2, 0x44, + 0x96, + 0x01, + 0xF7, + 0xF2, + 0x3B, + 0x51, + 0x34, + 0xB1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x73, 0xA6, 0x35, 0xF7, + 0x66, 0x20, + 0x80, 0x4F, + 0xA0, + 0xC5, + 0xDD, + 0xEE, + 0x0C, + 0xF1, + 0xBF, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE9, 0xF4, 0xDA, 0x4B, + 0x03, 0xD1, + 0xD7, 0x46, + 0xA5, + 0xF0, + 0x62, + 0x80, + 0x12, + 0x16, + 0x16, + 0xEF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_SOFT_PARKING_LATENCY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0xAC, 0xCF, 0x97, + 0x17, 0x22, + 0xEB, 0x47, + 0x99, + 0x2D, + 0x61, + 0x8B, + 0x19, + 0x77, + 0xC9, + 0x07 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_HISTORY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA7, 0xBA, 0x24, 0x7D, + 0x84, 0x0B, + 0x0F, 0x48, + 0x84, + 0x0C, + 0x1B, + 0x07, + 0x43, + 0xC0, + 0x0F, + 0x5F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_HISTORY_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA7, 0xBA, 0x24, 0x7D, + 0x84, 0x0B, + 0x0F, 0x48, + 0x84, + 0x0C, + 0x1B, + 0x07, + 0x43, + 0xC0, + 0x0F, + 0x60 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_HISTORY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x01, 0xEF, 0xB3, 0x99, + 0x2F, 0x75, + 0xA1, 0x46, + 0x80, + 0xFB, + 0x77, + 0x30, + 0x01, + 0x1F, + 0x23, + 0x54 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_HISTORY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF8, 0xF6, 0x00, 0x03, + 0xD6, 0xAB, + 0xA9, 0x45, + 0xB7, + 0x4F, + 0x49, + 0x08, + 0x69, + 0x1A, + 0x40, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x82, 0xF2, 0xD7, 0x77, + 0x1A, 0x8F, + 0xCD, 0x42, + 0x85, + 0x37, + 0x45, + 0x45, + 0x0A, + 0x83, + 0x9B, + 0xE8 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_LATENCY_HINT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x31, 0xDF, 0x22, 0x08, + 0x83, 0x9C, + 0x1C, 0x44, + 0xA0, + 0x79, + 0x0D, + 0xE4, + 0xCF, + 0x00, + 0x9C, + 0x7B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_LATENCY_HINT_PERF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x05, 0x75, 0x9B, 0x61, + 0x3B, 0x00, + 0x82, 0x4E, + 0xB7, + 0xA6, + 0x4D, + 0xD2, + 0x9C, + 0x30, + 0x09, + 0x71 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x05, 0x75, 0x9B, 0x61, + 0x3B, 0x00, + 0x82, 0x4E, + 0xB7, + 0xA6, + 0x4D, + 0xD2, + 0x9C, + 0x30, + 0x09, + 0x72 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0xDA, 0x6C, 0x61, + 0x5E, 0x69, + 0x45, 0x45, + 0x97, + 0xAD, + 0x97, + 0xDC, + 0x2D, + 0x1B, + 0xDD, + 0x88 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA5, 0xDA, 0x6C, 0x61, + 0x5E, 0x69, + 0x45, 0x45, + 0x97, + 0xAD, + 0x97, + 0xDC, + 0x2D, + 0x1B, + 0xDD, + 0x89 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_DISTRIBUTE_UTILITY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x30, 0x73, 0x00, 0xE0, + 0x89, 0xF5, + 0xED, 0x42, + 0xA4, + 0x01, + 0x5D, + 0xDB, + 0x10, + 0xE7, + 0x85, + 0xD3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_HETEROGENEOUS_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xFA, 0x5C, 0x2F, 0x7F, + 0x0C, 0xF1, + 0x23, 0x48, + 0xB5, + 0xE1, + 0xE9, + 0x3A, + 0xE8, + 0x5F, + 0x46, + 0xB5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_HETERO_DECREASE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB6, 0x92, 0x24, 0x7F, + 0xB1, 0x60, + 0xE5, 0x45, + 0xAE, + 0x55, + 0x77, + 0x3F, + 0x8C, + 0xD5, + 0xCA, + 0xEC + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_HETERO_INCREASE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xA7, 0xEF, 0x09, 0x40, + 0x2D, 0xE7, + 0xBA, 0x4C, + 0x9E, + 0xDF, + 0x91, + 0x08, + 0x4E, + 0xA8, + 0xCB, + 0xC3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x27, 0x1C, 0x86, 0xF8, + 0xE7, 0x95, + 0x5C, 0x47, + 0x86, + 0x5B, + 0x13, + 0xC0, + 0xCB, + 0x3F, + 0x9D, + 0x6B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7D, 0x39, 0x00, 0xB0, + 0x0B, 0x9B, + 0x3D, 0x48, + 0x98, + 0xC9, + 0x69, + 0x2A, + 0x60, + 0x60, + 0xCF, + 0xBF + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CLASS0_FLOOR_PERF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2B, 0x84, 0xDC, 0xFD, + 0x64, 0x83, + 0xDC, 0x4E, + 0x94, + 0xCF, + 0xC1, + 0x7F, + 0x60, + 0xDE, + 0x1C, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_CLASS1_INITIAL_PERF + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x65, 0xFC, 0xAC, 0x1F, + 0x30, 0xA9, + 0xC5, 0x4B, + 0x9F, + 0x38, + 0x50, + 0x4E, + 0xC0, + 0x97, + 0xBB, + 0xC0 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_THREAD_SCHEDULING_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDC, 0xB6, 0xB8, 0x93, + 0x98, 0x06, + 0x1C, 0x4D, + 0x9E, + 0xE4, + 0x06, + 0x44, + 0xE9, + 0x00, + 0xC8, + 0x5D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x81, 0x8B, 0xE0, 0xBA, + 0x5E, 0x2D, + 0x88, 0x46, + 0xAD, + 0x6A, + 0x13, + 0x24, + 0x33, + 0x56, + 0x65, + 0x4B + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SYSTEM_COOLING_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0xA6, 0xD3, 0x94, + 0x99, 0xA8, + 0xC5, 0x4A, + 0xAE, + 0x2B, + 0xE4, + 0xD8, + 0xF6, + 0x34, + 0x36, + 0x7F + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3D, 0x38, 0xB8, 0x38, + 0xE0, 0xCC, + 0x79, 0x4C, + 0x9E, + 0x3E, + 0x56, + 0xA4, + 0xF1, + 0x7C, + 0xC4, + 0x80 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3D, 0x38, 0xB8, 0x38, + 0xE0, 0xCC, + 0x79, 0x4C, + 0x9E, + 0x3E, + 0x56, + 0xA4, + 0xF1, + 0x7C, + 0xC4, + 0x81 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x56, 0xE2, 0x44, 0x3D, + 0x22, 0x72, + 0x15, 0x44, + 0xA9, + 0xED, + 0x9C, + 0x45, + 0xFA, + 0x3D, + 0xD8, + 0x30 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x56, 0xE2, 0x44, 0x3D, + 0x22, 0x72, + 0x15, 0x44, + 0xA9, + 0xED, + 0x9C, + 0x45, + 0xFA, + 0x3D, + 0xD8, + 0x31 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x99, 0x65, 0xF5, + 0xB0, 0x3F, + 0x1A, 0x41, + 0xA2, + 0x26, + 0x3F, + 0x01, + 0x98, + 0xDE, + 0xC1, + 0x30 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x9F, 0x99, 0x65, 0xF5, + 0xB0, 0x3F, + 0x1A, 0x41, + 0xA2, + 0x26, + 0x3F, + 0x01, + 0x98, + 0xDE, + 0xC1, + 0x31 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x88, 0x51, 0x91, 0x3D, + 0x30, 0x78, + 0xAE, 0x49, + 0xA7, + 0x9A, + 0x0F, + 0xB0, + 0xA1, + 0xE5, + 0xA2, + 0x00 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x88, 0x51, 0x91, 0x3D, + 0x30, 0x78, + 0xAE, 0x49, + 0xA7, + 0x9A, + 0x0F, + 0xB0, + 0xA1, + 0xE5, + 0xA2, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3B, 0xC7, 0x27, 0x44, + 0x56, 0x97, + 0x5C, 0x4A, + 0xB8, + 0x4B, + 0xC7, + 0xBD, + 0xA7, + 0x9C, + 0x73, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x3B, 0xC7, 0x27, 0x44, + 0x56, 0x97, + 0x5C, 0x4A, + 0xB8, + 0x4B, + 0xC7, + 0xBD, + 0xA7, + 0x9C, + 0x73, + 0x21 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEE, 0x92, 0x8E, 0xCE, + 0x86, 0x6A, + 0x72, 0x45, + 0xBF, + 0xE0, + 0x20, + 0xC2, + 0x1D, + 0x03, + 0xCD, + 0x40 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1 + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xEE, 0x92, 0x8E, 0xCE, + 0x86, 0x6A, + 0x72, 0x45, + 0xBF, + 0xE0, + 0x20, + 0xC2, + 0x1D, + 0x03, + 0xCD, + 0x41 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_LOCK_CONSOLE_ON_WAKE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDB, 0x6B, 0x79, 0x0E, + 0x0D, 0x10, + 0xD6, 0x47, + 0xA2, + 0xD5, + 0xF7, + 0xD2, + 0xDA, + 0xA5, + 0x1F, + 0x51 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DEVICE_IDLE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1A, 0xB7, 0xAA, 0x4F, + 0xE5, 0x92, + 0x26, 0x47, + 0xB5, + 0x31, + 0x22, + 0x45, + 0x59, + 0x67, + 0x2D, + 0x19 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_CONNECTIVITY_IN_STANDBY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xE8, 0x76, 0x55, 0xF1, + 0xB7, 0x98, + 0x86, 0x41, + 0xB9, + 0x44, + 0xEA, + 0xFA, + 0x66, + 0x44, + 0x02, + 0xD9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_DISCONNECTED_STANDBY_MODE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD9, 0xB2, 0xAF, 0x68, + 0x95, 0xEE, + 0xA8, 0x47, + 0x8F, + 0x50, + 0x41, + 0x15, + 0x08, + 0x80, + 0x73, + 0xB1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ACDC_POWER_SOURCE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x59, 0x9A, 0x3E, 0x5D, + 0xD5, 0xE9, + 0x00, 0x4B, + 0xA6, + 0xBD, + 0xFF, + 0x34, + 0xFF, + 0x51, + 0x65, + 0x48 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_LIDSWITCH_STATE_CHANGE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0x0F, 0x3E, 0xBA, + 0x17, 0xB8, + 0x94, 0x40, + 0xA2, + 0xD1, + 0xD5, + 0x63, + 0x79, + 0xE6, + 0xA0, + 0xF3 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_PERCENTAGE_REMAINING + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x41, 0x80, 0xAD, 0xA7, + 0x5A, 0xB4, + 0xAE, 0x4C, + 0x87, + 0xA3, + 0xEE, + 0xCB, + 0xB4, + 0x68, + 0xA9, + 0xE1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BATTERY_COUNT + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x15, 0x3F, 0x26, 0x7D, + 0xA4, 0xFC, + 0xE5, 0x49, + 0x85, + 0x4B, + 0xA9, + 0xF2, + 0xBF, + 0xBD, + 0x5C, + 0x24 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_GLOBAL_USER_PRESENCE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x1D, 0x8A, 0x6E, 0x78, + 0x27, 0xB4, + 0x44, 0x43, + 0x92, + 0x07, + 0x09, + 0xE7, + 0x0B, + 0xDC, + 0xBE, + 0xA9 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SESSION_DISPLAY_STATUS + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x0E, 0xC2, 0x84, 0x2B, + 0x23, 0xAD, + 0xDF, 0x4D, + 0x93, + 0xDB, + 0x05, + 0xFF, + 0xBD, + 0x7E, + 0xFC, + 0xA5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SESSION_USER_PRESENCE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x48, 0x45, 0x0F, 0x3C, + 0x3F, 0xC0, + 0x4D, 0x4C, + 0xB9, + 0xF2, + 0x23, + 0x7E, + 0xDE, + 0x68, + 0x63, + 0x76 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_IDLE_BACKGROUND_TASK + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xD8, 0x31, 0x5C, 0x51, + 0x34, 0xF7, + 0x3D, 0x16, + 0xA0, + 0xFD, + 0x11, + 0xA0, + 0x8C, + 0x91, + 0xE8, + 0xF1 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_BACKGROUND_TASK_NOTIFICATION + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x40, 0xF2, 0x23, 0xCF, + 0x54, 0x2A, + 0xD8, 0x48, + 0xB1, + 0x14, + 0xDE, + 0x15, + 0x18, + 0xFF, + 0x05, + 0x2E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_APPLAUNCH_BUTTON + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x31, 0x92, 0x68, 0x1A, + 0x99, 0x73, + 0x9A, 0x4E, + 0x8F, + 0x99, + 0xB7, + 0x1F, + 0x99, + 0x9D, + 0xB3, + 0xFA + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PCIEXPRESS_SETTINGS_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x13, 0x4D, 0x1A, 0x50, + 0xAF, 0x42, + 0x29, 0x44, + 0x9F, + 0xD1, + 0xA8, + 0x21, + 0x8C, + 0x26, + 0x8E, + 0x20 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_PCIEXPRESS_ASPM_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x06, 0xF9, 0x12, 0xEE, + 0x77, 0xD2, + 0x4B, 0x40, + 0xB6, + 0xDA, + 0xE5, + 0xFA, + 0x1A, + 0x57, + 0x6D, + 0xF5 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_ENABLE_SWITCH_FORCED_SHUTDOWN + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x62, 0x6B, 0x3A, 0x83, + 0xA4, 0xDF, + 0xD1, 0x46, + 0x82, + 0xF8, + 0xE0, + 0x9E, + 0x34, + 0xD0, + 0x29, + 0xD6 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_INTSTEER_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x38, 0x2F, 0x67, 0x48, + 0x9A, 0x7A, + 0xB2, 0x4B, + 0x8B, + 0xF8, + 0x3D, + 0x85, + 0xBE, + 0x19, + 0xDE, + 0x4E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_INTSTEER_MODE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xF9, 0x24, 0xFC, 0x2B, + 0xA2, 0x5E, + 0x01, 0x48, + 0x82, + 0x13, + 0x3D, + 0xBA, + 0xE0, + 0x1A, + 0xA3, + 0x9D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_INTSTEER_LOAD_PER_PROC_TRIGGER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4D, 0xE6, 0xCD, 0x73, + 0x20, 0xD7, + 0xB2, 0x4B, + 0xA8, + 0x60, + 0xC7, + 0x55, + 0xAF, + 0xE7, + 0x7E, + 0xF2 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_INTSTEER_TIME_UNPARK_TRIGGER + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x03, 0x49, 0xBA, 0xD6, + 0x6F, 0x38, + 0x2C, 0x4C, + 0x8A, + 0xDB, + 0x5C, + 0x21, + 0xB3, + 0x32, + 0x8D, + 0x25 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_GRAPHICS_SUBGROUP + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x8D, 0x93, 0xB4, 0x5F, + 0xE8, 0x1E, + 0x0F, 0x4B, + 0x9A, + 0x3C, + 0x50, + 0x36, + 0xB0, + 0xAB, + 0x99, + 0x5C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_GPU_PREFERENCE_POLICY + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x2A, 0x8B, 0x84, 0xDD, + 0x5D, 0x8A, + 0x51, 0x44, + 0x9A, + 0xE2, + 0x39, + 0xCD, + 0x41, + 0x65, + 0x8F, + 0x6C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_MIXED_REALITY_MODE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4E, 0x6B, 0x62, 0x1E, + 0x04, 0xCF, + 0x8D, 0x4F, + 0x9C, + 0xC7, + 0xC9, + 0x7C, + 0x5B, + 0x0F, + 0x23, + 0x91 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid GUID_SPR_ACTIVE_SESSION_CHANGE + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x38, 0xCE, 0x24, 0x0E, + 0x93, 0xC3, + 0x42, 0x47, + 0xBD, + 0xB1, + 0x74, + 0x4F, + 0x4B, + 0x9E, + 0xE0, + 0x8E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/HEAP.cs b/sources/Interop/Windows/Windows/um/winnt/HEAP.cs new file mode 100644 index 0000000000..ada55e64a7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/HEAP.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class HEAP + { + [return: NativeTypeName("DWORD")] + public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [NativeTypeName("DWORD")] uint Tag) + { + return ((uint)((TagBase) + ((Tag) << 18))); + } + + [NativeTypeName("#define HEAP_NO_SERIALIZE 0x00000001")] + public const int HEAP_NO_SERIALIZE = 0x00000001; + + [NativeTypeName("#define HEAP_GROWABLE 0x00000002")] + public const int HEAP_GROWABLE = 0x00000002; + + [NativeTypeName("#define HEAP_GENERATE_EXCEPTIONS 0x00000004")] + public const int HEAP_GENERATE_EXCEPTIONS = 0x00000004; + + [NativeTypeName("#define HEAP_ZERO_MEMORY 0x00000008")] + public const int HEAP_ZERO_MEMORY = 0x00000008; + + [NativeTypeName("#define HEAP_REALLOC_IN_PLACE_ONLY 0x00000010")] + public const int HEAP_REALLOC_IN_PLACE_ONLY = 0x00000010; + + [NativeTypeName("#define HEAP_TAIL_CHECKING_ENABLED 0x00000020")] + public const int HEAP_TAIL_CHECKING_ENABLED = 0x00000020; + + [NativeTypeName("#define HEAP_FREE_CHECKING_ENABLED 0x00000040")] + public const int HEAP_FREE_CHECKING_ENABLED = 0x00000040; + + [NativeTypeName("#define HEAP_DISABLE_COALESCE_ON_FREE 0x00000080")] + public const int HEAP_DISABLE_COALESCE_ON_FREE = 0x00000080; + + [NativeTypeName("#define HEAP_CREATE_ALIGN_16 0x00010000")] + public const int HEAP_CREATE_ALIGN_16 = 0x00010000; + + [NativeTypeName("#define HEAP_CREATE_ENABLE_TRACING 0x00020000")] + public const int HEAP_CREATE_ENABLE_TRACING = 0x00020000; + + [NativeTypeName("#define HEAP_CREATE_ENABLE_EXECUTE 0x00040000")] + public const int HEAP_CREATE_ENABLE_EXECUTE = 0x00040000; + + [NativeTypeName("#define HEAP_MAXIMUM_TAG 0x0FFF")] + public const int HEAP_MAXIMUM_TAG = 0x0FFF; + + [NativeTypeName("#define HEAP_PSEUDO_TAG_FLAG 0x8000")] + public const int HEAP_PSEUDO_TAG_FLAG = 0x8000; + + [NativeTypeName("#define HEAP_TAG_SHIFT 18")] + public const int HEAP_TAG_SHIFT = 18; + + [NativeTypeName("#define HEAP_CREATE_SEGMENT_HEAP 0x00000100")] + public const int HEAP_CREATE_SEGMENT_HEAP = 0x00000100; + + [NativeTypeName("#define HEAP_CREATE_HARDENED 0x00000200")] + public const int HEAP_CREATE_HARDENED = 0x00000200; + + [NativeTypeName("#define HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION 1")] + public const int HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION = 1; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/IMAGE.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/IMAGE.Manual.cs new file mode 100644 index 0000000000..3e39c57782 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/IMAGE.Manual.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class IMAGE + { + public static int IMAGE_NT_OPTIONAL_HDR_MAGIC + { + get + { + if (sizeof(nint) == 4) + { + return IMAGE_NT_OPTIONAL_HDR32_MAGIC; + } + else + { + return IMAGE_NT_OPTIONAL_HDR64_MAGIC; + } + } + } + + public static nuint IMAGE_ORDINAL_FLAG + { + get + { + if (sizeof(nint) == 4) + { + return IMAGE_ORDINAL_FLAG32; + } + else + { + return unchecked((nuint)(IMAGE_ORDINAL_FLAG64)); + } + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/IS.cs b/sources/Interop/Windows/Windows/um/winnt/IS.cs new file mode 100644 index 0000000000..a1549364bb --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/IS.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class IS + { + [NativeTypeName("#define IS_TEXT_UNICODE_ASCII16 0x0001")] + public const int IS_TEXT_UNICODE_ASCII16 = 0x0001; + + [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_ASCII16 0x0010")] + public const int IS_TEXT_UNICODE_REVERSE_ASCII16 = 0x0010; + + [NativeTypeName("#define IS_TEXT_UNICODE_STATISTICS 0x0002")] + public const int IS_TEXT_UNICODE_STATISTICS = 0x0002; + + [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_STATISTICS 0x0020")] + public const int IS_TEXT_UNICODE_REVERSE_STATISTICS = 0x0020; + + [NativeTypeName("#define IS_TEXT_UNICODE_CONTROLS 0x0004")] + public const int IS_TEXT_UNICODE_CONTROLS = 0x0004; + + [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_CONTROLS 0x0040")] + public const int IS_TEXT_UNICODE_REVERSE_CONTROLS = 0x0040; + + [NativeTypeName("#define IS_TEXT_UNICODE_SIGNATURE 0x0008")] + public const int IS_TEXT_UNICODE_SIGNATURE = 0x0008; + + [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_SIGNATURE 0x0080")] + public const int IS_TEXT_UNICODE_REVERSE_SIGNATURE = 0x0080; + + [NativeTypeName("#define IS_TEXT_UNICODE_ILLEGAL_CHARS 0x0100")] + public const int IS_TEXT_UNICODE_ILLEGAL_CHARS = 0x0100; + + [NativeTypeName("#define IS_TEXT_UNICODE_ODD_LENGTH 0x0200")] + public const int IS_TEXT_UNICODE_ODD_LENGTH = 0x0200; + + [NativeTypeName("#define IS_TEXT_UNICODE_DBCS_LEADBYTE 0x0400")] + public const int IS_TEXT_UNICODE_DBCS_LEADBYTE = 0x0400; + + [NativeTypeName("#define IS_TEXT_UNICODE_UTF8 0x0800")] + public const int IS_TEXT_UNICODE_UTF8 = 0x0800; + + [NativeTypeName("#define IS_TEXT_UNICODE_NULL_BYTES 0x1000")] + public const int IS_TEXT_UNICODE_NULL_BYTES = 0x1000; + + [NativeTypeName("#define IS_TEXT_UNICODE_UNICODE_MASK 0x000F")] + public const int IS_TEXT_UNICODE_UNICODE_MASK = 0x000F; + + [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_MASK 0x00F0")] + public const int IS_TEXT_UNICODE_REVERSE_MASK = 0x00F0; + + [NativeTypeName("#define IS_TEXT_UNICODE_NOT_UNICODE_MASK 0x0F00")] + public const int IS_TEXT_UNICODE_NOT_UNICODE_MASK = 0x0F00; + + [NativeTypeName("#define IS_TEXT_UNICODE_NOT_ASCII_MASK 0xF000")] + public const int IS_TEXT_UNICODE_NOT_ASCII_MASK = 0xF000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/KEY.cs b/sources/Interop/Windows/Windows/um/winnt/KEY.cs new file mode 100644 index 0000000000..e94a46ef72 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/KEY.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class KEY + { + [NativeTypeName("#define KEY_QUERY_VALUE (0x0001)")] + public const int KEY_QUERY_VALUE = (0x0001); + + [NativeTypeName("#define KEY_SET_VALUE (0x0002)")] + public const int KEY_SET_VALUE = (0x0002); + + [NativeTypeName("#define KEY_CREATE_SUB_KEY (0x0004)")] + public const int KEY_CREATE_SUB_KEY = (0x0004); + + [NativeTypeName("#define KEY_ENUMERATE_SUB_KEYS (0x0008)")] + public const int KEY_ENUMERATE_SUB_KEYS = (0x0008); + + [NativeTypeName("#define KEY_NOTIFY (0x0010)")] + public const int KEY_NOTIFY = (0x0010); + + [NativeTypeName("#define KEY_CREATE_LINK (0x0020)")] + public const int KEY_CREATE_LINK = (0x0020); + + [NativeTypeName("#define KEY_WOW64_32KEY (0x0200)")] + public const int KEY_WOW64_32KEY = (0x0200); + + [NativeTypeName("#define KEY_WOW64_64KEY (0x0100)")] + public const int KEY_WOW64_64KEY = (0x0100); + + [NativeTypeName("#define KEY_WOW64_RES (0x0300)")] + public const int KEY_WOW64_RES = (0x0300); + + [NativeTypeName("#define KEY_READ ((STANDARD_RIGHTS_READ |\\\r\n KEY_QUERY_VALUE |\\\r\n KEY_ENUMERATE_SUB_KEYS |\\\r\n KEY_NOTIFY) \\\r\n & \\\r\n (~SYNCHRONIZE))")] + public const int KEY_READ = ((((0x00020000)) | (0x0001) | (0x0008) | (0x0010)) & (~(0x00100000))); + + [NativeTypeName("#define KEY_WRITE ((STANDARD_RIGHTS_WRITE |\\\r\n KEY_SET_VALUE |\\\r\n KEY_CREATE_SUB_KEY) \\\r\n & \\\r\n (~SYNCHRONIZE))")] + public const int KEY_WRITE = ((((0x00020000)) | (0x0002) | (0x0004)) & (~(0x00100000))); + + [NativeTypeName("#define KEY_EXECUTE ((KEY_READ) \\\r\n & \\\r\n (~SYNCHRONIZE))")] + public const int KEY_EXECUTE = ((((((0x00020000)) | (0x0001) | (0x0008) | (0x0010)) & (~(0x00100000)))) & (~(0x00100000))); + + [NativeTypeName("#define KEY_ALL_ACCESS ((STANDARD_RIGHTS_ALL |\\\r\n KEY_QUERY_VALUE |\\\r\n KEY_SET_VALUE |\\\r\n KEY_CREATE_SUB_KEY |\\\r\n KEY_ENUMERATE_SUB_KEYS |\\\r\n KEY_NOTIFY |\\\r\n KEY_CREATE_LINK) \\\r\n & \\\r\n (~SYNCHRONIZE))")] + public const int KEY_ALL_ACCESS = (((0x001F0000) | (0x0001) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020)) & (~(0x00100000))); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/LOCALE.cs b/sources/Interop/Windows/Windows/um/winnt/LOCALE.cs new file mode 100644 index 0000000000..873d07871a --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/LOCALE.cs @@ -0,0 +1,49 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class LOCALE + { + [NativeTypeName("#define LOCALE_NAME_MAX_LENGTH 85")] + public const int LOCALE_NAME_MAX_LENGTH = 85; + + [NativeTypeName("#define LOCALE_SYSTEM_DEFAULT (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))")] + public const uint LOCALE_SYSTEM_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked(((((ushort)(0x02)) << 10) | (ushort)(0x00))))))))); + + [NativeTypeName("#define LOCALE_USER_DEFAULT (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT))")] + public const uint LOCALE_USER_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked(((((ushort)(0x01)) << 10) | (ushort)(0x00))))))))); + + [NativeTypeName("#define LOCALE_CUSTOM_DEFAULT (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_CUSTOM_DEFAULT), SORT_DEFAULT))")] + public const uint LOCALE_CUSTOM_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x03)) << 10) | (ushort)(0x00)))))))); + + [NativeTypeName("#define LOCALE_CUSTOM_UNSPECIFIED (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_CUSTOM_UNSPECIFIED), SORT_DEFAULT))")] + public const uint LOCALE_CUSTOM_UNSPECIFIED = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x04)) << 10) | (ushort)(0x00)))))))); + + [NativeTypeName("#define LOCALE_CUSTOM_UI_DEFAULT (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_UI_CUSTOM_DEFAULT), SORT_DEFAULT))")] + public const uint LOCALE_CUSTOM_UI_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x05)) << 10) | (ushort)(0x00)))))))); + + [NativeTypeName("#define LOCALE_NEUTRAL (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), SORT_DEFAULT))")] + public const uint LOCALE_NEUTRAL = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x00)) << 10) | (ushort)(0x00)))))))); + + [NativeTypeName("#define LOCALE_INVARIANT (MAKELCID(MAKELANGID(LANG_INVARIANT, SUBLANG_NEUTRAL), SORT_DEFAULT))")] + public const uint LOCALE_INVARIANT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x00)) << 10) | (ushort)(0x7f)))))))); + + [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD1 0x2000")] + public const int LOCALE_TRANSIENT_KEYBOARD1 = 0x2000; + + [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD2 0x2400")] + public const int LOCALE_TRANSIENT_KEYBOARD2 = 0x2400; + + [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD3 0x2800")] + public const int LOCALE_TRANSIENT_KEYBOARD3 = 0x2800; + + [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD4 0x2c00")] + public const int LOCALE_TRANSIENT_KEYBOARD4 = 0x2c00; + + [NativeTypeName("#define LOCALE_UNASSIGNED_LCID LOCALE_CUSTOM_UNSPECIFIED")] + public const uint LOCALE_UNASSIGNED_LCID = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x04)) << 10) | (ushort)(0x00)))))))); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/MAX.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/MAX.Manual.cs new file mode 100644 index 0000000000..04e44003ec --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/MAX.Manual.cs @@ -0,0 +1,12 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class MAX + { + public static uint MAX_NATURAL_ALIGNMENT => unchecked((uint)(sizeof(nint))); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/MEM.cs b/sources/Interop/Windows/Windows/um/winnt/MEM.cs new file mode 100644 index 0000000000..a9985c369d --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/MEM.cs @@ -0,0 +1,109 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MEM + { + [NativeTypeName("#define MEM_COMMIT 0x00001000")] + public const int MEM_COMMIT = 0x00001000; + + [NativeTypeName("#define MEM_RESERVE 0x00002000")] + public const int MEM_RESERVE = 0x00002000; + + [NativeTypeName("#define MEM_REPLACE_PLACEHOLDER 0x00004000")] + public const int MEM_REPLACE_PLACEHOLDER = 0x00004000; + + [NativeTypeName("#define MEM_RESERVE_PLACEHOLDER 0x00040000")] + public const int MEM_RESERVE_PLACEHOLDER = 0x00040000; + + [NativeTypeName("#define MEM_RESET 0x00080000")] + public const int MEM_RESET = 0x00080000; + + [NativeTypeName("#define MEM_TOP_DOWN 0x00100000")] + public const int MEM_TOP_DOWN = 0x00100000; + + [NativeTypeName("#define MEM_WRITE_WATCH 0x00200000")] + public const int MEM_WRITE_WATCH = 0x00200000; + + [NativeTypeName("#define MEM_PHYSICAL 0x00400000")] + public const int MEM_PHYSICAL = 0x00400000; + + [NativeTypeName("#define MEM_ROTATE 0x00800000")] + public const int MEM_ROTATE = 0x00800000; + + [NativeTypeName("#define MEM_DIFFERENT_IMAGE_BASE_OK 0x00800000")] + public const int MEM_DIFFERENT_IMAGE_BASE_OK = 0x00800000; + + [NativeTypeName("#define MEM_RESET_UNDO 0x01000000")] + public const int MEM_RESET_UNDO = 0x01000000; + + [NativeTypeName("#define MEM_LARGE_PAGES 0x20000000")] + public const int MEM_LARGE_PAGES = 0x20000000; + + [NativeTypeName("#define MEM_4MB_PAGES 0x80000000")] + public const uint MEM_4MB_PAGES = 0x80000000; + + [NativeTypeName("#define MEM_64K_PAGES (MEM_LARGE_PAGES | MEM_PHYSICAL)")] + public const int MEM_64K_PAGES = (0x20000000 | 0x00400000); + + [NativeTypeName("#define MEM_UNMAP_WITH_TRANSIENT_BOOST 0x00000001")] + public const int MEM_UNMAP_WITH_TRANSIENT_BOOST = 0x00000001; + + [NativeTypeName("#define MEM_COALESCE_PLACEHOLDERS 0x00000001")] + public const int MEM_COALESCE_PLACEHOLDERS = 0x00000001; + + [NativeTypeName("#define MEM_PRESERVE_PLACEHOLDER 0x00000002")] + public const int MEM_PRESERVE_PLACEHOLDER = 0x00000002; + + [NativeTypeName("#define MEM_DECOMMIT 0x00004000")] + public const int MEM_DECOMMIT = 0x00004000; + + [NativeTypeName("#define MEM_RELEASE 0x00008000")] + public const int MEM_RELEASE = 0x00008000; + + [NativeTypeName("#define MEM_FREE 0x00010000")] + public const int MEM_FREE = 0x00010000; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_GRAPHICS 0x00000001")] + public const int MEM_EXTENDED_PARAMETER_GRAPHICS = 0x00000001; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NONPAGED 0x00000002")] + public const int MEM_EXTENDED_PARAMETER_NONPAGED = 0x00000002; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_ZERO_PAGES_OPTIONAL 0x00000004")] + public const int MEM_EXTENDED_PARAMETER_ZERO_PAGES_OPTIONAL = 0x00000004; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NONPAGED_LARGE 0x00000008")] + public const int MEM_EXTENDED_PARAMETER_NONPAGED_LARGE = 0x00000008; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NONPAGED_HUGE 0x00000010")] + public const int MEM_EXTENDED_PARAMETER_NONPAGED_HUGE = 0x00000010; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_SOFT_FAULT_PAGES 0x00000020")] + public const int MEM_EXTENDED_PARAMETER_SOFT_FAULT_PAGES = 0x00000020; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_EC_CODE 0x00000040")] + public const int MEM_EXTENDED_PARAMETER_EC_CODE = 0x00000040; + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NUMA_NODE_MANDATORY MINLONG64")] + public const long MEM_EXTENDED_PARAMETER_NUMA_NODE_MANDATORY = unchecked((long)(~((long)(((ulong)(~((ulong)(0)))) >> 1)))); + + [NativeTypeName("#define MEM_EXTENDED_PARAMETER_TYPE_BITS 8")] + public const int MEM_EXTENDED_PARAMETER_TYPE_BITS = 8; + + [NativeTypeName("#define MEM_DEDICATED_ATTRIBUTE_NOT_SPECIFIED ((DWORD64) -1)")] + public const ulong MEM_DEDICATED_ATTRIBUTE_NOT_SPECIFIED = unchecked((ulong)(-1)); + + [NativeTypeName("#define MEM_PRIVATE 0x00020000")] + public const int MEM_PRIVATE = 0x00020000; + + [NativeTypeName("#define MEM_MAPPED 0x00040000")] + public const int MEM_MAPPED = 0x00040000; + + [NativeTypeName("#define MEM_IMAGE 0x01000000")] + public const int MEM_IMAGE = 0x01000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/MS.cs b/sources/Interop/Windows/Windows/um/winnt/MS.cs new file mode 100644 index 0000000000..0db9f965cd --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/MS.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class MS + { + [NativeTypeName("#define MS_PPM_SOFTWARE_ALL 0x1")] + public const int MS_PPM_SOFTWARE_ALL = 0x1; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/PAGE.cs b/sources/Interop/Windows/Windows/um/winnt/PAGE.cs new file mode 100644 index 0000000000..e556986d36 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/PAGE.cs @@ -0,0 +1,94 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PAGE + { + [NativeTypeName("#define PAGE_NOACCESS 0x01")] + public const int PAGE_NOACCESS = 0x01; + + [NativeTypeName("#define PAGE_READONLY 0x02")] + public const int PAGE_READONLY = 0x02; + + [NativeTypeName("#define PAGE_READWRITE 0x04")] + public const int PAGE_READWRITE = 0x04; + + [NativeTypeName("#define PAGE_WRITECOPY 0x08")] + public const int PAGE_WRITECOPY = 0x08; + + [NativeTypeName("#define PAGE_EXECUTE 0x10")] + public const int PAGE_EXECUTE = 0x10; + + [NativeTypeName("#define PAGE_EXECUTE_READ 0x20")] + public const int PAGE_EXECUTE_READ = 0x20; + + [NativeTypeName("#define PAGE_EXECUTE_READWRITE 0x40")] + public const int PAGE_EXECUTE_READWRITE = 0x40; + + [NativeTypeName("#define PAGE_EXECUTE_WRITECOPY 0x80")] + public const int PAGE_EXECUTE_WRITECOPY = 0x80; + + [NativeTypeName("#define PAGE_GUARD 0x100")] + public const int PAGE_GUARD = 0x100; + + [NativeTypeName("#define PAGE_NOCACHE 0x200")] + public const int PAGE_NOCACHE = 0x200; + + [NativeTypeName("#define PAGE_WRITECOMBINE 0x400")] + public const int PAGE_WRITECOMBINE = 0x400; + + [NativeTypeName("#define PAGE_GRAPHICS_NOACCESS 0x0800")] + public const int PAGE_GRAPHICS_NOACCESS = 0x0800; + + [NativeTypeName("#define PAGE_GRAPHICS_READONLY 0x1000")] + public const int PAGE_GRAPHICS_READONLY = 0x1000; + + [NativeTypeName("#define PAGE_GRAPHICS_READWRITE 0x2000")] + public const int PAGE_GRAPHICS_READWRITE = 0x2000; + + [NativeTypeName("#define PAGE_GRAPHICS_EXECUTE 0x4000")] + public const int PAGE_GRAPHICS_EXECUTE = 0x4000; + + [NativeTypeName("#define PAGE_GRAPHICS_EXECUTE_READ 0x8000")] + public const int PAGE_GRAPHICS_EXECUTE_READ = 0x8000; + + [NativeTypeName("#define PAGE_GRAPHICS_EXECUTE_READWRITE 0x10000")] + public const int PAGE_GRAPHICS_EXECUTE_READWRITE = 0x10000; + + [NativeTypeName("#define PAGE_GRAPHICS_COHERENT 0x20000")] + public const int PAGE_GRAPHICS_COHERENT = 0x20000; + + [NativeTypeName("#define PAGE_GRAPHICS_NOCACHE 0x40000")] + public const int PAGE_GRAPHICS_NOCACHE = 0x40000; + + [NativeTypeName("#define PAGE_ENCLAVE_THREAD_CONTROL 0x80000000")] + public const uint PAGE_ENCLAVE_THREAD_CONTROL = 0x80000000; + + [NativeTypeName("#define PAGE_REVERT_TO_FILE_MAP 0x80000000")] + public const uint PAGE_REVERT_TO_FILE_MAP = 0x80000000; + + [NativeTypeName("#define PAGE_TARGETS_NO_UPDATE 0x40000000")] + public const int PAGE_TARGETS_NO_UPDATE = 0x40000000; + + [NativeTypeName("#define PAGE_TARGETS_INVALID 0x40000000")] + public const int PAGE_TARGETS_INVALID = 0x40000000; + + [NativeTypeName("#define PAGE_ENCLAVE_UNVALIDATED 0x20000000")] + public const int PAGE_ENCLAVE_UNVALIDATED = 0x20000000; + + [NativeTypeName("#define PAGE_ENCLAVE_MASK 0x10000000")] + public const int PAGE_ENCLAVE_MASK = 0x10000000; + + [NativeTypeName("#define PAGE_ENCLAVE_DECOMMIT (PAGE_ENCLAVE_MASK | 0)")] + public const int PAGE_ENCLAVE_DECOMMIT = (0x10000000 | 0); + + [NativeTypeName("#define PAGE_ENCLAVE_SS_FIRST (PAGE_ENCLAVE_MASK | 1)")] + public const int PAGE_ENCLAVE_SS_FIRST = (0x10000000 | 1); + + [NativeTypeName("#define PAGE_ENCLAVE_SS_REST (PAGE_ENCLAVE_MASK | 2)")] + public const int PAGE_ENCLAVE_SS_REST = (0x10000000 | 2); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/PF.cs b/sources/Interop/Windows/Windows/um/winnt/PF.cs new file mode 100644 index 0000000000..31daa639a7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/PF.cs @@ -0,0 +1,157 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PF + { + [NativeTypeName("#define PF_TEMPORAL_LEVEL_1 _MM_HINT_T0")] + public const int PF_TEMPORAL_LEVEL_1 = 1; + + [NativeTypeName("#define PF_TEMPORAL_LEVEL_2 _MM_HINT_T1")] + public const int PF_TEMPORAL_LEVEL_2 = 2; + + [NativeTypeName("#define PF_TEMPORAL_LEVEL_3 _MM_HINT_T2")] + public const int PF_TEMPORAL_LEVEL_3 = 3; + + [NativeTypeName("#define PF_NON_TEMPORAL_LEVEL_ALL _MM_HINT_NTA")] + public const int PF_NON_TEMPORAL_LEVEL_ALL = 0; + + [NativeTypeName("#define PF_FLOATING_POINT_PRECISION_ERRATA 0")] + public const int PF_FLOATING_POINT_PRECISION_ERRATA = 0; + + [NativeTypeName("#define PF_FLOATING_POINT_EMULATED 1")] + public const int PF_FLOATING_POINT_EMULATED = 1; + + [NativeTypeName("#define PF_COMPARE_EXCHANGE_DOUBLE 2")] + public const int PF_COMPARE_EXCHANGE_DOUBLE = 2; + + [NativeTypeName("#define PF_MMX_INSTRUCTIONS_AVAILABLE 3")] + public const int PF_MMX_INSTRUCTIONS_AVAILABLE = 3; + + [NativeTypeName("#define PF_PPC_MOVEMEM_64BIT_OK 4")] + public const int PF_PPC_MOVEMEM_64BIT_OK = 4; + + [NativeTypeName("#define PF_ALPHA_BYTE_INSTRUCTIONS 5")] + public const int PF_ALPHA_BYTE_INSTRUCTIONS = 5; + + [NativeTypeName("#define PF_XMMI_INSTRUCTIONS_AVAILABLE 6")] + public const int PF_XMMI_INSTRUCTIONS_AVAILABLE = 6; + + [NativeTypeName("#define PF_3DNOW_INSTRUCTIONS_AVAILABLE 7")] + public const int PF_3DNOW_INSTRUCTIONS_AVAILABLE = 7; + + [NativeTypeName("#define PF_RDTSC_INSTRUCTION_AVAILABLE 8")] + public const int PF_RDTSC_INSTRUCTION_AVAILABLE = 8; + + [NativeTypeName("#define PF_PAE_ENABLED 9")] + public const int PF_PAE_ENABLED = 9; + + [NativeTypeName("#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10")] + public const int PF_XMMI64_INSTRUCTIONS_AVAILABLE = 10; + + [NativeTypeName("#define PF_SSE_DAZ_MODE_AVAILABLE 11")] + public const int PF_SSE_DAZ_MODE_AVAILABLE = 11; + + [NativeTypeName("#define PF_NX_ENABLED 12")] + public const int PF_NX_ENABLED = 12; + + [NativeTypeName("#define PF_SSE3_INSTRUCTIONS_AVAILABLE 13")] + public const int PF_SSE3_INSTRUCTIONS_AVAILABLE = 13; + + [NativeTypeName("#define PF_COMPARE_EXCHANGE128 14")] + public const int PF_COMPARE_EXCHANGE128 = 14; + + [NativeTypeName("#define PF_COMPARE64_EXCHANGE128 15")] + public const int PF_COMPARE64_EXCHANGE128 = 15; + + [NativeTypeName("#define PF_CHANNELS_ENABLED 16")] + public const int PF_CHANNELS_ENABLED = 16; + + [NativeTypeName("#define PF_XSAVE_ENABLED 17")] + public const int PF_XSAVE_ENABLED = 17; + + [NativeTypeName("#define PF_ARM_VFP_32_REGISTERS_AVAILABLE 18")] + public const int PF_ARM_VFP_32_REGISTERS_AVAILABLE = 18; + + [NativeTypeName("#define PF_ARM_NEON_INSTRUCTIONS_AVAILABLE 19")] + public const int PF_ARM_NEON_INSTRUCTIONS_AVAILABLE = 19; + + [NativeTypeName("#define PF_SECOND_LEVEL_ADDRESS_TRANSLATION 20")] + public const int PF_SECOND_LEVEL_ADDRESS_TRANSLATION = 20; + + [NativeTypeName("#define PF_VIRT_FIRMWARE_ENABLED 21")] + public const int PF_VIRT_FIRMWARE_ENABLED = 21; + + [NativeTypeName("#define PF_RDWRFSGSBASE_AVAILABLE 22")] + public const int PF_RDWRFSGSBASE_AVAILABLE = 22; + + [NativeTypeName("#define PF_FASTFAIL_AVAILABLE 23")] + public const int PF_FASTFAIL_AVAILABLE = 23; + + [NativeTypeName("#define PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE 24")] + public const int PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE = 24; + + [NativeTypeName("#define PF_ARM_64BIT_LOADSTORE_ATOMIC 25")] + public const int PF_ARM_64BIT_LOADSTORE_ATOMIC = 25; + + [NativeTypeName("#define PF_ARM_EXTERNAL_CACHE_AVAILABLE 26")] + public const int PF_ARM_EXTERNAL_CACHE_AVAILABLE = 26; + + [NativeTypeName("#define PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE 27")] + public const int PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE = 27; + + [NativeTypeName("#define PF_RDRAND_INSTRUCTION_AVAILABLE 28")] + public const int PF_RDRAND_INSTRUCTION_AVAILABLE = 28; + + [NativeTypeName("#define PF_ARM_V8_INSTRUCTIONS_AVAILABLE 29")] + public const int PF_ARM_V8_INSTRUCTIONS_AVAILABLE = 29; + + [NativeTypeName("#define PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE 30")] + public const int PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE = 30; + + [NativeTypeName("#define PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE 31")] + public const int PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE = 31; + + [NativeTypeName("#define PF_RDTSCP_INSTRUCTION_AVAILABLE 32")] + public const int PF_RDTSCP_INSTRUCTION_AVAILABLE = 32; + + [NativeTypeName("#define PF_RDPID_INSTRUCTION_AVAILABLE 33")] + public const int PF_RDPID_INSTRUCTION_AVAILABLE = 33; + + [NativeTypeName("#define PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE 34")] + public const int PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE = 34; + + [NativeTypeName("#define PF_MONITORX_INSTRUCTION_AVAILABLE 35")] + public const int PF_MONITORX_INSTRUCTION_AVAILABLE = 35; + + [NativeTypeName("#define PF_SSSE3_INSTRUCTIONS_AVAILABLE 36")] + public const int PF_SSSE3_INSTRUCTIONS_AVAILABLE = 36; + + [NativeTypeName("#define PF_SSE4_1_INSTRUCTIONS_AVAILABLE 37")] + public const int PF_SSE4_1_INSTRUCTIONS_AVAILABLE = 37; + + [NativeTypeName("#define PF_SSE4_2_INSTRUCTIONS_AVAILABLE 38")] + public const int PF_SSE4_2_INSTRUCTIONS_AVAILABLE = 38; + + [NativeTypeName("#define PF_AVX_INSTRUCTIONS_AVAILABLE 39")] + public const int PF_AVX_INSTRUCTIONS_AVAILABLE = 39; + + [NativeTypeName("#define PF_AVX2_INSTRUCTIONS_AVAILABLE 40")] + public const int PF_AVX2_INSTRUCTIONS_AVAILABLE = 40; + + [NativeTypeName("#define PF_AVX512F_INSTRUCTIONS_AVAILABLE 41")] + public const int PF_AVX512F_INSTRUCTIONS_AVAILABLE = 41; + + [NativeTypeName("#define PF_ERMS_AVAILABLE 42")] + public const int PF_ERMS_AVAILABLE = 42; + + [NativeTypeName("#define PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE 43")] + public const int PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE = 43; + + [NativeTypeName("#define PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE 44")] + public const int PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE = 44; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/POWER.cs b/sources/Interop/Windows/Windows/um/winnt/POWER.cs new file mode 100644 index 0000000000..0065d68e95 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/POWER.cs @@ -0,0 +1,129 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using static TerraFX.Interop.Windows.POWER_PLATFORM_ROLE; + +namespace TerraFX.Interop.Windows +{ + public static partial class POWER + { + [NativeTypeName("#define POWER_DEVICE_IDLE_POLICY_PERFORMANCE 0")] + public const int POWER_DEVICE_IDLE_POLICY_PERFORMANCE = 0; + + [NativeTypeName("#define POWER_DEVICE_IDLE_POLICY_CONSERVATIVE 1")] + public const int POWER_DEVICE_IDLE_POLICY_CONSERVATIVE = 1; + + [NativeTypeName("#define POWER_CONNECTIVITY_IN_STANDBY_DISABLED 0")] + public const int POWER_CONNECTIVITY_IN_STANDBY_DISABLED = 0; + + [NativeTypeName("#define POWER_CONNECTIVITY_IN_STANDBY_ENABLED 1")] + public const int POWER_CONNECTIVITY_IN_STANDBY_ENABLED = 1; + + [NativeTypeName("#define POWER_CONNECTIVITY_IN_STANDBY_SYSTEM_MANAGED 2")] + public const int POWER_CONNECTIVITY_IN_STANDBY_SYSTEM_MANAGED = 2; + + [NativeTypeName("#define POWER_DISCONNECTED_STANDBY_MODE_NORMAL 0")] + public const int POWER_DISCONNECTED_STANDBY_MODE_NORMAL = 0; + + [NativeTypeName("#define POWER_DISCONNECTED_STANDBY_MODE_AGGRESSIVE 1")] + public const int POWER_DISCONNECTED_STANDBY_MODE_AGGRESSIVE = 1; + + [NativeTypeName("#define POWER_SYSTEM_MAXIMUM 7")] + public const int POWER_SYSTEM_MAXIMUM = 7; + + [NativeTypeName("#define POWER_REQUEST_CONTEXT_VERSION DIAGNOSTIC_REASON_VERSION")] + public const int POWER_REQUEST_CONTEXT_VERSION = 0; + + [NativeTypeName("#define POWER_REQUEST_CONTEXT_SIMPLE_STRING DIAGNOSTIC_REASON_SIMPLE_STRING")] + public const int POWER_REQUEST_CONTEXT_SIMPLE_STRING = 0x00000001; + + [NativeTypeName("#define POWER_REQUEST_CONTEXT_DETAILED_STRING DIAGNOSTIC_REASON_DETAILED_STRING")] + public const int POWER_REQUEST_CONTEXT_DETAILED_STRING = 0x00000002; + + [NativeTypeName("#define POWER_SETTING_VALUE_VERSION (0x1)")] + public const int POWER_SETTING_VALUE_VERSION = (0x1); + + [NativeTypeName("#define POWER_PLATFORM_ROLE_V1 (0x00000001)")] + public const int POWER_PLATFORM_ROLE_V1 = (0x00000001); + + [NativeTypeName("#define POWER_PLATFORM_ROLE_V1_MAX (PlatformRolePerformanceServer + 1)")] + public const int POWER_PLATFORM_ROLE_V1_MAX = ((int)(PlatformRolePerformanceServer) + 1); + + [NativeTypeName("#define POWER_PLATFORM_ROLE_V2 (0x00000002)")] + public const int POWER_PLATFORM_ROLE_V2 = (0x00000002); + + [NativeTypeName("#define POWER_PLATFORM_ROLE_V2_MAX (PlatformRoleSlate + 1)")] + public const int POWER_PLATFORM_ROLE_V2_MAX = ((int)(PlatformRoleSlate) + 1); + + [NativeTypeName("#define POWER_PLATFORM_ROLE_VERSION POWER_PLATFORM_ROLE_V2")] + public const int POWER_PLATFORM_ROLE_VERSION = (0x00000002); + + [NativeTypeName("#define POWER_PLATFORM_ROLE_VERSION_MAX POWER_PLATFORM_ROLE_V2_MAX")] + public const int POWER_PLATFORM_ROLE_VERSION_MAX = ((int)(PlatformRoleSlate) + 1); + + [NativeTypeName("#define POWER_ACTION_QUERY_ALLOWED 0x00000001")] + public const int POWER_ACTION_QUERY_ALLOWED = 0x00000001; + + [NativeTypeName("#define POWER_ACTION_UI_ALLOWED 0x00000002")] + public const int POWER_ACTION_UI_ALLOWED = 0x00000002; + + [NativeTypeName("#define POWER_ACTION_OVERRIDE_APPS 0x00000004")] + public const int POWER_ACTION_OVERRIDE_APPS = 0x00000004; + + [NativeTypeName("#define POWER_ACTION_HIBERBOOT 0x00000008")] + public const int POWER_ACTION_HIBERBOOT = 0x00000008; + + [NativeTypeName("#define POWER_ACTION_USER_NOTIFY 0x00000010")] + public const int POWER_ACTION_USER_NOTIFY = 0x00000010; + + [NativeTypeName("#define POWER_ACTION_DOZE_TO_HIBERNATE 0x00000020")] + public const int POWER_ACTION_DOZE_TO_HIBERNATE = 0x00000020; + + [NativeTypeName("#define POWER_ACTION_ACPI_CRITICAL 0x01000000")] + public const int POWER_ACTION_ACPI_CRITICAL = 0x01000000; + + [NativeTypeName("#define POWER_ACTION_ACPI_USER_NOTIFY 0x02000000")] + public const int POWER_ACTION_ACPI_USER_NOTIFY = 0x02000000; + + [NativeTypeName("#define POWER_ACTION_DIRECTED_DRIPS 0x04000000")] + public const int POWER_ACTION_DIRECTED_DRIPS = 0x04000000; + + [NativeTypeName("#define POWER_ACTION_PSEUDO_TRANSITION 0x08000000")] + public const int POWER_ACTION_PSEUDO_TRANSITION = 0x08000000; + + [NativeTypeName("#define POWER_ACTION_LIGHTEST_FIRST 0x10000000")] + public const int POWER_ACTION_LIGHTEST_FIRST = 0x10000000; + + [NativeTypeName("#define POWER_ACTION_LOCK_CONSOLE 0x20000000")] + public const int POWER_ACTION_LOCK_CONSOLE = 0x20000000; + + [NativeTypeName("#define POWER_ACTION_DISABLE_WAKES 0x40000000")] + public const int POWER_ACTION_DISABLE_WAKES = 0x40000000; + + [NativeTypeName("#define POWER_ACTION_CRITICAL 0x80000000")] + public const uint POWER_ACTION_CRITICAL = 0x80000000; + + [NativeTypeName("#define POWER_LEVEL_USER_NOTIFY_TEXT 0x00000001")] + public const int POWER_LEVEL_USER_NOTIFY_TEXT = 0x00000001; + + [NativeTypeName("#define POWER_LEVEL_USER_NOTIFY_SOUND 0x00000002")] + public const int POWER_LEVEL_USER_NOTIFY_SOUND = 0x00000002; + + [NativeTypeName("#define POWER_LEVEL_USER_NOTIFY_EXEC 0x00000004")] + public const int POWER_LEVEL_USER_NOTIFY_EXEC = 0x00000004; + + [NativeTypeName("#define POWER_USER_NOTIFY_BUTTON 0x00000008")] + public const int POWER_USER_NOTIFY_BUTTON = 0x00000008; + + [NativeTypeName("#define POWER_USER_NOTIFY_SHUTDOWN 0x00000010")] + public const int POWER_USER_NOTIFY_SHUTDOWN = 0x00000010; + + [NativeTypeName("#define POWER_USER_NOTIFY_FORCED_SHUTDOWN 0x00000020")] + public const int POWER_USER_NOTIFY_FORCED_SHUTDOWN = 0x00000020; + + [NativeTypeName("#define POWER_FORCE_TRIGGER_RESET 0x80000000")] + public const uint POWER_FORCE_TRIGGER_RESET = 0x80000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/POWERBUTTON.cs b/sources/Interop/Windows/Windows/um/winnt/POWERBUTTON.cs new file mode 100644 index 0000000000..2ee8564396 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/POWERBUTTON.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class POWERBUTTON + { + [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_NOTHING 0")] + public const int POWERBUTTON_ACTION_INDEX_NOTHING = 0; + + [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_SLEEP 1")] + public const int POWERBUTTON_ACTION_INDEX_SLEEP = 1; + + [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_HIBERNATE 2")] + public const int POWERBUTTON_ACTION_INDEX_HIBERNATE = 2; + + [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_SHUTDOWN 3")] + public const int POWERBUTTON_ACTION_INDEX_SHUTDOWN = 3; + + [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_TURN_OFF_THE_DISPLAY 4")] + public const int POWERBUTTON_ACTION_INDEX_TURN_OFF_THE_DISPLAY = 4; + + [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_NOTHING 0")] + public const int POWERBUTTON_ACTION_VALUE_NOTHING = 0; + + [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_SLEEP 2")] + public const int POWERBUTTON_ACTION_VALUE_SLEEP = 2; + + [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_HIBERNATE 3")] + public const int POWERBUTTON_ACTION_VALUE_HIBERNATE = 3; + + [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_SHUTDOWN 6")] + public const int POWERBUTTON_ACTION_VALUE_SHUTDOWN = 6; + + [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_TURN_OFF_THE_DISPLAY 8")] + public const int POWERBUTTON_ACTION_VALUE_TURN_OFF_THE_DISPLAY = 8; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/PPM.cs b/sources/Interop/Windows/Windows/um/winnt/PPM.cs new file mode 100644 index 0000000000..55c391d1e6 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/PPM.cs @@ -0,0 +1,355 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System; +using System.Diagnostics; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +namespace TerraFX.Interop.Windows +{ + public static partial class PPM + { + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_PERFSTATE_CHANGE_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xDD, 0x2D, 0xB3, 0xA5, + 0x39, 0x7F, + 0xBC, 0x4A, + 0xB8, + 0x92, + 0x90, + 0x0E, + 0x43, + 0xB5, + 0x9E, + 0xBB + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_PERFSTATE_DOMAIN_CHANGE_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x7F, 0x6B, 0x5E, 0x99, + 0x53, 0xD6, + 0x7A, 0x49, + 0xB9, + 0x78, + 0x36, + 0xA3, + 0x0C, + 0x29, + 0xBF, + 0x01 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_IDLESTATE_CHANGE_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x4F, 0xFE, 0x38, 0x48, + 0x1C, 0xF7, + 0x51, 0x4E, + 0x9E, + 0xCC, + 0x84, + 0x30, + 0xA7, + 0xAC, + 0x4C, + 0x6C + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_PERFSTATES_DATA_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x20, 0xCC, 0x08, 0x57, + 0x40, 0x7D, + 0xF4, 0x4B, + 0xB4, + 0xAA, + 0x2B, + 0x01, + 0x33, + 0x8D, + 0x01, + 0x26 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_IDLESTATES_DATA_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x10, 0x8E, 0x13, 0xBA, + 0x50, 0xE2, + 0xD7, 0x4A, + 0x86, + 0x16, + 0xCF, + 0x1A, + 0x7A, + 0xD4, + 0x10, + 0xE7 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_IDLE_ACCOUNTING_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x78, 0x6F, 0xA2, 0xE2, + 0x07, 0xAE, + 0xE0, 0x4E, + 0xA3, + 0x0F, + 0xCE, + 0x54, + 0xF5, + 0x5A, + 0x94, + 0xCD + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_IDLE_ACCOUNTING_EX_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x39, 0xBD, 0x7A, 0xD6, + 0xF8, 0x81, + 0x5E, 0x4A, + 0x81, + 0x52, + 0x72, + 0xE3, + 0x1E, + 0xC9, + 0x12, + 0xEE + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_THERMALCONSTRAINT_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xC8, 0xC2, 0x52, 0xA8, + 0x4C, 0x1A, + 0x3B, 0x42, + 0x8C, + 0x2C, + 0xF3, + 0x0D, + 0x82, + 0x93, + 0x1A, + 0x88 + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_PERFMON_PERFSTATE_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0x52, 0x86, 0xD1, 0x7F, + 0xFE, 0x0C, + 0xD2, 0x40, + 0xB0, + 0xA1, + 0x0B, + 0x06, + 0x6A, + 0x87, + 0x75, + 0x9E + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("const GUID")] + public static ref readonly Guid PPM_THERMAL_POLICY_CHANGE_GUID + { + [MethodImpl(MethodImplOptions.AggressiveInlining)] + get + { + ReadOnlySpan data = new byte[] { + 0xB8, 0x77, 0xF3, 0x48, + 0x80, 0x68, + 0x7B, 0x4C, + 0x8B, + 0xDC, + 0x38, + 0x01, + 0x76, + 0xC6, + 0x65, + 0x4D + }; + + Debug.Assert(data.Length == Unsafe.SizeOf()); + return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); + } + } + + [NativeTypeName("#define PPM_FIRMWARE_ACPI1C2 0x00000001")] + public const int PPM_FIRMWARE_ACPI1C2 = 0x00000001; + + [NativeTypeName("#define PPM_FIRMWARE_ACPI1C3 0x00000002")] + public const int PPM_FIRMWARE_ACPI1C3 = 0x00000002; + + [NativeTypeName("#define PPM_FIRMWARE_ACPI1TSTATES 0x00000004")] + public const int PPM_FIRMWARE_ACPI1TSTATES = 0x00000004; + + [NativeTypeName("#define PPM_FIRMWARE_CST 0x00000008")] + public const int PPM_FIRMWARE_CST = 0x00000008; + + [NativeTypeName("#define PPM_FIRMWARE_CSD 0x00000010")] + public const int PPM_FIRMWARE_CSD = 0x00000010; + + [NativeTypeName("#define PPM_FIRMWARE_PCT 0x00000020")] + public const int PPM_FIRMWARE_PCT = 0x00000020; + + [NativeTypeName("#define PPM_FIRMWARE_PSS 0x00000040")] + public const int PPM_FIRMWARE_PSS = 0x00000040; + + [NativeTypeName("#define PPM_FIRMWARE_XPSS 0x00000080")] + public const int PPM_FIRMWARE_XPSS = 0x00000080; + + [NativeTypeName("#define PPM_FIRMWARE_PPC 0x00000100")] + public const int PPM_FIRMWARE_PPC = 0x00000100; + + [NativeTypeName("#define PPM_FIRMWARE_PSD 0x00000200")] + public const int PPM_FIRMWARE_PSD = 0x00000200; + + [NativeTypeName("#define PPM_FIRMWARE_PTC 0x00000400")] + public const int PPM_FIRMWARE_PTC = 0x00000400; + + [NativeTypeName("#define PPM_FIRMWARE_TSS 0x00000800")] + public const int PPM_FIRMWARE_TSS = 0x00000800; + + [NativeTypeName("#define PPM_FIRMWARE_TPC 0x00001000")] + public const int PPM_FIRMWARE_TPC = 0x00001000; + + [NativeTypeName("#define PPM_FIRMWARE_TSD 0x00002000")] + public const int PPM_FIRMWARE_TSD = 0x00002000; + + [NativeTypeName("#define PPM_FIRMWARE_PCCH 0x00004000")] + public const int PPM_FIRMWARE_PCCH = 0x00004000; + + [NativeTypeName("#define PPM_FIRMWARE_PCCP 0x00008000")] + public const int PPM_FIRMWARE_PCCP = 0x00008000; + + [NativeTypeName("#define PPM_FIRMWARE_OSC 0x00010000")] + public const int PPM_FIRMWARE_OSC = 0x00010000; + + [NativeTypeName("#define PPM_FIRMWARE_PDC 0x00020000")] + public const int PPM_FIRMWARE_PDC = 0x00020000; + + [NativeTypeName("#define PPM_FIRMWARE_CPC 0x00040000")] + public const int PPM_FIRMWARE_CPC = 0x00040000; + + [NativeTypeName("#define PPM_FIRMWARE_LPI 0x00080000")] + public const int PPM_FIRMWARE_LPI = 0x00080000; + + [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_NONE 0x00000000")] + public const int PPM_PERFORMANCE_IMPLEMENTATION_NONE = 0x00000000; + + [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_PSTATES 0x00000001")] + public const int PPM_PERFORMANCE_IMPLEMENTATION_PSTATES = 0x00000001; + + [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_PCCV1 0x00000002")] + public const int PPM_PERFORMANCE_IMPLEMENTATION_PCCV1 = 0x00000002; + + [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_CPPC 0x00000003")] + public const int PPM_PERFORMANCE_IMPLEMENTATION_CPPC = 0x00000003; + + [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_PEP 0x00000004")] + public const int PPM_PERFORMANCE_IMPLEMENTATION_PEP = 0x00000004; + + [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_NONE 0x00000000")] + public const int PPM_IDLE_IMPLEMENTATION_NONE = 0x00000000; + + [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_CSTATES 0x00000001")] + public const int PPM_IDLE_IMPLEMENTATION_CSTATES = 0x00000001; + + [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_PEP 0x00000002")] + public const int PPM_IDLE_IMPLEMENTATION_PEP = 0x00000002; + + [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_MICROPEP 0x00000003")] + public const int PPM_IDLE_IMPLEMENTATION_MICROPEP = 0x00000003; + + [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_LPISTATES 0x00000004")] + public const int PPM_IDLE_IMPLEMENTATION_LPISTATES = 0x00000004; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/PROC.cs b/sources/Interop/Windows/Windows/um/winnt/PROC.cs new file mode 100644 index 0000000000..37b5143af7 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/PROC.cs @@ -0,0 +1,16 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class PROC + { + [NativeTypeName("#define PROC_IDLE_BUCKET_COUNT 6")] + public const int PROC_IDLE_BUCKET_COUNT = 6; + + [NativeTypeName("#define PROC_IDLE_BUCKET_COUNT_EX 16")] + public const int PROC_IDLE_BUCKET_COUNT_EX = 16; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/READ.cs b/sources/Interop/Windows/Windows/um/winnt/READ.cs new file mode 100644 index 0000000000..7dcb5da430 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/READ.cs @@ -0,0 +1,19 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class READ + { + [NativeTypeName("#define READ_CONTROL (0x00020000L)")] + public const int READ_CONTROL = (0x00020000); + + [NativeTypeName("#define READ_THREAD_PROFILING_FLAG_DISPATCHING 0x00000001")] + public const int READ_THREAD_PROFILING_FLAG_DISPATCHING = 0x00000001; + + [NativeTypeName("#define READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS 0x00000002")] + public const int READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS = 0x00000002; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/RESOURCEMANAGER.cs b/sources/Interop/Windows/Windows/um/winnt/RESOURCEMANAGER.cs new file mode 100644 index 0000000000..f711c9bc87 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/RESOURCEMANAGER.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RESOURCEMANAGER + { + [NativeTypeName("#define RESOURCEMANAGER_QUERY_INFORMATION ( 0x0001 )")] + public const int RESOURCEMANAGER_QUERY_INFORMATION = (0x0001); + + [NativeTypeName("#define RESOURCEMANAGER_SET_INFORMATION ( 0x0002 )")] + public const int RESOURCEMANAGER_SET_INFORMATION = (0x0002); + + [NativeTypeName("#define RESOURCEMANAGER_RECOVER ( 0x0004 )")] + public const int RESOURCEMANAGER_RECOVER = (0x0004); + + [NativeTypeName("#define RESOURCEMANAGER_ENLIST ( 0x0008 )")] + public const int RESOURCEMANAGER_ENLIST = (0x0008); + + [NativeTypeName("#define RESOURCEMANAGER_GET_NOTIFICATION ( 0x0010 )")] + public const int RESOURCEMANAGER_GET_NOTIFICATION = (0x0010); + + [NativeTypeName("#define RESOURCEMANAGER_REGISTER_PROTOCOL ( 0x0020 )")] + public const int RESOURCEMANAGER_REGISTER_PROTOCOL = (0x0020); + + [NativeTypeName("#define RESOURCEMANAGER_COMPLETE_PROPAGATION ( 0x0040 )")] + public const int RESOURCEMANAGER_COMPLETE_PROPAGATION = (0x0040); + + [NativeTypeName("#define RESOURCEMANAGER_GENERIC_READ (STANDARD_RIGHTS_READ |\\\r\n RESOURCEMANAGER_QUERY_INFORMATION |\\\r\n SYNCHRONIZE)")] + public const int RESOURCEMANAGER_GENERIC_READ = (((0x00020000)) | (0x0001) | (0x00100000)); + + [NativeTypeName("#define RESOURCEMANAGER_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n RESOURCEMANAGER_SET_INFORMATION |\\\r\n RESOURCEMANAGER_RECOVER |\\\r\n RESOURCEMANAGER_ENLIST |\\\r\n RESOURCEMANAGER_GET_NOTIFICATION |\\\r\n RESOURCEMANAGER_REGISTER_PROTOCOL |\\\r\n RESOURCEMANAGER_COMPLETE_PROPAGATION |\\\r\n SYNCHRONIZE)")] + public const int RESOURCEMANAGER_GENERIC_WRITE = (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x00100000)); + + [NativeTypeName("#define RESOURCEMANAGER_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\\\r\n RESOURCEMANAGER_RECOVER |\\\r\n RESOURCEMANAGER_ENLIST |\\\r\n RESOURCEMANAGER_GET_NOTIFICATION |\\\r\n RESOURCEMANAGER_COMPLETE_PROPAGATION |\\\r\n SYNCHRONIZE)")] + public const int RESOURCEMANAGER_GENERIC_EXECUTE = (((0x00020000)) | (0x0004) | (0x0008) | (0x0010) | (0x0040) | (0x00100000)); + + [NativeTypeName("#define RESOURCEMANAGER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED |\\\r\n RESOURCEMANAGER_GENERIC_READ |\\\r\n RESOURCEMANAGER_GENERIC_WRITE |\\\r\n RESOURCEMANAGER_GENERIC_EXECUTE)")] + public const int RESOURCEMANAGER_ALL_ACCESS = ((0x000F0000) | (((0x00020000)) | (0x0001) | (0x00100000)) | (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x00100000)) | (((0x00020000)) | (0x0004) | (0x0008) | (0x0010) | (0x0040) | (0x00100000))); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/SCRUB.cs b/sources/Interop/Windows/Windows/um/winnt/SCRUB.cs new file mode 100644 index 0000000000..203d4aa0c5 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/SCRUB.cs @@ -0,0 +1,43 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SCRUB + { + [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_RESUME 0x00000001")] + public const int SCRUB_DATA_INPUT_FLAG_RESUME = 0x00000001; + + [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SKIP_IN_SYNC 0x00000002")] + public const int SCRUB_DATA_INPUT_FLAG_SKIP_IN_SYNC = 0x00000002; + + [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SKIP_NON_INTEGRITY_DATA 0x00000004")] + public const int SCRUB_DATA_INPUT_FLAG_SKIP_NON_INTEGRITY_DATA = 0x00000004; + + [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_IGNORE_REDUNDANCY 0x00000008")] + public const int SCRUB_DATA_INPUT_FLAG_IGNORE_REDUNDANCY = 0x00000008; + + [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SKIP_DATA 0x00000010")] + public const int SCRUB_DATA_INPUT_FLAG_SKIP_DATA = 0x00000010; + + [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SCRUB_BY_OBJECT_ID 0x00000020")] + public const int SCRUB_DATA_INPUT_FLAG_SCRUB_BY_OBJECT_ID = 0x00000020; + + [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_OPLOCK_NOT_ACQUIRED 0x00000040")] + public const int SCRUB_DATA_INPUT_FLAG_OPLOCK_NOT_ACQUIRED = 0x00000040; + + [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_INCOMPLETE 0x00000001")] + public const int SCRUB_DATA_OUTPUT_FLAG_INCOMPLETE = 0x00000001; + + [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_NON_USER_DATA_RANGE 0x00010000")] + public const int SCRUB_DATA_OUTPUT_FLAG_NON_USER_DATA_RANGE = 0x00010000; + + [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_PARITY_EXTENT_DATA_RETURNED 0x00020000")] + public const int SCRUB_DATA_OUTPUT_FLAG_PARITY_EXTENT_DATA_RETURNED = 0x00020000; + + [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_RESUME_CONTEXT_LENGTH_SPECIFIED 0x00040000")] + public const int SCRUB_DATA_OUTPUT_FLAG_RESUME_CONTEXT_LENGTH_SPECIFIED = 0x00040000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/SEF.cs b/sources/Interop/Windows/Windows/um/winnt/SEF.cs new file mode 100644 index 0000000000..df9367ee0c --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/SEF.cs @@ -0,0 +1,52 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SEF + { + [NativeTypeName("#define SEF_DACL_AUTO_INHERIT 0x01")] + public const int SEF_DACL_AUTO_INHERIT = 0x01; + + [NativeTypeName("#define SEF_SACL_AUTO_INHERIT 0x02")] + public const int SEF_SACL_AUTO_INHERIT = 0x02; + + [NativeTypeName("#define SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT 0x04")] + public const int SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT = 0x04; + + [NativeTypeName("#define SEF_AVOID_PRIVILEGE_CHECK 0x08")] + public const int SEF_AVOID_PRIVILEGE_CHECK = 0x08; + + [NativeTypeName("#define SEF_AVOID_OWNER_CHECK 0x10")] + public const int SEF_AVOID_OWNER_CHECK = 0x10; + + [NativeTypeName("#define SEF_DEFAULT_OWNER_FROM_PARENT 0x20")] + public const int SEF_DEFAULT_OWNER_FROM_PARENT = 0x20; + + [NativeTypeName("#define SEF_DEFAULT_GROUP_FROM_PARENT 0x40")] + public const int SEF_DEFAULT_GROUP_FROM_PARENT = 0x40; + + [NativeTypeName("#define SEF_MACL_NO_WRITE_UP 0x100")] + public const int SEF_MACL_NO_WRITE_UP = 0x100; + + [NativeTypeName("#define SEF_MACL_NO_READ_UP 0x200")] + public const int SEF_MACL_NO_READ_UP = 0x200; + + [NativeTypeName("#define SEF_MACL_NO_EXECUTE_UP 0x400")] + public const int SEF_MACL_NO_EXECUTE_UP = 0x400; + + [NativeTypeName("#define SEF_AI_USE_EXTRA_PARAMS 0x800")] + public const int SEF_AI_USE_EXTRA_PARAMS = 0x800; + + [NativeTypeName("#define SEF_AVOID_OWNER_RESTRICTION 0x1000")] + public const int SEF_AVOID_OWNER_RESTRICTION = 0x1000; + + [NativeTypeName("#define SEF_FORCE_USER_MODE 0x2000")] + public const int SEF_FORCE_USER_MODE = 0x2000; + + [NativeTypeName("#define SEF_MACL_VALID_FLAGS (SEF_MACL_NO_WRITE_UP | \\\r\n SEF_MACL_NO_READ_UP | \\\r\n SEF_MACL_NO_EXECUTE_UP)")] + public const int SEF_MACL_VALID_FLAGS = (0x100 | 0x200 | 0x400); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/SERVICE.cs b/sources/Interop/Windows/Windows/um/winnt/SERVICE.cs new file mode 100644 index 0000000000..f4b9713c64 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/SERVICE.cs @@ -0,0 +1,82 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SERVICE + { + [NativeTypeName("#define SERVICE_KERNEL_DRIVER 0x00000001")] + public const int SERVICE_KERNEL_DRIVER = 0x00000001; + + [NativeTypeName("#define SERVICE_FILE_SYSTEM_DRIVER 0x00000002")] + public const int SERVICE_FILE_SYSTEM_DRIVER = 0x00000002; + + [NativeTypeName("#define SERVICE_ADAPTER 0x00000004")] + public const int SERVICE_ADAPTER = 0x00000004; + + [NativeTypeName("#define SERVICE_RECOGNIZER_DRIVER 0x00000008")] + public const int SERVICE_RECOGNIZER_DRIVER = 0x00000008; + + [NativeTypeName("#define SERVICE_DRIVER (SERVICE_KERNEL_DRIVER | \\\r\n SERVICE_FILE_SYSTEM_DRIVER | \\\r\n SERVICE_RECOGNIZER_DRIVER)")] + public const int SERVICE_DRIVER = (0x00000001 | 0x00000002 | 0x00000008); + + [NativeTypeName("#define SERVICE_WIN32_OWN_PROCESS 0x00000010")] + public const int SERVICE_WIN32_OWN_PROCESS = 0x00000010; + + [NativeTypeName("#define SERVICE_WIN32_SHARE_PROCESS 0x00000020")] + public const int SERVICE_WIN32_SHARE_PROCESS = 0x00000020; + + [NativeTypeName("#define SERVICE_WIN32 (SERVICE_WIN32_OWN_PROCESS | \\\r\n SERVICE_WIN32_SHARE_PROCESS)")] + public const int SERVICE_WIN32 = (0x00000010 | 0x00000020); + + [NativeTypeName("#define SERVICE_USER_SERVICE 0x00000040")] + public const int SERVICE_USER_SERVICE = 0x00000040; + + [NativeTypeName("#define SERVICE_USERSERVICE_INSTANCE 0x00000080")] + public const int SERVICE_USERSERVICE_INSTANCE = 0x00000080; + + [NativeTypeName("#define SERVICE_USER_SHARE_PROCESS (SERVICE_USER_SERVICE | \\\r\n SERVICE_WIN32_SHARE_PROCESS)")] + public const int SERVICE_USER_SHARE_PROCESS = (0x00000040 | 0x00000020); + + [NativeTypeName("#define SERVICE_USER_OWN_PROCESS (SERVICE_USER_SERVICE | \\\r\n SERVICE_WIN32_OWN_PROCESS)")] + public const int SERVICE_USER_OWN_PROCESS = (0x00000040 | 0x00000010); + + [NativeTypeName("#define SERVICE_INTERACTIVE_PROCESS 0x00000100")] + public const int SERVICE_INTERACTIVE_PROCESS = 0x00000100; + + [NativeTypeName("#define SERVICE_PKG_SERVICE 0x00000200")] + public const int SERVICE_PKG_SERVICE = 0x00000200; + + [NativeTypeName("#define SERVICE_TYPE_ALL (SERVICE_WIN32 | \\\r\n SERVICE_ADAPTER | \\\r\n SERVICE_DRIVER | \\\r\n SERVICE_INTERACTIVE_PROCESS | \\\r\n SERVICE_USER_SERVICE | \\\r\n SERVICE_USERSERVICE_INSTANCE | \\\r\n SERVICE_PKG_SERVICE)")] + public const int SERVICE_TYPE_ALL = ((0x00000010 | 0x00000020) | 0x00000004 | (0x00000001 | 0x00000002 | 0x00000008) | 0x00000100 | 0x00000040 | 0x00000080 | 0x00000200); + + [NativeTypeName("#define SERVICE_BOOT_START 0x00000000")] + public const int SERVICE_BOOT_START = 0x00000000; + + [NativeTypeName("#define SERVICE_SYSTEM_START 0x00000001")] + public const int SERVICE_SYSTEM_START = 0x00000001; + + [NativeTypeName("#define SERVICE_AUTO_START 0x00000002")] + public const int SERVICE_AUTO_START = 0x00000002; + + [NativeTypeName("#define SERVICE_DEMAND_START 0x00000003")] + public const int SERVICE_DEMAND_START = 0x00000003; + + [NativeTypeName("#define SERVICE_DISABLED 0x00000004")] + public const int SERVICE_DISABLED = 0x00000004; + + [NativeTypeName("#define SERVICE_ERROR_IGNORE 0x00000000")] + public const int SERVICE_ERROR_IGNORE = 0x00000000; + + [NativeTypeName("#define SERVICE_ERROR_NORMAL 0x00000001")] + public const int SERVICE_ERROR_NORMAL = 0x00000001; + + [NativeTypeName("#define SERVICE_ERROR_SEVERE 0x00000002")] + public const int SERVICE_ERROR_SEVERE = 0x00000002; + + [NativeTypeName("#define SERVICE_ERROR_CRITICAL 0x00000003")] + public const int SERVICE_ERROR_CRITICAL = 0x00000003; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/SORT.cs b/sources/Interop/Windows/Windows/um/winnt/SORT.cs new file mode 100644 index 0000000000..f21691d1f9 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/SORT.cs @@ -0,0 +1,64 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SORT + { + [NativeTypeName("#define SORT_DEFAULT 0x0")] + public const int SORT_DEFAULT = 0x0; + + [NativeTypeName("#define SORT_INVARIANT_MATH 0x1")] + public const int SORT_INVARIANT_MATH = 0x1; + + [NativeTypeName("#define SORT_JAPANESE_XJIS 0x0")] + public const int SORT_JAPANESE_XJIS = 0x0; + + [NativeTypeName("#define SORT_JAPANESE_UNICODE 0x1")] + public const int SORT_JAPANESE_UNICODE = 0x1; + + [NativeTypeName("#define SORT_JAPANESE_RADICALSTROKE 0x4")] + public const int SORT_JAPANESE_RADICALSTROKE = 0x4; + + [NativeTypeName("#define SORT_CHINESE_BIG5 0x0")] + public const int SORT_CHINESE_BIG5 = 0x0; + + [NativeTypeName("#define SORT_CHINESE_PRCP 0x0")] + public const int SORT_CHINESE_PRCP = 0x0; + + [NativeTypeName("#define SORT_CHINESE_UNICODE 0x1")] + public const int SORT_CHINESE_UNICODE = 0x1; + + [NativeTypeName("#define SORT_CHINESE_PRC 0x2")] + public const int SORT_CHINESE_PRC = 0x2; + + [NativeTypeName("#define SORT_CHINESE_BOPOMOFO 0x3")] + public const int SORT_CHINESE_BOPOMOFO = 0x3; + + [NativeTypeName("#define SORT_CHINESE_RADICALSTROKE 0x4")] + public const int SORT_CHINESE_RADICALSTROKE = 0x4; + + [NativeTypeName("#define SORT_KOREAN_KSC 0x0")] + public const int SORT_KOREAN_KSC = 0x0; + + [NativeTypeName("#define SORT_KOREAN_UNICODE 0x1")] + public const int SORT_KOREAN_UNICODE = 0x1; + + [NativeTypeName("#define SORT_GERMAN_PHONE_BOOK 0x1")] + public const int SORT_GERMAN_PHONE_BOOK = 0x1; + + [NativeTypeName("#define SORT_HUNGARIAN_DEFAULT 0x0")] + public const int SORT_HUNGARIAN_DEFAULT = 0x0; + + [NativeTypeName("#define SORT_HUNGARIAN_TECHNICAL 0x1")] + public const int SORT_HUNGARIAN_TECHNICAL = 0x1; + + [NativeTypeName("#define SORT_GEORGIAN_TRADITIONAL 0x0")] + public const int SORT_GEORGIAN_TRADITIONAL = 0x0; + + [NativeTypeName("#define SORT_GEORGIAN_MODERN 0x1")] + public const int SORT_GEORGIAN_MODERN = 0x1; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/SYSTEM.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/SYSTEM.Manual.cs new file mode 100644 index 0000000000..8697c3f45b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/SYSTEM.Manual.cs @@ -0,0 +1,27 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using System.Runtime.Intrinsics.X86; + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class SYSTEM + { + public static int SYSTEM_CACHE_ALIGNMENT_SIZE + { + get + { + if (X86Base.IsSupported) + { + return 64; + } + else + { + return 128; + } + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/SYSTEM.cs b/sources/Interop/Windows/Windows/um/winnt/SYSTEM.cs new file mode 100644 index 0000000000..eb58ed27b1 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/SYSTEM.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SYSTEM + { + [NativeTypeName("#define SYSTEM_AUDIT_ACE_TYPE (0x2)")] + public const int SYSTEM_AUDIT_ACE_TYPE = (0x2); + + [NativeTypeName("#define SYSTEM_ALARM_ACE_TYPE (0x3)")] + public const int SYSTEM_ALARM_ACE_TYPE = (0x3); + + [NativeTypeName("#define SYSTEM_AUDIT_OBJECT_ACE_TYPE (0x7)")] + public const int SYSTEM_AUDIT_OBJECT_ACE_TYPE = (0x7); + + [NativeTypeName("#define SYSTEM_ALARM_OBJECT_ACE_TYPE (0x8)")] + public const int SYSTEM_ALARM_OBJECT_ACE_TYPE = (0x8); + + [NativeTypeName("#define SYSTEM_AUDIT_CALLBACK_ACE_TYPE (0xD)")] + public const int SYSTEM_AUDIT_CALLBACK_ACE_TYPE = (0xD); + + [NativeTypeName("#define SYSTEM_ALARM_CALLBACK_ACE_TYPE (0xE)")] + public const int SYSTEM_ALARM_CALLBACK_ACE_TYPE = (0xE); + + [NativeTypeName("#define SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE (0xF)")] + public const int SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE = (0xF); + + [NativeTypeName("#define SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE (0x10)")] + public const int SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE = (0x10); + + [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_ACE_TYPE (0x11)")] + public const int SYSTEM_MANDATORY_LABEL_ACE_TYPE = (0x11); + + [NativeTypeName("#define SYSTEM_RESOURCE_ATTRIBUTE_ACE_TYPE (0x12)")] + public const int SYSTEM_RESOURCE_ATTRIBUTE_ACE_TYPE = (0x12); + + [NativeTypeName("#define SYSTEM_SCOPED_POLICY_ID_ACE_TYPE (0x13)")] + public const int SYSTEM_SCOPED_POLICY_ID_ACE_TYPE = (0x13); + + [NativeTypeName("#define SYSTEM_PROCESS_TRUST_LABEL_ACE_TYPE (0x14)")] + public const int SYSTEM_PROCESS_TRUST_LABEL_ACE_TYPE = (0x14); + + [NativeTypeName("#define SYSTEM_ACCESS_FILTER_ACE_TYPE (0x15)")] + public const int SYSTEM_ACCESS_FILTER_ACE_TYPE = (0x15); + + [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_NO_WRITE_UP 0x1")] + public const int SYSTEM_MANDATORY_LABEL_NO_WRITE_UP = 0x1; + + [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_NO_READ_UP 0x2")] + public const int SYSTEM_MANDATORY_LABEL_NO_READ_UP = 0x2; + + [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP 0x4")] + public const int SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP = 0x4; + + [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_VALID_MASK (SYSTEM_MANDATORY_LABEL_NO_WRITE_UP | \\\r\n SYSTEM_MANDATORY_LABEL_NO_READ_UP | \\\r\n SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP)")] + public const int SYSTEM_MANDATORY_LABEL_VALID_MASK = (0x1 | 0x2 | 0x4); + + [NativeTypeName("#define SYSTEM_PROCESS_TRUST_LABEL_VALID_MASK 0x00ffffff")] + public const int SYSTEM_PROCESS_TRUST_LABEL_VALID_MASK = 0x00ffffff; + + [NativeTypeName("#define SYSTEM_PROCESS_TRUST_NOCONSTRAINT_MASK 0xffffffff")] + public const uint SYSTEM_PROCESS_TRUST_NOCONSTRAINT_MASK = 0xffffffff; + + [NativeTypeName("#define SYSTEM_ACCESS_FILTER_VALID_MASK 0x00ffffff")] + public const int SYSTEM_ACCESS_FILTER_VALID_MASK = 0x00ffffff; + + [NativeTypeName("#define SYSTEM_ACCESS_FILTER_NOCONSTRAINT_MASK 0xffffffff")] + public const uint SYSTEM_ACCESS_FILTER_NOCONSTRAINT_MASK = 0xffffffff; + + [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_PARKED 0x1")] + public const int SYSTEM_CPU_SET_INFORMATION_PARKED = 0x1; + + [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_ALLOCATED 0x2")] + public const int SYSTEM_CPU_SET_INFORMATION_ALLOCATED = 0x2; + + [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_ALLOCATED_TO_TARGET_PROCESS 0x4")] + public const int SYSTEM_CPU_SET_INFORMATION_ALLOCATED_TO_TARGET_PROCESS = 0x4; + + [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_REALTIME 0x8")] + public const int SYSTEM_CPU_SET_INFORMATION_REALTIME = 0x8; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/THREAD.cs b/sources/Interop/Windows/Windows/um/winnt/THREAD.cs new file mode 100644 index 0000000000..c6e87fd740 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/THREAD.cs @@ -0,0 +1,67 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class THREAD + { + [NativeTypeName("#define THREAD_TERMINATE (0x0001)")] + public const int THREAD_TERMINATE = (0x0001); + + [NativeTypeName("#define THREAD_SUSPEND_RESUME (0x0002)")] + public const int THREAD_SUSPEND_RESUME = (0x0002); + + [NativeTypeName("#define THREAD_GET_CONTEXT (0x0008)")] + public const int THREAD_GET_CONTEXT = (0x0008); + + [NativeTypeName("#define THREAD_SET_CONTEXT (0x0010)")] + public const int THREAD_SET_CONTEXT = (0x0010); + + [NativeTypeName("#define THREAD_QUERY_INFORMATION (0x0040)")] + public const int THREAD_QUERY_INFORMATION = (0x0040); + + [NativeTypeName("#define THREAD_SET_INFORMATION (0x0020)")] + public const int THREAD_SET_INFORMATION = (0x0020); + + [NativeTypeName("#define THREAD_SET_THREAD_TOKEN (0x0080)")] + public const int THREAD_SET_THREAD_TOKEN = (0x0080); + + [NativeTypeName("#define THREAD_IMPERSONATE (0x0100)")] + public const int THREAD_IMPERSONATE = (0x0100); + + [NativeTypeName("#define THREAD_DIRECT_IMPERSONATION (0x0200)")] + public const int THREAD_DIRECT_IMPERSONATION = (0x0200); + + [NativeTypeName("#define THREAD_SET_LIMITED_INFORMATION (0x0400)")] + public const int THREAD_SET_LIMITED_INFORMATION = (0x0400); + + [NativeTypeName("#define THREAD_QUERY_LIMITED_INFORMATION (0x0800)")] + public const int THREAD_QUERY_LIMITED_INFORMATION = (0x0800); + + [NativeTypeName("#define THREAD_RESUME (0x1000)")] + public const int THREAD_RESUME = (0x1000); + + [NativeTypeName("#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | \\\r\n 0xFFFF)")] + public const int THREAD_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0xFFFF); + + [NativeTypeName("#define THREAD_DYNAMIC_CODE_ALLOW 1")] + public const int THREAD_DYNAMIC_CODE_ALLOW = 1; + + [NativeTypeName("#define THREAD_BASE_PRIORITY_LOWRT 15")] + public const int THREAD_BASE_PRIORITY_LOWRT = 15; + + [NativeTypeName("#define THREAD_BASE_PRIORITY_MAX 2")] + public const int THREAD_BASE_PRIORITY_MAX = 2; + + [NativeTypeName("#define THREAD_BASE_PRIORITY_MIN (-2)")] + public const int THREAD_BASE_PRIORITY_MIN = (-2); + + [NativeTypeName("#define THREAD_BASE_PRIORITY_IDLE (-15)")] + public const int THREAD_BASE_PRIORITY_IDLE = (-15); + + [NativeTypeName("#define THREAD_PROFILING_FLAG_DISPATCH 0x00000001")] + public const int THREAD_PROFILING_FLAG_DISPATCH = 0x00000001; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/TOKEN.cs b/sources/Interop/Windows/Windows/um/winnt/TOKEN.cs new file mode 100644 index 0000000000..b1b239469b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/TOKEN.cs @@ -0,0 +1,88 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class TOKEN + { + [NativeTypeName("#define TOKEN_ASSIGN_PRIMARY (0x0001)")] + public const int TOKEN_ASSIGN_PRIMARY = (0x0001); + + [NativeTypeName("#define TOKEN_DUPLICATE (0x0002)")] + public const int TOKEN_DUPLICATE = (0x0002); + + [NativeTypeName("#define TOKEN_IMPERSONATE (0x0004)")] + public const int TOKEN_IMPERSONATE = (0x0004); + + [NativeTypeName("#define TOKEN_QUERY (0x0008)")] + public const int TOKEN_QUERY = (0x0008); + + [NativeTypeName("#define TOKEN_QUERY_SOURCE (0x0010)")] + public const int TOKEN_QUERY_SOURCE = (0x0010); + + [NativeTypeName("#define TOKEN_ADJUST_PRIVILEGES (0x0020)")] + public const int TOKEN_ADJUST_PRIVILEGES = (0x0020); + + [NativeTypeName("#define TOKEN_ADJUST_GROUPS (0x0040)")] + public const int TOKEN_ADJUST_GROUPS = (0x0040); + + [NativeTypeName("#define TOKEN_ADJUST_DEFAULT (0x0080)")] + public const int TOKEN_ADJUST_DEFAULT = (0x0080); + + [NativeTypeName("#define TOKEN_ADJUST_SESSIONID (0x0100)")] + public const int TOKEN_ADJUST_SESSIONID = (0x0100); + + [NativeTypeName("#define TOKEN_ALL_ACCESS_P (STANDARD_RIGHTS_REQUIRED |\\\r\n TOKEN_ASSIGN_PRIMARY |\\\r\n TOKEN_DUPLICATE |\\\r\n TOKEN_IMPERSONATE |\\\r\n TOKEN_QUERY |\\\r\n TOKEN_QUERY_SOURCE |\\\r\n TOKEN_ADJUST_PRIVILEGES |\\\r\n TOKEN_ADJUST_GROUPS |\\\r\n TOKEN_ADJUST_DEFAULT )")] + public const int TOKEN_ALL_ACCESS_P = ((0x000F0000) | (0x0001) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x0080)); + + [NativeTypeName("#define TOKEN_ALL_ACCESS (TOKEN_ALL_ACCESS_P |\\\r\n TOKEN_ADJUST_SESSIONID )")] + public const int TOKEN_ALL_ACCESS = (((0x000F0000) | (0x0001) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x0080)) | (0x0100)); + + [NativeTypeName("#define TOKEN_READ (STANDARD_RIGHTS_READ |\\\r\n TOKEN_QUERY)")] + public const int TOKEN_READ = (((0x00020000)) | (0x0008)); + + [NativeTypeName("#define TOKEN_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n TOKEN_ADJUST_PRIVILEGES |\\\r\n TOKEN_ADJUST_GROUPS |\\\r\n TOKEN_ADJUST_DEFAULT)")] + public const int TOKEN_WRITE = (((0x00020000)) | (0x0020) | (0x0040) | (0x0080)); + + [NativeTypeName("#define TOKEN_EXECUTE (STANDARD_RIGHTS_EXECUTE)")] + public const int TOKEN_EXECUTE = (((0x00020000))); + + [NativeTypeName("#define TOKEN_TRUST_CONSTRAINT_MASK (STANDARD_RIGHTS_READ | \\\r\n TOKEN_QUERY |\\\r\n TOKEN_QUERY_SOURCE )")] + public const int TOKEN_TRUST_CONSTRAINT_MASK = (((0x00020000)) | (0x0008) | (0x0010)); + + [NativeTypeName("#define TOKEN_ACCESS_PSEUDO_HANDLE_WIN8 (TOKEN_QUERY | TOKEN_QUERY_SOURCE)")] + public const int TOKEN_ACCESS_PSEUDO_HANDLE_WIN8 = ((0x0008) | (0x0010)); + + [NativeTypeName("#define TOKEN_ACCESS_PSEUDO_HANDLE TOKEN_ACCESS_PSEUDO_HANDLE_WIN8")] + public const int TOKEN_ACCESS_PSEUDO_HANDLE = ((0x0008) | (0x0010)); + + [NativeTypeName("#define TOKEN_USER_MAX_SIZE (sizeof(TOKEN_USER) + SECURITY_MAX_SID_SIZE)")] + public static uint TOKEN_USER_MAX_SIZE => unchecked((uint)(sizeof(TOKEN_USER)) + (12 - 4 + ((15) * 4))); + + [NativeTypeName("#define TOKEN_OWNER_MAX_SIZE (sizeof(TOKEN_OWNER) + SECURITY_MAX_SID_SIZE)")] + public static uint TOKEN_OWNER_MAX_SIZE => unchecked((uint)(sizeof(TOKEN_OWNER)) + (12 - 4 + ((15) * 4))); + + [NativeTypeName("#define TOKEN_MANDATORY_POLICY_OFF 0x0")] + public const int TOKEN_MANDATORY_POLICY_OFF = 0x0; + + [NativeTypeName("#define TOKEN_MANDATORY_POLICY_NO_WRITE_UP 0x1")] + public const int TOKEN_MANDATORY_POLICY_NO_WRITE_UP = 0x1; + + [NativeTypeName("#define TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN 0x2")] + public const int TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN = 0x2; + + [NativeTypeName("#define TOKEN_MANDATORY_POLICY_VALID_MASK (TOKEN_MANDATORY_POLICY_NO_WRITE_UP | \\\r\n TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN)")] + public const int TOKEN_MANDATORY_POLICY_VALID_MASK = (0x1 | 0x2); + + [NativeTypeName("#define TOKEN_INTEGRITY_LEVEL_MAX_SIZE ((((DWORD)(sizeof(TOKEN_MANDATORY_LABEL)) + sizeof(PVOID) - 1) & ~(sizeof(PVOID)-1)) + SECURITY_MAX_SID_SIZE)")] + public static uint TOKEN_INTEGRITY_LEVEL_MAX_SIZE => unchecked((((uint)((uint)(sizeof(TOKEN_MANDATORY_LABEL))) + (uint)(sizeof(void*)) - 1) & ~((uint)(sizeof(void*)) - 1)) + (12 - 4 + ((15) * 4))); + + [NativeTypeName("#define TOKEN_SOURCE_LENGTH 8")] + public const int TOKEN_SOURCE_LENGTH = 8; + + [NativeTypeName("#define TOKEN_APPCONTAINER_SID_MAX_SIZE (sizeof(TOKEN_APPCONTAINER_INFORMATION) + SECURITY_MAX_SID_SIZE)")] + public static uint TOKEN_APPCONTAINER_SID_MAX_SIZE => unchecked((uint)(sizeof(TOKEN_APPCONTAINER_INFORMATION)) + (12 - 4 + ((15) * 4))); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/TRANSACTIONMANAGER.cs b/sources/Interop/Windows/Windows/um/winnt/TRANSACTIONMANAGER.cs new file mode 100644 index 0000000000..8611a17b5f --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/TRANSACTIONMANAGER.cs @@ -0,0 +1,40 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TRANSACTIONMANAGER + { + [NativeTypeName("#define TRANSACTIONMANAGER_QUERY_INFORMATION ( 0x0001 )")] + public const int TRANSACTIONMANAGER_QUERY_INFORMATION = (0x0001); + + [NativeTypeName("#define TRANSACTIONMANAGER_SET_INFORMATION ( 0x0002 )")] + public const int TRANSACTIONMANAGER_SET_INFORMATION = (0x0002); + + [NativeTypeName("#define TRANSACTIONMANAGER_RECOVER ( 0x0004 )")] + public const int TRANSACTIONMANAGER_RECOVER = (0x0004); + + [NativeTypeName("#define TRANSACTIONMANAGER_RENAME ( 0x0008 )")] + public const int TRANSACTIONMANAGER_RENAME = (0x0008); + + [NativeTypeName("#define TRANSACTIONMANAGER_CREATE_RM ( 0x0010 )")] + public const int TRANSACTIONMANAGER_CREATE_RM = (0x0010); + + [NativeTypeName("#define TRANSACTIONMANAGER_BIND_TRANSACTION ( 0x0020 )")] + public const int TRANSACTIONMANAGER_BIND_TRANSACTION = (0x0020); + + [NativeTypeName("#define TRANSACTIONMANAGER_GENERIC_READ (STANDARD_RIGHTS_READ |\\\r\n TRANSACTIONMANAGER_QUERY_INFORMATION)")] + public const int TRANSACTIONMANAGER_GENERIC_READ = (((0x00020000)) | (0x0001)); + + [NativeTypeName("#define TRANSACTIONMANAGER_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n TRANSACTIONMANAGER_SET_INFORMATION |\\\r\n TRANSACTIONMANAGER_RECOVER |\\\r\n TRANSACTIONMANAGER_RENAME |\\\r\n TRANSACTIONMANAGER_CREATE_RM)")] + public const int TRANSACTIONMANAGER_GENERIC_WRITE = (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)); + + [NativeTypeName("#define TRANSACTIONMANAGER_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE)")] + public const int TRANSACTIONMANAGER_GENERIC_EXECUTE = (((0x00020000))); + + [NativeTypeName("#define TRANSACTIONMANAGER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED |\\\r\n TRANSACTIONMANAGER_GENERIC_READ |\\\r\n TRANSACTIONMANAGER_GENERIC_WRITE |\\\r\n TRANSACTIONMANAGER_GENERIC_EXECUTE |\\\r\n TRANSACTIONMANAGER_BIND_TRANSACTION)")] + public const int TRANSACTIONMANAGER_ALL_ACCESS = ((0x000F0000) | (((0x00020000)) | (0x0001)) | (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)) | (((0x00020000))) | (0x0020)); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/TRUST.cs b/sources/Interop/Windows/Windows/um/winnt/TRUST.cs new file mode 100644 index 0000000000..cb22422709 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/TRUST.cs @@ -0,0 +1,13 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class TRUST + { + [NativeTypeName("#define TRUST_PROTECTED_FILTER_ACE_FLAG (0x40)")] + public const int TRUST_PROTECTED_FILTER_ACE_FLAG = (0x40); + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/VER.cs b/sources/Interop/Windows/Windows/um/winnt/VER.cs new file mode 100644 index 0000000000..dd9b7d2db0 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/VER.cs @@ -0,0 +1,136 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class VER + { + [NativeTypeName("#define VER_SERVER_NT 0x80000000")] + public const uint VER_SERVER_NT = 0x80000000; + + [NativeTypeName("#define VER_WORKSTATION_NT 0x40000000")] + public const int VER_WORKSTATION_NT = 0x40000000; + + [NativeTypeName("#define VER_SUITE_SMALLBUSINESS 0x00000001")] + public const int VER_SUITE_SMALLBUSINESS = 0x00000001; + + [NativeTypeName("#define VER_SUITE_ENTERPRISE 0x00000002")] + public const int VER_SUITE_ENTERPRISE = 0x00000002; + + [NativeTypeName("#define VER_SUITE_BACKOFFICE 0x00000004")] + public const int VER_SUITE_BACKOFFICE = 0x00000004; + + [NativeTypeName("#define VER_SUITE_COMMUNICATIONS 0x00000008")] + public const int VER_SUITE_COMMUNICATIONS = 0x00000008; + + [NativeTypeName("#define VER_SUITE_TERMINAL 0x00000010")] + public const int VER_SUITE_TERMINAL = 0x00000010; + + [NativeTypeName("#define VER_SUITE_SMALLBUSINESS_RESTRICTED 0x00000020")] + public const int VER_SUITE_SMALLBUSINESS_RESTRICTED = 0x00000020; + + [NativeTypeName("#define VER_SUITE_EMBEDDEDNT 0x00000040")] + public const int VER_SUITE_EMBEDDEDNT = 0x00000040; + + [NativeTypeName("#define VER_SUITE_DATACENTER 0x00000080")] + public const int VER_SUITE_DATACENTER = 0x00000080; + + [NativeTypeName("#define VER_SUITE_SINGLEUSERTS 0x00000100")] + public const int VER_SUITE_SINGLEUSERTS = 0x00000100; + + [NativeTypeName("#define VER_SUITE_PERSONAL 0x00000200")] + public const int VER_SUITE_PERSONAL = 0x00000200; + + [NativeTypeName("#define VER_SUITE_BLADE 0x00000400")] + public const int VER_SUITE_BLADE = 0x00000400; + + [NativeTypeName("#define VER_SUITE_EMBEDDED_RESTRICTED 0x00000800")] + public const int VER_SUITE_EMBEDDED_RESTRICTED = 0x00000800; + + [NativeTypeName("#define VER_SUITE_SECURITY_APPLIANCE 0x00001000")] + public const int VER_SUITE_SECURITY_APPLIANCE = 0x00001000; + + [NativeTypeName("#define VER_SUITE_STORAGE_SERVER 0x00002000")] + public const int VER_SUITE_STORAGE_SERVER = 0x00002000; + + [NativeTypeName("#define VER_SUITE_COMPUTE_SERVER 0x00004000")] + public const int VER_SUITE_COMPUTE_SERVER = 0x00004000; + + [NativeTypeName("#define VER_SUITE_WH_SERVER 0x00008000")] + public const int VER_SUITE_WH_SERVER = 0x00008000; + + [NativeTypeName("#define VER_SUITE_MULTIUSERTS 0x00020000")] + public const int VER_SUITE_MULTIUSERTS = 0x00020000; + + [NativeTypeName("#define VER_EQUAL 1")] + public const int VER_EQUAL = 1; + + [NativeTypeName("#define VER_GREATER 2")] + public const int VER_GREATER = 2; + + [NativeTypeName("#define VER_GREATER_EQUAL 3")] + public const int VER_GREATER_EQUAL = 3; + + [NativeTypeName("#define VER_LESS 4")] + public const int VER_LESS = 4; + + [NativeTypeName("#define VER_LESS_EQUAL 5")] + public const int VER_LESS_EQUAL = 5; + + [NativeTypeName("#define VER_AND 6")] + public const int VER_AND = 6; + + [NativeTypeName("#define VER_OR 7")] + public const int VER_OR = 7; + + [NativeTypeName("#define VER_CONDITION_MASK 7")] + public const int VER_CONDITION_MASK = 7; + + [NativeTypeName("#define VER_NUM_BITS_PER_CONDITION_MASK 3")] + public const int VER_NUM_BITS_PER_CONDITION_MASK = 3; + + [NativeTypeName("#define VER_MINORVERSION 0x0000001")] + public const int VER_MINORVERSION = 0x0000001; + + [NativeTypeName("#define VER_MAJORVERSION 0x0000002")] + public const int VER_MAJORVERSION = 0x0000002; + + [NativeTypeName("#define VER_BUILDNUMBER 0x0000004")] + public const int VER_BUILDNUMBER = 0x0000004; + + [NativeTypeName("#define VER_PLATFORMID 0x0000008")] + public const int VER_PLATFORMID = 0x0000008; + + [NativeTypeName("#define VER_SERVICEPACKMINOR 0x0000010")] + public const int VER_SERVICEPACKMINOR = 0x0000010; + + [NativeTypeName("#define VER_SERVICEPACKMAJOR 0x0000020")] + public const int VER_SERVICEPACKMAJOR = 0x0000020; + + [NativeTypeName("#define VER_SUITENAME 0x0000040")] + public const int VER_SUITENAME = 0x0000040; + + [NativeTypeName("#define VER_PRODUCT_TYPE 0x0000080")] + public const int VER_PRODUCT_TYPE = 0x0000080; + + [NativeTypeName("#define VER_NT_WORKSTATION 0x0000001")] + public const int VER_NT_WORKSTATION = 0x0000001; + + [NativeTypeName("#define VER_NT_DOMAIN_CONTROLLER 0x0000002")] + public const int VER_NT_DOMAIN_CONTROLLER = 0x0000002; + + [NativeTypeName("#define VER_NT_SERVER 0x0000003")] + public const int VER_NT_SERVER = 0x0000003; + + [NativeTypeName("#define VER_PLATFORM_WIN32s 0")] + public const int VER_PLATFORM_WIN32s = 0; + + [NativeTypeName("#define VER_PLATFORM_WIN32_WINDOWS 1")] + public const int VER_PLATFORM_WIN32_WINDOWS = 1; + + [NativeTypeName("#define VER_PLATFORM_WIN32_NT 2")] + public const int VER_PLATFORM_WIN32_NT = 2; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/WOW64.cs b/sources/Interop/Windows/Windows/um/winnt/WOW64.cs new file mode 100644 index 0000000000..ae9aacb596 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/WOW64.cs @@ -0,0 +1,61 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WOW64 + { + [NativeTypeName("#define WOW64_CONTEXT_i386 0x00010000")] + public const int WOW64_CONTEXT_i386 = 0x00010000; + + [NativeTypeName("#define WOW64_CONTEXT_i486 0x00010000")] + public const int WOW64_CONTEXT_i486 = 0x00010000; + + [NativeTypeName("#define WOW64_CONTEXT_CONTROL (WOW64_CONTEXT_i386 | 0x00000001L)")] + public const int WOW64_CONTEXT_CONTROL = (0x00010000 | 0x00000001); + + [NativeTypeName("#define WOW64_CONTEXT_INTEGER (WOW64_CONTEXT_i386 | 0x00000002L)")] + public const int WOW64_CONTEXT_INTEGER = (0x00010000 | 0x00000002); + + [NativeTypeName("#define WOW64_CONTEXT_SEGMENTS (WOW64_CONTEXT_i386 | 0x00000004L)")] + public const int WOW64_CONTEXT_SEGMENTS = (0x00010000 | 0x00000004); + + [NativeTypeName("#define WOW64_CONTEXT_FLOATING_POINT (WOW64_CONTEXT_i386 | 0x00000008L)")] + public const int WOW64_CONTEXT_FLOATING_POINT = (0x00010000 | 0x00000008); + + [NativeTypeName("#define WOW64_CONTEXT_DEBUG_REGISTERS (WOW64_CONTEXT_i386 | 0x00000010L)")] + public const int WOW64_CONTEXT_DEBUG_REGISTERS = (0x00010000 | 0x00000010); + + [NativeTypeName("#define WOW64_CONTEXT_EXTENDED_REGISTERS (WOW64_CONTEXT_i386 | 0x00000020L)")] + public const int WOW64_CONTEXT_EXTENDED_REGISTERS = (0x00010000 | 0x00000020); + + [NativeTypeName("#define WOW64_CONTEXT_FULL (WOW64_CONTEXT_CONTROL | WOW64_CONTEXT_INTEGER | WOW64_CONTEXT_SEGMENTS)")] + public const int WOW64_CONTEXT_FULL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004)); + + [NativeTypeName("#define WOW64_CONTEXT_ALL (WOW64_CONTEXT_CONTROL | WOW64_CONTEXT_INTEGER | WOW64_CONTEXT_SEGMENTS | \\\r\n WOW64_CONTEXT_FLOATING_POINT | WOW64_CONTEXT_DEBUG_REGISTERS | \\\r\n WOW64_CONTEXT_EXTENDED_REGISTERS)")] + public const int WOW64_CONTEXT_ALL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004) | (0x00010000 | 0x00000008) | (0x00010000 | 0x00000010) | (0x00010000 | 0x00000020)); + + [NativeTypeName("#define WOW64_CONTEXT_XSTATE (WOW64_CONTEXT_i386 | 0x00000040L)")] + public const int WOW64_CONTEXT_XSTATE = (0x00010000 | 0x00000040); + + [NativeTypeName("#define WOW64_CONTEXT_EXCEPTION_ACTIVE 0x08000000")] + public const int WOW64_CONTEXT_EXCEPTION_ACTIVE = 0x08000000; + + [NativeTypeName("#define WOW64_CONTEXT_SERVICE_ACTIVE 0x10000000")] + public const int WOW64_CONTEXT_SERVICE_ACTIVE = 0x10000000; + + [NativeTypeName("#define WOW64_CONTEXT_EXCEPTION_REQUEST 0x40000000")] + public const int WOW64_CONTEXT_EXCEPTION_REQUEST = 0x40000000; + + [NativeTypeName("#define WOW64_CONTEXT_EXCEPTION_REPORTING 0x80000000")] + public const uint WOW64_CONTEXT_EXCEPTION_REPORTING = 0x80000000; + + [NativeTypeName("#define WOW64_SIZE_OF_80387_REGISTERS 80")] + public const int WOW64_SIZE_OF_80387_REGISTERS = 80; + + [NativeTypeName("#define WOW64_MAXIMUM_SUPPORTED_EXTENSION 512")] + public const int WOW64_MAXIMUM_SUPPORTED_EXTENSION = 512; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/WT.cs b/sources/Interop/Windows/Windows/um/winnt/WT.cs new file mode 100644 index 0000000000..978dc7598b --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/WT.cs @@ -0,0 +1,46 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class WT + { + [NativeTypeName("#define WT_EXECUTEDEFAULT 0x00000000")] + public const int WT_EXECUTEDEFAULT = 0x00000000; + + [NativeTypeName("#define WT_EXECUTEINIOTHREAD 0x00000001")] + public const int WT_EXECUTEINIOTHREAD = 0x00000001; + + [NativeTypeName("#define WT_EXECUTEINUITHREAD 0x00000002")] + public const int WT_EXECUTEINUITHREAD = 0x00000002; + + [NativeTypeName("#define WT_EXECUTEINWAITTHREAD 0x00000004")] + public const int WT_EXECUTEINWAITTHREAD = 0x00000004; + + [NativeTypeName("#define WT_EXECUTEONLYONCE 0x00000008")] + public const int WT_EXECUTEONLYONCE = 0x00000008; + + [NativeTypeName("#define WT_EXECUTEINTIMERTHREAD 0x00000020")] + public const int WT_EXECUTEINTIMERTHREAD = 0x00000020; + + [NativeTypeName("#define WT_EXECUTELONGFUNCTION 0x00000010")] + public const int WT_EXECUTELONGFUNCTION = 0x00000010; + + [NativeTypeName("#define WT_EXECUTEINPERSISTENTIOTHREAD 0x00000040")] + public const int WT_EXECUTEINPERSISTENTIOTHREAD = 0x00000040; + + [NativeTypeName("#define WT_EXECUTEINPERSISTENTTHREAD 0x00000080")] + public const int WT_EXECUTEINPERSISTENTTHREAD = 0x00000080; + + [NativeTypeName("#define WT_TRANSFER_IMPERSONATION 0x00000100")] + public const int WT_TRANSFER_IMPERSONATION = 0x00000100; + + [NativeTypeName("#define WT_EXECUTEINLONGTHREAD 0x00000010")] + public const int WT_EXECUTEINLONGTHREAD = 0x00000010; + + [NativeTypeName("#define WT_EXECUTEDELETEWAIT 0x00000008")] + public const int WT_EXECUTEDELETEWAIT = 0x00000008; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/Windows.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/Windows.Manual.cs index cf2425f916..6670817601 100644 --- a/sources/Interop/Windows/Windows/um/winnt/Windows.Manual.cs +++ b/sources/Interop/Windows/Windows/um/winnt/Windows.Manual.cs @@ -7,13 +7,12 @@ using System.Runtime.Intrinsics.Arm; using System.Runtime.Intrinsics.X86; using static TerraFX.Interop.Windows.IMAGE; +using static TerraFX.Interop.Windows.XSTATE; namespace TerraFX.Interop.Windows { public static unsafe partial class Windows { - public static uint MAX_NATURAL_ALIGNMENT => unchecked((uint)(sizeof(nint))); - public static int MEMORY_ALLOCATION_ALIGNMENT { get @@ -29,21 +28,6 @@ public static int MEMORY_ALLOCATION_ALIGNMENT } } - public static int SYSTEM_CACHE_ALIGNMENT_SIZE - { - get - { - if (X86Base.IsSupported) - { - return 64; - } - else - { - return 128; - } - } - } - public static int MAXIMUM_PROC_PER_GROUP { get @@ -62,42 +46,9 @@ public static int MAXIMUM_PROC_PER_GROUP [NativeTypeName("#define MAXIMUM_PROCESSORS MAXIMUM_PROC_PER_GROUP")] public static int MAXIMUM_PROCESSORS => MAXIMUM_PROC_PER_GROUP; - [NativeTypeName("#define CONTEXT_AMD64 0x00100000L")] - public const int CONTEXT_AMD64 = 0x00100000; - - [NativeTypeName("#define CONTEXT_CONTROL (CONTEXT_AMD64 | 0x00000001L)")] - public const int CONTEXT_AMD64_CONTROL = (0x00100000 | 0x00000001); - - [NativeTypeName("#define CONTEXT_INTEGER (CONTEXT_AMD64 | 0x00000002L)")] - public const int CONTEXT_AMD64_INTEGER = (0x00100000 | 0x00000002); - - [NativeTypeName("#define CONTEXT_SEGMENTS (CONTEXT_AMD64 | 0x00000004L)")] - public const int CONTEXT_AMD64_SEGMENTS = (0x00100000 | 0x00000004); - - [NativeTypeName("#define CONTEXT_FLOATING_POINT (CONTEXT_AMD64 | 0x00000008L)")] - public const int CONTEXT_AMD64_FLOATING_POINT = (0x00100000 | 0x00000008); - - [NativeTypeName("#define CONTEXT_DEBUG_REGISTERS (CONTEXT_AMD64 | 0x00000010L)")] - public const int CONTEXT_AMD64_DEBUG_REGISTERS = (0x00100000 | 0x00000010); - - [NativeTypeName("#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER | \\\r\n CONTEXT_FLOATING_POINT)")] - public const int CONTEXT_AMD64_FULL = ((0x00100000 | 0x00000001) | (0x00100000 | 0x00000002) | (0x00100000 | 0x00000008)); - - [NativeTypeName("#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | \\\r\n CONTEXT_SEGMENTS | CONTEXT_FLOATING_POINT | \\\r\n CONTEXT_DEBUG_REGISTERS)")] - public const int CONTEXT_AMD64_ALL = ((0x00100000 | 0x00000001) | (0x00100000 | 0x00000002) | (0x00100000 | 0x00000004) | (0x00100000 | 0x00000008) | (0x00100000 | 0x00000010)); - - [NativeTypeName("#define CONTEXT_XSTATE (CONTEXT_AMD64 | 0x00000040L)")] - public const int CONTEXT_AMD64_XSTATE = (0x00100000 | 0x00000040); - - [NativeTypeName("#define CONTEXT_KERNEL_CET (CONTEXT_AMD64 | 0x00000080L)")] - public const int CONTEXT_AMD64_KERNEL_CET = (0x00100000 | 0x00000080); - [NativeTypeName("#define MAXIMUM_SUPPORTED_EXTENSION 512")] public const int MAXIMUM_SUPPORTED_EXTENSION = 512; - [NativeTypeName("#define CONTEXT_UNWOUND_TO_CALL 0x20000000")] - public const int CONTEXT_AMD64_UNWOUND_TO_CALL = 0x20000000; - [NativeTypeName("#define INITIAL_MXCSR 0x1f80")] public const int INITIAL_MXCSR = 0x1f80; @@ -128,68 +79,6 @@ public static int MAXIMUM_PROC_PER_GROUP [NativeTypeName("#define OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME \"OutOfProcessFunctionTableCallback\"")] public static ReadOnlySpan OUT_OF_PROCESS_FUNCTION_TABLE_CALLBACK_EXPORT_NAME => new byte[] { 0x4F, 0x75, 0x74, 0x4F, 0x66, 0x50, 0x72, 0x6F, 0x63, 0x65, 0x73, 0x73, 0x46, 0x75, 0x6E, 0x63, 0x74, 0x69, 0x6F, 0x6E, 0x54, 0x61, 0x62, 0x6C, 0x65, 0x43, 0x61, 0x6C, 0x6C, 0x62, 0x61, 0x63, 0x6B, 0x00 }; - [NativeTypeName("#define CONTEXT_ARM64 0x00400000L")] - public const int CONTEXT_ARM64 = 0x00400000; - - [NativeTypeName("#define CONTEXT_ARM64_CONTROL (CONTEXT_ARM64 | 0x1L)")] - public const int CONTEXT_ARM64_CONTROL = (0x00400000 | 0x1); - - [NativeTypeName("#define CONTEXT_ARM64_INTEGER (CONTEXT_ARM64 | 0x2L)")] - public const int CONTEXT_ARM64_INTEGER = (0x00400000 | 0x2); - - [NativeTypeName("#define CONTEXT_ARM64_FLOATING_POINT (CONTEXT_ARM64 | 0x4L)")] - public const int CONTEXT_ARM64_FLOATING_POINT = (0x00400000 | 0x4); - - [NativeTypeName("#define CONTEXT_ARM64_DEBUG_REGISTERS (CONTEXT_ARM64 | 0x8L)")] - public const int CONTEXT_ARM64_DEBUG_REGISTERS = (0x00400000 | 0x8); - - [NativeTypeName("#define CONTEXT_ARM64_X18 (CONTEXT_ARM64 | 0x10L)")] - public const int CONTEXT_ARM64_X18 = (0x00400000 | 0x10); - - [NativeTypeName("#define CONTEXT_ARM64_FULL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT)")] - public const int CONTEXT_ARM64_FULL = ((0x00400000 | 0x1) | (0x00400000 | 0x2) | (0x00400000 | 0x4)); - - [NativeTypeName("#define CONTEXT_ARM64_ALL (CONTEXT_ARM64_CONTROL | CONTEXT_ARM64_INTEGER | CONTEXT_ARM64_FLOATING_POINT | CONTEXT_ARM64_DEBUG_REGISTERS | CONTEXT_ARM64_X18)")] - public const int CONTEXT_ARM64_ALL = ((0x00400000 | 0x1) | (0x00400000 | 0x2) | (0x00400000 | 0x4) | (0x00400000 | 0x8) | (0x00400000 | 0x10)); - - [NativeTypeName("#define CONTEXT_ARM64_UNWOUND_TO_CALL 0x20000000")] - public const int CONTEXT_ARM64_UNWOUND_TO_CALL = 0x20000000; - - [NativeTypeName("#define CONTEXT_ARM64_RET_TO_GUEST 0x04000000")] - public const int CONTEXT_ARM64_RET_TO_GUEST = 0x04000000; - - [NativeTypeName("#define CONTEXT_UNWOUND_TO_CALL CONTEXT_ARM64_UNWOUND_TO_CALL")] - public static int CONTEXT_UNWOUND_TO_CALL - { - get - { - if (ArmBase.Arm64.IsSupported) - { - return CONTEXT_ARM64_UNWOUND_TO_CALL; - } - else - { - return 0; - } - } - } - - [NativeTypeName("#define CONTEXT_RET_TO_GUEST CONTEXT_ARM64_RET_TO_GUEST")] - public static int CONTEXT_RET_TO_GUEST - { - get - { - if (ArmBase.Arm64.IsSupported) - { - return 0x04000000; - } - else - { - return 0; - } - } - } - [NativeTypeName("#define ARM64_MAX_BREAKPOINTS 8")] public const int ARM64_MAX_BREAKPOINTS = 8; @@ -211,98 +100,6 @@ public static int CONTEXT_RET_TO_GUEST [NativeTypeName("#define SIZE_OF_80387_REGISTERS 80")] public const int SIZE_OF_80387_REGISTERS = 80; - [NativeTypeName("#define CONTEXT_i386 0x00010000L")] - public const int CONTEXT_i386 = 0x00010000; - - [NativeTypeName("#define CONTEXT_i486 0x00010000L")] - public const int CONTEXT_i486 = 0x00010000; - - [NativeTypeName("#define CONTEXT_CONTROL (CONTEXT_i386 | 0x00000001L)")] - public const int CONTEXT_i386_CONTROL = (0x00010000 | 0x00000001); - - [NativeTypeName("#define CONTEXT_INTEGER (CONTEXT_i386 | 0x00000002L)")] - public const int CONTEXT_i386_INTEGER = (0x00010000 | 0x00000002); - - [NativeTypeName("#define CONTEXT_SEGMENTS (CONTEXT_i386 | 0x00000004L)")] - public const int CONTEXT_i386_SEGMENTS = (0x00010000 | 0x00000004); - - [NativeTypeName("#define CONTEXT_FLOATING_POINT (CONTEXT_i386 | 0x00000008L)")] - public const int CONTEXT_i386_FLOATING_POINT = (0x00010000 | 0x00000008); - - [NativeTypeName("#define CONTEXT_DEBUG_REGISTERS (CONTEXT_i386 | 0x00000010L)")] - public const int CONTEXT_i386_DEBUG_REGISTERS = (0x00010000 | 0x00000010); - - [NativeTypeName("#define CONTEXT_EXTENDED_REGISTERS (CONTEXT_i386 | 0x00000020L)")] - public const int CONTEXT_i386_EXTENDED_REGISTERS = (0x00010000 | 0x00000020); - - [NativeTypeName("#define CONTEXT_FULL (CONTEXT_CONTROL | CONTEXT_INTEGER |\\\r\n CONTEXT_SEGMENTS)")] - public const int CONTEXT_i386_FULL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004)); - - [NativeTypeName("#define CONTEXT_ALL (CONTEXT_CONTROL | CONTEXT_INTEGER | CONTEXT_SEGMENTS | \\\r\n CONTEXT_FLOATING_POINT | CONTEXT_DEBUG_REGISTERS | \\\r\n CONTEXT_EXTENDED_REGISTERS)")] - public const int CONTEXT_i386_ALL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004) | (0x00010000 | 0x00000008) | (0x00010000 | 0x00000010) | (0x00010000 | 0x00000020)); - - [NativeTypeName("#define CONTEXT_XSTATE (CONTEXT_i386 | 0x00000040L)")] - public const int CONTEXT_i386_XSTATE = (0x00010000 | 0x00000040); - - public static ulong XSTATE_MASK_ALLOWED - { - get - { - if (sizeof(nint) == 4) - { - return (XSTATE_MASK_LEGACY | - XSTATE_MASK_AVX | - XSTATE_MASK_MPX | - XSTATE_MASK_AVX512 | - XSTATE_MASK_IPT | - XSTATE_MASK_CET_U | - XSTATE_MASK_LWP); - } - else - { - return (XSTATE_MASK_LEGACY | - XSTATE_MASK_AVX | - XSTATE_MASK_MPX | - XSTATE_MASK_AVX512 | - XSTATE_MASK_IPT | - XSTATE_MASK_CET_U | - XSTATE_MASK_AMX_TILE_CONFIG | - XSTATE_MASK_AMX_TILE_DATA | - XSTATE_MASK_LWP); - } - } - } - - public static int IMAGE_NT_OPTIONAL_HDR_MAGIC - { - get - { - if (sizeof(nint) == 4) - { - return IMAGE_NT_OPTIONAL_HDR32_MAGIC; - } - else - { - return IMAGE_NT_OPTIONAL_HDR64_MAGIC; - } - } - } - - public static nuint IMAGE_ORDINAL_FLAG - { - get - { - if (sizeof(nint) == 4) - { - return IMAGE_ORDINAL_FLAG32; - } - else - { - return unchecked((nuint)(IMAGE_ORDINAL_FLAG64)); - } - } - } - [NativeTypeName("#define MEMORY_CURRENT_PARTITION_HANDLE ((HANDLE) (LONG_PTR) -1)")] public static HANDLE MEMORY_CURRENT_PARTITION_HANDLE => ((HANDLE)((nint)(-1))); diff --git a/sources/Interop/Windows/Windows/um/winnt/Windows.cs b/sources/Interop/Windows/Windows/um/winnt/Windows.cs index b267707a83..bae2ecfa1d 100644 --- a/sources/Interop/Windows/Windows/um/winnt/Windows.cs +++ b/sources/Interop/Windows/Windows/um/winnt/Windows.cs @@ -7,88 +7,11 @@ using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -using static TerraFX.Interop.Windows.POWER_PLATFORM_ROLE; -using static TerraFX.Interop.Windows.SECURITY_IMPERSONATION_LEVEL; namespace TerraFX.Interop.Windows { - public static unsafe partial class Windows + public static partial class Windows { - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MAX_POWER_SAVINGS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x08, 0x13, 0x84, 0xA1, - 0x41, 0x35, - 0xAB, 0x4F, - 0xBC, - 0x81, - 0xF7, - 0x15, - 0x56, - 0xF2, - 0x0B, - 0x4A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MIN_POWER_SAVINGS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0x7F, 0x5E, 0x8C, - 0xBF, 0xE8, - 0x96, 0x4A, - 0x9A, - 0x85, - 0xA6, - 0xE2, - 0x3A, - 0x8C, - 0x63, - 0x5C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_TYPICAL_POWER_SAVINGS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x22, 0x42, 0x1B, 0x38, - 0x94, 0xF6, - 0xF0, 0x41, - 0x96, - 0x85, - 0xFF, - 0x5B, - 0xB2, - 0x60, - 0xDF, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - [NativeTypeName("const GUID")] public static ref readonly Guid NO_SUBGROUP_GUID { @@ -130,5133 +53,8 @@ public static ref readonly Guid ALL_POWERSCHEMES_GUID 0x49, 0x6C, 0xA4, - 0x90, - 0xB0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_POWERSCHEME_PERSONALITY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x85, 0x5D, 0x24, - 0x43, 0x39, - 0x22, 0x44, - 0xB0, - 0x25, - 0x13, - 0xA7, - 0x84, - 0xF6, - 0x79, - 0xB7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ACTIVE_POWERSCHEME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x86, 0xF2, 0xF9, 0x31, - 0x84, 0x50, - 0xFE, 0x42, - 0xB7, - 0x20, - 0x2B, - 0x02, - 0x64, - 0x99, - 0x37, - 0x63 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_IDLE_RESILIENCY_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x30, 0x11, 0x60, 0x2E, - 0x51, 0x53, - 0x9D, 0x4D, - 0x8E, - 0x04, - 0x25, - 0x29, - 0x66, - 0xBA, - 0xD0, - 0x54 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_IDLE_RESILIENCY_PERIOD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x79, 0x2B, 0xC4, - 0x3A, 0xAA, - 0x4B, 0x48, - 0xA9, - 0x8F, - 0x2C, - 0xF3, - 0x2A, - 0xA9, - 0x0A, - 0x28 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DEEP_SLEEP_ENABLED - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEE, 0xF7, 0x02, 0xD5, - 0xC7, 0x1D, - 0xFD, 0x4E, - 0xA5, - 0x5D, - 0xF0, - 0x4B, - 0x6F, - 0x5C, - 0x05, - 0x45 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DEEP_SLEEP_PLATFORM_STATE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB8, 0x2F, 0x3F, 0xD2, - 0x36, 0x95, - 0x38, 0x40, - 0x9C, - 0x94, - 0x1C, - 0xE0, - 0x2E, - 0x5C, - 0x21, - 0x52 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_COALESCING_POWERDOWN_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB4, 0x0E, 0x6F, 0xC3, - 0x88, 0x29, - 0x70, 0x4A, - 0x8E, - 0xEE, - 0x08, - 0x84, - 0xFC, - 0x2C, - 0x24, - 0x33 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0xBC, 0x66, 0x31, - 0x98, 0x7E, - 0x03, 0x4E, - 0xB3, - 0x4E, - 0xEC, - 0x0F, - 0x5F, - 0x2B, - 0x21, - 0x8E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x5F, 0xB9, 0x16, 0x75, - 0x76, 0xF7, - 0x64, 0x44, - 0x8C, - 0x53, - 0x06, - 0x16, - 0x7F, - 0x40, - 0xCC, - 0x99 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_POWERDOWN_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x21, 0xC0, 0x0B, 0x3C, - 0xA8, 0xC8, - 0x07, 0x4E, - 0xA9, - 0x73, - 0x6B, - 0x14, - 0xCB, - 0xCB, - 0x2B, - 0x7E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_ANNOYANCE_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2D, 0xCF, 0xDB, 0x82, - 0x67, 0xCD, - 0xC5, 0x40, - 0xBF, - 0xDC, - 0x9F, - 0x1A, - 0x5C, - 0xCD, - 0x46, - 0x63 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDF, 0x04, 0xD9, 0xEE, - 0x42, 0xB1, - 0x83, 0x41, - 0xB1, - 0x0B, - 0x5A, - 0x11, - 0x97, - 0xA3, - 0x78, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_DIM_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9B, 0xA2, 0xAA, 0x17, - 0x43, 0x8B, - 0x94, 0x4B, - 0xAA, - 0xFE, - 0x35, - 0xF6, - 0x4D, - 0xAA, - 0xF1, - 0xEE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_ADAPTIVE_POWERDOWN - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x22, 0x9D, 0x95, 0x90, - 0xA1, 0xD6, - 0xB9, 0x49, - 0xAF, - 0x93, - 0xBC, - 0xE8, - 0x85, - 0xAD, - 0x33, - 0x5B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MONITOR_POWER_ON - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x15, 0x10, 0x73, 0x02, - 0x10, 0x45, - 0x26, 0x45, - 0x99, - 0xE6, - 0xE5, - 0xA1, - 0x7E, - 0xBD, - 0x1A, - 0xEA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x82, 0x5E, 0xED, 0xAD, - 0x09, 0xB9, - 0x19, 0x46, - 0x99, - 0x49, - 0xF5, - 0xD7, - 0x1D, - 0xAC, - 0x0B, - 0xCB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE2, 0xFD, 0xFB, 0xF1, - 0x60, 0xA9, - 0x65, 0x41, - 0x9F, - 0x88, - 0x50, - 0x66, - 0x79, - 0x11, - 0xCE, - 0x96 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC6, 0xE2, 0xFE, 0x8F, - 0x01, 0x2D, - 0xBE, 0x46, - 0xAD, - 0xB9, - 0x39, - 0x8A, - 0xDD, - 0xC5, - 0xB4, - 0xFF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x66, 0xAA, 0xD9, 0xFB, - 0x53, 0x95, - 0x97, 0x40, - 0xBA, - 0x44, - 0xED, - 0x6E, - 0x9D, - 0x65, - 0xEA, - 0xB8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_CONSOLE_DISPLAY_STATE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x56, 0x95, 0xE6, 0x6F, - 0x4A, 0x70, - 0xA0, 0x47, - 0x8F, - 0x24, - 0xC2, - 0x8D, - 0x93, - 0x6F, - 0xDA, - 0x47 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ALLOW_DISPLAY_REQUIRED - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDA, 0xB8, 0xCE, 0xA9, - 0x46, 0xCD, - 0xFB, 0x44, - 0xA9, - 0x8B, - 0x02, - 0xAF, - 0x69, - 0xDE, - 0x46, - 0x23 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_VIDEO_CONSOLE_LOCK_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0xB3, 0xC4, 0x8E, - 0x68, 0x68, - 0xC2, 0x48, - 0xBE, - 0x75, - 0x4F, - 0x30, - 0x44, - 0xBE, - 0x88, - 0xA7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ADVANCED_COLOR_QUALITY_BIAS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x69, 0x3E, 0x4C, 0x68, - 0xF7, 0xA4, - 0x14, 0x40, - 0x87, - 0x54, - 0xD4, - 0x51, - 0x79, - 0xA5, - 0x61, - 0x67 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x16, 0xB9, 0x19, 0x86, - 0x04, 0xE0, - 0xD8, 0x4D, - 0x9B, - 0x66, - 0xDA, - 0xE8, - 0x6F, - 0x80, - 0x66, - 0x98 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_NON_ADAPTIVE_INPUT_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBC, 0xBF, 0xDB, 0x5A, - 0x4E, 0x07, - 0xA1, 0x4D, - 0xBA, - 0x38, - 0xDB, - 0x8B, - 0x36, - 0xB2, - 0xC8, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ADAPTIVE_INPUT_CONTROLLER_STATE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE9, 0xFA, 0x98, 0x0E, - 0x5A, 0xF4, - 0xE1, 0x4D, - 0xA7, - 0x57, - 0x60, - 0x31, - 0xF1, - 0x97, - 0xF6, - 0xEA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x47, 0xEE, 0x12, 0x00, - 0x41, 0x90, - 0x5D, 0x4B, - 0x9B, - 0x77, - 0x53, - 0x5F, - 0xBA, - 0x8B, - 0x14, - 0x42 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_MAX_POWER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0xA5, 0xDE, 0x51, - 0x38, 0xBB, - 0xC4, 0x4B, - 0x99, - 0x1B, - 0xEA, - 0xCF, - 0x37, - 0xBE, - 0x5E, - 0xC8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_POWERDOWN_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC4, 0xE2, 0x38, 0x67, - 0xA5, 0xE8, - 0x42, 0x4A, - 0xB1, - 0x6A, - 0xE0, - 0x40, - 0xE7, - 0x69, - 0x75, - 0x6E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_IDLE_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA8, 0x9B, 0xE3, 0x58, - 0xE6, 0xB8, - 0xF6, 0x4E, - 0x90, - 0xD0, - 0x89, - 0xAE, - 0x32, - 0xB2, - 0x58, - 0xD6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_BURST_IGNORE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0E, 0xC6, 0xE3, 0x80, - 0x94, 0xBB, - 0xD8, 0x4A, - 0xBB, - 0xE0, - 0x0D, - 0x31, - 0x95, - 0xEF, - 0xC6, - 0x63 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_ADAPTIVE_POWERDOWN - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE1, 0x32, 0x6A, 0x39, - 0x9A, 0x49, - 0xB2, 0x40, - 0x91, - 0x24, - 0xA9, - 0x6A, - 0xFE, - 0x70, - 0x76, - 0x67 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISK_NVME_NOPPME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB6, 0x72, 0x73, 0xFC, - 0x2D, 0xAB, - 0xEE, 0x43, - 0x87, - 0x97, - 0x15, - 0xE9, - 0x84, - 0x1F, - 0x2C, - 0xCA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SLEEP_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA8, 0x9F, 0x8C, 0x23, - 0xAD, 0x0A, - 0xED, 0x41, - 0x83, - 0xF4, - 0x97, - 0xBE, - 0x24, - 0x2C, - 0x8F, - 0x20 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SLEEP_IDLE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE0, 0x32, 0xCD, 0x81, - 0x33, 0x78, - 0xF3, 0x44, - 0x87, - 0x37, - 0x70, - 0x81, - 0xF3, - 0x8D, - 0x1F, - 0x70 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_STANDBY_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0xC1, 0xF6, 0x29, - 0xDA, 0x86, - 0xC5, 0x48, - 0x9F, - 0xDB, - 0xF2, - 0xB6, - 0x7B, - 0x1F, - 0x44, - 0xDA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_UNATTEND_SLEEP_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF9, 0xA2, 0xC4, 0x7B, - 0xFC, 0xD8, - 0x69, 0x44, - 0xB0, - 0x7B, - 0x33, - 0xEB, - 0x78, - 0x5A, - 0xAC, - 0xA0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_HIBERNATE_TIMEOUT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0x15, 0x78, 0x9D, - 0xE4, 0x7E, - 0x7E, 0x49, - 0x88, - 0x88, - 0x51, - 0x5A, - 0x05, - 0xF0, - 0x23, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_HIBERNATE_FASTS4_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x29, 0x6D, 0xAC, 0x94, - 0xCE, 0x73, - 0xA6, 0x41, - 0x80, - 0x9F, - 0x63, - 0x63, - 0xBA, - 0x21, - 0xB4, - 0x7E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_CRITICAL_POWER_TRANSITION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x25, 0x70, 0xA2, 0xB7, - 0x69, 0xE5, - 0xC2, 0x46, - 0xA5, - 0x04, - 0x2B, - 0x96, - 0xCA, - 0xD2, - 0x25, - 0xA1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SYSTEM_AWAYMODE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x80, 0xF5, 0xA7, 0x98, - 0xF7, 0x01, - 0xAA, 0x48, - 0x9C, - 0x0F, - 0x44, - 0x35, - 0x2C, - 0x29, - 0xE5, - 0xC0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ALLOW_AWAYMODE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0xA1, 0xDF, 0x25, - 0xD1, 0x5D, - 0x36, 0x47, - 0xB5, - 0xAB, - 0xE8, - 0xA3, - 0x7B, - 0x5B, - 0x81, - 0x87 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_USER_PRESENCE_PREDICTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x05, 0x17, 0x01, 0x82, - 0x95, 0xFB, - 0x46, 0x4D, - 0x8D, - 0x35, - 0x40, - 0x42, - 0xB1, - 0xD2, - 0x0D, - 0xEF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_STANDBY_BUDGET_GRACE_PERIOD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE1, 0x7F, 0xC0, 0x60, - 0x56, 0x05, - 0xCF, 0x45, - 0x99, - 0x03, - 0xD5, - 0x6E, - 0x32, - 0x21, - 0x02, - 0x42 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_STANDBY_BUDGET_PERCENT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xBE, 0x27, 0xE5, 0x9F, - 0x70, 0x1B, - 0xDA, 0x48, - 0x93, - 0x0D, - 0x7B, - 0xCF, - 0x17, - 0xB4, - 0x49, - 0x90 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_STANDBY_RESERVE_GRACE_PERIOD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x92, 0xEE, 0x63, 0xC7, - 0xE8, 0x71, - 0x27, 0x41, - 0x84, - 0xEB, - 0xF6, - 0xED, - 0x04, - 0x3A, - 0x3E, - 0x3D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_STANDBY_RESERVE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE5, 0xE7, 0x8F, 0x46, - 0x58, 0x11, - 0xEC, 0x46, - 0x88, - 0xBC, - 0x5B, - 0x96, - 0xC9, - 0xE4, - 0x4F, - 0xD0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_STANDBY_RESET_PERCENT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0x11, 0xCB, 0x49, - 0xE2, 0x56, - 0xFB, 0x4A, - 0x9D, - 0x38, - 0x3D, - 0xF4, - 0x78, - 0x72, - 0xE2, - 0x1B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ALLOW_STANDBY_STATES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x19, 0x25, 0xFC, 0xAB, - 0x08, 0x36, - 0x2A, 0x4C, - 0x94, - 0xEA, - 0x17, - 0x1B, - 0x0E, - 0xD5, - 0x46, - 0xAB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ALLOW_RTC_WAKE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0x71, 0x3B, 0xBD, - 0x80, 0x06, - 0x9D, 0x4D, - 0x8A, - 0xB2, - 0xE1, - 0xD2, - 0xB4, - 0xAC, - 0x80, - 0x6D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_LEGACY_RTC_MITIGATION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC3, 0xBD, 0x34, 0x1A, - 0x6B, 0x7E, - 0x2E, 0x44, - 0xA9, - 0xD0, - 0x64, - 0xB6, - 0xEF, - 0x37, - 0x8E, - 0x84 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ALLOW_SYSTEM_REQUIRED - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF5, 0x95, 0xB1, 0xA4, - 0x25, 0x82, - 0xD8, 0x47, - 0x80, - 0x12, - 0x9D, - 0x41, - 0x36, - 0x97, - 0x86, - 0xE2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_POWER_SAVING_STATUS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC0, 0x58, 0x09, 0xE0, - 0x13, 0xC2, - 0xCE, 0x4A, - 0xAC, - 0x77, - 0xFE, - 0xCC, - 0xED, - 0x2E, - 0xEE, - 0xA5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ENERGY_SAVER_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x23, 0x09, 0x83, 0xDE, - 0x62, 0xA5, - 0xAF, 0x41, - 0xA0, - 0x86, - 0xE3, - 0xA2, - 0xC6, - 0xBA, - 0xD2, - 0xDA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ENERGY_SAVER_BATTERY_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCA, 0x53, 0x96, 0xE6, - 0x7F, 0xCF, - 0x05, 0x4F, - 0xAA, - 0x73, - 0xCB, - 0x83, - 0x3F, - 0xA9, - 0x0A, - 0xD4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ENERGY_SAVER_BRIGHTNESS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x84, 0x98, 0xD0, 0x13, - 0x4E, 0xF7, - 0x4A, 0x47, - 0xA8, - 0x52, - 0xB6, - 0xBD, - 0xE8, - 0xAD, - 0x03, - 0xA8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ENERGY_SAVER_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x49, 0xB3, 0x5B, 0x5C, - 0x29, 0xAD, - 0xE2, 0x4E, - 0x9D, - 0x0B, - 0x2B, - 0x25, - 0x27, - 0x0F, - 0x7A, - 0x81 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SYSTEM_BUTTON_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x89, 0x1E, 0x97, 0x4F, - 0xBD, 0xEE, - 0x55, 0x44, - 0xA8, - 0xDE, - 0x9E, - 0x59, - 0x04, - 0x0E, - 0x73, - 0x47 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_POWERBUTTON_ACTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA3, 0xEF, 0x48, 0x76, - 0x9C, 0xDD, - 0x3E, 0x4E, - 0xB5, - 0x66, - 0x50, - 0xF9, - 0x29, - 0x38, - 0x62, - 0x80 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SLEEPBUTTON_ACTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC0, 0x6B, 0x99, 0x96, - 0x50, 0xAD, - 0xEC, 0x47, - 0x92, - 0x3B, - 0x6F, - 0x41, - 0x87, - 0x4D, - 0xD9, - 0xEB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_USERINTERFACEBUTTON_ACTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x53, 0x66, 0x06, 0xA7, - 0x6C, 0x8D, - 0xA8, 0x40, - 0x91, - 0x0E, - 0xA1, - 0xF5, - 0x4B, - 0x84, - 0xC7, - 0xE5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_LIDCLOSE_ACTION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x67, 0x33, 0xA8, 0x5C, - 0x45, 0x6E, - 0x9F, 0x45, - 0xA2, - 0x7B, - 0x47, - 0x6B, - 0x1D, - 0x01, - 0xC9, - 0x36 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_LIDOPEN_POWERSTATE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE7, 0x10, 0xFF, 0x99, - 0xB1, 0x23, - 0x07, 0x4C, - 0xA9, - 0xD1, - 0x5C, - 0x32, - 0x06, - 0xD7, - 0x41, - 0xB4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8D, 0x04, 0x3A, 0xE7, - 0x27, 0xBF, - 0x12, 0x4F, - 0x97, - 0x31, - 0x8B, - 0x20, - 0x76, - 0xE8, - 0x89, - 0x1F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2F, 0xA0, 0x7E, 0x63, - 0xCB, 0xBB, - 0x15, 0x40, - 0x8E, - 0x2C, - 0xA1, - 0xC7, - 0xB9, - 0xC0, - 0xB5, - 0x46 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD7, 0xD8, 0x66, 0x9A, - 0xF7, 0x4F, - 0xF9, 0x4E, - 0xB5, - 0xA2, - 0x5A, - 0x32, - 0x6C, - 0xA2, - 0xA4, - 0x69 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_0 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0x7C, 0xBB, 0x5D, - 0xE9, 0x38, - 0xD2, 0x40, - 0x97, - 0x49, - 0x4F, - 0x8A, - 0x0E, - 0x9F, - 0x64, - 0x0F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCB, 0x2D, 0x74, 0xD8, - 0x6A, 0x3E, - 0x3C, 0x4B, - 0xB3, - 0xFE, - 0x37, - 0x46, - 0x23, - 0xCD, - 0xCF, - 0x06 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9A, 0xBA, 0x83, 0x81, - 0x10, 0xE9, - 0xDA, 0x48, - 0x87, - 0x69, - 0x14, - 0xAE, - 0x6D, - 0xC1, - 0x17, - 0x0A - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0xD9, 0xDE, 0xBC, - 0x7B, 0x18, - 0x05, 0x4D, - 0xBC, - 0xCC, - 0xF7, - 0xE5, - 0x19, - 0x60, - 0xC2, - 0x58 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x38, 0xBA, 0x1C, 0x42, - 0x8E, 0x1A, - 0x81, 0x48, - 0xAC, - 0x89, - 0xE3, - 0x3A, - 0x8B, - 0x04, - 0xEC, - 0xE4 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA2, 0x7C, 0xA0, 0x07, - 0xAF, 0xAD, - 0xD7, 0x40, - 0xB0, - 0x77, - 0x53, - 0x3A, - 0xAD, - 0xED, - 0x1B, - 0xFA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_2 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC4, 0xF0, 0xD2, 0x7F, - 0xB7, 0xFE, - 0xA3, 0x4D, - 0x81, - 0x17, - 0xE3, - 0xFB, - 0xED, - 0xC4, - 0x65, - 0x82 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_ACTION_3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x13, 0x26, 0x47, 0x80, - 0x80, 0x97, - 0x5E, 0x45, - 0xB3, - 0x08, - 0x72, - 0xD3, - 0x00, - 0x3C, - 0xF2, - 0xF8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_LEVEL_3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA6, 0xD5, 0xAF, 0x58, - 0xDD, 0xC2, - 0xD2, 0x47, - 0x9F, - 0xBF, - 0xEF, - 0x70, - 0xCC, - 0x5C, - 0x59, - 0x65 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_DISCHARGE_FLAGS_3 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCF, 0x3C, 0x61, 0x73, - 0xFA, 0xDB, - 0x79, 0x42, - 0x83, - 0x56, - 0x49, - 0x35, - 0xF6, - 0xBF, - 0x62, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_SETTINGS_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x51, 0x32, 0x53, 0x54, - 0xBE, 0x82, - 0x24, 0x48, - 0x96, - 0xC1, - 0x47, - 0xB6, - 0x0B, - 0x74, - 0x0D, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_THROTTLE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x04, 0x73, 0x02, 0x57, - 0xF6, 0x4A, - 0x04, 0x41, - 0x92, - 0x60, - 0xE3, - 0xD9, - 0x52, - 0x48, - 0xFC, - 0x36 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MAXIMUM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF7, 0x38, 0x50, 0xBC, - 0xE0, 0x23, - 0x60, 0x49, - 0x96, - 0xDA, - 0x33, - 0xAB, - 0xAF, - 0x59, - 0x35, - 0xEC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MAXIMUM_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF7, 0x38, 0x50, 0xBC, - 0xE0, 0x23, - 0x60, 0x49, - 0x96, - 0xDA, - 0x33, - 0xAB, - 0xAF, - 0x59, - 0x35, - 0xED - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MINIMUM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8E, 0xEE, 0x3D, 0x89, - 0xEF, 0x2B, - 0xE0, 0x41, - 0x89, - 0xC6, - 0xB5, - 0x5D, - 0x09, - 0x29, - 0x96, - 0x4C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_THROTTLE_MINIMUM_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8E, 0xEE, 0x3D, 0x89, - 0xEF, 0x2B, - 0xE0, 0x41, - 0x89, - 0xC6, - 0xB5, - 0x5D, - 0x09, - 0x29, - 0x96, - 0x4D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_FREQUENCY_LIMIT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3F, 0xAE, 0xB0, 0x75, - 0xE0, 0xBC, - 0xA7, 0x45, - 0x8C, - 0x89, - 0xC9, - 0x61, - 0x1C, - 0x25, - 0xE1, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_FREQUENCY_LIMIT_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3F, 0xAE, 0xB0, 0x75, - 0xE0, 0xBC, - 0xA7, 0x45, - 0x8C, - 0x89, - 0xC9, - 0x61, - 0x1C, - 0x25, - 0xE1, - 0x01 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_ALLOW_THROTTLING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFD, 0xD4, 0x04, 0x3B, - 0xC7, 0x1C, - 0x23, 0x4F, - 0xAB, - 0x1C, - 0xD1, - 0x33, - 0x78, - 0x19, - 0xC4, - 0xBB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_IDLESTATE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA7, 0x62, 0xF2, 0x68, - 0x21, 0xF6, - 0x69, 0x40, - 0xB9, - 0xA5, - 0x48, - 0x74, - 0x16, - 0x9B, - 0xE2, - 0x3C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERFSTATE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x14, 0x38, 0xDC, 0xBB, - 0xE9, 0x18, - 0x63, 0x44, - 0x8A, - 0x55, - 0xD1, - 0x97, - 0x32, - 0x7C, - 0x45, - 0xC0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0E, 0xDF, 0xCA, 0x06, - 0xED, 0x64, - 0x8A, 0x44, - 0x89, - 0x27, - 0xCE, - 0x7B, - 0xF9, - 0x0E, - 0xB3, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0E, 0xDF, 0xCA, 0x06, - 0xED, 0x64, - 0x8A, 0x44, - 0x89, - 0x27, - 0xCE, - 0x7B, - 0xF9, - 0x0E, - 0xB3, - 0x5E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0xAB, 0xA0, 0x12, - 0x28, 0xFE, - 0xA9, 0x4F, - 0xB3, - 0xBD, - 0x4B, - 0x64, - 0xF4, - 0x49, - 0x60, - 0xA6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0xAB, 0xA0, 0x12, - 0x28, 0xFE, - 0xA9, 0x4F, - 0xB3, - 0xBD, - 0x4B, - 0x64, - 0xF4, - 0x49, - 0x60, - 0xA7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x1F, 0x5E, 0x46, - 0x10, 0xB6, - 0x3A, 0x47, - 0xAB, - 0x58, - 0x00, - 0xD1, - 0x07, - 0x7D, - 0xC4, - 0x18 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_POLICY_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x50, 0x1F, 0x5E, 0x46, - 0x10, 0xB6, - 0x3A, 0x47, - 0xAB, - 0x58, - 0x00, - 0xD1, - 0x07, - 0x7D, - 0xC4, - 0x19 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC7, 0xEF, 0xFB, 0x40, - 0x9D, 0x2E, - 0x25, 0x4D, - 0xA1, - 0x85, - 0x0C, - 0xFD, - 0x85, - 0x74, - 0xBA, - 0xC6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_POLICY_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC7, 0xEF, 0xFB, 0x40, - 0x9D, 0x2E, - 0x25, 0x4D, - 0xA1, - 0x85, - 0x0C, - 0xFD, - 0x85, - 0x74, - 0xBA, - 0xC7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x92, 0xF4, 0x4C, 0x98, - 0xED, 0x3B, - 0x88, 0x44, - 0xA8, - 0xF9, - 0x42, - 0x86, - 0xC9, - 0x7B, - 0xF5, - 0xAA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_TIME_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x92, 0xF4, 0x4C, 0x98, - 0xED, 0x3B, - 0x88, 0x44, - 0xA8, - 0xF9, - 0x42, - 0x86, - 0xC9, - 0x7B, - 0xF5, - 0xAB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9B, 0xEB, 0xED, 0xD8, - 0xCF, 0x95, - 0x95, 0x4F, - 0xA7, - 0x3C, - 0xB0, - 0x61, - 0x97, - 0x36, - 0x93, - 0xC8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_TIME_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9B, 0xEB, 0xED, 0xD8, - 0xCF, 0x95, - 0x95, 0x4F, - 0xA7, - 0x3C, - 0xB0, - 0x61, - 0x97, - 0x36, - 0x93, - 0xC9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_TIME_CHECK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0x01, 0x2B, 0x4D, - 0x5C, 0x7D, - 0x8B, 0x49, - 0x88, - 0xE2, - 0x34, - 0x34, - 0x53, - 0x92, - 0xA2, - 0xC5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_BOOST_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x44, 0xC0, 0xBC, 0x45, - 0x85, 0xD8, - 0xE2, 0x43, - 0x86, - 0x05, - 0xEE, - 0x0E, - 0xC6, - 0xE9, - 0x6B, - 0x59 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_BOOST_MODE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x38, 0x72, 0x33, 0xBE, - 0x82, 0x0D, - 0x46, 0x41, - 0xA9, - 0x60, - 0x4F, - 0x37, - 0x49, - 0xD4, - 0x70, - 0xC7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_AUTONOMOUS_MODE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8A, 0x4A, 0xAA, 0x8B, - 0xC6, 0x14, - 0x51, 0x44, - 0x8E, - 0x8B, - 0x14, - 0xBD, - 0xBD, - 0x19, - 0x75, - 0x37 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9E, 0x7F, 0x68, 0x36, - 0xA5, 0xE3, - 0xBF, 0x4D, - 0xB1, - 0xDC, - 0x15, - 0xEB, - 0x38, - 0x1C, - 0x68, - 0x63 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9E, 0x7F, 0x68, 0x36, - 0xA5, 0xE3, - 0xBF, 0x4D, - 0xB1, - 0xDC, - 0x15, - 0xEB, - 0x38, - 0x1C, - 0x68, - 0x64 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD0, 0xA3, 0xED, 0xCF, - 0x97, 0x76, - 0x66, 0x45, - 0xA9, - 0x22, - 0xA9, - 0x08, - 0x6C, - 0xD4, - 0x9D, - 0xFA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_DUTY_CYCLING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB3, 0x50, 0x44, 0x4E, - 0x79, 0x61, - 0x91, 0x4E, - 0xB8, - 0xF1, - 0x5B, - 0xB9, - 0x93, - 0x8F, - 0x81, - 0xA1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_IDLE_ALLOW_SCALING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB0, 0x93, 0x29, 0x6C, - 0x48, 0x8F, - 0x1F, 0x48, - 0xBC, - 0xC6, - 0x00, - 0xDD, - 0x27, - 0x42, - 0xAA, - 0x06 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_IDLE_DISABLE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xCA, 0xA2, 0x76, 0x5D, - 0xC0, 0xE8, - 0x2F, 0x40, - 0xA1, - 0x33, - 0x21, - 0x58, - 0x49, - 0x2D, - 0x58, - 0xAD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_IDLE_STATE_MAXIMUM - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x05, 0xE9, 0x43, 0x99, - 0x30, 0x9A, - 0xC1, 0x4E, - 0x9B, - 0x99, - 0x44, - 0xDD, - 0x3B, - 0x76, - 0xF7, - 0xA2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_IDLE_TIME_CHECK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x31, 0x1C, 0x58, 0xC4, - 0xAB, 0x89, - 0x97, 0x45, - 0x8E, - 0x2B, - 0x9C, - 0x9C, - 0xAB, - 0x44, - 0x0E, - 0x6B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x58, 0xD7, 0x92, 0x4B, - 0x24, 0x5A, - 0x51, 0x48, - 0xA4, - 0x70, - 0x81, - 0x5D, - 0x78, - 0xAE, - 0xE1, - 0x19 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x83, 0x48, 0x22, 0x7B, - 0xCC, 0xB3, - 0x79, 0x4D, - 0x81, - 0x9F, - 0x83, - 0x74, - 0x15, - 0x2C, - 0xBE, - 0x7C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x29, 0x14, 0xDF, - 0xF3, 0x20, - 0xDF, 0x4E, - 0x9A, - 0x4A, - 0x9C, - 0x83, - 0xD3, - 0xD7, - 0x17, - 0xD1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x27, 0x2F, 0xDD, 0x68, - 0xCE, 0xA4, - 0x11, 0x4E, - 0x84, - 0x87, - 0x37, - 0x94, - 0xE4, - 0x13, - 0x5D, - 0xFA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x79, 0x06, 0xBE, 0xC7, - 0x17, 0x28, - 0x69, 0x4D, - 0x9D, - 0x02, - 0x51, - 0x9A, - 0x53, - 0x7E, - 0xD0, - 0xC6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x1B, 0x02, 0x71, - 0x49, 0xC7, - 0x21, 0x4D, - 0xBE, - 0x74, - 0xA0, - 0x0F, - 0x33, - 0x5D, - 0x58, - 0x2B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MAX_CORES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x31, 0x20, 0x06, 0xEA, - 0x34, 0x0E, - 0xF1, 0x4F, - 0x9B, - 0x6D, - 0xEB, - 0x10, - 0x59, - 0x33, - 0x40, - 0x28 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x31, 0x20, 0x06, 0xEA, - 0x34, 0x0E, - 0xF1, 0x4F, - 0x9B, - 0x6D, - 0xEB, - 0x10, - 0x59, - 0x33, - 0x40, - 0x29 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MIN_CORES - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x47, 0xB6, 0xC5, 0x0C, - 0xDF, 0xC1, - 0x37, 0x46, - 0x89, - 0x1A, - 0xDE, - 0xC3, - 0x5C, - 0x31, - 0x85, - 0x83 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x47, 0xB6, 0xC5, 0x0C, - 0xDF, 0xC1, - 0x37, 0x46, - 0x89, - 0x1A, - 0xDE, - 0xC3, - 0x5C, - 0x31, - 0x85, - 0x84 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x84, 0x5A, 0xDD, 0x2D, - 0x71, 0x5A, - 0x7E, 0x43, - 0x91, - 0x2A, - 0xDB, - 0x0B, - 0x8C, - 0x78, - 0x87, - 0x32 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x17, 0x0D, 0xD1, 0xDF, - 0xEB, 0xD5, - 0xDD, 0x45, - 0x87, - 0x7A, - 0x9A, - 0x34, - 0xDD, - 0xD1, - 0x5C, - 0x82 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE3, 0x45, 0x7B, 0x8F, - 0x93, 0xC3, - 0x0A, 0x48, - 0x87, - 0x8C, - 0xF6, - 0x7A, - 0xC3, - 0xD0, - 0x70, - 0x82 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7B, 0x69, 0x33, 0x5B, - 0x9D, 0xE8, - 0x38, 0x4D, - 0xAA, - 0x46, - 0x9E, - 0x7D, - 0xFB, - 0x7C, - 0xD2, - 0xF9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF1, 0x67, 0x08, 0xE7, - 0x2F, 0xFA, - 0x4E, 0x4F, - 0xAE, - 0xA1, - 0x4D, - 0x8A, - 0x0B, - 0xA2, - 0x3B, - 0x20 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3C, 0x02, 0x99, 0x12, - 0x28, 0xBC, - 0x0A, 0x4F, - 0x81, - 0xEC, - 0xD3, - 0x29, - 0x5A, - 0x8D, - 0x81, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x92, 0x8E, 0xC1, 0x9A, - 0x3C, 0xAA, - 0x27, 0x4E, - 0xB3, - 0x07, - 0x01, - 0xAE, - 0x37, - 0x30, - 0x71, - 0x29 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD8, 0xC2, 0x09, 0x88, - 0x55, 0xB1, - 0xD4, 0x42, - 0xBC, - 0xDA, - 0x0D, - 0x34, - 0x56, - 0x51, - 0xB1, - 0xDB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB6, 0x8C, 0x3C, 0x94, - 0x93, 0x6F, - 0x27, 0x42, - 0xAD, - 0x87, - 0xE9, - 0xA3, - 0xFE, - 0xEC, - 0x08, - 0xD1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PARKING_CORE_OVERRIDE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xAA, 0x12, 0x56, 0xA5, - 0x24, 0xF6, - 0xC6, 0x42, - 0xA4, - 0x43, - 0x73, - 0x97, - 0xD0, - 0x64, - 0xC0, - 0x4F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PARKING_PERF_STATE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC7, 0x35, 0x72, 0x44, - 0x8D, 0x6A, - 0xC0, 0x4C, - 0x8E, - 0x24, - 0x9E, - 0xAF, - 0x70, - 0xB9, - 0x6E, - 0x2B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PARKING_PERF_STATE_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC7, 0x35, 0x72, 0x44, - 0x8D, 0x6A, - 0xC0, 0x4C, - 0x8E, - 0x24, - 0x9E, - 0xAF, - 0x70, - 0xB9, - 0x6E, - 0x2C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x6F, 0xAB, 0x30, 0x24, - 0x20, 0xA5, - 0xA2, 0x44, - 0x96, - 0x01, - 0xF7, - 0xF2, - 0x3B, - 0x51, - 0x34, - 0xB1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x73, 0xA6, 0x35, 0xF7, - 0x66, 0x20, - 0x80, 0x4F, - 0xA0, - 0xC5, - 0xDD, - 0xEE, - 0x0C, - 0xF1, - 0xBF, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE9, 0xF4, 0xDA, 0x4B, - 0x03, 0xD1, - 0xD7, 0x46, - 0xA5, - 0xF0, - 0x62, - 0x80, - 0x12, - 0x16, - 0x16, - 0xEF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_SOFT_PARKING_LATENCY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0xAC, 0xCF, 0x97, - 0x17, 0x22, - 0xEB, 0x47, - 0x99, - 0x2D, - 0x61, - 0x8B, - 0x19, - 0x77, - 0xC9, - 0x07 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_HISTORY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA7, 0xBA, 0x24, 0x7D, - 0x84, 0x0B, - 0x0F, 0x48, - 0x84, - 0x0C, - 0x1B, - 0x07, - 0x43, - 0xC0, - 0x0F, - 0x5F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_HISTORY_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA7, 0xBA, 0x24, 0x7D, - 0x84, 0x0B, - 0x0F, 0x48, - 0x84, - 0x0C, - 0x1B, - 0x07, - 0x43, - 0xC0, - 0x0F, - 0x60 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_INCREASE_HISTORY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x01, 0xEF, 0xB3, 0x99, - 0x2F, 0x75, - 0xA1, 0x46, - 0x80, - 0xFB, - 0x77, - 0x30, - 0x01, - 0x1F, - 0x23, - 0x54 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_DECREASE_HISTORY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF8, 0xF6, 0x00, 0x03, - 0xD6, 0xAB, - 0xA9, 0x45, - 0xB7, - 0x4F, - 0x49, - 0x08, - 0x69, - 0x1A, - 0x40, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x82, 0xF2, 0xD7, 0x77, - 0x1A, 0x8F, - 0xCD, 0x42, - 0x85, - 0x37, - 0x45, - 0x45, - 0x0A, - 0x83, - 0x9B, - 0xE8 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_LATENCY_HINT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x31, 0xDF, 0x22, 0x08, - 0x83, 0x9C, - 0x1C, 0x44, - 0xA0, - 0x79, - 0x0D, - 0xE4, - 0xCF, - 0x00, - 0x9C, - 0x7B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_LATENCY_HINT_PERF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x05, 0x75, 0x9B, 0x61, - 0x3B, 0x00, - 0x82, 0x4E, - 0xB7, - 0xA6, - 0x4D, - 0xD2, - 0x9C, - 0x30, - 0x09, - 0x71 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x05, 0x75, 0x9B, 0x61, - 0x3B, 0x00, - 0x82, 0x4E, - 0xB7, - 0xA6, - 0x4D, - 0xD2, - 0x9C, - 0x30, - 0x09, - 0x72 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0xDA, 0x6C, 0x61, - 0x5E, 0x69, - 0x45, 0x45, - 0x97, - 0xAD, - 0x97, - 0xDC, - 0x2D, - 0x1B, - 0xDD, - 0x88 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA5, 0xDA, 0x6C, 0x61, - 0x5E, 0x69, - 0x45, 0x45, - 0x97, - 0xAD, - 0x97, - 0xDC, - 0x2D, - 0x1B, - 0xDD, - 0x89 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_DISTRIBUTE_UTILITY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x30, 0x73, 0x00, 0xE0, - 0x89, 0xF5, - 0xED, 0x42, - 0xA4, - 0x01, - 0x5D, - 0xDB, - 0x10, - 0xE7, - 0x85, - 0xD3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_HETEROGENEOUS_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xFA, 0x5C, 0x2F, 0x7F, - 0x0C, 0xF1, - 0x23, 0x48, - 0xB5, - 0xE1, - 0xE9, - 0x3A, - 0xE8, - 0x5F, - 0x46, - 0xB5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_HETERO_DECREASE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB6, 0x92, 0x24, 0x7F, - 0xB1, 0x60, - 0xE5, 0x45, - 0xAE, - 0x55, - 0x77, - 0x3F, - 0x8C, - 0xD5, - 0xCA, - 0xEC - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_HETERO_INCREASE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xA7, 0xEF, 0x09, 0x40, - 0x2D, 0xE7, - 0xBA, 0x4C, - 0x9E, - 0xDF, - 0x91, - 0x08, - 0x4E, - 0xA8, - 0xCB, - 0xC3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x27, 0x1C, 0x86, 0xF8, - 0xE7, 0x95, - 0x5C, 0x47, - 0x86, - 0x5B, - 0x13, - 0xC0, - 0xCB, - 0x3F, - 0x9D, - 0x6B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7D, 0x39, 0x00, 0xB0, - 0x0B, 0x9B, - 0x3D, 0x48, - 0x98, - 0xC9, - 0x69, - 0x2A, - 0x60, - 0x60, - 0xCF, - 0xBF - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CLASS0_FLOOR_PERF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2B, 0x84, 0xDC, 0xFD, - 0x64, 0x83, - 0xDC, 0x4E, - 0x94, - 0xCF, - 0xC1, - 0x7F, - 0x60, - 0xDE, - 0x1C, - 0x80 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_CLASS1_INITIAL_PERF - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x65, 0xFC, 0xAC, 0x1F, - 0x30, 0xA9, - 0xC5, 0x4B, - 0x9F, - 0x38, - 0x50, - 0x4E, - 0xC0, - 0x97, - 0xBB, - 0xC0 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_THREAD_SCHEDULING_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDC, 0xB6, 0xB8, 0x93, - 0x98, 0x06, - 0x1C, 0x4D, - 0x9E, - 0xE4, - 0x06, - 0x44, - 0xE9, - 0x00, - 0xC8, - 0x5D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x81, 0x8B, 0xE0, 0xBA, - 0x5E, 0x2D, - 0x88, 0x46, - 0xAD, - 0x6A, - 0x13, - 0x24, - 0x33, - 0x56, - 0x65, - 0x4B - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SYSTEM_COOLING_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x15, 0xA6, 0xD3, 0x94, - 0x99, 0xA8, - 0xC5, 0x4A, - 0xAE, - 0x2B, - 0xE4, - 0xD8, - 0xF6, - 0x34, - 0x36, - 0x7F - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3D, 0x38, 0xB8, 0x38, - 0xE0, 0xCC, - 0x79, 0x4C, - 0x9E, - 0x3E, - 0x56, - 0xA4, - 0xF1, - 0x7C, - 0xC4, - 0x80 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3D, 0x38, 0xB8, 0x38, - 0xE0, 0xCC, - 0x79, 0x4C, - 0x9E, - 0x3E, - 0x56, - 0xA4, - 0xF1, - 0x7C, - 0xC4, - 0x81 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x56, 0xE2, 0x44, 0x3D, - 0x22, 0x72, - 0x15, 0x44, - 0xA9, - 0xED, - 0x9C, - 0x45, - 0xFA, - 0x3D, - 0xD8, - 0x30 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x56, 0xE2, 0x44, 0x3D, - 0x22, 0x72, - 0x15, 0x44, - 0xA9, - 0xED, - 0x9C, - 0x45, - 0xFA, - 0x3D, - 0xD8, - 0x31 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0x99, 0x65, 0xF5, - 0xB0, 0x3F, - 0x1A, 0x41, - 0xA2, - 0x26, - 0x3F, - 0x01, - 0x98, - 0xDE, - 0xC1, - 0x30 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x9F, 0x99, 0x65, 0xF5, - 0xB0, 0x3F, - 0x1A, 0x41, - 0xA2, - 0x26, - 0x3F, - 0x01, - 0x98, - 0xDE, - 0xC1, - 0x31 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x88, 0x51, 0x91, 0x3D, - 0x30, 0x78, - 0xAE, 0x49, - 0xA7, - 0x9A, - 0x0F, - 0xB0, - 0xA1, - 0xE5, - 0xA2, - 0x00 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x88, 0x51, 0x91, 0x3D, - 0x30, 0x78, - 0xAE, 0x49, - 0xA7, - 0x9A, - 0x0F, - 0xB0, - 0xA1, - 0xE5, - 0xA2, - 0x01 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3B, 0xC7, 0x27, 0x44, - 0x56, 0x97, - 0x5C, 0x4A, - 0xB8, - 0x4B, - 0xC7, - 0xBD, - 0xA7, - 0x9C, - 0x73, - 0x20 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x3B, 0xC7, 0x27, 0x44, - 0x56, 0x97, - 0x5C, 0x4A, - 0xB8, - 0x4B, - 0xC7, - 0xBD, - 0xA7, - 0x9C, - 0x73, - 0x21 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEE, 0x92, 0x8E, 0xCE, - 0x86, 0x6A, - 0x72, 0x45, - 0xBF, - 0xE0, - 0x20, - 0xC2, - 0x1D, - 0x03, - 0xCD, - 0x40 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1 - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xEE, 0x92, 0x8E, 0xCE, - 0x86, 0x6A, - 0x72, 0x45, - 0xBF, - 0xE0, - 0x20, - 0xC2, - 0x1D, - 0x03, - 0xCD, - 0x41 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_LOCK_CONSOLE_ON_WAKE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDB, 0x6B, 0x79, 0x0E, - 0x0D, 0x10, - 0xD6, 0x47, - 0xA2, - 0xD5, - 0xF7, - 0xD2, - 0xDA, - 0xA5, - 0x1F, - 0x51 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DEVICE_IDLE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1A, 0xB7, 0xAA, 0x4F, - 0xE5, 0x92, - 0x26, 0x47, - 0xB5, - 0x31, - 0x22, - 0x45, - 0x59, - 0x67, - 0x2D, - 0x19 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_CONNECTIVITY_IN_STANDBY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xE8, 0x76, 0x55, 0xF1, - 0xB7, 0x98, - 0x86, 0x41, - 0xB9, - 0x44, - 0xEA, - 0xFA, - 0x66, - 0x44, - 0x02, - 0xD9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_DISCONNECTED_STANDBY_MODE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD9, 0xB2, 0xAF, 0x68, - 0x95, 0xEE, - 0xA8, 0x47, - 0x8F, - 0x50, - 0x41, - 0x15, - 0x08, - 0x80, - 0x73, - 0xB1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ACDC_POWER_SOURCE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x59, 0x9A, 0x3E, 0x5D, - 0xD5, 0xE9, - 0x00, 0x4B, - 0xA6, - 0xBD, - 0xFF, - 0x34, - 0xFF, - 0x51, - 0x65, - 0x48 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_LIDSWITCH_STATE_CHANGE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0x0F, 0x3E, 0xBA, - 0x17, 0xB8, - 0x94, 0x40, - 0xA2, - 0xD1, - 0xD5, - 0x63, - 0x79, - 0xE6, - 0xA0, - 0xF3 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_PERCENTAGE_REMAINING - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x41, 0x80, 0xAD, 0xA7, - 0x5A, 0xB4, - 0xAE, 0x4C, - 0x87, - 0xA3, - 0xEE, - 0xCB, - 0xB4, - 0x68, - 0xA9, - 0xE1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BATTERY_COUNT - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x15, 0x3F, 0x26, 0x7D, - 0xA4, 0xFC, - 0xE5, 0x49, - 0x85, - 0x4B, - 0xA9, - 0xF2, - 0xBF, - 0xBD, - 0x5C, - 0x24 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_GLOBAL_USER_PRESENCE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x1D, 0x8A, 0x6E, 0x78, - 0x27, 0xB4, - 0x44, 0x43, - 0x92, - 0x07, - 0x09, - 0xE7, - 0x0B, - 0xDC, - 0xBE, - 0xA9 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SESSION_DISPLAY_STATUS - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x0E, 0xC2, 0x84, 0x2B, - 0x23, 0xAD, - 0xDF, 0x4D, - 0x93, - 0xDB, - 0x05, - 0xFF, - 0xBD, - 0x7E, - 0xFC, - 0xA5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SESSION_USER_PRESENCE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x48, 0x45, 0x0F, 0x3C, - 0x3F, 0xC0, - 0x4D, 0x4C, - 0xB9, - 0xF2, - 0x23, - 0x7E, - 0xDE, - 0x68, - 0x63, - 0x76 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_IDLE_BACKGROUND_TASK - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xD8, 0x31, 0x5C, 0x51, - 0x34, 0xF7, - 0x3D, 0x16, - 0xA0, - 0xFD, - 0x11, - 0xA0, - 0x8C, - 0x91, - 0xE8, - 0xF1 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_BACKGROUND_TASK_NOTIFICATION - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x40, 0xF2, 0x23, 0xCF, - 0x54, 0x2A, - 0xD8, 0x48, - 0xB1, - 0x14, - 0xDE, - 0x15, - 0x18, - 0xFF, - 0x05, - 0x2E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_APPLAUNCH_BUTTON - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x31, 0x92, 0x68, 0x1A, - 0x99, 0x73, - 0x9A, 0x4E, - 0x8F, - 0x99, - 0xB7, - 0x1F, - 0x99, - 0x9D, - 0xB3, - 0xFA - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PCIEXPRESS_SETTINGS_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x13, 0x4D, 0x1A, 0x50, - 0xAF, 0x42, - 0x29, 0x44, - 0x9F, - 0xD1, - 0xA8, - 0x21, - 0x8C, - 0x26, - 0x8E, - 0x20 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_PCIEXPRESS_ASPM_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x06, 0xF9, 0x12, 0xEE, - 0x77, 0xD2, - 0x4B, 0x40, - 0xB6, - 0xDA, - 0xE5, - 0xFA, - 0x1A, - 0x57, - 0x6D, - 0xF5 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_ENABLE_SWITCH_FORCED_SHUTDOWN - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x62, 0x6B, 0x3A, 0x83, - 0xA4, 0xDF, - 0xD1, 0x46, - 0x82, - 0xF8, - 0xE0, - 0x9E, - 0x34, - 0xD0, - 0x29, - 0xD6 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_INTSTEER_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x38, 0x2F, 0x67, 0x48, - 0x9A, 0x7A, - 0xB2, 0x4B, - 0x8B, - 0xF8, - 0x3D, - 0x85, - 0xBE, - 0x19, - 0xDE, - 0x4E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_INTSTEER_MODE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xF9, 0x24, 0xFC, 0x2B, - 0xA2, 0x5E, - 0x01, 0x48, - 0x82, - 0x13, - 0x3D, - 0xBA, - 0xE0, - 0x1A, - 0xA3, - 0x9D - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_INTSTEER_LOAD_PER_PROC_TRIGGER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4D, 0xE6, 0xCD, 0x73, - 0x20, 0xD7, - 0xB2, 0x4B, - 0xA8, - 0x60, - 0xC7, - 0x55, - 0xAF, - 0xE7, - 0x7E, - 0xF2 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_INTSTEER_TIME_UNPARK_TRIGGER - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x03, 0x49, 0xBA, 0xD6, - 0x6F, 0x38, - 0x2C, 0x4C, - 0x8A, - 0xDB, - 0x5C, - 0x21, - 0xB3, - 0x32, - 0x8D, - 0x25 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_GRAPHICS_SUBGROUP - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x8D, 0x93, 0xB4, 0x5F, - 0xE8, 0x1E, - 0x0F, 0x4B, - 0x9A, - 0x3C, - 0x50, - 0x36, - 0xB0, - 0xAB, - 0x99, - 0x5C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_GPU_PREFERENCE_POLICY - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x2A, 0x8B, 0x84, 0xDD, - 0x5D, 0x8A, - 0x51, 0x44, - 0x9A, - 0xE2, - 0x39, - 0xCD, - 0x41, - 0x65, - 0x8F, - 0x6C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_MIXED_REALITY_MODE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4E, 0x6B, 0x62, 0x1E, - 0x04, 0xCF, - 0x8D, 0x4F, - 0x9C, - 0xC7, - 0xC9, - 0x7C, - 0x5B, - 0x0F, - 0x23, - 0x91 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid GUID_SPR_ACTIVE_SESSION_CHANGE - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x38, 0xCE, 0x24, 0x0E, - 0x93, 0xC3, - 0x42, 0x47, - 0xBD, - 0xB1, - 0x74, - 0x4F, - 0x4B, - 0x9E, - 0xE0, - 0x8E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_PERFSTATE_CHANGE_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xDD, 0x2D, 0xB3, 0xA5, - 0x39, 0x7F, - 0xBC, 0x4A, - 0xB8, - 0x92, - 0x90, - 0x0E, - 0x43, - 0xB5, - 0x9E, - 0xBB - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_PERFSTATE_DOMAIN_CHANGE_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x7F, 0x6B, 0x5E, 0x99, - 0x53, 0xD6, - 0x7A, 0x49, - 0xB9, - 0x78, - 0x36, - 0xA3, - 0x0C, - 0x29, - 0xBF, - 0x01 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_IDLESTATE_CHANGE_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x4F, 0xFE, 0x38, 0x48, - 0x1C, 0xF7, - 0x51, 0x4E, - 0x9E, - 0xCC, - 0x84, - 0x30, - 0xA7, - 0xAC, - 0x4C, - 0x6C - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_PERFSTATES_DATA_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x20, 0xCC, 0x08, 0x57, - 0x40, 0x7D, - 0xF4, 0x4B, - 0xB4, - 0xAA, - 0x2B, - 0x01, - 0x33, - 0x8D, - 0x01, - 0x26 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_IDLESTATES_DATA_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x10, 0x8E, 0x13, 0xBA, - 0x50, 0xE2, - 0xD7, 0x4A, - 0x86, - 0x16, - 0xCF, - 0x1A, - 0x7A, - 0xD4, - 0x10, - 0xE7 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_IDLE_ACCOUNTING_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x78, 0x6F, 0xA2, 0xE2, - 0x07, 0xAE, - 0xE0, 0x4E, - 0xA3, - 0x0F, - 0xCE, - 0x54, - 0xF5, - 0x5A, - 0x94, - 0xCD - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_IDLE_ACCOUNTING_EX_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x39, 0xBD, 0x7A, 0xD6, - 0xF8, 0x81, - 0x5E, 0x4A, - 0x81, - 0x52, - 0x72, - 0xE3, - 0x1E, - 0xC9, - 0x12, - 0xEE - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_THERMALCONSTRAINT_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xC8, 0xC2, 0x52, 0xA8, - 0x4C, 0x1A, - 0x3B, 0x42, - 0x8C, - 0x2C, - 0xF3, - 0x0D, - 0x82, - 0x93, - 0x1A, - 0x88 - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_PERFMON_PERFSTATE_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0x52, 0x86, 0xD1, 0x7F, - 0xFE, 0x0C, - 0xD2, 0x40, - 0xB0, - 0xA1, - 0x0B, - 0x06, - 0x6A, - 0x87, - 0x75, - 0x9E - }; - - Debug.Assert(data.Length == Unsafe.SizeOf()); - return ref Unsafe.As(ref MemoryMarshal.GetReference(data)); - } - } - - [NativeTypeName("const GUID")] - public static ref readonly Guid PPM_THERMAL_POLICY_CHANGE_GUID - { - [MethodImpl(MethodImplOptions.AggressiveInlining)] - get - { - ReadOnlySpan data = new byte[] { - 0xB8, 0x77, 0xF3, 0x48, - 0x80, 0x68, - 0x7B, 0x4C, - 0x8B, - 0xDC, - 0x38, - 0x01, - 0x76, - 0xC6, - 0x65, - 0x4D + 0x90, + 0xB0 }; Debug.Assert(data.Length == Unsafe.SizeOf()); @@ -5264,12 +62,6 @@ public static ref readonly Guid PPM_THERMAL_POLICY_CHANGE_GUID } } - [return: NativeTypeName("DWORD")] - public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [NativeTypeName("DWORD")] uint Tag) - { - return ((uint)((TagBase) + ((Tag) << 18))); - } - [NativeTypeName("#define ANYSIZE_ARRAY 1")] public const int ANYSIZE_ARRAY = 1; @@ -5336,195 +128,9 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define ENCLAVE_LONG_ID_LENGTH 32")] public const int ENCLAVE_LONG_ID_LENGTH = 32; - [NativeTypeName("#define VER_SERVER_NT 0x80000000")] - public const uint VER_SERVER_NT = 0x80000000; - - [NativeTypeName("#define VER_WORKSTATION_NT 0x40000000")] - public const int VER_WORKSTATION_NT = 0x40000000; - - [NativeTypeName("#define VER_SUITE_SMALLBUSINESS 0x00000001")] - public const int VER_SUITE_SMALLBUSINESS = 0x00000001; - - [NativeTypeName("#define VER_SUITE_ENTERPRISE 0x00000002")] - public const int VER_SUITE_ENTERPRISE = 0x00000002; - - [NativeTypeName("#define VER_SUITE_BACKOFFICE 0x00000004")] - public const int VER_SUITE_BACKOFFICE = 0x00000004; - - [NativeTypeName("#define VER_SUITE_COMMUNICATIONS 0x00000008")] - public const int VER_SUITE_COMMUNICATIONS = 0x00000008; - - [NativeTypeName("#define VER_SUITE_TERMINAL 0x00000010")] - public const int VER_SUITE_TERMINAL = 0x00000010; - - [NativeTypeName("#define VER_SUITE_SMALLBUSINESS_RESTRICTED 0x00000020")] - public const int VER_SUITE_SMALLBUSINESS_RESTRICTED = 0x00000020; - - [NativeTypeName("#define VER_SUITE_EMBEDDEDNT 0x00000040")] - public const int VER_SUITE_EMBEDDEDNT = 0x00000040; - - [NativeTypeName("#define VER_SUITE_DATACENTER 0x00000080")] - public const int VER_SUITE_DATACENTER = 0x00000080; - - [NativeTypeName("#define VER_SUITE_SINGLEUSERTS 0x00000100")] - public const int VER_SUITE_SINGLEUSERTS = 0x00000100; - - [NativeTypeName("#define VER_SUITE_PERSONAL 0x00000200")] - public const int VER_SUITE_PERSONAL = 0x00000200; - - [NativeTypeName("#define VER_SUITE_BLADE 0x00000400")] - public const int VER_SUITE_BLADE = 0x00000400; - - [NativeTypeName("#define VER_SUITE_EMBEDDED_RESTRICTED 0x00000800")] - public const int VER_SUITE_EMBEDDED_RESTRICTED = 0x00000800; - - [NativeTypeName("#define VER_SUITE_SECURITY_APPLIANCE 0x00001000")] - public const int VER_SUITE_SECURITY_APPLIANCE = 0x00001000; - - [NativeTypeName("#define VER_SUITE_STORAGE_SERVER 0x00002000")] - public const int VER_SUITE_STORAGE_SERVER = 0x00002000; - - [NativeTypeName("#define VER_SUITE_COMPUTE_SERVER 0x00004000")] - public const int VER_SUITE_COMPUTE_SERVER = 0x00004000; - - [NativeTypeName("#define VER_SUITE_WH_SERVER 0x00008000")] - public const int VER_SUITE_WH_SERVER = 0x00008000; - - [NativeTypeName("#define VER_SUITE_MULTIUSERTS 0x00020000")] - public const int VER_SUITE_MULTIUSERTS = 0x00020000; - - [NativeTypeName("#define SORT_DEFAULT 0x0")] - public const int SORT_DEFAULT = 0x0; - - [NativeTypeName("#define SORT_INVARIANT_MATH 0x1")] - public const int SORT_INVARIANT_MATH = 0x1; - - [NativeTypeName("#define SORT_JAPANESE_XJIS 0x0")] - public const int SORT_JAPANESE_XJIS = 0x0; - - [NativeTypeName("#define SORT_JAPANESE_UNICODE 0x1")] - public const int SORT_JAPANESE_UNICODE = 0x1; - - [NativeTypeName("#define SORT_JAPANESE_RADICALSTROKE 0x4")] - public const int SORT_JAPANESE_RADICALSTROKE = 0x4; - - [NativeTypeName("#define SORT_CHINESE_BIG5 0x0")] - public const int SORT_CHINESE_BIG5 = 0x0; - - [NativeTypeName("#define SORT_CHINESE_PRCP 0x0")] - public const int SORT_CHINESE_PRCP = 0x0; - - [NativeTypeName("#define SORT_CHINESE_UNICODE 0x1")] - public const int SORT_CHINESE_UNICODE = 0x1; - - [NativeTypeName("#define SORT_CHINESE_PRC 0x2")] - public const int SORT_CHINESE_PRC = 0x2; - - [NativeTypeName("#define SORT_CHINESE_BOPOMOFO 0x3")] - public const int SORT_CHINESE_BOPOMOFO = 0x3; - - [NativeTypeName("#define SORT_CHINESE_RADICALSTROKE 0x4")] - public const int SORT_CHINESE_RADICALSTROKE = 0x4; - - [NativeTypeName("#define SORT_KOREAN_KSC 0x0")] - public const int SORT_KOREAN_KSC = 0x0; - - [NativeTypeName("#define SORT_KOREAN_UNICODE 0x1")] - public const int SORT_KOREAN_UNICODE = 0x1; - - [NativeTypeName("#define SORT_GERMAN_PHONE_BOOK 0x1")] - public const int SORT_GERMAN_PHONE_BOOK = 0x1; - - [NativeTypeName("#define SORT_HUNGARIAN_DEFAULT 0x0")] - public const int SORT_HUNGARIAN_DEFAULT = 0x0; - - [NativeTypeName("#define SORT_HUNGARIAN_TECHNICAL 0x1")] - public const int SORT_HUNGARIAN_TECHNICAL = 0x1; - - [NativeTypeName("#define SORT_GEORGIAN_TRADITIONAL 0x0")] - public const int SORT_GEORGIAN_TRADITIONAL = 0x0; - - [NativeTypeName("#define SORT_GEORGIAN_MODERN 0x1")] - public const int SORT_GEORGIAN_MODERN = 0x1; - [NativeTypeName("#define NLS_VALID_LOCALE_MASK 0x000fffff")] public const int NLS_VALID_LOCALE_MASK = 0x000fffff; - [NativeTypeName("#define LOCALE_NAME_MAX_LENGTH 85")] - public const int LOCALE_NAME_MAX_LENGTH = 85; - - [NativeTypeName("#define LOCALE_SYSTEM_DEFAULT (MAKELCID(LANG_SYSTEM_DEFAULT, SORT_DEFAULT))")] - public const uint LOCALE_SYSTEM_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked(((((ushort)(0x02)) << 10) | (ushort)(0x00))))))))); - - [NativeTypeName("#define LOCALE_USER_DEFAULT (MAKELCID(LANG_USER_DEFAULT, SORT_DEFAULT))")] - public const uint LOCALE_USER_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked(((((ushort)(0x01)) << 10) | (ushort)(0x00))))))))); - - [NativeTypeName("#define LOCALE_CUSTOM_DEFAULT (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_CUSTOM_DEFAULT), SORT_DEFAULT))")] - public const uint LOCALE_CUSTOM_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x03)) << 10) | (ushort)(0x00)))))))); - - [NativeTypeName("#define LOCALE_CUSTOM_UNSPECIFIED (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_CUSTOM_UNSPECIFIED), SORT_DEFAULT))")] - public const uint LOCALE_CUSTOM_UNSPECIFIED = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x04)) << 10) | (ushort)(0x00)))))))); - - [NativeTypeName("#define LOCALE_CUSTOM_UI_DEFAULT (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_UI_CUSTOM_DEFAULT), SORT_DEFAULT))")] - public const uint LOCALE_CUSTOM_UI_DEFAULT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x05)) << 10) | (ushort)(0x00)))))))); - - [NativeTypeName("#define LOCALE_NEUTRAL (MAKELCID(MAKELANGID(LANG_NEUTRAL, SUBLANG_NEUTRAL), SORT_DEFAULT))")] - public const uint LOCALE_NEUTRAL = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x00)) << 10) | (ushort)(0x00)))))))); - - [NativeTypeName("#define LOCALE_INVARIANT (MAKELCID(MAKELANGID(LANG_INVARIANT, SUBLANG_NEUTRAL), SORT_DEFAULT))")] - public const uint LOCALE_INVARIANT = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x00)) << 10) | (ushort)(0x7f)))))))); - - [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD1 0x2000")] - public const int LOCALE_TRANSIENT_KEYBOARD1 = 0x2000; - - [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD2 0x2400")] - public const int LOCALE_TRANSIENT_KEYBOARD2 = 0x2400; - - [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD3 0x2800")] - public const int LOCALE_TRANSIENT_KEYBOARD3 = 0x2800; - - [NativeTypeName("#define LOCALE_TRANSIENT_KEYBOARD4 0x2c00")] - public const int LOCALE_TRANSIENT_KEYBOARD4 = 0x2c00; - - [NativeTypeName("#define LOCALE_UNASSIGNED_LCID LOCALE_CUSTOM_UNSPECIFIED")] - public const uint LOCALE_UNASSIGNED_LCID = (((uint)((((uint)((ushort)(0x0))) << 16) | ((uint)((ushort)(unchecked((((ushort)(0x04)) << 10) | (ushort)(0x00)))))))); - - [NativeTypeName("#define DBG_EXCEPTION_HANDLED ((DWORD )0x00010001L)")] - public const uint DBG_EXCEPTION_HANDLED = ((uint)(0x00010001)); - - [NativeTypeName("#define DBG_CONTINUE ((DWORD )0x00010002L)")] - public const uint DBG_CONTINUE = ((uint)(0x00010002)); - - [NativeTypeName("#define DBG_REPLY_LATER ((DWORD )0x40010001L)")] - public const uint DBG_REPLY_LATER = ((uint)(0x40010001)); - - [NativeTypeName("#define DBG_TERMINATE_THREAD ((DWORD )0x40010003L)")] - public const uint DBG_TERMINATE_THREAD = ((uint)(0x40010003)); - - [NativeTypeName("#define DBG_TERMINATE_PROCESS ((DWORD )0x40010004L)")] - public const uint DBG_TERMINATE_PROCESS = ((uint)(0x40010004)); - - [NativeTypeName("#define DBG_CONTROL_C ((DWORD )0x40010005L)")] - public const uint DBG_CONTROL_C = ((uint)(0x40010005)); - - [NativeTypeName("#define DBG_PRINTEXCEPTION_C ((DWORD )0x40010006L)")] - public const uint DBG_PRINTEXCEPTION_C = ((uint)(0x40010006)); - - [NativeTypeName("#define DBG_RIPEXCEPTION ((DWORD )0x40010007L)")] - public const uint DBG_RIPEXCEPTION = ((uint)(0x40010007)); - - [NativeTypeName("#define DBG_CONTROL_BREAK ((DWORD )0x40010008L)")] - public const uint DBG_CONTROL_BREAK = ((uint)(0x40010008)); - - [NativeTypeName("#define DBG_COMMAND_EXCEPTION ((DWORD )0x40010009L)")] - public const uint DBG_COMMAND_EXCEPTION = ((uint)(0x40010009)); - - [NativeTypeName("#define DBG_PRINTEXCEPTION_WIDE_C ((DWORD )0x4001000AL)")] - public const uint DBG_PRINTEXCEPTION_WIDE_C = ((uint)(0x4001000A)); - - [NativeTypeName("#define DBG_EXCEPTION_NOT_HANDLED ((DWORD )0x80010001L)")] - public const uint DBG_EXCEPTION_NOT_HANDLED = ((uint)(0x80010001)); - [NativeTypeName("#define MAXIMUM_WAIT_OBJECTS 64")] public const int MAXIMUM_WAIT_OBJECTS = 64; @@ -5543,114 +149,9 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define _MM_HINT_NTA 0")] public const int _MM_HINT_NTA = 0; - [NativeTypeName("#define PF_TEMPORAL_LEVEL_1 _MM_HINT_T0")] - public const int PF_TEMPORAL_LEVEL_1 = 1; - - [NativeTypeName("#define PF_TEMPORAL_LEVEL_2 _MM_HINT_T1")] - public const int PF_TEMPORAL_LEVEL_2 = 2; - - [NativeTypeName("#define PF_TEMPORAL_LEVEL_3 _MM_HINT_T2")] - public const int PF_TEMPORAL_LEVEL_3 = 3; - - [NativeTypeName("#define PF_NON_TEMPORAL_LEVEL_ALL _MM_HINT_NTA")] - public const int PF_NON_TEMPORAL_LEVEL_ALL = 0; - - [NativeTypeName("#define EXCEPTION_READ_FAULT 0")] - public const int EXCEPTION_READ_FAULT = 0; - - [NativeTypeName("#define EXCEPTION_WRITE_FAULT 1")] - public const int EXCEPTION_WRITE_FAULT = 1; - - [NativeTypeName("#define EXCEPTION_EXECUTE_FAULT 8")] - public const int EXCEPTION_EXECUTE_FAULT = 8; - - [NativeTypeName("#define WOW64_CONTEXT_i386 0x00010000")] - public const int WOW64_CONTEXT_i386 = 0x00010000; - - [NativeTypeName("#define WOW64_CONTEXT_i486 0x00010000")] - public const int WOW64_CONTEXT_i486 = 0x00010000; - - [NativeTypeName("#define WOW64_CONTEXT_CONTROL (WOW64_CONTEXT_i386 | 0x00000001L)")] - public const int WOW64_CONTEXT_CONTROL = (0x00010000 | 0x00000001); - - [NativeTypeName("#define WOW64_CONTEXT_INTEGER (WOW64_CONTEXT_i386 | 0x00000002L)")] - public const int WOW64_CONTEXT_INTEGER = (0x00010000 | 0x00000002); - - [NativeTypeName("#define WOW64_CONTEXT_SEGMENTS (WOW64_CONTEXT_i386 | 0x00000004L)")] - public const int WOW64_CONTEXT_SEGMENTS = (0x00010000 | 0x00000004); - - [NativeTypeName("#define WOW64_CONTEXT_FLOATING_POINT (WOW64_CONTEXT_i386 | 0x00000008L)")] - public const int WOW64_CONTEXT_FLOATING_POINT = (0x00010000 | 0x00000008); - - [NativeTypeName("#define WOW64_CONTEXT_DEBUG_REGISTERS (WOW64_CONTEXT_i386 | 0x00000010L)")] - public const int WOW64_CONTEXT_DEBUG_REGISTERS = (0x00010000 | 0x00000010); - - [NativeTypeName("#define WOW64_CONTEXT_EXTENDED_REGISTERS (WOW64_CONTEXT_i386 | 0x00000020L)")] - public const int WOW64_CONTEXT_EXTENDED_REGISTERS = (0x00010000 | 0x00000020); - - [NativeTypeName("#define WOW64_CONTEXT_FULL (WOW64_CONTEXT_CONTROL | WOW64_CONTEXT_INTEGER | WOW64_CONTEXT_SEGMENTS)")] - public const int WOW64_CONTEXT_FULL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004)); - - [NativeTypeName("#define WOW64_CONTEXT_ALL (WOW64_CONTEXT_CONTROL | WOW64_CONTEXT_INTEGER | WOW64_CONTEXT_SEGMENTS | \\\r\n WOW64_CONTEXT_FLOATING_POINT | WOW64_CONTEXT_DEBUG_REGISTERS | \\\r\n WOW64_CONTEXT_EXTENDED_REGISTERS)")] - public const int WOW64_CONTEXT_ALL = ((0x00010000 | 0x00000001) | (0x00010000 | 0x00000002) | (0x00010000 | 0x00000004) | (0x00010000 | 0x00000008) | (0x00010000 | 0x00000010) | (0x00010000 | 0x00000020)); - - [NativeTypeName("#define WOW64_CONTEXT_XSTATE (WOW64_CONTEXT_i386 | 0x00000040L)")] - public const int WOW64_CONTEXT_XSTATE = (0x00010000 | 0x00000040); - - [NativeTypeName("#define WOW64_CONTEXT_EXCEPTION_ACTIVE 0x08000000")] - public const int WOW64_CONTEXT_EXCEPTION_ACTIVE = 0x08000000; - - [NativeTypeName("#define WOW64_CONTEXT_SERVICE_ACTIVE 0x10000000")] - public const int WOW64_CONTEXT_SERVICE_ACTIVE = 0x10000000; - - [NativeTypeName("#define WOW64_CONTEXT_EXCEPTION_REQUEST 0x40000000")] - public const int WOW64_CONTEXT_EXCEPTION_REQUEST = 0x40000000; - - [NativeTypeName("#define WOW64_CONTEXT_EXCEPTION_REPORTING 0x80000000")] - public const uint WOW64_CONTEXT_EXCEPTION_REPORTING = 0x80000000; - - [NativeTypeName("#define WOW64_SIZE_OF_80387_REGISTERS 80")] - public const int WOW64_SIZE_OF_80387_REGISTERS = 80; - - [NativeTypeName("#define WOW64_MAXIMUM_SUPPORTED_EXTENSION 512")] - public const int WOW64_MAXIMUM_SUPPORTED_EXTENSION = 512; - - [NativeTypeName("#define EXCEPTION_NONCONTINUABLE 0x1")] - public const int EXCEPTION_NONCONTINUABLE = 0x1; - - [NativeTypeName("#define EXCEPTION_UNWINDING 0x2")] - public const int EXCEPTION_UNWINDING = 0x2; - - [NativeTypeName("#define EXCEPTION_EXIT_UNWIND 0x4")] - public const int EXCEPTION_EXIT_UNWIND = 0x4; - - [NativeTypeName("#define EXCEPTION_STACK_INVALID 0x8")] - public const int EXCEPTION_STACK_INVALID = 0x8; - - [NativeTypeName("#define EXCEPTION_NESTED_CALL 0x10")] - public const int EXCEPTION_NESTED_CALL = 0x10; - - [NativeTypeName("#define EXCEPTION_TARGET_UNWIND 0x20")] - public const int EXCEPTION_TARGET_UNWIND = 0x20; - - [NativeTypeName("#define EXCEPTION_COLLIDED_UNWIND 0x40")] - public const int EXCEPTION_COLLIDED_UNWIND = 0x40; - - [NativeTypeName("#define EXCEPTION_SOFTWARE_ORIGINATE 0x80")] - public const int EXCEPTION_SOFTWARE_ORIGINATE = 0x80; - - [NativeTypeName("#define EXCEPTION_UNWIND (EXCEPTION_UNWINDING | EXCEPTION_EXIT_UNWIND | \\\r\n EXCEPTION_TARGET_UNWIND | EXCEPTION_COLLIDED_UNWIND)")] - public const int EXCEPTION_UNWIND = (0x2 | 0x4 | 0x20 | 0x40); - - [NativeTypeName("#define EXCEPTION_MAXIMUM_PARAMETERS 15")] - public const int EXCEPTION_MAXIMUM_PARAMETERS = 15; - [NativeTypeName("#define DELETE (0x00010000L)")] public const int DELETE = (0x00010000); - [NativeTypeName("#define READ_CONTROL (0x00020000L)")] - public const int READ_CONTROL = (0x00020000); - [NativeTypeName("#define WRITE_DAC (0x00040000L)")] public const int WRITE_DAC = (0x00040000); @@ -5678,389 +179,95 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define SPECIFIC_RIGHTS_ALL (0x0000FFFFL)")] public const int SPECIFIC_RIGHTS_ALL = (0x0000FFFF); - [NativeTypeName("#define ACCESS_SYSTEM_SECURITY (0x01000000L)")] - public const int ACCESS_SYSTEM_SECURITY = (0x01000000); - [NativeTypeName("#define MAXIMUM_ALLOWED (0x02000000L)")] public const int MAXIMUM_ALLOWED = (0x02000000); - [NativeTypeName("#define GENERIC_READ (0x80000000L)")] - public const uint GENERIC_READ = (0x80000000); - - [NativeTypeName("#define GENERIC_WRITE (0x40000000L)")] - public const int GENERIC_WRITE = (0x40000000); - - [NativeTypeName("#define GENERIC_EXECUTE (0x20000000L)")] - public const int GENERIC_EXECUTE = (0x20000000); - - [NativeTypeName("#define GENERIC_ALL (0x10000000L)")] - public const int GENERIC_ALL = (0x10000000); - - [NativeTypeName("#define SID_REVISION (1)")] - public const int SID_REVISION = (1); - - [NativeTypeName("#define SID_MAX_SUB_AUTHORITIES (15)")] - public const int SID_MAX_SUB_AUTHORITIES = (15); - - [NativeTypeName("#define SID_RECOMMENDED_SUB_AUTHORITIES (1)")] - public const int SID_RECOMMENDED_SUB_AUTHORITIES = (1); - - [NativeTypeName("#define SID_HASH_SIZE 32")] - public const int SID_HASH_SIZE = 32; - - [NativeTypeName("#define FOREST_USER_RID_MAX (0x000001F3L)")] - public const int FOREST_USER_RID_MAX = (0x000001F3); - - [NativeTypeName("#define ACL_REVISION (2)")] - public const int ACL_REVISION = (2); - - [NativeTypeName("#define ACL_REVISION_DS (4)")] - public const int ACL_REVISION_DS = (4); - - [NativeTypeName("#define ACL_REVISION1 (1)")] - public const int ACL_REVISION1 = (1); - - [NativeTypeName("#define MIN_ACL_REVISION ACL_REVISION2")] - public const int MIN_ACL_REVISION = (2); - - [NativeTypeName("#define ACL_REVISION2 (2)")] - public const int ACL_REVISION2 = (2); - - [NativeTypeName("#define ACL_REVISION3 (3)")] - public const int ACL_REVISION3 = (3); - - [NativeTypeName("#define ACL_REVISION4 (4)")] - public const int ACL_REVISION4 = (4); - - [NativeTypeName("#define ACCESS_MIN_MS_ACE_TYPE (0x0)")] - public const int ACCESS_MIN_MS_ACE_TYPE = (0x0); - - [NativeTypeName("#define ACCESS_ALLOWED_ACE_TYPE (0x0)")] - public const int ACCESS_ALLOWED_ACE_TYPE = (0x0); - - [NativeTypeName("#define ACCESS_DENIED_ACE_TYPE (0x1)")] - public const int ACCESS_DENIED_ACE_TYPE = (0x1); - - [NativeTypeName("#define SYSTEM_AUDIT_ACE_TYPE (0x2)")] - public const int SYSTEM_AUDIT_ACE_TYPE = (0x2); - - [NativeTypeName("#define SYSTEM_ALARM_ACE_TYPE (0x3)")] - public const int SYSTEM_ALARM_ACE_TYPE = (0x3); - - [NativeTypeName("#define ACCESS_MAX_MS_V2_ACE_TYPE (0x3)")] - public const int ACCESS_MAX_MS_V2_ACE_TYPE = (0x3); - - [NativeTypeName("#define ACCESS_ALLOWED_COMPOUND_ACE_TYPE (0x4)")] - public const int ACCESS_ALLOWED_COMPOUND_ACE_TYPE = (0x4); - - [NativeTypeName("#define ACCESS_MAX_MS_V3_ACE_TYPE (0x4)")] - public const int ACCESS_MAX_MS_V3_ACE_TYPE = (0x4); - - [NativeTypeName("#define ACCESS_MIN_MS_OBJECT_ACE_TYPE (0x5)")] - public const int ACCESS_MIN_MS_OBJECT_ACE_TYPE = (0x5); - - [NativeTypeName("#define ACCESS_ALLOWED_OBJECT_ACE_TYPE (0x5)")] - public const int ACCESS_ALLOWED_OBJECT_ACE_TYPE = (0x5); - - [NativeTypeName("#define ACCESS_DENIED_OBJECT_ACE_TYPE (0x6)")] - public const int ACCESS_DENIED_OBJECT_ACE_TYPE = (0x6); - - [NativeTypeName("#define SYSTEM_AUDIT_OBJECT_ACE_TYPE (0x7)")] - public const int SYSTEM_AUDIT_OBJECT_ACE_TYPE = (0x7); - - [NativeTypeName("#define SYSTEM_ALARM_OBJECT_ACE_TYPE (0x8)")] - public const int SYSTEM_ALARM_OBJECT_ACE_TYPE = (0x8); - - [NativeTypeName("#define ACCESS_MAX_MS_OBJECT_ACE_TYPE (0x8)")] - public const int ACCESS_MAX_MS_OBJECT_ACE_TYPE = (0x8); - - [NativeTypeName("#define ACCESS_MAX_MS_V4_ACE_TYPE (0x8)")] - public const int ACCESS_MAX_MS_V4_ACE_TYPE = (0x8); - - [NativeTypeName("#define ACCESS_MAX_MS_ACE_TYPE (0x8)")] - public const int ACCESS_MAX_MS_ACE_TYPE = (0x8); - - [NativeTypeName("#define ACCESS_ALLOWED_CALLBACK_ACE_TYPE (0x9)")] - public const int ACCESS_ALLOWED_CALLBACK_ACE_TYPE = (0x9); - - [NativeTypeName("#define ACCESS_DENIED_CALLBACK_ACE_TYPE (0xA)")] - public const int ACCESS_DENIED_CALLBACK_ACE_TYPE = (0xA); - - [NativeTypeName("#define ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE (0xB)")] - public const int ACCESS_ALLOWED_CALLBACK_OBJECT_ACE_TYPE = (0xB); - - [NativeTypeName("#define ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE (0xC)")] - public const int ACCESS_DENIED_CALLBACK_OBJECT_ACE_TYPE = (0xC); - - [NativeTypeName("#define SYSTEM_AUDIT_CALLBACK_ACE_TYPE (0xD)")] - public const int SYSTEM_AUDIT_CALLBACK_ACE_TYPE = (0xD); - - [NativeTypeName("#define SYSTEM_ALARM_CALLBACK_ACE_TYPE (0xE)")] - public const int SYSTEM_ALARM_CALLBACK_ACE_TYPE = (0xE); - - [NativeTypeName("#define SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE (0xF)")] - public const int SYSTEM_AUDIT_CALLBACK_OBJECT_ACE_TYPE = (0xF); - - [NativeTypeName("#define SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE (0x10)")] - public const int SYSTEM_ALARM_CALLBACK_OBJECT_ACE_TYPE = (0x10); - - [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_ACE_TYPE (0x11)")] - public const int SYSTEM_MANDATORY_LABEL_ACE_TYPE = (0x11); - - [NativeTypeName("#define SYSTEM_RESOURCE_ATTRIBUTE_ACE_TYPE (0x12)")] - public const int SYSTEM_RESOURCE_ATTRIBUTE_ACE_TYPE = (0x12); - - [NativeTypeName("#define SYSTEM_SCOPED_POLICY_ID_ACE_TYPE (0x13)")] - public const int SYSTEM_SCOPED_POLICY_ID_ACE_TYPE = (0x13); - - [NativeTypeName("#define SYSTEM_PROCESS_TRUST_LABEL_ACE_TYPE (0x14)")] - public const int SYSTEM_PROCESS_TRUST_LABEL_ACE_TYPE = (0x14); - - [NativeTypeName("#define SYSTEM_ACCESS_FILTER_ACE_TYPE (0x15)")] - public const int SYSTEM_ACCESS_FILTER_ACE_TYPE = (0x15); - - [NativeTypeName("#define ACCESS_MAX_MS_V5_ACE_TYPE (0x15)")] - public const int ACCESS_MAX_MS_V5_ACE_TYPE = (0x15); - - [NativeTypeName("#define OBJECT_INHERIT_ACE (0x1)")] - public const int OBJECT_INHERIT_ACE = (0x1); - - [NativeTypeName("#define CONTAINER_INHERIT_ACE (0x2)")] - public const int CONTAINER_INHERIT_ACE = (0x2); - - [NativeTypeName("#define NO_PROPAGATE_INHERIT_ACE (0x4)")] - public const int NO_PROPAGATE_INHERIT_ACE = (0x4); - - [NativeTypeName("#define INHERIT_ONLY_ACE (0x8)")] - public const int INHERIT_ONLY_ACE = (0x8); - - [NativeTypeName("#define INHERITED_ACE (0x10)")] - public const int INHERITED_ACE = (0x10); - - [NativeTypeName("#define VALID_INHERIT_FLAGS (0x1F)")] - public const int VALID_INHERIT_FLAGS = (0x1F); - - [NativeTypeName("#define CRITICAL_ACE_FLAG (0x20)")] - public const int CRITICAL_ACE_FLAG = (0x20); - - [NativeTypeName("#define SUCCESSFUL_ACCESS_ACE_FLAG (0x40)")] - public const int SUCCESSFUL_ACCESS_ACE_FLAG = (0x40); - - [NativeTypeName("#define FAILED_ACCESS_ACE_FLAG (0x80)")] - public const int FAILED_ACCESS_ACE_FLAG = (0x80); - - [NativeTypeName("#define TRUST_PROTECTED_FILTER_ACE_FLAG (0x40)")] - public const int TRUST_PROTECTED_FILTER_ACE_FLAG = (0x40); - - [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_NO_WRITE_UP 0x1")] - public const int SYSTEM_MANDATORY_LABEL_NO_WRITE_UP = 0x1; - - [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_NO_READ_UP 0x2")] - public const int SYSTEM_MANDATORY_LABEL_NO_READ_UP = 0x2; - - [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP 0x4")] - public const int SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP = 0x4; - - [NativeTypeName("#define SYSTEM_MANDATORY_LABEL_VALID_MASK (SYSTEM_MANDATORY_LABEL_NO_WRITE_UP | \\\r\n SYSTEM_MANDATORY_LABEL_NO_READ_UP | \\\r\n SYSTEM_MANDATORY_LABEL_NO_EXECUTE_UP)")] - public const int SYSTEM_MANDATORY_LABEL_VALID_MASK = (0x1 | 0x2 | 0x4); - - [NativeTypeName("#define SYSTEM_PROCESS_TRUST_LABEL_VALID_MASK 0x00ffffff")] - public const int SYSTEM_PROCESS_TRUST_LABEL_VALID_MASK = 0x00ffffff; - - [NativeTypeName("#define SYSTEM_PROCESS_TRUST_NOCONSTRAINT_MASK 0xffffffff")] - public const uint SYSTEM_PROCESS_TRUST_NOCONSTRAINT_MASK = 0xffffffff; - - [NativeTypeName("#define SYSTEM_ACCESS_FILTER_VALID_MASK 0x00ffffff")] - public const int SYSTEM_ACCESS_FILTER_VALID_MASK = 0x00ffffff; - - [NativeTypeName("#define SYSTEM_ACCESS_FILTER_NOCONSTRAINT_MASK 0xffffffff")] - public const uint SYSTEM_ACCESS_FILTER_NOCONSTRAINT_MASK = 0xffffffff; - - [NativeTypeName("#define ACE_OBJECT_TYPE_PRESENT 0x1")] - public const int ACE_OBJECT_TYPE_PRESENT = 0x1; - - [NativeTypeName("#define ACE_INHERITED_OBJECT_TYPE_PRESENT 0x2")] - public const int ACE_INHERITED_OBJECT_TYPE_PRESENT = 0x2; - - [NativeTypeName("#define ACCESS_OBJECT_GUID 0")] - public const int ACCESS_OBJECT_GUID = 0; - - [NativeTypeName("#define ACCESS_PROPERTY_SET_GUID 1")] - public const int ACCESS_PROPERTY_SET_GUID = 1; - - [NativeTypeName("#define ACCESS_PROPERTY_GUID 2")] - public const int ACCESS_PROPERTY_GUID = 2; - - [NativeTypeName("#define ACCESS_MAX_LEVEL 4")] - public const int ACCESS_MAX_LEVEL = 4; - - [NativeTypeName("#define AUDIT_ALLOW_NO_PRIVILEGE 0x1")] - public const int AUDIT_ALLOW_NO_PRIVILEGE = 0x1; - - [NativeTypeName("#define ACCESS_DS_SOURCE_A \"DS\"")] - public static ReadOnlySpan ACCESS_DS_SOURCE_A => new byte[] { 0x44, 0x53, 0x00 }; - - [NativeTypeName("#define ACCESS_DS_SOURCE_W L\"DS\"")] - public const string ACCESS_DS_SOURCE_W = "DS"; - - [NativeTypeName("#define ACCESS_DS_OBJECT_TYPE_NAME_A \"Directory Service Object\"")] - public static ReadOnlySpan ACCESS_DS_OBJECT_TYPE_NAME_A => new byte[] { 0x44, 0x69, 0x72, 0x65, 0x63, 0x74, 0x6F, 0x72, 0x79, 0x20, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x20, 0x4F, 0x62, 0x6A, 0x65, 0x63, 0x74, 0x00 }; - - [NativeTypeName("#define ACCESS_DS_OBJECT_TYPE_NAME_W L\"Directory Service Object\"")] - public const string ACCESS_DS_OBJECT_TYPE_NAME_W = "Directory Service Object"; - - [NativeTypeName("#define PRIVILEGE_SET_ALL_NECESSARY (1)")] - public const int PRIVILEGE_SET_ALL_NECESSARY = (1); - - [NativeTypeName("#define ACCESS_REASON_TYPE_MASK 0x00ff0000")] - public const int ACCESS_REASON_TYPE_MASK = 0x00ff0000; - - [NativeTypeName("#define ACCESS_REASON_DATA_MASK 0x0000ffff")] - public const int ACCESS_REASON_DATA_MASK = 0x0000ffff; - - [NativeTypeName("#define ACCESS_REASON_STAGING_MASK 0x80000000")] - public const uint ACCESS_REASON_STAGING_MASK = 0x80000000; - - [NativeTypeName("#define ACCESS_REASON_EXDATA_MASK 0x7f000000")] - public const int ACCESS_REASON_EXDATA_MASK = 0x7f000000; - - [NativeTypeName("#define DEFAULT_IMPERSONATION_LEVEL SecurityImpersonation")] - public const SECURITY_IMPERSONATION_LEVEL DEFAULT_IMPERSONATION_LEVEL = SecurityImpersonation; - - [NativeTypeName("#define TOKEN_ASSIGN_PRIMARY (0x0001)")] - public const int TOKEN_ASSIGN_PRIMARY = (0x0001); - - [NativeTypeName("#define TOKEN_DUPLICATE (0x0002)")] - public const int TOKEN_DUPLICATE = (0x0002); - - [NativeTypeName("#define TOKEN_IMPERSONATE (0x0004)")] - public const int TOKEN_IMPERSONATE = (0x0004); - - [NativeTypeName("#define TOKEN_QUERY (0x0008)")] - public const int TOKEN_QUERY = (0x0008); - - [NativeTypeName("#define TOKEN_QUERY_SOURCE (0x0010)")] - public const int TOKEN_QUERY_SOURCE = (0x0010); - - [NativeTypeName("#define TOKEN_ADJUST_PRIVILEGES (0x0020)")] - public const int TOKEN_ADJUST_PRIVILEGES = (0x0020); - - [NativeTypeName("#define TOKEN_ADJUST_GROUPS (0x0040)")] - public const int TOKEN_ADJUST_GROUPS = (0x0040); - - [NativeTypeName("#define TOKEN_ADJUST_DEFAULT (0x0080)")] - public const int TOKEN_ADJUST_DEFAULT = (0x0080); - - [NativeTypeName("#define TOKEN_ADJUST_SESSIONID (0x0100)")] - public const int TOKEN_ADJUST_SESSIONID = (0x0100); - - [NativeTypeName("#define TOKEN_ALL_ACCESS_P (STANDARD_RIGHTS_REQUIRED |\\\r\n TOKEN_ASSIGN_PRIMARY |\\\r\n TOKEN_DUPLICATE |\\\r\n TOKEN_IMPERSONATE |\\\r\n TOKEN_QUERY |\\\r\n TOKEN_QUERY_SOURCE |\\\r\n TOKEN_ADJUST_PRIVILEGES |\\\r\n TOKEN_ADJUST_GROUPS |\\\r\n TOKEN_ADJUST_DEFAULT )")] - public const int TOKEN_ALL_ACCESS_P = ((0x000F0000) | (0x0001) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x0080)); - - [NativeTypeName("#define TOKEN_ALL_ACCESS (TOKEN_ALL_ACCESS_P |\\\r\n TOKEN_ADJUST_SESSIONID )")] - public const int TOKEN_ALL_ACCESS = (((0x000F0000) | (0x0001) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x0080)) | (0x0100)); - - [NativeTypeName("#define TOKEN_READ (STANDARD_RIGHTS_READ |\\\r\n TOKEN_QUERY)")] - public const int TOKEN_READ = (((0x00020000)) | (0x0008)); - - [NativeTypeName("#define TOKEN_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n TOKEN_ADJUST_PRIVILEGES |\\\r\n TOKEN_ADJUST_GROUPS |\\\r\n TOKEN_ADJUST_DEFAULT)")] - public const int TOKEN_WRITE = (((0x00020000)) | (0x0020) | (0x0040) | (0x0080)); - - [NativeTypeName("#define TOKEN_EXECUTE (STANDARD_RIGHTS_EXECUTE)")] - public const int TOKEN_EXECUTE = (((0x00020000))); - - [NativeTypeName("#define TOKEN_TRUST_CONSTRAINT_MASK (STANDARD_RIGHTS_READ | \\\r\n TOKEN_QUERY |\\\r\n TOKEN_QUERY_SOURCE )")] - public const int TOKEN_TRUST_CONSTRAINT_MASK = (((0x00020000)) | (0x0008) | (0x0010)); - - [NativeTypeName("#define TOKEN_ACCESS_PSEUDO_HANDLE_WIN8 (TOKEN_QUERY | TOKEN_QUERY_SOURCE)")] - public const int TOKEN_ACCESS_PSEUDO_HANDLE_WIN8 = ((0x0008) | (0x0010)); - - [NativeTypeName("#define TOKEN_ACCESS_PSEUDO_HANDLE TOKEN_ACCESS_PSEUDO_HANDLE_WIN8")] - public const int TOKEN_ACCESS_PSEUDO_HANDLE = ((0x0008) | (0x0010)); + [NativeTypeName("#define GENERIC_READ (0x80000000L)")] + public const uint GENERIC_READ = (0x80000000); - [NativeTypeName("#define TOKEN_USER_MAX_SIZE (sizeof(TOKEN_USER) + SECURITY_MAX_SID_SIZE)")] - public static uint TOKEN_USER_MAX_SIZE => unchecked((uint)(sizeof(TOKEN_USER)) + (12 - 4 + ((15) * 4))); + [NativeTypeName("#define GENERIC_WRITE (0x40000000L)")] + public const int GENERIC_WRITE = (0x40000000); - [NativeTypeName("#define TOKEN_OWNER_MAX_SIZE (sizeof(TOKEN_OWNER) + SECURITY_MAX_SID_SIZE)")] - public static uint TOKEN_OWNER_MAX_SIZE => unchecked((uint)(sizeof(TOKEN_OWNER)) + (12 - 4 + ((15) * 4))); + [NativeTypeName("#define GENERIC_EXECUTE (0x20000000L)")] + public const int GENERIC_EXECUTE = (0x20000000); - [NativeTypeName("#define TOKEN_MANDATORY_POLICY_OFF 0x0")] - public const int TOKEN_MANDATORY_POLICY_OFF = 0x0; + [NativeTypeName("#define GENERIC_ALL (0x10000000L)")] + public const int GENERIC_ALL = (0x10000000); - [NativeTypeName("#define TOKEN_MANDATORY_POLICY_NO_WRITE_UP 0x1")] - public const int TOKEN_MANDATORY_POLICY_NO_WRITE_UP = 0x1; + [NativeTypeName("#define SID_REVISION (1)")] + public const int SID_REVISION = (1); - [NativeTypeName("#define TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN 0x2")] - public const int TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN = 0x2; + [NativeTypeName("#define SID_MAX_SUB_AUTHORITIES (15)")] + public const int SID_MAX_SUB_AUTHORITIES = (15); - [NativeTypeName("#define TOKEN_MANDATORY_POLICY_VALID_MASK (TOKEN_MANDATORY_POLICY_NO_WRITE_UP | \\\r\n TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN)")] - public const int TOKEN_MANDATORY_POLICY_VALID_MASK = (0x1 | 0x2); + [NativeTypeName("#define SID_RECOMMENDED_SUB_AUTHORITIES (1)")] + public const int SID_RECOMMENDED_SUB_AUTHORITIES = (1); - [NativeTypeName("#define TOKEN_INTEGRITY_LEVEL_MAX_SIZE ((((DWORD)(sizeof(TOKEN_MANDATORY_LABEL)) + sizeof(PVOID) - 1) & ~(sizeof(PVOID)-1)) + SECURITY_MAX_SID_SIZE)")] - public static uint TOKEN_INTEGRITY_LEVEL_MAX_SIZE => unchecked((((uint)((uint)(sizeof(TOKEN_MANDATORY_LABEL))) + (uint)(sizeof(void*)) - 1) & ~((uint)(sizeof(void*)) - 1)) + (12 - 4 + ((15) * 4))); + [NativeTypeName("#define SID_HASH_SIZE 32")] + public const int SID_HASH_SIZE = 32; - [NativeTypeName("#define POLICY_AUDIT_SUBCATEGORY_COUNT (59)")] - public const int POLICY_AUDIT_SUBCATEGORY_COUNT = (59); + [NativeTypeName("#define FOREST_USER_RID_MAX (0x000001F3L)")] + public const int FOREST_USER_RID_MAX = (0x000001F3); - [NativeTypeName("#define TOKEN_SOURCE_LENGTH 8")] - public const int TOKEN_SOURCE_LENGTH = 8; + [NativeTypeName("#define ACL_REVISION (2)")] + public const int ACL_REVISION = (2); - [NativeTypeName("#define TOKEN_APPCONTAINER_SID_MAX_SIZE (sizeof(TOKEN_APPCONTAINER_INFORMATION) + SECURITY_MAX_SID_SIZE)")] - public static uint TOKEN_APPCONTAINER_SID_MAX_SIZE => unchecked((uint)(sizeof(TOKEN_APPCONTAINER_INFORMATION)) + (12 - 4 + ((15) * 4))); + [NativeTypeName("#define ACL_REVISION_DS (4)")] + public const int ACL_REVISION_DS = (4); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_INVALID 0x00")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_INVALID = 0x00; + [NativeTypeName("#define ACL_REVISION1 (1)")] + public const int ACL_REVISION1 = (1); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64 0x01")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_INT64 = 0x01; + [NativeTypeName("#define MIN_ACL_REVISION ACL_REVISION2")] + public const int MIN_ACL_REVISION = (2); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64 0x02")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_UINT64 = 0x02; + [NativeTypeName("#define ACL_REVISION2 (2)")] + public const int ACL_REVISION2 = (2); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING 0x03")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_STRING = 0x03; + [NativeTypeName("#define ACL_REVISION3 (3)")] + public const int ACL_REVISION3 = (3); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN 0x04")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_FQBN = 0x04; + [NativeTypeName("#define ACL_REVISION4 (4)")] + public const int ACL_REVISION4 = (4); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_SID 0x05")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_SID = 0x05; + [NativeTypeName("#define OBJECT_INHERIT_ACE (0x1)")] + public const int OBJECT_INHERIT_ACE = (0x1); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN 0x06")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_BOOLEAN = 0x06; + [NativeTypeName("#define NO_PROPAGATE_INHERIT_ACE (0x4)")] + public const int NO_PROPAGATE_INHERIT_ACE = (0x4); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING 0x10")] - public const int CLAIM_SECURITY_ATTRIBUTE_TYPE_OCTET_STRING = 0x10; + [NativeTypeName("#define INHERIT_ONLY_ACE (0x8)")] + public const int INHERIT_ONLY_ACE = (0x8); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE 0x0001")] - public const int CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE = 0x0001; + [NativeTypeName("#define INHERITED_ACE (0x10)")] + public const int INHERITED_ACE = (0x10); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE 0x0002")] - public const int CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE = 0x0002; + [NativeTypeName("#define VALID_INHERIT_FLAGS (0x1F)")] + public const int VALID_INHERIT_FLAGS = (0x1F); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY 0x0004")] - public const int CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY = 0x0004; + [NativeTypeName("#define CRITICAL_ACE_FLAG (0x20)")] + public const int CRITICAL_ACE_FLAG = (0x20); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT 0x0008")] - public const int CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT = 0x0008; + [NativeTypeName("#define SUCCESSFUL_ACCESS_ACE_FLAG (0x40)")] + public const int SUCCESSFUL_ACCESS_ACE_FLAG = (0x40); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_DISABLED 0x0010")] - public const int CLAIM_SECURITY_ATTRIBUTE_DISABLED = 0x0010; + [NativeTypeName("#define FAILED_ACCESS_ACE_FLAG (0x80)")] + public const int FAILED_ACCESS_ACE_FLAG = (0x80); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_MANDATORY 0x0020")] - public const int CLAIM_SECURITY_ATTRIBUTE_MANDATORY = 0x0020; + [NativeTypeName("#define ACE_OBJECT_TYPE_PRESENT 0x1")] + public const int ACE_OBJECT_TYPE_PRESENT = 0x1; - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_VALID_FLAGS ( \\\r\n CLAIM_SECURITY_ATTRIBUTE_NON_INHERITABLE | \\\r\n CLAIM_SECURITY_ATTRIBUTE_VALUE_CASE_SENSITIVE | \\\r\n CLAIM_SECURITY_ATTRIBUTE_USE_FOR_DENY_ONLY | \\\r\n CLAIM_SECURITY_ATTRIBUTE_DISABLED_BY_DEFAULT | \\\r\n CLAIM_SECURITY_ATTRIBUTE_DISABLED | \\\r\n CLAIM_SECURITY_ATTRIBUTE_MANDATORY )")] - public const int CLAIM_SECURITY_ATTRIBUTE_VALID_FLAGS = (0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010 | 0x0020); + [NativeTypeName("#define ACE_INHERITED_OBJECT_TYPE_PRESENT 0x2")] + public const int ACE_INHERITED_OBJECT_TYPE_PRESENT = 0x2; - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTE_CUSTOM_FLAGS 0xFFFF0000")] - public const uint CLAIM_SECURITY_ATTRIBUTE_CUSTOM_FLAGS = 0xFFFF0000; + [NativeTypeName("#define AUDIT_ALLOW_NO_PRIVILEGE 0x1")] + public const int AUDIT_ALLOW_NO_PRIVILEGE = 0x1; - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1 1")] - public const int CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1 = 1; + [NativeTypeName("#define PRIVILEGE_SET_ALL_NECESSARY (1)")] + public const int PRIVILEGE_SET_ALL_NECESSARY = (1); - [NativeTypeName("#define CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION_V1")] - public const int CLAIM_SECURITY_ATTRIBUTES_INFORMATION_VERSION = 1; + [NativeTypeName("#define POLICY_AUDIT_SUBCATEGORY_COUNT (59)")] + public const int POLICY_AUDIT_SUBCATEGORY_COUNT = (59); [NativeTypeName("#define DISABLE_MAX_PRIVILEGE 0x1")] public const int DISABLE_MAX_PRIVILEGE = 0x1; @@ -6095,12 +302,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define SCOPE_SECURITY_INFORMATION (0x00000040L)")] public const int SCOPE_SECURITY_INFORMATION = (0x00000040); - [NativeTypeName("#define ACCESS_FILTER_SECURITY_INFORMATION (0x00000100L)")] - public const int ACCESS_FILTER_SECURITY_INFORMATION = (0x00000100); - - [NativeTypeName("#define BACKUP_SECURITY_INFORMATION (0x00010000L)")] - public const int BACKUP_SECURITY_INFORMATION = (0x00010000); - [NativeTypeName("#define PROTECTED_DACL_SECURITY_INFORMATION (0x80000000L)")] public const uint PROTECTED_DACL_SECURITY_INFORMATION = (0x80000000); @@ -6113,66 +314,12 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define UNPROTECTED_SACL_SECURITY_INFORMATION (0x10000000L)")] public const int UNPROTECTED_SACL_SECURITY_INFORMATION = (0x10000000); - [NativeTypeName("#define THREAD_TERMINATE (0x0001)")] - public const int THREAD_TERMINATE = (0x0001); - - [NativeTypeName("#define THREAD_SUSPEND_RESUME (0x0002)")] - public const int THREAD_SUSPEND_RESUME = (0x0002); - - [NativeTypeName("#define THREAD_GET_CONTEXT (0x0008)")] - public const int THREAD_GET_CONTEXT = (0x0008); - - [NativeTypeName("#define THREAD_SET_CONTEXT (0x0010)")] - public const int THREAD_SET_CONTEXT = (0x0010); - - [NativeTypeName("#define THREAD_QUERY_INFORMATION (0x0040)")] - public const int THREAD_QUERY_INFORMATION = (0x0040); - - [NativeTypeName("#define THREAD_SET_INFORMATION (0x0020)")] - public const int THREAD_SET_INFORMATION = (0x0020); - - [NativeTypeName("#define THREAD_SET_THREAD_TOKEN (0x0080)")] - public const int THREAD_SET_THREAD_TOKEN = (0x0080); - - [NativeTypeName("#define THREAD_IMPERSONATE (0x0100)")] - public const int THREAD_IMPERSONATE = (0x0100); - - [NativeTypeName("#define THREAD_DIRECT_IMPERSONATION (0x0200)")] - public const int THREAD_DIRECT_IMPERSONATION = (0x0200); - - [NativeTypeName("#define THREAD_SET_LIMITED_INFORMATION (0x0400)")] - public const int THREAD_SET_LIMITED_INFORMATION = (0x0400); - - [NativeTypeName("#define THREAD_QUERY_LIMITED_INFORMATION (0x0800)")] - public const int THREAD_QUERY_LIMITED_INFORMATION = (0x0800); - - [NativeTypeName("#define THREAD_RESUME (0x1000)")] - public const int THREAD_RESUME = (0x1000); - - [NativeTypeName("#define THREAD_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | SYNCHRONIZE | \\\r\n 0xFFFF)")] - public const int THREAD_ALL_ACCESS = ((0x000F0000) | (0x00100000) | 0xFFFF); - [NativeTypeName("#define FLS_MAXIMUM_AVAILABLE 4080")] public const int FLS_MAXIMUM_AVAILABLE = 4080; [NativeTypeName("#define TLS_MINIMUM_AVAILABLE 64")] public const int TLS_MINIMUM_AVAILABLE = 64; - [NativeTypeName("#define THREAD_DYNAMIC_CODE_ALLOW 1")] - public const int THREAD_DYNAMIC_CODE_ALLOW = 1; - - [NativeTypeName("#define THREAD_BASE_PRIORITY_LOWRT 15")] - public const int THREAD_BASE_PRIORITY_LOWRT = 15; - - [NativeTypeName("#define THREAD_BASE_PRIORITY_MAX 2")] - public const int THREAD_BASE_PRIORITY_MAX = 2; - - [NativeTypeName("#define THREAD_BASE_PRIORITY_MIN (-2)")] - public const int THREAD_BASE_PRIORITY_MIN = (-2); - - [NativeTypeName("#define THREAD_BASE_PRIORITY_IDLE (-15)")] - public const int THREAD_BASE_PRIORITY_IDLE = (-15); - [NativeTypeName("#define COMPONENT_KTM 0x01")] public const int COMPONENT_KTM = 0x01; @@ -6224,9 +371,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define QUOTA_LIMITS_USE_DEFAULT_LIMITS 0x00000010")] public const int QUOTA_LIMITS_USE_DEFAULT_LIMITS = 0x00000010; - [NativeTypeName("#define THREAD_PROFILING_FLAG_DISPATCH 0x00000001")] - public const int THREAD_PROFILING_FLAG_DISPATCH = 0x00000001; - [NativeTypeName("#define MEMORY_PARTITION_QUERY_ACCESS 0x0001")] public const int MEMORY_PARTITION_QUERY_ACCESS = 0x0001; @@ -6272,279 +416,9 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define CACHE_FULLY_ASSOCIATIVE 0xFF")] public const int CACHE_FULLY_ASSOCIATIVE = 0xFF; - [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_PARKED 0x1")] - public const int SYSTEM_CPU_SET_INFORMATION_PARKED = 0x1; - - [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_ALLOCATED 0x2")] - public const int SYSTEM_CPU_SET_INFORMATION_ALLOCATED = 0x2; - - [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_ALLOCATED_TO_TARGET_PROCESS 0x4")] - public const int SYSTEM_CPU_SET_INFORMATION_ALLOCATED_TO_TARGET_PROCESS = 0x4; - - [NativeTypeName("#define SYSTEM_CPU_SET_INFORMATION_REALTIME 0x8")] - public const int SYSTEM_CPU_SET_INFORMATION_REALTIME = 0x8; - - [NativeTypeName("#define PF_FLOATING_POINT_PRECISION_ERRATA 0")] - public const int PF_FLOATING_POINT_PRECISION_ERRATA = 0; - - [NativeTypeName("#define PF_FLOATING_POINT_EMULATED 1")] - public const int PF_FLOATING_POINT_EMULATED = 1; - - [NativeTypeName("#define PF_COMPARE_EXCHANGE_DOUBLE 2")] - public const int PF_COMPARE_EXCHANGE_DOUBLE = 2; - - [NativeTypeName("#define PF_MMX_INSTRUCTIONS_AVAILABLE 3")] - public const int PF_MMX_INSTRUCTIONS_AVAILABLE = 3; - - [NativeTypeName("#define PF_PPC_MOVEMEM_64BIT_OK 4")] - public const int PF_PPC_MOVEMEM_64BIT_OK = 4; - - [NativeTypeName("#define PF_ALPHA_BYTE_INSTRUCTIONS 5")] - public const int PF_ALPHA_BYTE_INSTRUCTIONS = 5; - - [NativeTypeName("#define PF_XMMI_INSTRUCTIONS_AVAILABLE 6")] - public const int PF_XMMI_INSTRUCTIONS_AVAILABLE = 6; - - [NativeTypeName("#define PF_3DNOW_INSTRUCTIONS_AVAILABLE 7")] - public const int PF_3DNOW_INSTRUCTIONS_AVAILABLE = 7; - - [NativeTypeName("#define PF_RDTSC_INSTRUCTION_AVAILABLE 8")] - public const int PF_RDTSC_INSTRUCTION_AVAILABLE = 8; - - [NativeTypeName("#define PF_PAE_ENABLED 9")] - public const int PF_PAE_ENABLED = 9; - - [NativeTypeName("#define PF_XMMI64_INSTRUCTIONS_AVAILABLE 10")] - public const int PF_XMMI64_INSTRUCTIONS_AVAILABLE = 10; - - [NativeTypeName("#define PF_SSE_DAZ_MODE_AVAILABLE 11")] - public const int PF_SSE_DAZ_MODE_AVAILABLE = 11; - - [NativeTypeName("#define PF_NX_ENABLED 12")] - public const int PF_NX_ENABLED = 12; - - [NativeTypeName("#define PF_SSE3_INSTRUCTIONS_AVAILABLE 13")] - public const int PF_SSE3_INSTRUCTIONS_AVAILABLE = 13; - - [NativeTypeName("#define PF_COMPARE_EXCHANGE128 14")] - public const int PF_COMPARE_EXCHANGE128 = 14; - - [NativeTypeName("#define PF_COMPARE64_EXCHANGE128 15")] - public const int PF_COMPARE64_EXCHANGE128 = 15; - - [NativeTypeName("#define PF_CHANNELS_ENABLED 16")] - public const int PF_CHANNELS_ENABLED = 16; - - [NativeTypeName("#define PF_XSAVE_ENABLED 17")] - public const int PF_XSAVE_ENABLED = 17; - - [NativeTypeName("#define PF_ARM_VFP_32_REGISTERS_AVAILABLE 18")] - public const int PF_ARM_VFP_32_REGISTERS_AVAILABLE = 18; - - [NativeTypeName("#define PF_ARM_NEON_INSTRUCTIONS_AVAILABLE 19")] - public const int PF_ARM_NEON_INSTRUCTIONS_AVAILABLE = 19; - - [NativeTypeName("#define PF_SECOND_LEVEL_ADDRESS_TRANSLATION 20")] - public const int PF_SECOND_LEVEL_ADDRESS_TRANSLATION = 20; - - [NativeTypeName("#define PF_VIRT_FIRMWARE_ENABLED 21")] - public const int PF_VIRT_FIRMWARE_ENABLED = 21; - - [NativeTypeName("#define PF_RDWRFSGSBASE_AVAILABLE 22")] - public const int PF_RDWRFSGSBASE_AVAILABLE = 22; - - [NativeTypeName("#define PF_FASTFAIL_AVAILABLE 23")] - public const int PF_FASTFAIL_AVAILABLE = 23; - - [NativeTypeName("#define PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE 24")] - public const int PF_ARM_DIVIDE_INSTRUCTION_AVAILABLE = 24; - - [NativeTypeName("#define PF_ARM_64BIT_LOADSTORE_ATOMIC 25")] - public const int PF_ARM_64BIT_LOADSTORE_ATOMIC = 25; - - [NativeTypeName("#define PF_ARM_EXTERNAL_CACHE_AVAILABLE 26")] - public const int PF_ARM_EXTERNAL_CACHE_AVAILABLE = 26; - - [NativeTypeName("#define PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE 27")] - public const int PF_ARM_FMAC_INSTRUCTIONS_AVAILABLE = 27; - - [NativeTypeName("#define PF_RDRAND_INSTRUCTION_AVAILABLE 28")] - public const int PF_RDRAND_INSTRUCTION_AVAILABLE = 28; - - [NativeTypeName("#define PF_ARM_V8_INSTRUCTIONS_AVAILABLE 29")] - public const int PF_ARM_V8_INSTRUCTIONS_AVAILABLE = 29; - - [NativeTypeName("#define PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE 30")] - public const int PF_ARM_V8_CRYPTO_INSTRUCTIONS_AVAILABLE = 30; - - [NativeTypeName("#define PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE 31")] - public const int PF_ARM_V8_CRC32_INSTRUCTIONS_AVAILABLE = 31; - - [NativeTypeName("#define PF_RDTSCP_INSTRUCTION_AVAILABLE 32")] - public const int PF_RDTSCP_INSTRUCTION_AVAILABLE = 32; - - [NativeTypeName("#define PF_RDPID_INSTRUCTION_AVAILABLE 33")] - public const int PF_RDPID_INSTRUCTION_AVAILABLE = 33; - - [NativeTypeName("#define PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE 34")] - public const int PF_ARM_V81_ATOMIC_INSTRUCTIONS_AVAILABLE = 34; - - [NativeTypeName("#define PF_MONITORX_INSTRUCTION_AVAILABLE 35")] - public const int PF_MONITORX_INSTRUCTION_AVAILABLE = 35; - - [NativeTypeName("#define PF_SSSE3_INSTRUCTIONS_AVAILABLE 36")] - public const int PF_SSSE3_INSTRUCTIONS_AVAILABLE = 36; - - [NativeTypeName("#define PF_SSE4_1_INSTRUCTIONS_AVAILABLE 37")] - public const int PF_SSE4_1_INSTRUCTIONS_AVAILABLE = 37; - - [NativeTypeName("#define PF_SSE4_2_INSTRUCTIONS_AVAILABLE 38")] - public const int PF_SSE4_2_INSTRUCTIONS_AVAILABLE = 38; - - [NativeTypeName("#define PF_AVX_INSTRUCTIONS_AVAILABLE 39")] - public const int PF_AVX_INSTRUCTIONS_AVAILABLE = 39; - - [NativeTypeName("#define PF_AVX2_INSTRUCTIONS_AVAILABLE 40")] - public const int PF_AVX2_INSTRUCTIONS_AVAILABLE = 40; - - [NativeTypeName("#define PF_AVX512F_INSTRUCTIONS_AVAILABLE 41")] - public const int PF_AVX512F_INSTRUCTIONS_AVAILABLE = 41; - - [NativeTypeName("#define PF_ERMS_AVAILABLE 42")] - public const int PF_ERMS_AVAILABLE = 42; - - [NativeTypeName("#define PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE 43")] - public const int PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE = 43; - - [NativeTypeName("#define PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE 44")] - public const int PF_ARM_V83_JSCVT_INSTRUCTIONS_AVAILABLE = 44; - - [NativeTypeName("#define XSTATE_LEGACY_FLOATING_POINT (0)")] - public const int XSTATE_LEGACY_FLOATING_POINT = (0); - - [NativeTypeName("#define XSTATE_LEGACY_SSE (1)")] - public const int XSTATE_LEGACY_SSE = (1); - - [NativeTypeName("#define XSTATE_GSSE (2)")] - public const int XSTATE_GSSE = (2); - - [NativeTypeName("#define XSTATE_AVX (XSTATE_GSSE)")] - public const int XSTATE_AVX = ((2)); - - [NativeTypeName("#define XSTATE_MPX_BNDREGS (3)")] - public const int XSTATE_MPX_BNDREGS = (3); - - [NativeTypeName("#define XSTATE_MPX_BNDCSR (4)")] - public const int XSTATE_MPX_BNDCSR = (4); - - [NativeTypeName("#define XSTATE_AVX512_KMASK (5)")] - public const int XSTATE_AVX512_KMASK = (5); - - [NativeTypeName("#define XSTATE_AVX512_ZMM_H (6)")] - public const int XSTATE_AVX512_ZMM_H = (6); - - [NativeTypeName("#define XSTATE_AVX512_ZMM (7)")] - public const int XSTATE_AVX512_ZMM = (7); - - [NativeTypeName("#define XSTATE_IPT (8)")] - public const int XSTATE_IPT = (8); - - [NativeTypeName("#define XSTATE_CET_U (11)")] - public const int XSTATE_CET_U = (11); - - [NativeTypeName("#define XSTATE_CET_S (12)")] - public const int XSTATE_CET_S = (12); - - [NativeTypeName("#define XSTATE_AMX_TILE_CONFIG (17)")] - public const int XSTATE_AMX_TILE_CONFIG = (17); - - [NativeTypeName("#define XSTATE_AMX_TILE_DATA (18)")] - public const int XSTATE_AMX_TILE_DATA = (18); - - [NativeTypeName("#define XSTATE_LWP (62)")] - public const int XSTATE_LWP = (62); - [NativeTypeName("#define MAXIMUM_XSTATE_FEATURES (64)")] public const int MAXIMUM_XSTATE_FEATURES = (64); - [NativeTypeName("#define XSTATE_MASK_LEGACY_FLOATING_POINT (1ui64 << (XSTATE_LEGACY_FLOATING_POINT))")] - public const ulong XSTATE_MASK_LEGACY_FLOATING_POINT = (1UL << ((0))); - - [NativeTypeName("#define XSTATE_MASK_LEGACY_SSE (1ui64 << (XSTATE_LEGACY_SSE))")] - public const ulong XSTATE_MASK_LEGACY_SSE = (1UL << ((1))); - - [NativeTypeName("#define XSTATE_MASK_LEGACY (XSTATE_MASK_LEGACY_FLOATING_POINT | \\\r\n XSTATE_MASK_LEGACY_SSE)")] - public const ulong XSTATE_MASK_LEGACY = ((1UL << ((0))) | (1UL << ((1)))); - - [NativeTypeName("#define XSTATE_MASK_GSSE (1ui64 << (XSTATE_GSSE))")] - public const ulong XSTATE_MASK_GSSE = (1UL << ((2))); - - [NativeTypeName("#define XSTATE_MASK_AVX (XSTATE_MASK_GSSE)")] - public const ulong XSTATE_MASK_AVX = ((1UL << ((2)))); - - [NativeTypeName("#define XSTATE_MASK_MPX ((1ui64 << (XSTATE_MPX_BNDREGS)) | \\\r\n (1ui64 << (XSTATE_MPX_BNDCSR)))")] - public const ulong XSTATE_MASK_MPX = ((1UL << ((3))) | (1UL << ((4)))); - - [NativeTypeName("#define XSTATE_MASK_AVX512 ((1ui64 << (XSTATE_AVX512_KMASK)) | \\\r\n (1ui64 << (XSTATE_AVX512_ZMM_H)) | \\\r\n (1ui64 << (XSTATE_AVX512_ZMM)))")] - public const ulong XSTATE_MASK_AVX512 = ((1UL << ((5))) | (1UL << ((6))) | (1UL << ((7)))); - - [NativeTypeName("#define XSTATE_MASK_IPT (1ui64 << (XSTATE_IPT))")] - public const ulong XSTATE_MASK_IPT = (1UL << ((8))); - - [NativeTypeName("#define XSTATE_MASK_CET_U (1ui64 << (XSTATE_CET_U))")] - public const ulong XSTATE_MASK_CET_U = (1UL << ((11))); - - [NativeTypeName("#define XSTATE_MASK_CET_S (1ui64 << (XSTATE_CET_S))")] - public const ulong XSTATE_MASK_CET_S = (1UL << ((12))); - - [NativeTypeName("#define XSTATE_MASK_AMX_TILE_CONFIG (1ui64 << (XSTATE_AMX_TILE_CONFIG))")] - public const ulong XSTATE_MASK_AMX_TILE_CONFIG = (1UL << ((17))); - - [NativeTypeName("#define XSTATE_MASK_AMX_TILE_DATA (1ui64 << (XSTATE_AMX_TILE_DATA))")] - public const ulong XSTATE_MASK_AMX_TILE_DATA = (1UL << ((18))); - - [NativeTypeName("#define XSTATE_MASK_LWP (1ui64 << (XSTATE_LWP))")] - public const ulong XSTATE_MASK_LWP = (1UL << ((62))); - - [NativeTypeName("#define XSTATE_MASK_PERSISTENT ((1ui64 << (XSTATE_MPX_BNDCSR)) | \\\r\n XSTATE_MASK_LWP)")] - public const ulong XSTATE_MASK_PERSISTENT = ((1UL << ((4))) | (1UL << ((62)))); - - [NativeTypeName("#define XSTATE_MASK_USER_VISIBLE_SUPERVISOR (XSTATE_MASK_CET_U)")] - public const ulong XSTATE_MASK_USER_VISIBLE_SUPERVISOR = ((1UL << ((11)))); - - [NativeTypeName("#define XSTATE_MASK_LARGE_FEATURES (XSTATE_MASK_AMX_TILE_DATA)")] - public const ulong XSTATE_MASK_LARGE_FEATURES = ((1UL << ((18)))); - - [NativeTypeName("#define XSTATE_COMPACTION_ENABLE (63)")] - public const int XSTATE_COMPACTION_ENABLE = (63); - - [NativeTypeName("#define XSTATE_COMPACTION_ENABLE_MASK (1ui64 << (XSTATE_COMPACTION_ENABLE))")] - public const ulong XSTATE_COMPACTION_ENABLE_MASK = (1UL << ((63))); - - [NativeTypeName("#define XSTATE_ALIGN_BIT (1)")] - public const int XSTATE_ALIGN_BIT = (1); - - [NativeTypeName("#define XSTATE_ALIGN_MASK (1ui64 << (XSTATE_ALIGN_BIT))")] - public const ulong XSTATE_ALIGN_MASK = (1UL << ((1))); - - [NativeTypeName("#define XSTATE_XFD_BIT (2)")] - public const int XSTATE_XFD_BIT = (2); - - [NativeTypeName("#define XSTATE_XFD_MASK (1ui64 << (XSTATE_XFD_BIT))")] - public const ulong XSTATE_XFD_MASK = (1UL << ((2))); - - [NativeTypeName("#define XSTATE_CONTROLFLAG_XSAVEOPT_MASK (1)")] - public const int XSTATE_CONTROLFLAG_XSAVEOPT_MASK = (1); - - [NativeTypeName("#define XSTATE_CONTROLFLAG_XSAVEC_MASK (2)")] - public const int XSTATE_CONTROLFLAG_XSAVEC_MASK = (2); - - [NativeTypeName("#define XSTATE_CONTROLFLAG_XFD_MASK (4)")] - public const int XSTATE_CONTROLFLAG_XFD_MASK = (4); - - [NativeTypeName("#define XSTATE_CONTROLFLAG_VALID_MASK (XSTATE_CONTROLFLAG_XSAVEOPT_MASK | \\\r\n XSTATE_CONTROLFLAG_XSAVEC_MASK | \\\r\n XSTATE_CONTROLFLAG_XFD_MASK)")] - public const int XSTATE_CONTROLFLAG_VALID_MASK = ((1) | (2) | (4)); - [NativeTypeName("#define CFG_CALL_TARGET_VALID (0x00000001)")] public const int CFG_CALL_TARGET_VALID = (0x00000001); @@ -6554,224 +428,41 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID (0x00000004)")] public const int CFG_CALL_TARGET_CONVERT_EXPORT_SUPPRESSED_TO_VALID = (0x00000004); - [NativeTypeName("#define CFG_CALL_TARGET_VALID_XFG (0x00000008)")] - public const int CFG_CALL_TARGET_VALID_XFG = (0x00000008); - - [NativeTypeName("#define CFG_CALL_TARGET_CONVERT_XFG_TO_CFG (0x00000010)")] - public const int CFG_CALL_TARGET_CONVERT_XFG_TO_CFG = (0x00000010); - - [NativeTypeName("#define SECTION_QUERY 0x0001")] - public const int SECTION_QUERY = 0x0001; - - [NativeTypeName("#define SECTION_MAP_WRITE 0x0002")] - public const int SECTION_MAP_WRITE = 0x0002; - - [NativeTypeName("#define SECTION_MAP_READ 0x0004")] - public const int SECTION_MAP_READ = 0x0004; - - [NativeTypeName("#define SECTION_MAP_EXECUTE 0x0008")] - public const int SECTION_MAP_EXECUTE = 0x0008; - - [NativeTypeName("#define SECTION_EXTEND_SIZE 0x0010")] - public const int SECTION_EXTEND_SIZE = 0x0010; - - [NativeTypeName("#define SECTION_MAP_EXECUTE_EXPLICIT 0x0020")] - public const int SECTION_MAP_EXECUTE_EXPLICIT = 0x0020; - - [NativeTypeName("#define SECTION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SECTION_QUERY|\\\r\n SECTION_MAP_WRITE | \\\r\n SECTION_MAP_READ | \\\r\n SECTION_MAP_EXECUTE | \\\r\n SECTION_EXTEND_SIZE)")] - public const int SECTION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010); - - [NativeTypeName("#define SESSION_QUERY_ACCESS 0x0001")] - public const int SESSION_QUERY_ACCESS = 0x0001; - - [NativeTypeName("#define SESSION_MODIFY_ACCESS 0x0002")] - public const int SESSION_MODIFY_ACCESS = 0x0002; - - [NativeTypeName("#define SESSION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \\\r\n SESSION_QUERY_ACCESS | \\\r\n SESSION_MODIFY_ACCESS)")] - public const int SESSION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002); - - [NativeTypeName("#define PAGE_NOACCESS 0x01")] - public const int PAGE_NOACCESS = 0x01; - - [NativeTypeName("#define PAGE_READONLY 0x02")] - public const int PAGE_READONLY = 0x02; - - [NativeTypeName("#define PAGE_READWRITE 0x04")] - public const int PAGE_READWRITE = 0x04; - - [NativeTypeName("#define PAGE_WRITECOPY 0x08")] - public const int PAGE_WRITECOPY = 0x08; - - [NativeTypeName("#define PAGE_EXECUTE 0x10")] - public const int PAGE_EXECUTE = 0x10; - - [NativeTypeName("#define PAGE_EXECUTE_READ 0x20")] - public const int PAGE_EXECUTE_READ = 0x20; - - [NativeTypeName("#define PAGE_EXECUTE_READWRITE 0x40")] - public const int PAGE_EXECUTE_READWRITE = 0x40; - - [NativeTypeName("#define PAGE_EXECUTE_WRITECOPY 0x80")] - public const int PAGE_EXECUTE_WRITECOPY = 0x80; - - [NativeTypeName("#define PAGE_GUARD 0x100")] - public const int PAGE_GUARD = 0x100; - - [NativeTypeName("#define PAGE_NOCACHE 0x200")] - public const int PAGE_NOCACHE = 0x200; - - [NativeTypeName("#define PAGE_WRITECOMBINE 0x400")] - public const int PAGE_WRITECOMBINE = 0x400; - - [NativeTypeName("#define PAGE_GRAPHICS_NOACCESS 0x0800")] - public const int PAGE_GRAPHICS_NOACCESS = 0x0800; - - [NativeTypeName("#define PAGE_GRAPHICS_READONLY 0x1000")] - public const int PAGE_GRAPHICS_READONLY = 0x1000; - - [NativeTypeName("#define PAGE_GRAPHICS_READWRITE 0x2000")] - public const int PAGE_GRAPHICS_READWRITE = 0x2000; - - [NativeTypeName("#define PAGE_GRAPHICS_EXECUTE 0x4000")] - public const int PAGE_GRAPHICS_EXECUTE = 0x4000; - - [NativeTypeName("#define PAGE_GRAPHICS_EXECUTE_READ 0x8000")] - public const int PAGE_GRAPHICS_EXECUTE_READ = 0x8000; - - [NativeTypeName("#define PAGE_GRAPHICS_EXECUTE_READWRITE 0x10000")] - public const int PAGE_GRAPHICS_EXECUTE_READWRITE = 0x10000; - - [NativeTypeName("#define PAGE_GRAPHICS_COHERENT 0x20000")] - public const int PAGE_GRAPHICS_COHERENT = 0x20000; - - [NativeTypeName("#define PAGE_GRAPHICS_NOCACHE 0x40000")] - public const int PAGE_GRAPHICS_NOCACHE = 0x40000; - - [NativeTypeName("#define PAGE_ENCLAVE_THREAD_CONTROL 0x80000000")] - public const uint PAGE_ENCLAVE_THREAD_CONTROL = 0x80000000; - - [NativeTypeName("#define PAGE_REVERT_TO_FILE_MAP 0x80000000")] - public const uint PAGE_REVERT_TO_FILE_MAP = 0x80000000; - - [NativeTypeName("#define PAGE_TARGETS_NO_UPDATE 0x40000000")] - public const int PAGE_TARGETS_NO_UPDATE = 0x40000000; - - [NativeTypeName("#define PAGE_TARGETS_INVALID 0x40000000")] - public const int PAGE_TARGETS_INVALID = 0x40000000; - - [NativeTypeName("#define PAGE_ENCLAVE_UNVALIDATED 0x20000000")] - public const int PAGE_ENCLAVE_UNVALIDATED = 0x20000000; - - [NativeTypeName("#define PAGE_ENCLAVE_MASK 0x10000000")] - public const int PAGE_ENCLAVE_MASK = 0x10000000; - - [NativeTypeName("#define PAGE_ENCLAVE_DECOMMIT (PAGE_ENCLAVE_MASK | 0)")] - public const int PAGE_ENCLAVE_DECOMMIT = (0x10000000 | 0); - - [NativeTypeName("#define PAGE_ENCLAVE_SS_FIRST (PAGE_ENCLAVE_MASK | 1)")] - public const int PAGE_ENCLAVE_SS_FIRST = (0x10000000 | 1); - - [NativeTypeName("#define PAGE_ENCLAVE_SS_REST (PAGE_ENCLAVE_MASK | 2)")] - public const int PAGE_ENCLAVE_SS_REST = (0x10000000 | 2); - - [NativeTypeName("#define MEM_COMMIT 0x00001000")] - public const int MEM_COMMIT = 0x00001000; - - [NativeTypeName("#define MEM_RESERVE 0x00002000")] - public const int MEM_RESERVE = 0x00002000; - - [NativeTypeName("#define MEM_REPLACE_PLACEHOLDER 0x00004000")] - public const int MEM_REPLACE_PLACEHOLDER = 0x00004000; - - [NativeTypeName("#define MEM_RESERVE_PLACEHOLDER 0x00040000")] - public const int MEM_RESERVE_PLACEHOLDER = 0x00040000; - - [NativeTypeName("#define MEM_RESET 0x00080000")] - public const int MEM_RESET = 0x00080000; - - [NativeTypeName("#define MEM_TOP_DOWN 0x00100000")] - public const int MEM_TOP_DOWN = 0x00100000; - - [NativeTypeName("#define MEM_WRITE_WATCH 0x00200000")] - public const int MEM_WRITE_WATCH = 0x00200000; - - [NativeTypeName("#define MEM_PHYSICAL 0x00400000")] - public const int MEM_PHYSICAL = 0x00400000; - - [NativeTypeName("#define MEM_ROTATE 0x00800000")] - public const int MEM_ROTATE = 0x00800000; - - [NativeTypeName("#define MEM_DIFFERENT_IMAGE_BASE_OK 0x00800000")] - public const int MEM_DIFFERENT_IMAGE_BASE_OK = 0x00800000; - - [NativeTypeName("#define MEM_RESET_UNDO 0x01000000")] - public const int MEM_RESET_UNDO = 0x01000000; - - [NativeTypeName("#define MEM_LARGE_PAGES 0x20000000")] - public const int MEM_LARGE_PAGES = 0x20000000; - - [NativeTypeName("#define MEM_4MB_PAGES 0x80000000")] - public const uint MEM_4MB_PAGES = 0x80000000; - - [NativeTypeName("#define MEM_64K_PAGES (MEM_LARGE_PAGES | MEM_PHYSICAL)")] - public const int MEM_64K_PAGES = (0x20000000 | 0x00400000); - - [NativeTypeName("#define MEM_UNMAP_WITH_TRANSIENT_BOOST 0x00000001")] - public const int MEM_UNMAP_WITH_TRANSIENT_BOOST = 0x00000001; - - [NativeTypeName("#define MEM_COALESCE_PLACEHOLDERS 0x00000001")] - public const int MEM_COALESCE_PLACEHOLDERS = 0x00000001; - - [NativeTypeName("#define MEM_PRESERVE_PLACEHOLDER 0x00000002")] - public const int MEM_PRESERVE_PLACEHOLDER = 0x00000002; - - [NativeTypeName("#define MEM_DECOMMIT 0x00004000")] - public const int MEM_DECOMMIT = 0x00004000; - - [NativeTypeName("#define MEM_RELEASE 0x00008000")] - public const int MEM_RELEASE = 0x00008000; - - [NativeTypeName("#define MEM_FREE 0x00010000")] - public const int MEM_FREE = 0x00010000; - - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_GRAPHICS 0x00000001")] - public const int MEM_EXTENDED_PARAMETER_GRAPHICS = 0x00000001; - - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NONPAGED 0x00000002")] - public const int MEM_EXTENDED_PARAMETER_NONPAGED = 0x00000002; + [NativeTypeName("#define CFG_CALL_TARGET_VALID_XFG (0x00000008)")] + public const int CFG_CALL_TARGET_VALID_XFG = (0x00000008); - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_ZERO_PAGES_OPTIONAL 0x00000004")] - public const int MEM_EXTENDED_PARAMETER_ZERO_PAGES_OPTIONAL = 0x00000004; + [NativeTypeName("#define CFG_CALL_TARGET_CONVERT_XFG_TO_CFG (0x00000010)")] + public const int CFG_CALL_TARGET_CONVERT_XFG_TO_CFG = (0x00000010); - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NONPAGED_LARGE 0x00000008")] - public const int MEM_EXTENDED_PARAMETER_NONPAGED_LARGE = 0x00000008; + [NativeTypeName("#define SECTION_QUERY 0x0001")] + public const int SECTION_QUERY = 0x0001; - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NONPAGED_HUGE 0x00000010")] - public const int MEM_EXTENDED_PARAMETER_NONPAGED_HUGE = 0x00000010; + [NativeTypeName("#define SECTION_MAP_WRITE 0x0002")] + public const int SECTION_MAP_WRITE = 0x0002; - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_SOFT_FAULT_PAGES 0x00000020")] - public const int MEM_EXTENDED_PARAMETER_SOFT_FAULT_PAGES = 0x00000020; + [NativeTypeName("#define SECTION_MAP_READ 0x0004")] + public const int SECTION_MAP_READ = 0x0004; - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_EC_CODE 0x00000040")] - public const int MEM_EXTENDED_PARAMETER_EC_CODE = 0x00000040; + [NativeTypeName("#define SECTION_MAP_EXECUTE 0x0008")] + public const int SECTION_MAP_EXECUTE = 0x0008; - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_NUMA_NODE_MANDATORY MINLONG64")] - public const long MEM_EXTENDED_PARAMETER_NUMA_NODE_MANDATORY = unchecked((long)(~((long)(((ulong)(~((ulong)(0)))) >> 1)))); + [NativeTypeName("#define SECTION_EXTEND_SIZE 0x0010")] + public const int SECTION_EXTEND_SIZE = 0x0010; - [NativeTypeName("#define MEM_EXTENDED_PARAMETER_TYPE_BITS 8")] - public const int MEM_EXTENDED_PARAMETER_TYPE_BITS = 8; + [NativeTypeName("#define SECTION_MAP_EXECUTE_EXPLICIT 0x0020")] + public const int SECTION_MAP_EXECUTE_EXPLICIT = 0x0020; - [NativeTypeName("#define MEM_DEDICATED_ATTRIBUTE_NOT_SPECIFIED ((DWORD64) -1)")] - public const ulong MEM_DEDICATED_ATTRIBUTE_NOT_SPECIFIED = unchecked((ulong)(-1)); + [NativeTypeName("#define SECTION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SECTION_QUERY|\\\r\n SECTION_MAP_WRITE | \\\r\n SECTION_MAP_READ | \\\r\n SECTION_MAP_EXECUTE | \\\r\n SECTION_EXTEND_SIZE)")] + public const int SECTION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002 | 0x0004 | 0x0008 | 0x0010); - [NativeTypeName("#define MEM_PRIVATE 0x00020000")] - public const int MEM_PRIVATE = 0x00020000; + [NativeTypeName("#define SESSION_QUERY_ACCESS 0x0001")] + public const int SESSION_QUERY_ACCESS = 0x0001; - [NativeTypeName("#define MEM_MAPPED 0x00040000")] - public const int MEM_MAPPED = 0x00040000; + [NativeTypeName("#define SESSION_MODIFY_ACCESS 0x0002")] + public const int SESSION_MODIFY_ACCESS = 0x0002; - [NativeTypeName("#define MEM_IMAGE 0x01000000")] - public const int MEM_IMAGE = 0x01000000; + [NativeTypeName("#define SESSION_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \\\r\n SESSION_QUERY_ACCESS | \\\r\n SESSION_MODIFY_ACCESS)")] + public const int SESSION_ALL_ACCESS = ((0x000F0000) | 0x0001 | 0x0002); [NativeTypeName("#define WRITE_WATCH_FLAG_RESET 0x01")] public const int WRITE_WATCH_FLAG_RESET = 0x01; @@ -6839,39 +530,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define MAXIMUM_REPARSE_DATA_BUFFER_SIZE ( 16 * 1024 )")] public const int MAXIMUM_REPARSE_DATA_BUFFER_SIZE = (16 * 1024); - [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_RESUME 0x00000001")] - public const int SCRUB_DATA_INPUT_FLAG_RESUME = 0x00000001; - - [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SKIP_IN_SYNC 0x00000002")] - public const int SCRUB_DATA_INPUT_FLAG_SKIP_IN_SYNC = 0x00000002; - - [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SKIP_NON_INTEGRITY_DATA 0x00000004")] - public const int SCRUB_DATA_INPUT_FLAG_SKIP_NON_INTEGRITY_DATA = 0x00000004; - - [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_IGNORE_REDUNDANCY 0x00000008")] - public const int SCRUB_DATA_INPUT_FLAG_IGNORE_REDUNDANCY = 0x00000008; - - [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SKIP_DATA 0x00000010")] - public const int SCRUB_DATA_INPUT_FLAG_SKIP_DATA = 0x00000010; - - [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_SCRUB_BY_OBJECT_ID 0x00000020")] - public const int SCRUB_DATA_INPUT_FLAG_SCRUB_BY_OBJECT_ID = 0x00000020; - - [NativeTypeName("#define SCRUB_DATA_INPUT_FLAG_OPLOCK_NOT_ACQUIRED 0x00000040")] - public const int SCRUB_DATA_INPUT_FLAG_OPLOCK_NOT_ACQUIRED = 0x00000040; - - [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_INCOMPLETE 0x00000001")] - public const int SCRUB_DATA_OUTPUT_FLAG_INCOMPLETE = 0x00000001; - - [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_NON_USER_DATA_RANGE 0x00010000")] - public const int SCRUB_DATA_OUTPUT_FLAG_NON_USER_DATA_RANGE = 0x00010000; - - [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_PARITY_EXTENT_DATA_RETURNED 0x00020000")] - public const int SCRUB_DATA_OUTPUT_FLAG_PARITY_EXTENT_DATA_RETURNED = 0x00020000; - - [NativeTypeName("#define SCRUB_DATA_OUTPUT_FLAG_RESUME_CONTEXT_LENGTH_SPECIFIED 0x00040000")] - public const int SCRUB_DATA_OUTPUT_FLAG_RESUME_CONTEXT_LENGTH_SPECIFIED = 0x00040000; - [NativeTypeName("#define SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS (0x00000001)")] public const int SHUFFLE_FILE_FLAG_SKIP_INITIALIZING_NEW_CLUSTERS = (0x00000001); @@ -6887,36 +545,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define DUPLICATE_SAME_ACCESS 0x00000002")] public const int DUPLICATE_SAME_ACCESS = 0x00000002; - [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_NOTHING 0")] - public const int POWERBUTTON_ACTION_INDEX_NOTHING = 0; - - [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_SLEEP 1")] - public const int POWERBUTTON_ACTION_INDEX_SLEEP = 1; - - [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_HIBERNATE 2")] - public const int POWERBUTTON_ACTION_INDEX_HIBERNATE = 2; - - [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_SHUTDOWN 3")] - public const int POWERBUTTON_ACTION_INDEX_SHUTDOWN = 3; - - [NativeTypeName("#define POWERBUTTON_ACTION_INDEX_TURN_OFF_THE_DISPLAY 4")] - public const int POWERBUTTON_ACTION_INDEX_TURN_OFF_THE_DISPLAY = 4; - - [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_NOTHING 0")] - public const int POWERBUTTON_ACTION_VALUE_NOTHING = 0; - - [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_SLEEP 2")] - public const int POWERBUTTON_ACTION_VALUE_SLEEP = 2; - - [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_HIBERNATE 3")] - public const int POWERBUTTON_ACTION_VALUE_HIBERNATE = 3; - - [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_SHUTDOWN 6")] - public const int POWERBUTTON_ACTION_VALUE_SHUTDOWN = 6; - - [NativeTypeName("#define POWERBUTTON_ACTION_VALUE_TURN_OFF_THE_DISPLAY 8")] - public const int POWERBUTTON_ACTION_VALUE_TURN_OFF_THE_DISPLAY = 8; - [NativeTypeName("#define PERFSTATE_POLICY_CHANGE_IDEAL 0")] public const int PERFSTATE_POLICY_CHANGE_IDEAL = 0; @@ -6950,45 +578,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define CORE_PARKING_POLICY_CHANGE_MAX CORE_PARKING_POLICY_CHANGE_MULTISTEP")] public const int CORE_PARKING_POLICY_CHANGE_MAX = 3; - [NativeTypeName("#define POWER_DEVICE_IDLE_POLICY_PERFORMANCE 0")] - public const int POWER_DEVICE_IDLE_POLICY_PERFORMANCE = 0; - - [NativeTypeName("#define POWER_DEVICE_IDLE_POLICY_CONSERVATIVE 1")] - public const int POWER_DEVICE_IDLE_POLICY_CONSERVATIVE = 1; - - [NativeTypeName("#define POWER_CONNECTIVITY_IN_STANDBY_DISABLED 0")] - public const int POWER_CONNECTIVITY_IN_STANDBY_DISABLED = 0; - - [NativeTypeName("#define POWER_CONNECTIVITY_IN_STANDBY_ENABLED 1")] - public const int POWER_CONNECTIVITY_IN_STANDBY_ENABLED = 1; - - [NativeTypeName("#define POWER_CONNECTIVITY_IN_STANDBY_SYSTEM_MANAGED 2")] - public const int POWER_CONNECTIVITY_IN_STANDBY_SYSTEM_MANAGED = 2; - - [NativeTypeName("#define POWER_DISCONNECTED_STANDBY_MODE_NORMAL 0")] - public const int POWER_DISCONNECTED_STANDBY_MODE_NORMAL = 0; - - [NativeTypeName("#define POWER_DISCONNECTED_STANDBY_MODE_AGGRESSIVE 1")] - public const int POWER_DISCONNECTED_STANDBY_MODE_AGGRESSIVE = 1; - - [NativeTypeName("#define POWER_SYSTEM_MAXIMUM 7")] - public const int POWER_SYSTEM_MAXIMUM = 7; - - [NativeTypeName("#define ES_SYSTEM_REQUIRED ((DWORD)0x00000001)")] - public const uint ES_SYSTEM_REQUIRED = ((uint)(0x00000001)); - - [NativeTypeName("#define ES_DISPLAY_REQUIRED ((DWORD)0x00000002)")] - public const uint ES_DISPLAY_REQUIRED = ((uint)(0x00000002)); - - [NativeTypeName("#define ES_USER_PRESENT ((DWORD)0x00000004)")] - public const uint ES_USER_PRESENT = ((uint)(0x00000004)); - - [NativeTypeName("#define ES_AWAYMODE_REQUIRED ((DWORD)0x00000040)")] - public const uint ES_AWAYMODE_REQUIRED = ((uint)(0x00000040)); - - [NativeTypeName("#define ES_CONTINUOUS ((DWORD)0x80000000)")] - public const uint ES_CONTINUOUS = ((uint)(0x80000000)); - [NativeTypeName("#define DIAGNOSTIC_REASON_VERSION 0")] public const int DIAGNOSTIC_REASON_VERSION = 0; @@ -7004,15 +593,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define DIAGNOSTIC_REASON_INVALID_FLAGS (~0x80000007)")] public const uint DIAGNOSTIC_REASON_INVALID_FLAGS = (~0x80000007); - [NativeTypeName("#define POWER_REQUEST_CONTEXT_VERSION DIAGNOSTIC_REASON_VERSION")] - public const int POWER_REQUEST_CONTEXT_VERSION = 0; - - [NativeTypeName("#define POWER_REQUEST_CONTEXT_SIMPLE_STRING DIAGNOSTIC_REASON_SIMPLE_STRING")] - public const int POWER_REQUEST_CONTEXT_SIMPLE_STRING = 0x00000001; - - [NativeTypeName("#define POWER_REQUEST_CONTEXT_DETAILED_STRING DIAGNOSTIC_REASON_DETAILED_STRING")] - public const int POWER_REQUEST_CONTEXT_DETAILED_STRING = 0x00000002; - [NativeTypeName("#define PDCAP_D0_SUPPORTED 0x00000001")] public const int PDCAP_D0_SUPPORTED = 0x00000001; @@ -7040,33 +620,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define PDCAP_WARM_EJECT_SUPPORTED 0x00000100")] public const int PDCAP_WARM_EJECT_SUPPORTED = 0x00000100; - [NativeTypeName("#define POWER_SETTING_VALUE_VERSION (0x1)")] - public const int POWER_SETTING_VALUE_VERSION = (0x1); - - [NativeTypeName("#define POWER_PLATFORM_ROLE_V1 (0x00000001)")] - public const int POWER_PLATFORM_ROLE_V1 = (0x00000001); - - [NativeTypeName("#define POWER_PLATFORM_ROLE_V1_MAX (PlatformRolePerformanceServer + 1)")] - public const int POWER_PLATFORM_ROLE_V1_MAX = ((int)(PlatformRolePerformanceServer) + 1); - - [NativeTypeName("#define POWER_PLATFORM_ROLE_V2 (0x00000002)")] - public const int POWER_PLATFORM_ROLE_V2 = (0x00000002); - - [NativeTypeName("#define POWER_PLATFORM_ROLE_V2_MAX (PlatformRoleSlate + 1)")] - public const int POWER_PLATFORM_ROLE_V2_MAX = ((int)(PlatformRoleSlate) + 1); - - [NativeTypeName("#define POWER_PLATFORM_ROLE_VERSION POWER_PLATFORM_ROLE_V2")] - public const int POWER_PLATFORM_ROLE_VERSION = (0x00000002); - - [NativeTypeName("#define POWER_PLATFORM_ROLE_VERSION_MAX POWER_PLATFORM_ROLE_V2_MAX")] - public const int POWER_PLATFORM_ROLE_VERSION_MAX = ((int)(PlatformRoleSlate) + 1); - - [NativeTypeName("#define PROC_IDLE_BUCKET_COUNT 6")] - public const int PROC_IDLE_BUCKET_COUNT = 6; - - [NativeTypeName("#define PROC_IDLE_BUCKET_COUNT_EX 16")] - public const int PROC_IDLE_BUCKET_COUNT_EX = 16; - [NativeTypeName("#define ACPI_PPM_SOFTWARE_ALL 0xFC")] public const int ACPI_PPM_SOFTWARE_ALL = 0xFC; @@ -7076,168 +629,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define ACPI_PPM_HARDWARE_ALL 0xFE")] public const int ACPI_PPM_HARDWARE_ALL = 0xFE; - [NativeTypeName("#define MS_PPM_SOFTWARE_ALL 0x1")] - public const int MS_PPM_SOFTWARE_ALL = 0x1; - - [NativeTypeName("#define PPM_FIRMWARE_ACPI1C2 0x00000001")] - public const int PPM_FIRMWARE_ACPI1C2 = 0x00000001; - - [NativeTypeName("#define PPM_FIRMWARE_ACPI1C3 0x00000002")] - public const int PPM_FIRMWARE_ACPI1C3 = 0x00000002; - - [NativeTypeName("#define PPM_FIRMWARE_ACPI1TSTATES 0x00000004")] - public const int PPM_FIRMWARE_ACPI1TSTATES = 0x00000004; - - [NativeTypeName("#define PPM_FIRMWARE_CST 0x00000008")] - public const int PPM_FIRMWARE_CST = 0x00000008; - - [NativeTypeName("#define PPM_FIRMWARE_CSD 0x00000010")] - public const int PPM_FIRMWARE_CSD = 0x00000010; - - [NativeTypeName("#define PPM_FIRMWARE_PCT 0x00000020")] - public const int PPM_FIRMWARE_PCT = 0x00000020; - - [NativeTypeName("#define PPM_FIRMWARE_PSS 0x00000040")] - public const int PPM_FIRMWARE_PSS = 0x00000040; - - [NativeTypeName("#define PPM_FIRMWARE_XPSS 0x00000080")] - public const int PPM_FIRMWARE_XPSS = 0x00000080; - - [NativeTypeName("#define PPM_FIRMWARE_PPC 0x00000100")] - public const int PPM_FIRMWARE_PPC = 0x00000100; - - [NativeTypeName("#define PPM_FIRMWARE_PSD 0x00000200")] - public const int PPM_FIRMWARE_PSD = 0x00000200; - - [NativeTypeName("#define PPM_FIRMWARE_PTC 0x00000400")] - public const int PPM_FIRMWARE_PTC = 0x00000400; - - [NativeTypeName("#define PPM_FIRMWARE_TSS 0x00000800")] - public const int PPM_FIRMWARE_TSS = 0x00000800; - - [NativeTypeName("#define PPM_FIRMWARE_TPC 0x00001000")] - public const int PPM_FIRMWARE_TPC = 0x00001000; - - [NativeTypeName("#define PPM_FIRMWARE_TSD 0x00002000")] - public const int PPM_FIRMWARE_TSD = 0x00002000; - - [NativeTypeName("#define PPM_FIRMWARE_PCCH 0x00004000")] - public const int PPM_FIRMWARE_PCCH = 0x00004000; - - [NativeTypeName("#define PPM_FIRMWARE_PCCP 0x00008000")] - public const int PPM_FIRMWARE_PCCP = 0x00008000; - - [NativeTypeName("#define PPM_FIRMWARE_OSC 0x00010000")] - public const int PPM_FIRMWARE_OSC = 0x00010000; - - [NativeTypeName("#define PPM_FIRMWARE_PDC 0x00020000")] - public const int PPM_FIRMWARE_PDC = 0x00020000; - - [NativeTypeName("#define PPM_FIRMWARE_CPC 0x00040000")] - public const int PPM_FIRMWARE_CPC = 0x00040000; - - [NativeTypeName("#define PPM_FIRMWARE_LPI 0x00080000")] - public const int PPM_FIRMWARE_LPI = 0x00080000; - - [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_NONE 0x00000000")] - public const int PPM_PERFORMANCE_IMPLEMENTATION_NONE = 0x00000000; - - [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_PSTATES 0x00000001")] - public const int PPM_PERFORMANCE_IMPLEMENTATION_PSTATES = 0x00000001; - - [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_PCCV1 0x00000002")] - public const int PPM_PERFORMANCE_IMPLEMENTATION_PCCV1 = 0x00000002; - - [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_CPPC 0x00000003")] - public const int PPM_PERFORMANCE_IMPLEMENTATION_CPPC = 0x00000003; - - [NativeTypeName("#define PPM_PERFORMANCE_IMPLEMENTATION_PEP 0x00000004")] - public const int PPM_PERFORMANCE_IMPLEMENTATION_PEP = 0x00000004; - - [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_NONE 0x00000000")] - public const int PPM_IDLE_IMPLEMENTATION_NONE = 0x00000000; - - [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_CSTATES 0x00000001")] - public const int PPM_IDLE_IMPLEMENTATION_CSTATES = 0x00000001; - - [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_PEP 0x00000002")] - public const int PPM_IDLE_IMPLEMENTATION_PEP = 0x00000002; - - [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_MICROPEP 0x00000003")] - public const int PPM_IDLE_IMPLEMENTATION_MICROPEP = 0x00000003; - - [NativeTypeName("#define PPM_IDLE_IMPLEMENTATION_LPISTATES 0x00000004")] - public const int PPM_IDLE_IMPLEMENTATION_LPISTATES = 0x00000004; - - [NativeTypeName("#define POWER_ACTION_QUERY_ALLOWED 0x00000001")] - public const int POWER_ACTION_QUERY_ALLOWED = 0x00000001; - - [NativeTypeName("#define POWER_ACTION_UI_ALLOWED 0x00000002")] - public const int POWER_ACTION_UI_ALLOWED = 0x00000002; - - [NativeTypeName("#define POWER_ACTION_OVERRIDE_APPS 0x00000004")] - public const int POWER_ACTION_OVERRIDE_APPS = 0x00000004; - - [NativeTypeName("#define POWER_ACTION_HIBERBOOT 0x00000008")] - public const int POWER_ACTION_HIBERBOOT = 0x00000008; - - [NativeTypeName("#define POWER_ACTION_USER_NOTIFY 0x00000010")] - public const int POWER_ACTION_USER_NOTIFY = 0x00000010; - - [NativeTypeName("#define POWER_ACTION_DOZE_TO_HIBERNATE 0x00000020")] - public const int POWER_ACTION_DOZE_TO_HIBERNATE = 0x00000020; - - [NativeTypeName("#define POWER_ACTION_ACPI_CRITICAL 0x01000000")] - public const int POWER_ACTION_ACPI_CRITICAL = 0x01000000; - - [NativeTypeName("#define POWER_ACTION_ACPI_USER_NOTIFY 0x02000000")] - public const int POWER_ACTION_ACPI_USER_NOTIFY = 0x02000000; - - [NativeTypeName("#define POWER_ACTION_DIRECTED_DRIPS 0x04000000")] - public const int POWER_ACTION_DIRECTED_DRIPS = 0x04000000; - - [NativeTypeName("#define POWER_ACTION_PSEUDO_TRANSITION 0x08000000")] - public const int POWER_ACTION_PSEUDO_TRANSITION = 0x08000000; - - [NativeTypeName("#define POWER_ACTION_LIGHTEST_FIRST 0x10000000")] - public const int POWER_ACTION_LIGHTEST_FIRST = 0x10000000; - - [NativeTypeName("#define POWER_ACTION_LOCK_CONSOLE 0x20000000")] - public const int POWER_ACTION_LOCK_CONSOLE = 0x20000000; - - [NativeTypeName("#define POWER_ACTION_DISABLE_WAKES 0x40000000")] - public const int POWER_ACTION_DISABLE_WAKES = 0x40000000; - - [NativeTypeName("#define POWER_ACTION_CRITICAL 0x80000000")] - public const uint POWER_ACTION_CRITICAL = 0x80000000; - - [NativeTypeName("#define POWER_LEVEL_USER_NOTIFY_TEXT 0x00000001")] - public const int POWER_LEVEL_USER_NOTIFY_TEXT = 0x00000001; - - [NativeTypeName("#define POWER_LEVEL_USER_NOTIFY_SOUND 0x00000002")] - public const int POWER_LEVEL_USER_NOTIFY_SOUND = 0x00000002; - - [NativeTypeName("#define POWER_LEVEL_USER_NOTIFY_EXEC 0x00000004")] - public const int POWER_LEVEL_USER_NOTIFY_EXEC = 0x00000004; - - [NativeTypeName("#define POWER_USER_NOTIFY_BUTTON 0x00000008")] - public const int POWER_USER_NOTIFY_BUTTON = 0x00000008; - - [NativeTypeName("#define POWER_USER_NOTIFY_SHUTDOWN 0x00000010")] - public const int POWER_USER_NOTIFY_SHUTDOWN = 0x00000010; - - [NativeTypeName("#define POWER_USER_NOTIFY_FORCED_SHUTDOWN 0x00000020")] - public const int POWER_USER_NOTIFY_FORCED_SHUTDOWN = 0x00000020; - - [NativeTypeName("#define POWER_FORCE_TRIGGER_RESET 0x80000000")] - public const uint POWER_FORCE_TRIGGER_RESET = 0x80000000; - - [NativeTypeName("#define BATTERY_DISCHARGE_FLAGS_EVENTCODE_MASK 0x00000007")] - public const int BATTERY_DISCHARGE_FLAGS_EVENTCODE_MASK = 0x00000007; - - [NativeTypeName("#define BATTERY_DISCHARGE_FLAGS_ENABLE 0x80000000")] - public const uint BATTERY_DISCHARGE_FLAGS_ENABLE = 0x80000000; - [NativeTypeName("#define NUM_DISCHARGE_POLICIES 4")] public const int NUM_DISCHARGE_POLICIES = 4; @@ -7275,361 +666,46 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ public const int HIBERFILE_TYPE_MAX = 0x03; [NativeTypeName("#define N_BTMASK 0x000F")] - public const int N_BTMASK = 0x000F; - - [NativeTypeName("#define N_TMASK 0x0030")] - public const int N_TMASK = 0x0030; - - [NativeTypeName("#define N_TMASK1 0x00C0")] - public const int N_TMASK1 = 0x00C0; - - [NativeTypeName("#define N_TMASK2 0x00F0")] - public const int N_TMASK2 = 0x00F0; - - [NativeTypeName("#define N_BTSHFT 4")] - public const int N_BTSHFT = 4; - - [NativeTypeName("#define N_TSHIFT 2")] - public const int N_TSHIFT = 2; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_INST_WORD_X 3")] - public const int EMARCH_ENC_I17_IMM7B_INST_WORD_X = 3; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_SIZE_X 7")] - public const int EMARCH_ENC_I17_IMM7B_SIZE_X = 7; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_INST_WORD_POS_X 4")] - public const int EMARCH_ENC_I17_IMM7B_INST_WORD_POS_X = 4; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM7B_VAL_POS_X 0")] - public const int EMARCH_ENC_I17_IMM7B_VAL_POS_X = 0; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_INST_WORD_X 3")] - public const int EMARCH_ENC_I17_IMM9D_INST_WORD_X = 3; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_SIZE_X 9")] - public const int EMARCH_ENC_I17_IMM9D_SIZE_X = 9; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_INST_WORD_POS_X 18")] - public const int EMARCH_ENC_I17_IMM9D_INST_WORD_POS_X = 18; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM9D_VAL_POS_X 7")] - public const int EMARCH_ENC_I17_IMM9D_VAL_POS_X = 7; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_INST_WORD_X 3")] - public const int EMARCH_ENC_I17_IMM5C_INST_WORD_X = 3; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_SIZE_X 5")] - public const int EMARCH_ENC_I17_IMM5C_SIZE_X = 5; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_INST_WORD_POS_X 13")] - public const int EMARCH_ENC_I17_IMM5C_INST_WORD_POS_X = 13; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM5C_VAL_POS_X 16")] - public const int EMARCH_ENC_I17_IMM5C_VAL_POS_X = 16; - - [NativeTypeName("#define EMARCH_ENC_I17_IC_INST_WORD_X 3")] - public const int EMARCH_ENC_I17_IC_INST_WORD_X = 3; - - [NativeTypeName("#define EMARCH_ENC_I17_IC_SIZE_X 1")] - public const int EMARCH_ENC_I17_IC_SIZE_X = 1; - - [NativeTypeName("#define EMARCH_ENC_I17_IC_INST_WORD_POS_X 12")] - public const int EMARCH_ENC_I17_IC_INST_WORD_POS_X = 12; - - [NativeTypeName("#define EMARCH_ENC_I17_IC_VAL_POS_X 21")] - public const int EMARCH_ENC_I17_IC_VAL_POS_X = 21; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_INST_WORD_X 1")] - public const int EMARCH_ENC_I17_IMM41a_INST_WORD_X = 1; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_SIZE_X 10")] - public const int EMARCH_ENC_I17_IMM41a_SIZE_X = 10; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_INST_WORD_POS_X 14")] - public const int EMARCH_ENC_I17_IMM41a_INST_WORD_POS_X = 14; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41a_VAL_POS_X 22")] - public const int EMARCH_ENC_I17_IMM41a_VAL_POS_X = 22; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_INST_WORD_X 1")] - public const int EMARCH_ENC_I17_IMM41b_INST_WORD_X = 1; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_SIZE_X 8")] - public const int EMARCH_ENC_I17_IMM41b_SIZE_X = 8; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_INST_WORD_POS_X 24")] - public const int EMARCH_ENC_I17_IMM41b_INST_WORD_POS_X = 24; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41b_VAL_POS_X 32")] - public const int EMARCH_ENC_I17_IMM41b_VAL_POS_X = 32; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_INST_WORD_X 2")] - public const int EMARCH_ENC_I17_IMM41c_INST_WORD_X = 2; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_SIZE_X 23")] - public const int EMARCH_ENC_I17_IMM41c_SIZE_X = 23; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_INST_WORD_POS_X 0")] - public const int EMARCH_ENC_I17_IMM41c_INST_WORD_POS_X = 0; - - [NativeTypeName("#define EMARCH_ENC_I17_IMM41c_VAL_POS_X 40")] - public const int EMARCH_ENC_I17_IMM41c_VAL_POS_X = 40; - - [NativeTypeName("#define EMARCH_ENC_I17_SIGN_INST_WORD_X 3")] - public const int EMARCH_ENC_I17_SIGN_INST_WORD_X = 3; - - [NativeTypeName("#define EMARCH_ENC_I17_SIGN_SIZE_X 1")] - public const int EMARCH_ENC_I17_SIGN_SIZE_X = 1; - - [NativeTypeName("#define EMARCH_ENC_I17_SIGN_INST_WORD_POS_X 27")] - public const int EMARCH_ENC_I17_SIGN_INST_WORD_POS_X = 27; - - [NativeTypeName("#define EMARCH_ENC_I17_SIGN_VAL_POS_X 63")] - public const int EMARCH_ENC_I17_SIGN_VAL_POS_X = 63; - - [NativeTypeName("#define X3_OPCODE_INST_WORD_X 3")] - public const int X3_OPCODE_INST_WORD_X = 3; - - [NativeTypeName("#define X3_OPCODE_SIZE_X 4")] - public const int X3_OPCODE_SIZE_X = 4; - - [NativeTypeName("#define X3_OPCODE_INST_WORD_POS_X 28")] - public const int X3_OPCODE_INST_WORD_POS_X = 28; - - [NativeTypeName("#define X3_OPCODE_SIGN_VAL_POS_X 0")] - public const int X3_OPCODE_SIGN_VAL_POS_X = 0; - - [NativeTypeName("#define X3_I_INST_WORD_X 3")] - public const int X3_I_INST_WORD_X = 3; - - [NativeTypeName("#define X3_I_SIZE_X 1")] - public const int X3_I_SIZE_X = 1; - - [NativeTypeName("#define X3_I_INST_WORD_POS_X 27")] - public const int X3_I_INST_WORD_POS_X = 27; - - [NativeTypeName("#define X3_I_SIGN_VAL_POS_X 59")] - public const int X3_I_SIGN_VAL_POS_X = 59; - - [NativeTypeName("#define X3_D_WH_INST_WORD_X 3")] - public const int X3_D_WH_INST_WORD_X = 3; - - [NativeTypeName("#define X3_D_WH_SIZE_X 3")] - public const int X3_D_WH_SIZE_X = 3; - - [NativeTypeName("#define X3_D_WH_INST_WORD_POS_X 24")] - public const int X3_D_WH_INST_WORD_POS_X = 24; - - [NativeTypeName("#define X3_D_WH_SIGN_VAL_POS_X 0")] - public const int X3_D_WH_SIGN_VAL_POS_X = 0; - - [NativeTypeName("#define X3_IMM20_INST_WORD_X 3")] - public const int X3_IMM20_INST_WORD_X = 3; - - [NativeTypeName("#define X3_IMM20_SIZE_X 20")] - public const int X3_IMM20_SIZE_X = 20; - - [NativeTypeName("#define X3_IMM20_INST_WORD_POS_X 4")] - public const int X3_IMM20_INST_WORD_POS_X = 4; - - [NativeTypeName("#define X3_IMM20_SIGN_VAL_POS_X 0")] - public const int X3_IMM20_SIGN_VAL_POS_X = 0; - - [NativeTypeName("#define X3_IMM39_1_INST_WORD_X 2")] - public const int X3_IMM39_1_INST_WORD_X = 2; - - [NativeTypeName("#define X3_IMM39_1_SIZE_X 23")] - public const int X3_IMM39_1_SIZE_X = 23; - - [NativeTypeName("#define X3_IMM39_1_INST_WORD_POS_X 0")] - public const int X3_IMM39_1_INST_WORD_POS_X = 0; - - [NativeTypeName("#define X3_IMM39_1_SIGN_VAL_POS_X 36")] - public const int X3_IMM39_1_SIGN_VAL_POS_X = 36; - - [NativeTypeName("#define X3_IMM39_2_INST_WORD_X 1")] - public const int X3_IMM39_2_INST_WORD_X = 1; - - [NativeTypeName("#define X3_IMM39_2_SIZE_X 16")] - public const int X3_IMM39_2_SIZE_X = 16; - - [NativeTypeName("#define X3_IMM39_2_INST_WORD_POS_X 16")] - public const int X3_IMM39_2_INST_WORD_POS_X = 16; - - [NativeTypeName("#define X3_IMM39_2_SIGN_VAL_POS_X 20")] - public const int X3_IMM39_2_SIGN_VAL_POS_X = 20; - - [NativeTypeName("#define X3_P_INST_WORD_X 3")] - public const int X3_P_INST_WORD_X = 3; - - [NativeTypeName("#define X3_P_SIZE_X 4")] - public const int X3_P_SIZE_X = 4; - - [NativeTypeName("#define X3_P_INST_WORD_POS_X 0")] - public const int X3_P_INST_WORD_POS_X = 0; - - [NativeTypeName("#define X3_P_SIGN_VAL_POS_X 0")] - public const int X3_P_SIGN_VAL_POS_X = 0; - - [NativeTypeName("#define X3_TMPLT_INST_WORD_X 0")] - public const int X3_TMPLT_INST_WORD_X = 0; - - [NativeTypeName("#define X3_TMPLT_SIZE_X 4")] - public const int X3_TMPLT_SIZE_X = 4; - - [NativeTypeName("#define X3_TMPLT_INST_WORD_POS_X 0")] - public const int X3_TMPLT_INST_WORD_POS_X = 0; - - [NativeTypeName("#define X3_TMPLT_SIGN_VAL_POS_X 0")] - public const int X3_TMPLT_SIGN_VAL_POS_X = 0; - - [NativeTypeName("#define X3_BTYPE_QP_INST_WORD_X 2")] - public const int X3_BTYPE_QP_INST_WORD_X = 2; - - [NativeTypeName("#define X3_BTYPE_QP_SIZE_X 9")] - public const int X3_BTYPE_QP_SIZE_X = 9; - - [NativeTypeName("#define X3_BTYPE_QP_INST_WORD_POS_X 23")] - public const int X3_BTYPE_QP_INST_WORD_POS_X = 23; - - [NativeTypeName("#define X3_BTYPE_QP_INST_VAL_POS_X 0")] - public const int X3_BTYPE_QP_INST_VAL_POS_X = 0; - - [NativeTypeName("#define X3_EMPTY_INST_WORD_X 1")] - public const int X3_EMPTY_INST_WORD_X = 1; - - [NativeTypeName("#define X3_EMPTY_SIZE_X 2")] - public const int X3_EMPTY_SIZE_X = 2; - - [NativeTypeName("#define X3_EMPTY_INST_WORD_POS_X 14")] - public const int X3_EMPTY_INST_WORD_POS_X = 14; - - [NativeTypeName("#define X3_EMPTY_INST_VAL_POS_X 0")] - public const int X3_EMPTY_INST_VAL_POS_X = 0; - - [NativeTypeName("#define FRAME_FPO 0")] - public const int FRAME_FPO = 0; - - [NativeTypeName("#define FRAME_TRAP 1")] - public const int FRAME_TRAP = 1; - - [NativeTypeName("#define FRAME_TSS 2")] - public const int FRAME_TSS = 2; - - [NativeTypeName("#define FRAME_NONFPO 3")] - public const int FRAME_NONFPO = 3; - - [NativeTypeName("#define SIZEOF_RFPO_DATA 16")] - public const int SIZEOF_RFPO_DATA = 16; - - [NativeTypeName("#define NON_PAGED_DEBUG_SIGNATURE 0x494E")] - public const int NON_PAGED_DEBUG_SIGNATURE = 0x494E; - - [NativeTypeName("#define IMPORT_OBJECT_HDR_SIG2 0xffff")] - public const int IMPORT_OBJECT_HDR_SIG2 = 0xffff; - - [NativeTypeName("#define UNWIND_HISTORY_TABLE_SIZE 12")] - public const int UNWIND_HISTORY_TABLE_SIZE = 12; - - [NativeTypeName("#define HEAP_NO_SERIALIZE 0x00000001")] - public const int HEAP_NO_SERIALIZE = 0x00000001; - - [NativeTypeName("#define HEAP_GROWABLE 0x00000002")] - public const int HEAP_GROWABLE = 0x00000002; - - [NativeTypeName("#define HEAP_GENERATE_EXCEPTIONS 0x00000004")] - public const int HEAP_GENERATE_EXCEPTIONS = 0x00000004; - - [NativeTypeName("#define HEAP_ZERO_MEMORY 0x00000008")] - public const int HEAP_ZERO_MEMORY = 0x00000008; - - [NativeTypeName("#define HEAP_REALLOC_IN_PLACE_ONLY 0x00000010")] - public const int HEAP_REALLOC_IN_PLACE_ONLY = 0x00000010; - - [NativeTypeName("#define HEAP_TAIL_CHECKING_ENABLED 0x00000020")] - public const int HEAP_TAIL_CHECKING_ENABLED = 0x00000020; - - [NativeTypeName("#define HEAP_FREE_CHECKING_ENABLED 0x00000040")] - public const int HEAP_FREE_CHECKING_ENABLED = 0x00000040; - - [NativeTypeName("#define HEAP_DISABLE_COALESCE_ON_FREE 0x00000080")] - public const int HEAP_DISABLE_COALESCE_ON_FREE = 0x00000080; - - [NativeTypeName("#define HEAP_CREATE_ALIGN_16 0x00010000")] - public const int HEAP_CREATE_ALIGN_16 = 0x00010000; - - [NativeTypeName("#define HEAP_CREATE_ENABLE_TRACING 0x00020000")] - public const int HEAP_CREATE_ENABLE_TRACING = 0x00020000; - - [NativeTypeName("#define HEAP_CREATE_ENABLE_EXECUTE 0x00040000")] - public const int HEAP_CREATE_ENABLE_EXECUTE = 0x00040000; - - [NativeTypeName("#define HEAP_MAXIMUM_TAG 0x0FFF")] - public const int HEAP_MAXIMUM_TAG = 0x0FFF; - - [NativeTypeName("#define HEAP_PSEUDO_TAG_FLAG 0x8000")] - public const int HEAP_PSEUDO_TAG_FLAG = 0x8000; - - [NativeTypeName("#define HEAP_TAG_SHIFT 18")] - public const int HEAP_TAG_SHIFT = 18; - - [NativeTypeName("#define HEAP_CREATE_SEGMENT_HEAP 0x00000100")] - public const int HEAP_CREATE_SEGMENT_HEAP = 0x00000100; - - [NativeTypeName("#define HEAP_CREATE_HARDENED 0x00000200")] - public const int HEAP_CREATE_HARDENED = 0x00000200; - - [NativeTypeName("#define IS_TEXT_UNICODE_ASCII16 0x0001")] - public const int IS_TEXT_UNICODE_ASCII16 = 0x0001; - - [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_ASCII16 0x0010")] - public const int IS_TEXT_UNICODE_REVERSE_ASCII16 = 0x0010; - - [NativeTypeName("#define IS_TEXT_UNICODE_STATISTICS 0x0002")] - public const int IS_TEXT_UNICODE_STATISTICS = 0x0002; - - [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_STATISTICS 0x0020")] - public const int IS_TEXT_UNICODE_REVERSE_STATISTICS = 0x0020; + public const int N_BTMASK = 0x000F; - [NativeTypeName("#define IS_TEXT_UNICODE_CONTROLS 0x0004")] - public const int IS_TEXT_UNICODE_CONTROLS = 0x0004; + [NativeTypeName("#define N_TMASK 0x0030")] + public const int N_TMASK = 0x0030; - [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_CONTROLS 0x0040")] - public const int IS_TEXT_UNICODE_REVERSE_CONTROLS = 0x0040; + [NativeTypeName("#define N_TMASK1 0x00C0")] + public const int N_TMASK1 = 0x00C0; - [NativeTypeName("#define IS_TEXT_UNICODE_SIGNATURE 0x0008")] - public const int IS_TEXT_UNICODE_SIGNATURE = 0x0008; + [NativeTypeName("#define N_TMASK2 0x00F0")] + public const int N_TMASK2 = 0x00F0; - [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_SIGNATURE 0x0080")] - public const int IS_TEXT_UNICODE_REVERSE_SIGNATURE = 0x0080; + [NativeTypeName("#define N_BTSHFT 4")] + public const int N_BTSHFT = 4; - [NativeTypeName("#define IS_TEXT_UNICODE_ILLEGAL_CHARS 0x0100")] - public const int IS_TEXT_UNICODE_ILLEGAL_CHARS = 0x0100; + [NativeTypeName("#define N_TSHIFT 2")] + public const int N_TSHIFT = 2; - [NativeTypeName("#define IS_TEXT_UNICODE_ODD_LENGTH 0x0200")] - public const int IS_TEXT_UNICODE_ODD_LENGTH = 0x0200; + [NativeTypeName("#define FRAME_FPO 0")] + public const int FRAME_FPO = 0; - [NativeTypeName("#define IS_TEXT_UNICODE_DBCS_LEADBYTE 0x0400")] - public const int IS_TEXT_UNICODE_DBCS_LEADBYTE = 0x0400; + [NativeTypeName("#define FRAME_TRAP 1")] + public const int FRAME_TRAP = 1; - [NativeTypeName("#define IS_TEXT_UNICODE_UTF8 0x0800")] - public const int IS_TEXT_UNICODE_UTF8 = 0x0800; + [NativeTypeName("#define FRAME_TSS 2")] + public const int FRAME_TSS = 2; - [NativeTypeName("#define IS_TEXT_UNICODE_NULL_BYTES 0x1000")] - public const int IS_TEXT_UNICODE_NULL_BYTES = 0x1000; + [NativeTypeName("#define FRAME_NONFPO 3")] + public const int FRAME_NONFPO = 3; - [NativeTypeName("#define IS_TEXT_UNICODE_UNICODE_MASK 0x000F")] - public const int IS_TEXT_UNICODE_UNICODE_MASK = 0x000F; + [NativeTypeName("#define SIZEOF_RFPO_DATA 16")] + public const int SIZEOF_RFPO_DATA = 16; - [NativeTypeName("#define IS_TEXT_UNICODE_REVERSE_MASK 0x00F0")] - public const int IS_TEXT_UNICODE_REVERSE_MASK = 0x00F0; + [NativeTypeName("#define NON_PAGED_DEBUG_SIGNATURE 0x494E")] + public const int NON_PAGED_DEBUG_SIGNATURE = 0x494E; - [NativeTypeName("#define IS_TEXT_UNICODE_NOT_UNICODE_MASK 0x0F00")] - public const int IS_TEXT_UNICODE_NOT_UNICODE_MASK = 0x0F00; + [NativeTypeName("#define IMPORT_OBJECT_HDR_SIG2 0xffff")] + public const int IMPORT_OBJECT_HDR_SIG2 = 0xffff; - [NativeTypeName("#define IS_TEXT_UNICODE_NOT_ASCII_MASK 0xF000")] - public const int IS_TEXT_UNICODE_NOT_ASCII_MASK = 0xF000; + [NativeTypeName("#define UNWIND_HISTORY_TABLE_SIZE 12")] + public const int UNWIND_HISTORY_TABLE_SIZE = 12; [NativeTypeName("#define COMPRESSION_FORMAT_NONE (0x0000)")] public const int COMPRESSION_FORMAT_NONE = (0x0000); @@ -7658,123 +734,12 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define COMPRESSION_ENGINE_HIBER (0x0200)")] public const int COMPRESSION_ENGINE_HIBER = (0x0200); - [NativeTypeName("#define SEF_DACL_AUTO_INHERIT 0x01")] - public const int SEF_DACL_AUTO_INHERIT = 0x01; - - [NativeTypeName("#define SEF_SACL_AUTO_INHERIT 0x02")] - public const int SEF_SACL_AUTO_INHERIT = 0x02; - - [NativeTypeName("#define SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT 0x04")] - public const int SEF_DEFAULT_DESCRIPTOR_FOR_OBJECT = 0x04; - - [NativeTypeName("#define SEF_AVOID_PRIVILEGE_CHECK 0x08")] - public const int SEF_AVOID_PRIVILEGE_CHECK = 0x08; - - [NativeTypeName("#define SEF_AVOID_OWNER_CHECK 0x10")] - public const int SEF_AVOID_OWNER_CHECK = 0x10; - - [NativeTypeName("#define SEF_DEFAULT_OWNER_FROM_PARENT 0x20")] - public const int SEF_DEFAULT_OWNER_FROM_PARENT = 0x20; - - [NativeTypeName("#define SEF_DEFAULT_GROUP_FROM_PARENT 0x40")] - public const int SEF_DEFAULT_GROUP_FROM_PARENT = 0x40; - - [NativeTypeName("#define SEF_MACL_NO_WRITE_UP 0x100")] - public const int SEF_MACL_NO_WRITE_UP = 0x100; - - [NativeTypeName("#define SEF_MACL_NO_READ_UP 0x200")] - public const int SEF_MACL_NO_READ_UP = 0x200; - - [NativeTypeName("#define SEF_MACL_NO_EXECUTE_UP 0x400")] - public const int SEF_MACL_NO_EXECUTE_UP = 0x400; - - [NativeTypeName("#define SEF_AI_USE_EXTRA_PARAMS 0x800")] - public const int SEF_AI_USE_EXTRA_PARAMS = 0x800; - - [NativeTypeName("#define SEF_AVOID_OWNER_RESTRICTION 0x1000")] - public const int SEF_AVOID_OWNER_RESTRICTION = 0x1000; - - [NativeTypeName("#define SEF_FORCE_USER_MODE 0x2000")] - public const int SEF_FORCE_USER_MODE = 0x2000; - - [NativeTypeName("#define SEF_MACL_VALID_FLAGS (SEF_MACL_NO_WRITE_UP | \\\r\n SEF_MACL_NO_READ_UP | \\\r\n SEF_MACL_NO_EXECUTE_UP)")] - public const int SEF_MACL_VALID_FLAGS = (0x100 | 0x200 | 0x400); - [NativeTypeName("#define MESSAGE_RESOURCE_UNICODE 0x0001")] public const int MESSAGE_RESOURCE_UNICODE = 0x0001; [NativeTypeName("#define MESSAGE_RESOURCE_UTF8 0x0002")] public const int MESSAGE_RESOURCE_UTF8 = 0x0002; - [NativeTypeName("#define VER_EQUAL 1")] - public const int VER_EQUAL = 1; - - [NativeTypeName("#define VER_GREATER 2")] - public const int VER_GREATER = 2; - - [NativeTypeName("#define VER_GREATER_EQUAL 3")] - public const int VER_GREATER_EQUAL = 3; - - [NativeTypeName("#define VER_LESS 4")] - public const int VER_LESS = 4; - - [NativeTypeName("#define VER_LESS_EQUAL 5")] - public const int VER_LESS_EQUAL = 5; - - [NativeTypeName("#define VER_AND 6")] - public const int VER_AND = 6; - - [NativeTypeName("#define VER_OR 7")] - public const int VER_OR = 7; - - [NativeTypeName("#define VER_CONDITION_MASK 7")] - public const int VER_CONDITION_MASK = 7; - - [NativeTypeName("#define VER_NUM_BITS_PER_CONDITION_MASK 3")] - public const int VER_NUM_BITS_PER_CONDITION_MASK = 3; - - [NativeTypeName("#define VER_MINORVERSION 0x0000001")] - public const int VER_MINORVERSION = 0x0000001; - - [NativeTypeName("#define VER_MAJORVERSION 0x0000002")] - public const int VER_MAJORVERSION = 0x0000002; - - [NativeTypeName("#define VER_BUILDNUMBER 0x0000004")] - public const int VER_BUILDNUMBER = 0x0000004; - - [NativeTypeName("#define VER_PLATFORMID 0x0000008")] - public const int VER_PLATFORMID = 0x0000008; - - [NativeTypeName("#define VER_SERVICEPACKMINOR 0x0000010")] - public const int VER_SERVICEPACKMINOR = 0x0000010; - - [NativeTypeName("#define VER_SERVICEPACKMAJOR 0x0000020")] - public const int VER_SERVICEPACKMAJOR = 0x0000020; - - [NativeTypeName("#define VER_SUITENAME 0x0000040")] - public const int VER_SUITENAME = 0x0000040; - - [NativeTypeName("#define VER_PRODUCT_TYPE 0x0000080")] - public const int VER_PRODUCT_TYPE = 0x0000080; - - [NativeTypeName("#define VER_NT_WORKSTATION 0x0000001")] - public const int VER_NT_WORKSTATION = 0x0000001; - - [NativeTypeName("#define VER_NT_DOMAIN_CONTROLLER 0x0000002")] - public const int VER_NT_DOMAIN_CONTROLLER = 0x0000002; - - [NativeTypeName("#define VER_NT_SERVER 0x0000003")] - public const int VER_NT_SERVER = 0x0000003; - - [NativeTypeName("#define VER_PLATFORM_WIN32s 0")] - public const int VER_PLATFORM_WIN32s = 0; - - [NativeTypeName("#define VER_PLATFORM_WIN32_WINDOWS 1")] - public const int VER_PLATFORM_WIN32_WINDOWS = 1; - - [NativeTypeName("#define VER_PLATFORM_WIN32_NT 2")] - public const int VER_PLATFORM_WIN32_NT = 2; - [NativeTypeName("#define VRL_PREDEFINED_CLASS_BEGIN (1 << 0)")] public const int VRL_PREDEFINED_CLASS_BEGIN = (1 << 0); @@ -7826,69 +791,9 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define FILL_NV_MEMORY_FLAG_NO_DRAIN (0x00000100)")] public const int FILL_NV_MEMORY_FLAG_NO_DRAIN = (0x00000100); - [NativeTypeName("#define HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION 1")] - public const int HEAP_OPTIMIZE_RESOURCES_CURRENT_VERSION = 1; - - [NativeTypeName("#define WT_EXECUTEDEFAULT 0x00000000")] - public const int WT_EXECUTEDEFAULT = 0x00000000; - - [NativeTypeName("#define WT_EXECUTEINIOTHREAD 0x00000001")] - public const int WT_EXECUTEINIOTHREAD = 0x00000001; - - [NativeTypeName("#define WT_EXECUTEINUITHREAD 0x00000002")] - public const int WT_EXECUTEINUITHREAD = 0x00000002; - - [NativeTypeName("#define WT_EXECUTEINWAITTHREAD 0x00000004")] - public const int WT_EXECUTEINWAITTHREAD = 0x00000004; - - [NativeTypeName("#define WT_EXECUTEONLYONCE 0x00000008")] - public const int WT_EXECUTEONLYONCE = 0x00000008; - - [NativeTypeName("#define WT_EXECUTEINTIMERTHREAD 0x00000020")] - public const int WT_EXECUTEINTIMERTHREAD = 0x00000020; - - [NativeTypeName("#define WT_EXECUTELONGFUNCTION 0x00000010")] - public const int WT_EXECUTELONGFUNCTION = 0x00000010; - - [NativeTypeName("#define WT_EXECUTEINPERSISTENTIOTHREAD 0x00000040")] - public const int WT_EXECUTEINPERSISTENTIOTHREAD = 0x00000040; - - [NativeTypeName("#define WT_EXECUTEINPERSISTENTTHREAD 0x00000080")] - public const int WT_EXECUTEINPERSISTENTTHREAD = 0x00000080; - - [NativeTypeName("#define WT_TRANSFER_IMPERSONATION 0x00000100")] - public const int WT_TRANSFER_IMPERSONATION = 0x00000100; - - [NativeTypeName("#define WT_EXECUTEINLONGTHREAD 0x00000010")] - public const int WT_EXECUTEINLONGTHREAD = 0x00000010; - - [NativeTypeName("#define WT_EXECUTEDELETEWAIT 0x00000008")] - public const int WT_EXECUTEDELETEWAIT = 0x00000008; - - [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_NONE (1)")] - public const int ACTIVATION_CONTEXT_PATH_TYPE_NONE = (1); - - [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE (2)")] - public const int ACTIVATION_CONTEXT_PATH_TYPE_WIN32_FILE = (2); - - [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_URL (3)")] - public const int ACTIVATION_CONTEXT_PATH_TYPE_URL = (3); - - [NativeTypeName("#define ACTIVATION_CONTEXT_PATH_TYPE_ASSEMBLYREF (4)")] - public const int ACTIVATION_CONTEXT_PATH_TYPE_ASSEMBLYREF = (4); - - [NativeTypeName("#define CREATE_BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID 0x1")] - public const int CREATE_BOUNDARY_DESCRIPTOR_ADD_APPCONTAINER_SID = 0x1; - [NativeTypeName("#define PERFORMANCE_DATA_VERSION 1")] public const int PERFORMANCE_DATA_VERSION = 1; - [NativeTypeName("#define READ_THREAD_PROFILING_FLAG_DISPATCHING 0x00000001")] - public const int READ_THREAD_PROFILING_FLAG_DISPATCHING = 0x00000001; - - [NativeTypeName("#define READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS 0x00000002")] - public const int READ_THREAD_PROFILING_FLAG_HARDWARE_COUNTERS = 0x00000002; - [NativeTypeName("#define UNIFIEDBUILDREVISION_KEY L\"\\\\Registry\\\\Machine\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\"")] public const string UNIFIEDBUILDREVISION_KEY = "\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion"; @@ -7898,210 +803,6 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define UNIFIEDBUILDREVISION_MIN 0x00000000")] public const int UNIFIEDBUILDREVISION_MIN = 0x00000000; - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_KEY L\"\\\\Registry\\\\Machine\\\\Software\\\\Microsoft\\\\Windows NT\\\\CurrentVersion\\\\OEM\"")] - public const string DEVICEFAMILYDEVICEFORM_KEY = "\\Registry\\Machine\\Software\\Microsoft\\Windows NT\\CurrentVersion\\OEM"; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_VALUE L\"DeviceForm\"")] - public const string DEVICEFAMILYDEVICEFORM_VALUE = "DeviceForm"; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_UAP 0x00000000")] - public const int DEVICEFAMILYINFOENUM_UAP = 0x00000000; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_8X 0x00000001")] - public const int DEVICEFAMILYINFOENUM_WINDOWS_8X = 0x00000001; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_PHONE_8X 0x00000002")] - public const int DEVICEFAMILYINFOENUM_WINDOWS_PHONE_8X = 0x00000002; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_DESKTOP 0x00000003")] - public const int DEVICEFAMILYINFOENUM_DESKTOP = 0x00000003; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_MOBILE 0x00000004")] - public const int DEVICEFAMILYINFOENUM_MOBILE = 0x00000004; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_XBOX 0x00000005")] - public const int DEVICEFAMILYINFOENUM_XBOX = 0x00000005; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_TEAM 0x00000006")] - public const int DEVICEFAMILYINFOENUM_TEAM = 0x00000006; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_IOT 0x00000007")] - public const int DEVICEFAMILYINFOENUM_IOT = 0x00000007; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_IOT_HEADLESS 0x00000008")] - public const int DEVICEFAMILYINFOENUM_IOT_HEADLESS = 0x00000008; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_SERVER 0x00000009")] - public const int DEVICEFAMILYINFOENUM_SERVER = 0x00000009; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_HOLOGRAPHIC 0x0000000A")] - public const int DEVICEFAMILYINFOENUM_HOLOGRAPHIC = 0x0000000A; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_XBOXSRA 0x0000000B")] - public const int DEVICEFAMILYINFOENUM_XBOXSRA = 0x0000000B; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_XBOXERA 0x0000000C")] - public const int DEVICEFAMILYINFOENUM_XBOXERA = 0x0000000C; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_SERVER_NANO 0x0000000D")] - public const int DEVICEFAMILYINFOENUM_SERVER_NANO = 0x0000000D; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_8828080 0x0000000E")] - public const int DEVICEFAMILYINFOENUM_8828080 = 0x0000000E; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_7067329 0x0000000F")] - public const int DEVICEFAMILYINFOENUM_7067329 = 0x0000000F; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_CORE 0x00000010")] - public const int DEVICEFAMILYINFOENUM_WINDOWS_CORE = 0x00000010; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_WINDOWS_CORE_HEADLESS 0x00000011")] - public const int DEVICEFAMILYINFOENUM_WINDOWS_CORE_HEADLESS = 0x00000011; - - [NativeTypeName("#define DEVICEFAMILYINFOENUM_MAX 0x00000011")] - public const int DEVICEFAMILYINFOENUM_MAX = 0x00000011; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_UNKNOWN 0x00000000")] - public const int DEVICEFAMILYDEVICEFORM_UNKNOWN = 0x00000000; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_PHONE 0x00000001")] - public const int DEVICEFAMILYDEVICEFORM_PHONE = 0x00000001; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_TABLET 0x00000002")] - public const int DEVICEFAMILYDEVICEFORM_TABLET = 0x00000002; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_DESKTOP 0x00000003")] - public const int DEVICEFAMILYDEVICEFORM_DESKTOP = 0x00000003; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_NOTEBOOK 0x00000004")] - public const int DEVICEFAMILYDEVICEFORM_NOTEBOOK = 0x00000004; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_CONVERTIBLE 0x00000005")] - public const int DEVICEFAMILYDEVICEFORM_CONVERTIBLE = 0x00000005; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_DETACHABLE 0x00000006")] - public const int DEVICEFAMILYDEVICEFORM_DETACHABLE = 0x00000006; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_ALLINONE 0x00000007")] - public const int DEVICEFAMILYDEVICEFORM_ALLINONE = 0x00000007; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_STICKPC 0x00000008")] - public const int DEVICEFAMILYDEVICEFORM_STICKPC = 0x00000008; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_PUCK 0x00000009")] - public const int DEVICEFAMILYDEVICEFORM_PUCK = 0x00000009; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_LARGESCREEN 0x0000000A")] - public const int DEVICEFAMILYDEVICEFORM_LARGESCREEN = 0x0000000A; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_HMD 0x0000000B")] - public const int DEVICEFAMILYDEVICEFORM_HMD = 0x0000000B; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRY_HANDHELD 0x0000000C")] - public const int DEVICEFAMILYDEVICEFORM_INDUSTRY_HANDHELD = 0x0000000C; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRY_TABLET 0x0000000D")] - public const int DEVICEFAMILYDEVICEFORM_INDUSTRY_TABLET = 0x0000000D; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_BANKING 0x0000000E")] - public const int DEVICEFAMILYDEVICEFORM_BANKING = 0x0000000E; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_BUILDING_AUTOMATION 0x0000000F")] - public const int DEVICEFAMILYDEVICEFORM_BUILDING_AUTOMATION = 0x0000000F; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_DIGITAL_SIGNAGE 0x00000010")] - public const int DEVICEFAMILYDEVICEFORM_DIGITAL_SIGNAGE = 0x00000010; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_GAMING 0x00000011")] - public const int DEVICEFAMILYDEVICEFORM_GAMING = 0x00000011; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_HOME_AUTOMATION 0x00000012")] - public const int DEVICEFAMILYDEVICEFORM_HOME_AUTOMATION = 0x00000012; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRIAL_AUTOMATION 0x00000013")] - public const int DEVICEFAMILYDEVICEFORM_INDUSTRIAL_AUTOMATION = 0x00000013; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_KIOSK 0x00000014")] - public const int DEVICEFAMILYDEVICEFORM_KIOSK = 0x00000014; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_MAKER_BOARD 0x00000015")] - public const int DEVICEFAMILYDEVICEFORM_MAKER_BOARD = 0x00000015; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_MEDICAL 0x00000016")] - public const int DEVICEFAMILYDEVICEFORM_MEDICAL = 0x00000016; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_NETWORKING 0x00000017")] - public const int DEVICEFAMILYDEVICEFORM_NETWORKING = 0x00000017; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_POINT_OF_SERVICE 0x00000018")] - public const int DEVICEFAMILYDEVICEFORM_POINT_OF_SERVICE = 0x00000018; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_PRINTING 0x00000019")] - public const int DEVICEFAMILYDEVICEFORM_PRINTING = 0x00000019; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_THIN_CLIENT 0x0000001A")] - public const int DEVICEFAMILYDEVICEFORM_THIN_CLIENT = 0x0000001A; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_TOY 0x0000001B")] - public const int DEVICEFAMILYDEVICEFORM_TOY = 0x0000001B; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_VENDING 0x0000001C")] - public const int DEVICEFAMILYDEVICEFORM_VENDING = 0x0000001C; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_INDUSTRY_OTHER 0x0000001D")] - public const int DEVICEFAMILYDEVICEFORM_INDUSTRY_OTHER = 0x0000001D; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE 0x0000001E")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE = 0x0000001E; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE_S 0x0000001F")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE_S = 0x0000001F; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE_X 0x00000020")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE_X = 0x00000020; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_ONE_X_DEVKIT 0x00000021")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_ONE_X_DEVKIT = 0x00000021; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X 0x00000022")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X = 0x00000022; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X_DEVKIT 0x00000023")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_SERIES_X_DEVKIT = 0x00000023; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_00 0x00000024")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_00 = 0x00000024; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_01 0x00000025")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_01 = 0x00000025; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_02 0x00000026")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_02 = 0x00000026; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_03 0x00000027")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_03 = 0x00000027; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_04 0x00000028")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_04 = 0x00000028; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_05 0x00000029")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_05 = 0x00000029; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_06 0x0000002A")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_06 = 0x0000002A; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_07 0x0000002B")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_07 = 0x0000002B; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_08 0x0000002C")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_08 = 0x0000002C; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_09 0x0000002D")] - public const int DEVICEFAMILYDEVICEFORM_XBOX_RESERVED_09 = 0x0000002D; - - [NativeTypeName("#define DEVICEFAMILYDEVICEFORM_MAX 0x0000002D")] - public const int DEVICEFAMILYDEVICEFORM_MAX = 0x0000002D; - [NativeTypeName("#define DLL_PROCESS_ATTACH 1")] public const int DLL_PROCESS_ATTACH = 1; @@ -8114,319 +815,7 @@ public static uint HEAP_MAKE_TAG_FLAGS([NativeTypeName("DWORD")] uint TagBase, [ [NativeTypeName("#define DLL_PROCESS_DETACH 0")] public const int DLL_PROCESS_DETACH = 0; - [NativeTypeName("#define EVENTLOG_SEQUENTIAL_READ 0x0001")] - public const int EVENTLOG_SEQUENTIAL_READ = 0x0001; - - [NativeTypeName("#define EVENTLOG_SEEK_READ 0x0002")] - public const int EVENTLOG_SEEK_READ = 0x0002; - - [NativeTypeName("#define EVENTLOG_FORWARDS_READ 0x0004")] - public const int EVENTLOG_FORWARDS_READ = 0x0004; - - [NativeTypeName("#define EVENTLOG_BACKWARDS_READ 0x0008")] - public const int EVENTLOG_BACKWARDS_READ = 0x0008; - - [NativeTypeName("#define EVENTLOG_SUCCESS 0x0000")] - public const int EVENTLOG_SUCCESS = 0x0000; - - [NativeTypeName("#define EVENTLOG_ERROR_TYPE 0x0001")] - public const int EVENTLOG_ERROR_TYPE = 0x0001; - - [NativeTypeName("#define EVENTLOG_WARNING_TYPE 0x0002")] - public const int EVENTLOG_WARNING_TYPE = 0x0002; - - [NativeTypeName("#define EVENTLOG_INFORMATION_TYPE 0x0004")] - public const int EVENTLOG_INFORMATION_TYPE = 0x0004; - - [NativeTypeName("#define EVENTLOG_AUDIT_SUCCESS 0x0008")] - public const int EVENTLOG_AUDIT_SUCCESS = 0x0008; - - [NativeTypeName("#define EVENTLOG_AUDIT_FAILURE 0x0010")] - public const int EVENTLOG_AUDIT_FAILURE = 0x0010; - - [NativeTypeName("#define EVENTLOG_START_PAIRED_EVENT 0x0001")] - public const int EVENTLOG_START_PAIRED_EVENT = 0x0001; - - [NativeTypeName("#define EVENTLOG_END_PAIRED_EVENT 0x0002")] - public const int EVENTLOG_END_PAIRED_EVENT = 0x0002; - - [NativeTypeName("#define EVENTLOG_END_ALL_PAIRED_EVENTS 0x0004")] - public const int EVENTLOG_END_ALL_PAIRED_EVENTS = 0x0004; - - [NativeTypeName("#define EVENTLOG_PAIRED_EVENT_ACTIVE 0x0008")] - public const int EVENTLOG_PAIRED_EVENT_ACTIVE = 0x0008; - - [NativeTypeName("#define EVENTLOG_PAIRED_EVENT_INACTIVE 0x0010")] - public const int EVENTLOG_PAIRED_EVENT_INACTIVE = 0x0010; - [NativeTypeName("#define MAXLOGICALLOGNAMESIZE 256")] public const int MAXLOGICALLOGNAMESIZE = 256; - - [NativeTypeName("#define KEY_QUERY_VALUE (0x0001)")] - public const int KEY_QUERY_VALUE = (0x0001); - - [NativeTypeName("#define KEY_SET_VALUE (0x0002)")] - public const int KEY_SET_VALUE = (0x0002); - - [NativeTypeName("#define KEY_CREATE_SUB_KEY (0x0004)")] - public const int KEY_CREATE_SUB_KEY = (0x0004); - - [NativeTypeName("#define KEY_ENUMERATE_SUB_KEYS (0x0008)")] - public const int KEY_ENUMERATE_SUB_KEYS = (0x0008); - - [NativeTypeName("#define KEY_NOTIFY (0x0010)")] - public const int KEY_NOTIFY = (0x0010); - - [NativeTypeName("#define KEY_CREATE_LINK (0x0020)")] - public const int KEY_CREATE_LINK = (0x0020); - - [NativeTypeName("#define KEY_WOW64_32KEY (0x0200)")] - public const int KEY_WOW64_32KEY = (0x0200); - - [NativeTypeName("#define KEY_WOW64_64KEY (0x0100)")] - public const int KEY_WOW64_64KEY = (0x0100); - - [NativeTypeName("#define KEY_WOW64_RES (0x0300)")] - public const int KEY_WOW64_RES = (0x0300); - - [NativeTypeName("#define KEY_READ ((STANDARD_RIGHTS_READ |\\\r\n KEY_QUERY_VALUE |\\\r\n KEY_ENUMERATE_SUB_KEYS |\\\r\n KEY_NOTIFY) \\\r\n & \\\r\n (~SYNCHRONIZE))")] - public const int KEY_READ = ((((0x00020000)) | (0x0001) | (0x0008) | (0x0010)) & (~(0x00100000))); - - [NativeTypeName("#define KEY_WRITE ((STANDARD_RIGHTS_WRITE |\\\r\n KEY_SET_VALUE |\\\r\n KEY_CREATE_SUB_KEY) \\\r\n & \\\r\n (~SYNCHRONIZE))")] - public const int KEY_WRITE = ((((0x00020000)) | (0x0002) | (0x0004)) & (~(0x00100000))); - - [NativeTypeName("#define KEY_EXECUTE ((KEY_READ) \\\r\n & \\\r\n (~SYNCHRONIZE))")] - public const int KEY_EXECUTE = ((((((0x00020000)) | (0x0001) | (0x0008) | (0x0010)) & (~(0x00100000)))) & (~(0x00100000))); - - [NativeTypeName("#define KEY_ALL_ACCESS ((STANDARD_RIGHTS_ALL |\\\r\n KEY_QUERY_VALUE |\\\r\n KEY_SET_VALUE |\\\r\n KEY_CREATE_SUB_KEY |\\\r\n KEY_ENUMERATE_SUB_KEYS |\\\r\n KEY_NOTIFY |\\\r\n KEY_CREATE_LINK) \\\r\n & \\\r\n (~SYNCHRONIZE))")] - public const int KEY_ALL_ACCESS = (((0x001F0000) | (0x0001) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020)) & (~(0x00100000))); - - [NativeTypeName("#define SERVICE_KERNEL_DRIVER 0x00000001")] - public const int SERVICE_KERNEL_DRIVER = 0x00000001; - - [NativeTypeName("#define SERVICE_FILE_SYSTEM_DRIVER 0x00000002")] - public const int SERVICE_FILE_SYSTEM_DRIVER = 0x00000002; - - [NativeTypeName("#define SERVICE_ADAPTER 0x00000004")] - public const int SERVICE_ADAPTER = 0x00000004; - - [NativeTypeName("#define SERVICE_RECOGNIZER_DRIVER 0x00000008")] - public const int SERVICE_RECOGNIZER_DRIVER = 0x00000008; - - [NativeTypeName("#define SERVICE_DRIVER (SERVICE_KERNEL_DRIVER | \\\r\n SERVICE_FILE_SYSTEM_DRIVER | \\\r\n SERVICE_RECOGNIZER_DRIVER)")] - public const int SERVICE_DRIVER = (0x00000001 | 0x00000002 | 0x00000008); - - [NativeTypeName("#define SERVICE_WIN32_OWN_PROCESS 0x00000010")] - public const int SERVICE_WIN32_OWN_PROCESS = 0x00000010; - - [NativeTypeName("#define SERVICE_WIN32_SHARE_PROCESS 0x00000020")] - public const int SERVICE_WIN32_SHARE_PROCESS = 0x00000020; - - [NativeTypeName("#define SERVICE_WIN32 (SERVICE_WIN32_OWN_PROCESS | \\\r\n SERVICE_WIN32_SHARE_PROCESS)")] - public const int SERVICE_WIN32 = (0x00000010 | 0x00000020); - - [NativeTypeName("#define SERVICE_USER_SERVICE 0x00000040")] - public const int SERVICE_USER_SERVICE = 0x00000040; - - [NativeTypeName("#define SERVICE_USERSERVICE_INSTANCE 0x00000080")] - public const int SERVICE_USERSERVICE_INSTANCE = 0x00000080; - - [NativeTypeName("#define SERVICE_USER_SHARE_PROCESS (SERVICE_USER_SERVICE | \\\r\n SERVICE_WIN32_SHARE_PROCESS)")] - public const int SERVICE_USER_SHARE_PROCESS = (0x00000040 | 0x00000020); - - [NativeTypeName("#define SERVICE_USER_OWN_PROCESS (SERVICE_USER_SERVICE | \\\r\n SERVICE_WIN32_OWN_PROCESS)")] - public const int SERVICE_USER_OWN_PROCESS = (0x00000040 | 0x00000010); - - [NativeTypeName("#define SERVICE_INTERACTIVE_PROCESS 0x00000100")] - public const int SERVICE_INTERACTIVE_PROCESS = 0x00000100; - - [NativeTypeName("#define SERVICE_PKG_SERVICE 0x00000200")] - public const int SERVICE_PKG_SERVICE = 0x00000200; - - [NativeTypeName("#define SERVICE_TYPE_ALL (SERVICE_WIN32 | \\\r\n SERVICE_ADAPTER | \\\r\n SERVICE_DRIVER | \\\r\n SERVICE_INTERACTIVE_PROCESS | \\\r\n SERVICE_USER_SERVICE | \\\r\n SERVICE_USERSERVICE_INSTANCE | \\\r\n SERVICE_PKG_SERVICE)")] - public const int SERVICE_TYPE_ALL = ((0x00000010 | 0x00000020) | 0x00000004 | (0x00000001 | 0x00000002 | 0x00000008) | 0x00000100 | 0x00000040 | 0x00000080 | 0x00000200); - - [NativeTypeName("#define SERVICE_BOOT_START 0x00000000")] - public const int SERVICE_BOOT_START = 0x00000000; - - [NativeTypeName("#define SERVICE_SYSTEM_START 0x00000001")] - public const int SERVICE_SYSTEM_START = 0x00000001; - - [NativeTypeName("#define SERVICE_AUTO_START 0x00000002")] - public const int SERVICE_AUTO_START = 0x00000002; - - [NativeTypeName("#define SERVICE_DEMAND_START 0x00000003")] - public const int SERVICE_DEMAND_START = 0x00000003; - - [NativeTypeName("#define SERVICE_DISABLED 0x00000004")] - public const int SERVICE_DISABLED = 0x00000004; - - [NativeTypeName("#define SERVICE_ERROR_IGNORE 0x00000000")] - public const int SERVICE_ERROR_IGNORE = 0x00000000; - - [NativeTypeName("#define SERVICE_ERROR_NORMAL 0x00000001")] - public const int SERVICE_ERROR_NORMAL = 0x00000001; - - [NativeTypeName("#define SERVICE_ERROR_SEVERE 0x00000002")] - public const int SERVICE_ERROR_SEVERE = 0x00000002; - - [NativeTypeName("#define SERVICE_ERROR_CRITICAL 0x00000003")] - public const int SERVICE_ERROR_CRITICAL = 0x00000003; - - [NativeTypeName("#define CM_SERVICE_NETWORK_BOOT_LOAD 0x00000001")] - public const int CM_SERVICE_NETWORK_BOOT_LOAD = 0x00000001; - - [NativeTypeName("#define CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD 0x00000002")] - public const int CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD = 0x00000002; - - [NativeTypeName("#define CM_SERVICE_USB_DISK_BOOT_LOAD 0x00000004")] - public const int CM_SERVICE_USB_DISK_BOOT_LOAD = 0x00000004; - - [NativeTypeName("#define CM_SERVICE_SD_DISK_BOOT_LOAD 0x00000008")] - public const int CM_SERVICE_SD_DISK_BOOT_LOAD = 0x00000008; - - [NativeTypeName("#define CM_SERVICE_USB3_DISK_BOOT_LOAD 0x00000010")] - public const int CM_SERVICE_USB3_DISK_BOOT_LOAD = 0x00000010; - - [NativeTypeName("#define CM_SERVICE_MEASURED_BOOT_LOAD 0x00000020")] - public const int CM_SERVICE_MEASURED_BOOT_LOAD = 0x00000020; - - [NativeTypeName("#define CM_SERVICE_VERIFIER_BOOT_LOAD 0x00000040")] - public const int CM_SERVICE_VERIFIER_BOOT_LOAD = 0x00000040; - - [NativeTypeName("#define CM_SERVICE_WINPE_BOOT_LOAD 0x00000080")] - public const int CM_SERVICE_WINPE_BOOT_LOAD = 0x00000080; - - [NativeTypeName("#define CM_SERVICE_RAM_DISK_BOOT_LOAD 0x00000100")] - public const int CM_SERVICE_RAM_DISK_BOOT_LOAD = 0x00000100; - - [NativeTypeName("#define CM_SERVICE_VALID_PROMOTION_MASK (CM_SERVICE_NETWORK_BOOT_LOAD | \\\r\n CM_SERVICE_VIRTUAL_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_USB_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_SD_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_USB3_DISK_BOOT_LOAD | \\\r\n CM_SERVICE_MEASURED_BOOT_LOAD | \\\r\n CM_SERVICE_VERIFIER_BOOT_LOAD | \\\r\n CM_SERVICE_WINPE_BOOT_LOAD | \\\r\n CM_SERVICE_RAM_DISK_BOOT_LOAD)")] - public const int CM_SERVICE_VALID_PROMOTION_MASK = (0x00000001 | 0x00000002 | 0x00000004 | 0x00000008 | 0x00000010 | 0x00000020 | 0x00000040 | 0x00000080 | 0x00000100); - - [NativeTypeName("#define TRANSACTIONMANAGER_QUERY_INFORMATION ( 0x0001 )")] - public const int TRANSACTIONMANAGER_QUERY_INFORMATION = (0x0001); - - [NativeTypeName("#define TRANSACTIONMANAGER_SET_INFORMATION ( 0x0002 )")] - public const int TRANSACTIONMANAGER_SET_INFORMATION = (0x0002); - - [NativeTypeName("#define TRANSACTIONMANAGER_RECOVER ( 0x0004 )")] - public const int TRANSACTIONMANAGER_RECOVER = (0x0004); - - [NativeTypeName("#define TRANSACTIONMANAGER_RENAME ( 0x0008 )")] - public const int TRANSACTIONMANAGER_RENAME = (0x0008); - - [NativeTypeName("#define TRANSACTIONMANAGER_CREATE_RM ( 0x0010 )")] - public const int TRANSACTIONMANAGER_CREATE_RM = (0x0010); - - [NativeTypeName("#define TRANSACTIONMANAGER_BIND_TRANSACTION ( 0x0020 )")] - public const int TRANSACTIONMANAGER_BIND_TRANSACTION = (0x0020); - - [NativeTypeName("#define TRANSACTIONMANAGER_GENERIC_READ (STANDARD_RIGHTS_READ |\\\r\n TRANSACTIONMANAGER_QUERY_INFORMATION)")] - public const int TRANSACTIONMANAGER_GENERIC_READ = (((0x00020000)) | (0x0001)); - - [NativeTypeName("#define TRANSACTIONMANAGER_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n TRANSACTIONMANAGER_SET_INFORMATION |\\\r\n TRANSACTIONMANAGER_RECOVER |\\\r\n TRANSACTIONMANAGER_RENAME |\\\r\n TRANSACTIONMANAGER_CREATE_RM)")] - public const int TRANSACTIONMANAGER_GENERIC_WRITE = (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)); - - [NativeTypeName("#define TRANSACTIONMANAGER_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE)")] - public const int TRANSACTIONMANAGER_GENERIC_EXECUTE = (((0x00020000))); - - [NativeTypeName("#define TRANSACTIONMANAGER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED |\\\r\n TRANSACTIONMANAGER_GENERIC_READ |\\\r\n TRANSACTIONMANAGER_GENERIC_WRITE |\\\r\n TRANSACTIONMANAGER_GENERIC_EXECUTE |\\\r\n TRANSACTIONMANAGER_BIND_TRANSACTION)")] - public const int TRANSACTIONMANAGER_ALL_ACCESS = ((0x000F0000) | (((0x00020000)) | (0x0001)) | (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)) | (((0x00020000))) | (0x0020)); - - [NativeTypeName("#define RESOURCEMANAGER_QUERY_INFORMATION ( 0x0001 )")] - public const int RESOURCEMANAGER_QUERY_INFORMATION = (0x0001); - - [NativeTypeName("#define RESOURCEMANAGER_SET_INFORMATION ( 0x0002 )")] - public const int RESOURCEMANAGER_SET_INFORMATION = (0x0002); - - [NativeTypeName("#define RESOURCEMANAGER_RECOVER ( 0x0004 )")] - public const int RESOURCEMANAGER_RECOVER = (0x0004); - - [NativeTypeName("#define RESOURCEMANAGER_ENLIST ( 0x0008 )")] - public const int RESOURCEMANAGER_ENLIST = (0x0008); - - [NativeTypeName("#define RESOURCEMANAGER_GET_NOTIFICATION ( 0x0010 )")] - public const int RESOURCEMANAGER_GET_NOTIFICATION = (0x0010); - - [NativeTypeName("#define RESOURCEMANAGER_REGISTER_PROTOCOL ( 0x0020 )")] - public const int RESOURCEMANAGER_REGISTER_PROTOCOL = (0x0020); - - [NativeTypeName("#define RESOURCEMANAGER_COMPLETE_PROPAGATION ( 0x0040 )")] - public const int RESOURCEMANAGER_COMPLETE_PROPAGATION = (0x0040); - - [NativeTypeName("#define RESOURCEMANAGER_GENERIC_READ (STANDARD_RIGHTS_READ |\\\r\n RESOURCEMANAGER_QUERY_INFORMATION |\\\r\n SYNCHRONIZE)")] - public const int RESOURCEMANAGER_GENERIC_READ = (((0x00020000)) | (0x0001) | (0x00100000)); - - [NativeTypeName("#define RESOURCEMANAGER_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n RESOURCEMANAGER_SET_INFORMATION |\\\r\n RESOURCEMANAGER_RECOVER |\\\r\n RESOURCEMANAGER_ENLIST |\\\r\n RESOURCEMANAGER_GET_NOTIFICATION |\\\r\n RESOURCEMANAGER_REGISTER_PROTOCOL |\\\r\n RESOURCEMANAGER_COMPLETE_PROPAGATION |\\\r\n SYNCHRONIZE)")] - public const int RESOURCEMANAGER_GENERIC_WRITE = (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x00100000)); - - [NativeTypeName("#define RESOURCEMANAGER_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\\\r\n RESOURCEMANAGER_RECOVER |\\\r\n RESOURCEMANAGER_ENLIST |\\\r\n RESOURCEMANAGER_GET_NOTIFICATION |\\\r\n RESOURCEMANAGER_COMPLETE_PROPAGATION |\\\r\n SYNCHRONIZE)")] - public const int RESOURCEMANAGER_GENERIC_EXECUTE = (((0x00020000)) | (0x0004) | (0x0008) | (0x0010) | (0x0040) | (0x00100000)); - - [NativeTypeName("#define RESOURCEMANAGER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED |\\\r\n RESOURCEMANAGER_GENERIC_READ |\\\r\n RESOURCEMANAGER_GENERIC_WRITE |\\\r\n RESOURCEMANAGER_GENERIC_EXECUTE)")] - public const int RESOURCEMANAGER_ALL_ACCESS = ((0x000F0000) | (((0x00020000)) | (0x0001) | (0x00100000)) | (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010) | (0x0020) | (0x0040) | (0x00100000)) | (((0x00020000)) | (0x0004) | (0x0008) | (0x0010) | (0x0040) | (0x00100000))); - - [NativeTypeName("#define ENLISTMENT_QUERY_INFORMATION ( 0x0001 )")] - public const int ENLISTMENT_QUERY_INFORMATION = (0x0001); - - [NativeTypeName("#define ENLISTMENT_SET_INFORMATION ( 0x0002 )")] - public const int ENLISTMENT_SET_INFORMATION = (0x0002); - - [NativeTypeName("#define ENLISTMENT_RECOVER ( 0x0004 )")] - public const int ENLISTMENT_RECOVER = (0x0004); - - [NativeTypeName("#define ENLISTMENT_SUBORDINATE_RIGHTS ( 0x0008 )")] - public const int ENLISTMENT_SUBORDINATE_RIGHTS = (0x0008); - - [NativeTypeName("#define ENLISTMENT_SUPERIOR_RIGHTS ( 0x0010 )")] - public const int ENLISTMENT_SUPERIOR_RIGHTS = (0x0010); - - [NativeTypeName("#define ENLISTMENT_GENERIC_READ (STANDARD_RIGHTS_READ |\\\r\n ENLISTMENT_QUERY_INFORMATION)")] - public const int ENLISTMENT_GENERIC_READ = (((0x00020000)) | (0x0001)); - - [NativeTypeName("#define ENLISTMENT_GENERIC_WRITE (STANDARD_RIGHTS_WRITE |\\\r\n ENLISTMENT_SET_INFORMATION |\\\r\n ENLISTMENT_RECOVER |\\\r\n ENLISTMENT_SUBORDINATE_RIGHTS |\\\r\n ENLISTMENT_SUPERIOR_RIGHTS)")] - public const int ENLISTMENT_GENERIC_WRITE = (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)); - - [NativeTypeName("#define ENLISTMENT_GENERIC_EXECUTE (STANDARD_RIGHTS_EXECUTE |\\\r\n ENLISTMENT_RECOVER |\\\r\n ENLISTMENT_SUBORDINATE_RIGHTS |\\\r\n ENLISTMENT_SUPERIOR_RIGHTS)")] - public const int ENLISTMENT_GENERIC_EXECUTE = (((0x00020000)) | (0x0004) | (0x0008) | (0x0010)); - - [NativeTypeName("#define ENLISTMENT_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED |\\\r\n ENLISTMENT_GENERIC_READ |\\\r\n ENLISTMENT_GENERIC_WRITE |\\\r\n ENLISTMENT_GENERIC_EXECUTE)")] - public const int ENLISTMENT_ALL_ACCESS = ((0x000F0000) | (((0x00020000)) | (0x0001)) | (((0x00020000)) | (0x0002) | (0x0004) | (0x0008) | (0x0010)) | (((0x00020000)) | (0x0004) | (0x0008) | (0x0010))); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION (1)")] - public const int ACTIVATION_CONTEXT_SECTION_ASSEMBLY_INFORMATION = (1); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION (2)")] - public const int ACTIVATION_CONTEXT_SECTION_DLL_REDIRECTION = (2); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION (3)")] - public const int ACTIVATION_CONTEXT_SECTION_WINDOW_CLASS_REDIRECTION = (3); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION (4)")] - public const int ACTIVATION_CONTEXT_SECTION_COM_SERVER_REDIRECTION = (4); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION (5)")] - public const int ACTIVATION_CONTEXT_SECTION_COM_INTERFACE_REDIRECTION = (5); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION (6)")] - public const int ACTIVATION_CONTEXT_SECTION_COM_TYPE_LIBRARY_REDIRECTION = (6); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION (7)")] - public const int ACTIVATION_CONTEXT_SECTION_COM_PROGID_REDIRECTION = (7); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_GLOBAL_OBJECT_RENAME_TABLE (8)")] - public const int ACTIVATION_CONTEXT_SECTION_GLOBAL_OBJECT_RENAME_TABLE = (8); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES (9)")] - public const int ACTIVATION_CONTEXT_SECTION_CLR_SURROGATES = (9); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_APPLICATION_SETTINGS (10)")] - public const int ACTIVATION_CONTEXT_SECTION_APPLICATION_SETTINGS = (10); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_COMPATIBILITY_INFO (11)")] - public const int ACTIVATION_CONTEXT_SECTION_COMPATIBILITY_INFO = (11); - - [NativeTypeName("#define ACTIVATION_CONTEXT_SECTION_WINRT_ACTIVATABLE_CLASSES (12)")] - public const int ACTIVATION_CONTEXT_SECTION_WINRT_ACTIVATABLE_CLASSES = (12); } } diff --git a/sources/Interop/Windows/Windows/um/winnt/X3.cs b/sources/Interop/Windows/Windows/um/winnt/X3.cs new file mode 100644 index 0000000000..baeb980242 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/X3.cs @@ -0,0 +1,130 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class X3 + { + [NativeTypeName("#define X3_OPCODE_INST_WORD_X 3")] + public const int X3_OPCODE_INST_WORD_X = 3; + + [NativeTypeName("#define X3_OPCODE_SIZE_X 4")] + public const int X3_OPCODE_SIZE_X = 4; + + [NativeTypeName("#define X3_OPCODE_INST_WORD_POS_X 28")] + public const int X3_OPCODE_INST_WORD_POS_X = 28; + + [NativeTypeName("#define X3_OPCODE_SIGN_VAL_POS_X 0")] + public const int X3_OPCODE_SIGN_VAL_POS_X = 0; + + [NativeTypeName("#define X3_I_INST_WORD_X 3")] + public const int X3_I_INST_WORD_X = 3; + + [NativeTypeName("#define X3_I_SIZE_X 1")] + public const int X3_I_SIZE_X = 1; + + [NativeTypeName("#define X3_I_INST_WORD_POS_X 27")] + public const int X3_I_INST_WORD_POS_X = 27; + + [NativeTypeName("#define X3_I_SIGN_VAL_POS_X 59")] + public const int X3_I_SIGN_VAL_POS_X = 59; + + [NativeTypeName("#define X3_D_WH_INST_WORD_X 3")] + public const int X3_D_WH_INST_WORD_X = 3; + + [NativeTypeName("#define X3_D_WH_SIZE_X 3")] + public const int X3_D_WH_SIZE_X = 3; + + [NativeTypeName("#define X3_D_WH_INST_WORD_POS_X 24")] + public const int X3_D_WH_INST_WORD_POS_X = 24; + + [NativeTypeName("#define X3_D_WH_SIGN_VAL_POS_X 0")] + public const int X3_D_WH_SIGN_VAL_POS_X = 0; + + [NativeTypeName("#define X3_IMM20_INST_WORD_X 3")] + public const int X3_IMM20_INST_WORD_X = 3; + + [NativeTypeName("#define X3_IMM20_SIZE_X 20")] + public const int X3_IMM20_SIZE_X = 20; + + [NativeTypeName("#define X3_IMM20_INST_WORD_POS_X 4")] + public const int X3_IMM20_INST_WORD_POS_X = 4; + + [NativeTypeName("#define X3_IMM20_SIGN_VAL_POS_X 0")] + public const int X3_IMM20_SIGN_VAL_POS_X = 0; + + [NativeTypeName("#define X3_IMM39_1_INST_WORD_X 2")] + public const int X3_IMM39_1_INST_WORD_X = 2; + + [NativeTypeName("#define X3_IMM39_1_SIZE_X 23")] + public const int X3_IMM39_1_SIZE_X = 23; + + [NativeTypeName("#define X3_IMM39_1_INST_WORD_POS_X 0")] + public const int X3_IMM39_1_INST_WORD_POS_X = 0; + + [NativeTypeName("#define X3_IMM39_1_SIGN_VAL_POS_X 36")] + public const int X3_IMM39_1_SIGN_VAL_POS_X = 36; + + [NativeTypeName("#define X3_IMM39_2_INST_WORD_X 1")] + public const int X3_IMM39_2_INST_WORD_X = 1; + + [NativeTypeName("#define X3_IMM39_2_SIZE_X 16")] + public const int X3_IMM39_2_SIZE_X = 16; + + [NativeTypeName("#define X3_IMM39_2_INST_WORD_POS_X 16")] + public const int X3_IMM39_2_INST_WORD_POS_X = 16; + + [NativeTypeName("#define X3_IMM39_2_SIGN_VAL_POS_X 20")] + public const int X3_IMM39_2_SIGN_VAL_POS_X = 20; + + [NativeTypeName("#define X3_P_INST_WORD_X 3")] + public const int X3_P_INST_WORD_X = 3; + + [NativeTypeName("#define X3_P_SIZE_X 4")] + public const int X3_P_SIZE_X = 4; + + [NativeTypeName("#define X3_P_INST_WORD_POS_X 0")] + public const int X3_P_INST_WORD_POS_X = 0; + + [NativeTypeName("#define X3_P_SIGN_VAL_POS_X 0")] + public const int X3_P_SIGN_VAL_POS_X = 0; + + [NativeTypeName("#define X3_TMPLT_INST_WORD_X 0")] + public const int X3_TMPLT_INST_WORD_X = 0; + + [NativeTypeName("#define X3_TMPLT_SIZE_X 4")] + public const int X3_TMPLT_SIZE_X = 4; + + [NativeTypeName("#define X3_TMPLT_INST_WORD_POS_X 0")] + public const int X3_TMPLT_INST_WORD_POS_X = 0; + + [NativeTypeName("#define X3_TMPLT_SIGN_VAL_POS_X 0")] + public const int X3_TMPLT_SIGN_VAL_POS_X = 0; + + [NativeTypeName("#define X3_BTYPE_QP_INST_WORD_X 2")] + public const int X3_BTYPE_QP_INST_WORD_X = 2; + + [NativeTypeName("#define X3_BTYPE_QP_SIZE_X 9")] + public const int X3_BTYPE_QP_SIZE_X = 9; + + [NativeTypeName("#define X3_BTYPE_QP_INST_WORD_POS_X 23")] + public const int X3_BTYPE_QP_INST_WORD_POS_X = 23; + + [NativeTypeName("#define X3_BTYPE_QP_INST_VAL_POS_X 0")] + public const int X3_BTYPE_QP_INST_VAL_POS_X = 0; + + [NativeTypeName("#define X3_EMPTY_INST_WORD_X 1")] + public const int X3_EMPTY_INST_WORD_X = 1; + + [NativeTypeName("#define X3_EMPTY_SIZE_X 2")] + public const int X3_EMPTY_SIZE_X = 2; + + [NativeTypeName("#define X3_EMPTY_INST_WORD_POS_X 14")] + public const int X3_EMPTY_INST_WORD_POS_X = 14; + + [NativeTypeName("#define X3_EMPTY_INST_VAL_POS_X 0")] + public const int X3_EMPTY_INST_VAL_POS_X = 0; + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/XSTATE.Manual.cs b/sources/Interop/Windows/Windows/um/winnt/XSTATE.Manual.cs new file mode 100644 index 0000000000..db5a63caf4 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/XSTATE.Manual.cs @@ -0,0 +1,39 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static unsafe partial class XSTATE + { + public static ulong XSTATE_MASK_ALLOWED + { + get + { + if (sizeof(nint) == 4) + { + return (XSTATE_MASK_LEGACY | + XSTATE_MASK_AVX | + XSTATE_MASK_MPX | + XSTATE_MASK_AVX512 | + XSTATE_MASK_IPT | + XSTATE_MASK_CET_U | + XSTATE_MASK_LWP); + } + else + { + return (XSTATE_MASK_LEGACY | + XSTATE_MASK_AVX | + XSTATE_MASK_MPX | + XSTATE_MASK_AVX512 | + XSTATE_MASK_IPT | + XSTATE_MASK_CET_U | + XSTATE_MASK_AMX_TILE_CONFIG | + XSTATE_MASK_AMX_TILE_DATA | + XSTATE_MASK_LWP); + } + } + } + } +} diff --git a/sources/Interop/Windows/Windows/um/winnt/XSTATE.cs b/sources/Interop/Windows/Windows/um/winnt/XSTATE.cs new file mode 100644 index 0000000000..55729ec334 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winnt/XSTATE.cs @@ -0,0 +1,133 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class XSTATE + { + [NativeTypeName("#define XSTATE_LEGACY_FLOATING_POINT (0)")] + public const int XSTATE_LEGACY_FLOATING_POINT = (0); + + [NativeTypeName("#define XSTATE_LEGACY_SSE (1)")] + public const int XSTATE_LEGACY_SSE = (1); + + [NativeTypeName("#define XSTATE_GSSE (2)")] + public const int XSTATE_GSSE = (2); + + [NativeTypeName("#define XSTATE_AVX (XSTATE_GSSE)")] + public const int XSTATE_AVX = ((2)); + + [NativeTypeName("#define XSTATE_MPX_BNDREGS (3)")] + public const int XSTATE_MPX_BNDREGS = (3); + + [NativeTypeName("#define XSTATE_MPX_BNDCSR (4)")] + public const int XSTATE_MPX_BNDCSR = (4); + + [NativeTypeName("#define XSTATE_AVX512_KMASK (5)")] + public const int XSTATE_AVX512_KMASK = (5); + + [NativeTypeName("#define XSTATE_AVX512_ZMM_H (6)")] + public const int XSTATE_AVX512_ZMM_H = (6); + + [NativeTypeName("#define XSTATE_AVX512_ZMM (7)")] + public const int XSTATE_AVX512_ZMM = (7); + + [NativeTypeName("#define XSTATE_IPT (8)")] + public const int XSTATE_IPT = (8); + + [NativeTypeName("#define XSTATE_CET_U (11)")] + public const int XSTATE_CET_U = (11); + + [NativeTypeName("#define XSTATE_CET_S (12)")] + public const int XSTATE_CET_S = (12); + + [NativeTypeName("#define XSTATE_AMX_TILE_CONFIG (17)")] + public const int XSTATE_AMX_TILE_CONFIG = (17); + + [NativeTypeName("#define XSTATE_AMX_TILE_DATA (18)")] + public const int XSTATE_AMX_TILE_DATA = (18); + + [NativeTypeName("#define XSTATE_LWP (62)")] + public const int XSTATE_LWP = (62); + + [NativeTypeName("#define XSTATE_MASK_LEGACY_FLOATING_POINT (1ui64 << (XSTATE_LEGACY_FLOATING_POINT))")] + public const ulong XSTATE_MASK_LEGACY_FLOATING_POINT = (1UL << ((0))); + + [NativeTypeName("#define XSTATE_MASK_LEGACY_SSE (1ui64 << (XSTATE_LEGACY_SSE))")] + public const ulong XSTATE_MASK_LEGACY_SSE = (1UL << ((1))); + + [NativeTypeName("#define XSTATE_MASK_LEGACY (XSTATE_MASK_LEGACY_FLOATING_POINT | \\\r\n XSTATE_MASK_LEGACY_SSE)")] + public const ulong XSTATE_MASK_LEGACY = ((1UL << ((0))) | (1UL << ((1)))); + + [NativeTypeName("#define XSTATE_MASK_GSSE (1ui64 << (XSTATE_GSSE))")] + public const ulong XSTATE_MASK_GSSE = (1UL << ((2))); + + [NativeTypeName("#define XSTATE_MASK_AVX (XSTATE_MASK_GSSE)")] + public const ulong XSTATE_MASK_AVX = ((1UL << ((2)))); + + [NativeTypeName("#define XSTATE_MASK_MPX ((1ui64 << (XSTATE_MPX_BNDREGS)) | \\\r\n (1ui64 << (XSTATE_MPX_BNDCSR)))")] + public const ulong XSTATE_MASK_MPX = ((1UL << ((3))) | (1UL << ((4)))); + + [NativeTypeName("#define XSTATE_MASK_AVX512 ((1ui64 << (XSTATE_AVX512_KMASK)) | \\\r\n (1ui64 << (XSTATE_AVX512_ZMM_H)) | \\\r\n (1ui64 << (XSTATE_AVX512_ZMM)))")] + public const ulong XSTATE_MASK_AVX512 = ((1UL << ((5))) | (1UL << ((6))) | (1UL << ((7)))); + + [NativeTypeName("#define XSTATE_MASK_IPT (1ui64 << (XSTATE_IPT))")] + public const ulong XSTATE_MASK_IPT = (1UL << ((8))); + + [NativeTypeName("#define XSTATE_MASK_CET_U (1ui64 << (XSTATE_CET_U))")] + public const ulong XSTATE_MASK_CET_U = (1UL << ((11))); + + [NativeTypeName("#define XSTATE_MASK_CET_S (1ui64 << (XSTATE_CET_S))")] + public const ulong XSTATE_MASK_CET_S = (1UL << ((12))); + + [NativeTypeName("#define XSTATE_MASK_AMX_TILE_CONFIG (1ui64 << (XSTATE_AMX_TILE_CONFIG))")] + public const ulong XSTATE_MASK_AMX_TILE_CONFIG = (1UL << ((17))); + + [NativeTypeName("#define XSTATE_MASK_AMX_TILE_DATA (1ui64 << (XSTATE_AMX_TILE_DATA))")] + public const ulong XSTATE_MASK_AMX_TILE_DATA = (1UL << ((18))); + + [NativeTypeName("#define XSTATE_MASK_LWP (1ui64 << (XSTATE_LWP))")] + public const ulong XSTATE_MASK_LWP = (1UL << ((62))); + + [NativeTypeName("#define XSTATE_MASK_PERSISTENT ((1ui64 << (XSTATE_MPX_BNDCSR)) | \\\r\n XSTATE_MASK_LWP)")] + public const ulong XSTATE_MASK_PERSISTENT = ((1UL << ((4))) | (1UL << ((62)))); + + [NativeTypeName("#define XSTATE_MASK_USER_VISIBLE_SUPERVISOR (XSTATE_MASK_CET_U)")] + public const ulong XSTATE_MASK_USER_VISIBLE_SUPERVISOR = ((1UL << ((11)))); + + [NativeTypeName("#define XSTATE_MASK_LARGE_FEATURES (XSTATE_MASK_AMX_TILE_DATA)")] + public const ulong XSTATE_MASK_LARGE_FEATURES = ((1UL << ((18)))); + + [NativeTypeName("#define XSTATE_COMPACTION_ENABLE (63)")] + public const int XSTATE_COMPACTION_ENABLE = (63); + + [NativeTypeName("#define XSTATE_COMPACTION_ENABLE_MASK (1ui64 << (XSTATE_COMPACTION_ENABLE))")] + public const ulong XSTATE_COMPACTION_ENABLE_MASK = (1UL << ((63))); + + [NativeTypeName("#define XSTATE_ALIGN_BIT (1)")] + public const int XSTATE_ALIGN_BIT = (1); + + [NativeTypeName("#define XSTATE_ALIGN_MASK (1ui64 << (XSTATE_ALIGN_BIT))")] + public const ulong XSTATE_ALIGN_MASK = (1UL << ((1))); + + [NativeTypeName("#define XSTATE_XFD_BIT (2)")] + public const int XSTATE_XFD_BIT = (2); + + [NativeTypeName("#define XSTATE_XFD_MASK (1ui64 << (XSTATE_XFD_BIT))")] + public const ulong XSTATE_XFD_MASK = (1UL << ((2))); + + [NativeTypeName("#define XSTATE_CONTROLFLAG_XSAVEOPT_MASK (1)")] + public const int XSTATE_CONTROLFLAG_XSAVEOPT_MASK = (1); + + [NativeTypeName("#define XSTATE_CONTROLFLAG_XSAVEC_MASK (2)")] + public const int XSTATE_CONTROLFLAG_XSAVEC_MASK = (2); + + [NativeTypeName("#define XSTATE_CONTROLFLAG_XFD_MASK (4)")] + public const int XSTATE_CONTROLFLAG_XFD_MASK = (4); + + [NativeTypeName("#define XSTATE_CONTROLFLAG_VALID_MASK (XSTATE_CONTROLFLAG_XSAVEOPT_MASK | \\\r\n XSTATE_CONTROLFLAG_XSAVEC_MASK | \\\r\n XSTATE_CONTROLFLAG_XFD_MASK)")] + public const int XSTATE_CONTROLFLAG_VALID_MASK = ((1) | (2) | (4)); + } +} diff --git a/sources/Interop/Windows/Windows/um/winreg/RRF.cs b/sources/Interop/Windows/Windows/um/winreg/RRF.cs new file mode 100644 index 0000000000..62327bd449 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winreg/RRF.cs @@ -0,0 +1,55 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winreg.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class RRF + { + [NativeTypeName("#define RRF_RT_REG_NONE 0x00000001")] + public const int RRF_RT_REG_NONE = 0x00000001; + + [NativeTypeName("#define RRF_RT_REG_SZ 0x00000002")] + public const int RRF_RT_REG_SZ = 0x00000002; + + [NativeTypeName("#define RRF_RT_REG_EXPAND_SZ 0x00000004")] + public const int RRF_RT_REG_EXPAND_SZ = 0x00000004; + + [NativeTypeName("#define RRF_RT_REG_BINARY 0x00000008")] + public const int RRF_RT_REG_BINARY = 0x00000008; + + [NativeTypeName("#define RRF_RT_REG_DWORD 0x00000010")] + public const int RRF_RT_REG_DWORD = 0x00000010; + + [NativeTypeName("#define RRF_RT_REG_MULTI_SZ 0x00000020")] + public const int RRF_RT_REG_MULTI_SZ = 0x00000020; + + [NativeTypeName("#define RRF_RT_REG_QWORD 0x00000040")] + public const int RRF_RT_REG_QWORD = 0x00000040; + + [NativeTypeName("#define RRF_RT_DWORD (RRF_RT_REG_BINARY | RRF_RT_REG_DWORD)")] + public const int RRF_RT_DWORD = (0x00000008 | 0x00000010); + + [NativeTypeName("#define RRF_RT_QWORD (RRF_RT_REG_BINARY | RRF_RT_REG_QWORD)")] + public const int RRF_RT_QWORD = (0x00000008 | 0x00000040); + + [NativeTypeName("#define RRF_RT_ANY 0x0000ffff")] + public const int RRF_RT_ANY = 0x0000ffff; + + [NativeTypeName("#define RRF_SUBKEY_WOW6464KEY 0x00010000")] + public const int RRF_SUBKEY_WOW6464KEY = 0x00010000; + + [NativeTypeName("#define RRF_SUBKEY_WOW6432KEY 0x00020000")] + public const int RRF_SUBKEY_WOW6432KEY = 0x00020000; + + [NativeTypeName("#define RRF_WOW64_MASK 0x00030000")] + public const int RRF_WOW64_MASK = 0x00030000; + + [NativeTypeName("#define RRF_NOEXPAND 0x10000000")] + public const int RRF_NOEXPAND = 0x10000000; + + [NativeTypeName("#define RRF_ZEROONFAILURE 0x20000000")] + public const int RRF_ZEROONFAILURE = 0x20000000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winreg/SHUTDOWN.cs b/sources/Interop/Windows/Windows/um/winreg/SHUTDOWN.cs new file mode 100644 index 0000000000..4f234d0449 --- /dev/null +++ b/sources/Interop/Windows/Windows/um/winreg/SHUTDOWN.cs @@ -0,0 +1,58 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winreg.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +namespace TerraFX.Interop.Windows +{ + public static partial class SHUTDOWN + { + [NativeTypeName("#define SHUTDOWN_FORCE_OTHERS 0x00000001")] + public const int SHUTDOWN_FORCE_OTHERS = 0x00000001; + + [NativeTypeName("#define SHUTDOWN_FORCE_SELF 0x00000002")] + public const int SHUTDOWN_FORCE_SELF = 0x00000002; + + [NativeTypeName("#define SHUTDOWN_RESTART 0x00000004")] + public const int SHUTDOWN_RESTART = 0x00000004; + + [NativeTypeName("#define SHUTDOWN_POWEROFF 0x00000008")] + public const int SHUTDOWN_POWEROFF = 0x00000008; + + [NativeTypeName("#define SHUTDOWN_NOREBOOT 0x00000010")] + public const int SHUTDOWN_NOREBOOT = 0x00000010; + + [NativeTypeName("#define SHUTDOWN_GRACE_OVERRIDE 0x00000020")] + public const int SHUTDOWN_GRACE_OVERRIDE = 0x00000020; + + [NativeTypeName("#define SHUTDOWN_INSTALL_UPDATES 0x00000040")] + public const int SHUTDOWN_INSTALL_UPDATES = 0x00000040; + + [NativeTypeName("#define SHUTDOWN_RESTARTAPPS 0x00000080")] + public const int SHUTDOWN_RESTARTAPPS = 0x00000080; + + [NativeTypeName("#define SHUTDOWN_SKIP_SVC_PRESHUTDOWN 0x00000100")] + public const int SHUTDOWN_SKIP_SVC_PRESHUTDOWN = 0x00000100; + + [NativeTypeName("#define SHUTDOWN_HYBRID 0x00000200")] + public const int SHUTDOWN_HYBRID = 0x00000200; + + [NativeTypeName("#define SHUTDOWN_RESTART_BOOTOPTIONS 0x00000400")] + public const int SHUTDOWN_RESTART_BOOTOPTIONS = 0x00000400; + + [NativeTypeName("#define SHUTDOWN_SOFT_REBOOT 0x00000800")] + public const int SHUTDOWN_SOFT_REBOOT = 0x00000800; + + [NativeTypeName("#define SHUTDOWN_MOBILE_UI 0x00001000")] + public const int SHUTDOWN_MOBILE_UI = 0x00001000; + + [NativeTypeName("#define SHUTDOWN_ARSO 0x00002000")] + public const int SHUTDOWN_ARSO = 0x00002000; + + [NativeTypeName("#define SHUTDOWN_CHECK_SAFE_FOR_SERVER 0x00004000")] + public const int SHUTDOWN_CHECK_SAFE_FOR_SERVER = 0x00004000; + + [NativeTypeName("#define SHUTDOWN_VAIL_CONTAINER 0x00008000")] + public const int SHUTDOWN_VAIL_CONTAINER = 0x00008000; + } +} diff --git a/sources/Interop/Windows/Windows/um/winreg/Windows.cs b/sources/Interop/Windows/Windows/um/winreg/Windows.cs index 7e02a5f4aa..2fcb97c12c 100644 --- a/sources/Interop/Windows/Windows/um/winreg/Windows.cs +++ b/sources/Interop/Windows/Windows/um/winreg/Windows.cs @@ -367,51 +367,6 @@ public static unsafe partial class Windows [return: NativeTypeName("LSTATUS")] public static extern int RegSaveKeyExW(HKEY hKey, [NativeTypeName("LPCWSTR")] ushort* lpFile, [NativeTypeName("const LPSECURITY_ATTRIBUTES")] SECURITY_ATTRIBUTES* lpSecurityAttributes, [NativeTypeName("DWORD")] uint Flags); - [NativeTypeName("#define RRF_RT_REG_NONE 0x00000001")] - public const int RRF_RT_REG_NONE = 0x00000001; - - [NativeTypeName("#define RRF_RT_REG_SZ 0x00000002")] - public const int RRF_RT_REG_SZ = 0x00000002; - - [NativeTypeName("#define RRF_RT_REG_EXPAND_SZ 0x00000004")] - public const int RRF_RT_REG_EXPAND_SZ = 0x00000004; - - [NativeTypeName("#define RRF_RT_REG_BINARY 0x00000008")] - public const int RRF_RT_REG_BINARY = 0x00000008; - - [NativeTypeName("#define RRF_RT_REG_DWORD 0x00000010")] - public const int RRF_RT_REG_DWORD = 0x00000010; - - [NativeTypeName("#define RRF_RT_REG_MULTI_SZ 0x00000020")] - public const int RRF_RT_REG_MULTI_SZ = 0x00000020; - - [NativeTypeName("#define RRF_RT_REG_QWORD 0x00000040")] - public const int RRF_RT_REG_QWORD = 0x00000040; - - [NativeTypeName("#define RRF_RT_DWORD (RRF_RT_REG_BINARY | RRF_RT_REG_DWORD)")] - public const int RRF_RT_DWORD = (0x00000008 | 0x00000010); - - [NativeTypeName("#define RRF_RT_QWORD (RRF_RT_REG_BINARY | RRF_RT_REG_QWORD)")] - public const int RRF_RT_QWORD = (0x00000008 | 0x00000040); - - [NativeTypeName("#define RRF_RT_ANY 0x0000ffff")] - public const int RRF_RT_ANY = 0x0000ffff; - - [NativeTypeName("#define RRF_SUBKEY_WOW6464KEY 0x00010000")] - public const int RRF_SUBKEY_WOW6464KEY = 0x00010000; - - [NativeTypeName("#define RRF_SUBKEY_WOW6432KEY 0x00020000")] - public const int RRF_SUBKEY_WOW6432KEY = 0x00020000; - - [NativeTypeName("#define RRF_WOW64_MASK 0x00030000")] - public const int RRF_WOW64_MASK = 0x00030000; - - [NativeTypeName("#define RRF_NOEXPAND 0x10000000")] - public const int RRF_NOEXPAND = 0x10000000; - - [NativeTypeName("#define RRF_ZEROONFAILURE 0x20000000")] - public const int RRF_ZEROONFAILURE = 0x20000000; - [NativeTypeName("#define PROVIDER_KEEPS_VALUE_LENGTH 0x1")] public const int PROVIDER_KEEPS_VALUE_LENGTH = 0x1; @@ -553,54 +508,6 @@ public static unsafe partial class Windows [NativeTypeName("#define InitiateSystemShutdownEx InitiateSystemShutdownExW")] public static delegate* InitiateSystemShutdownEx => &InitiateSystemShutdownExW; - [NativeTypeName("#define SHUTDOWN_FORCE_OTHERS 0x00000001")] - public const int SHUTDOWN_FORCE_OTHERS = 0x00000001; - - [NativeTypeName("#define SHUTDOWN_FORCE_SELF 0x00000002")] - public const int SHUTDOWN_FORCE_SELF = 0x00000002; - - [NativeTypeName("#define SHUTDOWN_RESTART 0x00000004")] - public const int SHUTDOWN_RESTART = 0x00000004; - - [NativeTypeName("#define SHUTDOWN_POWEROFF 0x00000008")] - public const int SHUTDOWN_POWEROFF = 0x00000008; - - [NativeTypeName("#define SHUTDOWN_NOREBOOT 0x00000010")] - public const int SHUTDOWN_NOREBOOT = 0x00000010; - - [NativeTypeName("#define SHUTDOWN_GRACE_OVERRIDE 0x00000020")] - public const int SHUTDOWN_GRACE_OVERRIDE = 0x00000020; - - [NativeTypeName("#define SHUTDOWN_INSTALL_UPDATES 0x00000040")] - public const int SHUTDOWN_INSTALL_UPDATES = 0x00000040; - - [NativeTypeName("#define SHUTDOWN_RESTARTAPPS 0x00000080")] - public const int SHUTDOWN_RESTARTAPPS = 0x00000080; - - [NativeTypeName("#define SHUTDOWN_SKIP_SVC_PRESHUTDOWN 0x00000100")] - public const int SHUTDOWN_SKIP_SVC_PRESHUTDOWN = 0x00000100; - - [NativeTypeName("#define SHUTDOWN_HYBRID 0x00000200")] - public const int SHUTDOWN_HYBRID = 0x00000200; - - [NativeTypeName("#define SHUTDOWN_RESTART_BOOTOPTIONS 0x00000400")] - public const int SHUTDOWN_RESTART_BOOTOPTIONS = 0x00000400; - - [NativeTypeName("#define SHUTDOWN_SOFT_REBOOT 0x00000800")] - public const int SHUTDOWN_SOFT_REBOOT = 0x00000800; - - [NativeTypeName("#define SHUTDOWN_MOBILE_UI 0x00001000")] - public const int SHUTDOWN_MOBILE_UI = 0x00001000; - - [NativeTypeName("#define SHUTDOWN_ARSO 0x00002000")] - public const int SHUTDOWN_ARSO = 0x00002000; - - [NativeTypeName("#define SHUTDOWN_CHECK_SAFE_FOR_SERVER 0x00004000")] - public const int SHUTDOWN_CHECK_SAFE_FOR_SERVER = 0x00004000; - - [NativeTypeName("#define SHUTDOWN_VAIL_CONTAINER 0x00008000")] - public const int SHUTDOWN_VAIL_CONTAINER = 0x00008000; - [NativeTypeName("#define InitiateShutdown InitiateShutdownW")] public static delegate* InitiateShutdown => &InitiateShutdownW; diff --git a/tests/Interop/Windows/DirectX/um/d3d10misc/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/d3d10misc/GUIDTests.cs similarity index 75% rename from tests/Interop/Windows/DirectX/um/d3d10misc/DirectXTests.cs rename to tests/Interop/Windows/DirectX/um/d3d10misc/GUIDTests.cs index 56c24cc819..75e3c64dd7 100644 --- a/tests/Interop/Windows/DirectX/um/d3d10misc/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/d3d10misc/GUIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.Windows.GUID; -namespace TerraFX.Interop.DirectX.UnitTests +namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static unsafe partial class DirectXTests + /// Provides validation of the class. + public static partial class GUIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/DirectX/um/d3d10sdklayers/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/d3d10sdklayers/DXGITests.cs similarity index 80% rename from tests/Interop/Windows/DirectX/um/d3d10sdklayers/DirectXTests.cs rename to tests/Interop/Windows/DirectX/um/d3d10sdklayers/DXGITests.cs index 78d6274e9b..4ec7d3df86 100644 --- a/tests/Interop/Windows/DirectX/um/d3d10sdklayers/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/d3d10sdklayers/DXGITests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.DXGI; namespace TerraFX.Interop.DirectX.UnitTests { - /// Provides validation of the class. - public static partial class DirectXTests + /// Provides validation of the class. + public static partial class DXGITests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/DirectX/um/d3d11/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/d3d11/D3D11Tests.cs similarity index 99% rename from tests/Interop/Windows/DirectX/um/d3d11/DirectXTests.cs rename to tests/Interop/Windows/DirectX/um/d3d11/D3D11Tests.cs index 3d80ba4082..c5d06fb957 100644 --- a/tests/Interop/Windows/DirectX/um/d3d11/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/d3d11/D3D11Tests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.D3D11; namespace TerraFX.Interop.DirectX.UnitTests { - /// Provides validation of the class. - public static unsafe partial class DirectXTests + /// Provides validation of the class. + public static partial class D3D11Tests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/DirectX/um/d3d11sdklayers/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/d3d11sdklayers/DXGITests.cs similarity index 80% rename from tests/Interop/Windows/DirectX/um/d3d11sdklayers/DirectXTests.cs rename to tests/Interop/Windows/DirectX/um/d3d11sdklayers/DXGITests.cs index 94ad542c4c..07e3bc4eb5 100644 --- a/tests/Interop/Windows/DirectX/um/d3d11sdklayers/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/d3d11sdklayers/DXGITests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.DXGI; namespace TerraFX.Interop.DirectX.UnitTests { - /// Provides validation of the class. - public static partial class DirectXTests + /// Provides validation of the class. + public static partial class DXGITests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/DirectX/um/d3d12/D3D12Tests.cs b/tests/Interop/Windows/DirectX/um/d3d12/D3D12Tests.cs new file mode 100644 index 0000000000..1b2b9a8563 --- /dev/null +++ b/tests/Interop/Windows/DirectX/um/d3d12/D3D12Tests.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d12.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.DirectX.D3D12; + +namespace TerraFX.Interop.DirectX.UnitTests +{ + /// Provides validation of the class. + public static partial class D3D12Tests + { + /// Validates that the value of the property is correct. + [Test] + public static void D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTEDTest() + { + Assert.That(D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, Is.EqualTo(new Guid(0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82))); + } + } +} diff --git a/tests/Interop/Windows/DirectX/um/d3d12/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/d3d12/DirectXTests.cs index d056162f13..5909fd02cf 100644 --- a/tests/Interop/Windows/DirectX/um/d3d12/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/d3d12/DirectXTests.cs @@ -12,13 +12,6 @@ namespace TerraFX.Interop.DirectX.UnitTests /// Provides validation of the class. public static unsafe partial class DirectXTests { - /// Validates that the value of the property is correct. - [Test] - public static void D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTEDTest() - { - Assert.That(D3D12_PROTECTED_RESOURCES_SESSION_HARDWARE_PROTECTED, Is.EqualTo(new Guid(0x62B0084E, 0xC70E, 0x4DAA, 0xA1, 0x09, 0x30, 0xFF, 0x8D, 0x5A, 0x04, 0x82))); - } - /// Validates that the value of the property is correct. [Test] public static void D3D12ExperimentalShaderModelsTest() diff --git a/tests/Interop/Windows/DirectX/um/d3d12sdklayers/DXGITests.cs b/tests/Interop/Windows/DirectX/um/d3d12sdklayers/DXGITests.cs new file mode 100644 index 0000000000..d613156dfc --- /dev/null +++ b/tests/Interop/Windows/DirectX/um/d3d12sdklayers/DXGITests.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/d3d12sdklayers.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.DirectX.DXGI; + +namespace TerraFX.Interop.DirectX.UnitTests +{ + /// Provides validation of the class. + public static partial class DXGITests + { + /// Validates that the value of the property is correct. + [Test] + public static void DXGI_DEBUG_D3D12Test() + { + Assert.That(DXGI_DEBUG_D3D12, Is.EqualTo(new Guid(0xcf59a98c, 0xa950, 0x4326, 0x91, 0xef, 0x9b, 0xba, 0xa1, 0x7b, 0xfd, 0x95))); + } + } +} diff --git a/tests/Interop/Windows/DirectX/um/d3d12sdklayers/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/d3d12sdklayers/DirectXTests.cs index df82f08656..450d923a15 100644 --- a/tests/Interop/Windows/DirectX/um/d3d12sdklayers/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/d3d12sdklayers/DirectXTests.cs @@ -18,12 +18,5 @@ public static void WKPDID_D3DAutoDebugObjectNameWTest() { Assert.That(WKPDID_D3DAutoDebugObjectNameW, Is.EqualTo(new Guid(0xd4902e36, 0x757a, 0x4942, 0x95, 0x94, 0xb6, 0x76, 0x9a, 0xfa, 0x43, 0xcd))); } - - /// Validates that the value of the property is correct. - [Test] - public static void DXGI_DEBUG_D3D12Test() - { - Assert.That(DXGI_DEBUG_D3D12, Is.EqualTo(new Guid(0xcf59a98c, 0xa950, 0x4326, 0x91, 0xef, 0x9b, 0xba, 0xa1, 0x7b, 0xfd, 0x95))); - } } } diff --git a/tests/Interop/Windows/DirectX/um/d3d12video/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/d3d12video/D3D12Tests.cs similarity index 98% rename from tests/Interop/Windows/DirectX/um/d3d12video/DirectXTests.cs rename to tests/Interop/Windows/DirectX/um/d3d12video/D3D12Tests.cs index f59f48189a..85070e6c96 100644 --- a/tests/Interop/Windows/DirectX/um/d3d12video/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/d3d12video/D3D12Tests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.D3D12; namespace TerraFX.Interop.DirectX.UnitTests { - /// Provides validation of the class. - public static partial class DirectXTests + /// Provides validation of the class. + public static partial class D3D12Tests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/DirectX/um/dxgidebug/DirectXTests.cs b/tests/Interop/Windows/DirectX/um/dxgidebug/DXGITests.cs similarity index 90% rename from tests/Interop/Windows/DirectX/um/dxgidebug/DirectXTests.cs rename to tests/Interop/Windows/DirectX/um/dxgidebug/DXGITests.cs index b872931b80..11a9205ca0 100644 --- a/tests/Interop/Windows/DirectX/um/dxgidebug/DirectXTests.cs +++ b/tests/Interop/Windows/DirectX/um/dxgidebug/DXGITests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.DirectX.DirectX; +using static TerraFX.Interop.DirectX.DXGI; namespace TerraFX.Interop.DirectX.UnitTests { - /// Provides validation of the class. - public static unsafe partial class DirectXTests + /// Provides validation of the class. + public static partial class DXGITests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/shared/hidclass/WindowsTests.cs b/tests/Interop/Windows/Windows/shared/hidclass/GUIDTests.cs similarity index 89% rename from tests/Interop/Windows/Windows/shared/hidclass/WindowsTests.cs rename to tests/Interop/Windows/Windows/shared/hidclass/GUIDTests.cs index 48139926e5..1064ad2730 100644 --- a/tests/Interop/Windows/Windows/shared/hidclass/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/shared/hidclass/GUIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.GUID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class GUIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/shared/uuids/MEDIASUBTYPETests.cs b/tests/Interop/Windows/Windows/shared/uuids/MEDIASUBTYPETests.cs new file mode 100644 index 0000000000..234da44f12 --- /dev/null +++ b/tests/Interop/Windows/Windows/shared/uuids/MEDIASUBTYPETests.cs @@ -0,0 +1,946 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from shared/uuids.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.MEDIASUBTYPE; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class MEDIASUBTYPETests + { + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_NoneTest() + { + Assert.That(MEDIASUBTYPE_None, Is.EqualTo(new Guid(0xe436eb8e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DVB_SUBTITLESTest() + { + Assert.That(MEDIASUBTYPE_DVB_SUBTITLES, Is.EqualTo(new Guid(0x34FFCBC3, 0xD5B3, 0x4171, 0x90, 0x02, 0xD4, 0xC6, 0x03, 0x01, 0x69, 0x7F))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ISDB_CAPTIONSTest() + { + Assert.That(MEDIASUBTYPE_ISDB_CAPTIONS, Is.EqualTo(new Guid(0x059dd67d, 0x2e55, 0x4d41, 0x8d, 0x1b, 0x01, 0xf5, 0xe4, 0xf5, 0x06, 0x07))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ISDB_SUPERIMPOSETest() + { + Assert.That(MEDIASUBTYPE_ISDB_SUPERIMPOSE, Is.EqualTo(new Guid(0x36dc6d28, 0xf1a6, 0x4216, 0x90, 0x48, 0x9c, 0xfc, 0xef, 0xeb, 0x5e, 0xba))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_CLPLTest() + { + Assert.That(MEDIASUBTYPE_CLPL, Is.EqualTo(new Guid(0x4C504C43, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_YUYVTest() + { + Assert.That(MEDIASUBTYPE_YUYV, Is.EqualTo(new Guid(0x56595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IYUVTest() + { + Assert.That(MEDIASUBTYPE_IYUV, Is.EqualTo(new Guid(0x56555949, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_YVU9Test() + { + Assert.That(MEDIASUBTYPE_YVU9, Is.EqualTo(new Guid(0x39555659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Y411Test() + { + Assert.That(MEDIASUBTYPE_Y411, Is.EqualTo(new Guid(0x31313459, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Y41PTest() + { + Assert.That(MEDIASUBTYPE_Y41P, Is.EqualTo(new Guid(0x50313459, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_YUY2Test() + { + Assert.That(MEDIASUBTYPE_YUY2, Is.EqualTo(new Guid(0x32595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_YVYUTest() + { + Assert.That(MEDIASUBTYPE_YVYU, Is.EqualTo(new Guid(0x55595659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_UYVYTest() + { + Assert.That(MEDIASUBTYPE_UYVY, Is.EqualTo(new Guid(0x59565955, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Y211Test() + { + Assert.That(MEDIASUBTYPE_Y211, Is.EqualTo(new Guid(0x31313259, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_CLJRTest() + { + Assert.That(MEDIASUBTYPE_CLJR, Is.EqualTo(new Guid(0x524a4c43, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IF09Test() + { + Assert.That(MEDIASUBTYPE_IF09, Is.EqualTo(new Guid(0x39304649, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_CPLATest() + { + Assert.That(MEDIASUBTYPE_CPLA, Is.EqualTo(new Guid(0x414c5043, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MJPGTest() + { + Assert.That(MEDIASUBTYPE_MJPG, Is.EqualTo(new Guid(0x47504A4D, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_TVMJTest() + { + Assert.That(MEDIASUBTYPE_TVMJ, Is.EqualTo(new Guid(0x4A4D5654, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_WAKETest() + { + Assert.That(MEDIASUBTYPE_WAKE, Is.EqualTo(new Guid(0x454B4157, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_CFCCTest() + { + Assert.That(MEDIASUBTYPE_CFCC, Is.EqualTo(new Guid(0x43434643, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IJPGTest() + { + Assert.That(MEDIASUBTYPE_IJPG, Is.EqualTo(new Guid(0x47504A49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_PlumTest() + { + Assert.That(MEDIASUBTYPE_Plum, Is.EqualTo(new Guid(0x6D756C50, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DVCSTest() + { + Assert.That(MEDIASUBTYPE_DVCS, Is.EqualTo(new Guid(0x53435644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_H264Test() + { + Assert.That(MEDIASUBTYPE_H264, Is.EqualTo(new Guid(0x34363248, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DVSDTest() + { + Assert.That(MEDIASUBTYPE_DVSD, Is.EqualTo(new Guid(0x44535644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MDVFTest() + { + Assert.That(MEDIASUBTYPE_MDVF, Is.EqualTo(new Guid(0x4656444D, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB1Test() + { + Assert.That(MEDIASUBTYPE_RGB1, Is.EqualTo(new Guid(0xe436eb78, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB4Test() + { + Assert.That(MEDIASUBTYPE_RGB4, Is.EqualTo(new Guid(0xe436eb79, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB8Test() + { + Assert.That(MEDIASUBTYPE_RGB8, Is.EqualTo(new Guid(0xe436eb7a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB565Test() + { + Assert.That(MEDIASUBTYPE_RGB565, Is.EqualTo(new Guid(0xe436eb7b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB555Test() + { + Assert.That(MEDIASUBTYPE_RGB555, Is.EqualTo(new Guid(0xe436eb7c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB24Test() + { + Assert.That(MEDIASUBTYPE_RGB24, Is.EqualTo(new Guid(0xe436eb7d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB32Test() + { + Assert.That(MEDIASUBTYPE_RGB32, Is.EqualTo(new Guid(0xe436eb7e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB1555Test() + { + Assert.That(MEDIASUBTYPE_ARGB1555, Is.EqualTo(new Guid(0x297c55af, 0xe209, 0x4cb3, 0xb7, 0x57, 0xc7, 0x6d, 0x6b, 0x9c, 0x88, 0xa8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB4444Test() + { + Assert.That(MEDIASUBTYPE_ARGB4444, Is.EqualTo(new Guid(0x6e6415e6, 0x5c24, 0x425f, 0x93, 0xcd, 0x80, 0x10, 0x2b, 0x3d, 0x1c, 0xca))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB32Test() + { + Assert.That(MEDIASUBTYPE_ARGB32, Is.EqualTo(new Guid(0x773c9ac0, 0x3274, 0x11d0, 0xb7, 0x24, 0x0, 0xaa, 0x0, 0x6c, 0x1a, 0x1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_A2R10G10B10Test() + { + Assert.That(MEDIASUBTYPE_A2R10G10B10, Is.EqualTo(new Guid(0x2f8bb76d, 0xb644, 0x4550, 0xac, 0xf3, 0xd3, 0x0c, 0xaa, 0x65, 0xd5, 0xc5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_A2B10G10R10Test() + { + Assert.That(MEDIASUBTYPE_A2B10G10R10, Is.EqualTo(new Guid(0x576f7893, 0xbdf6, 0x48c4, 0x87, 0x5f, 0xae, 0x7b, 0x81, 0x83, 0x45, 0x67))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AYUVTest() + { + Assert.That(MEDIASUBTYPE_AYUV, Is.EqualTo(new Guid(0x56555941, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AI44Test() + { + Assert.That(MEDIASUBTYPE_AI44, Is.EqualTo(new Guid(0x34344941, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IA44Test() + { + Assert.That(MEDIASUBTYPE_IA44, Is.EqualTo(new Guid(0x34344149, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB32_D3D_DX7_RTTest() + { + Assert.That(MEDIASUBTYPE_RGB32_D3D_DX7_RT, Is.EqualTo(new Guid(0x32335237, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB16_D3D_DX7_RTTest() + { + Assert.That(MEDIASUBTYPE_RGB16_D3D_DX7_RT, Is.EqualTo(new Guid(0x36315237, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB32_D3D_DX7_RTTest() + { + Assert.That(MEDIASUBTYPE_ARGB32_D3D_DX7_RT, Is.EqualTo(new Guid(0x38384137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB4444_D3D_DX7_RTTest() + { + Assert.That(MEDIASUBTYPE_ARGB4444_D3D_DX7_RT, Is.EqualTo(new Guid(0x34344137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB1555_D3D_DX7_RTTest() + { + Assert.That(MEDIASUBTYPE_ARGB1555_D3D_DX7_RT, Is.EqualTo(new Guid(0x35314137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB32_D3D_DX9_RTTest() + { + Assert.That(MEDIASUBTYPE_RGB32_D3D_DX9_RT, Is.EqualTo(new Guid(0x32335239, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RGB16_D3D_DX9_RTTest() + { + Assert.That(MEDIASUBTYPE_RGB16_D3D_DX9_RT, Is.EqualTo(new Guid(0x36315239, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB32_D3D_DX9_RTTest() + { + Assert.That(MEDIASUBTYPE_ARGB32_D3D_DX9_RT, Is.EqualTo(new Guid(0x38384139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB4444_D3D_DX9_RTTest() + { + Assert.That(MEDIASUBTYPE_ARGB4444_D3D_DX9_RT, Is.EqualTo(new Guid(0x34344139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_ARGB1555_D3D_DX9_RTTest() + { + Assert.That(MEDIASUBTYPE_ARGB1555_D3D_DX9_RT, Is.EqualTo(new Guid(0x35314139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_YV12Test() + { + Assert.That(MEDIASUBTYPE_YV12, Is.EqualTo(new Guid(0x32315659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_NV12Test() + { + Assert.That(MEDIASUBTYPE_NV12, Is.EqualTo(new Guid(0x3231564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_NV11Test() + { + Assert.That(MEDIASUBTYPE_NV11, Is.EqualTo(new Guid(0x3131564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_P208Test() + { + Assert.That(MEDIASUBTYPE_P208, Is.EqualTo(new Guid(0x38303250, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_P210Test() + { + Assert.That(MEDIASUBTYPE_P210, Is.EqualTo(new Guid(0x30313250, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_P216Test() + { + Assert.That(MEDIASUBTYPE_P216, Is.EqualTo(new Guid(0x36313250, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_P010Test() + { + Assert.That(MEDIASUBTYPE_P010, Is.EqualTo(new Guid(0x30313050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_P016Test() + { + Assert.That(MEDIASUBTYPE_P016, Is.EqualTo(new Guid(0x36313050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Y210Test() + { + Assert.That(MEDIASUBTYPE_Y210, Is.EqualTo(new Guid(0x30313259, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Y216Test() + { + Assert.That(MEDIASUBTYPE_Y216, Is.EqualTo(new Guid(0x36313259, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_P408Test() + { + Assert.That(MEDIASUBTYPE_P408, Is.EqualTo(new Guid(0x38303450, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_NV24Test() + { + Assert.That(MEDIASUBTYPE_NV24, Is.EqualTo(new Guid(0x3432564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_420OTest() + { + Assert.That(MEDIASUBTYPE_420O, Is.EqualTo(new Guid(0x4F303234, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IMC1Test() + { + Assert.That(MEDIASUBTYPE_IMC1, Is.EqualTo(new Guid(0x31434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IMC2Test() + { + Assert.That(MEDIASUBTYPE_IMC2, Is.EqualTo(new Guid(0x32434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IMC3Test() + { + Assert.That(MEDIASUBTYPE_IMC3, Is.EqualTo(new Guid(0x33434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IMC4Test() + { + Assert.That(MEDIASUBTYPE_IMC4, Is.EqualTo(new Guid(0x34434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_S340Test() + { + Assert.That(MEDIASUBTYPE_S340, Is.EqualTo(new Guid(0x30343353, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_S342Test() + { + Assert.That(MEDIASUBTYPE_S342, Is.EqualTo(new Guid(0x32343353, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_OverlayTest() + { + Assert.That(MEDIASUBTYPE_Overlay, Is.EqualTo(new Guid(0xe436eb7f, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MPEG1PacketTest() + { + Assert.That(MEDIASUBTYPE_MPEG1Packet, Is.EqualTo(new Guid(0xe436eb80, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MPEG1PayloadTest() + { + Assert.That(MEDIASUBTYPE_MPEG1Payload, Is.EqualTo(new Guid(0xe436eb81, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MPEG1AudioPayloadTest() + { + Assert.That(MEDIASUBTYPE_MPEG1AudioPayload, Is.EqualTo(new Guid(0x00000050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MPEG1SystemTest() + { + Assert.That(MEDIASUBTYPE_MPEG1System, Is.EqualTo(new Guid(0xe436eb84, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MPEG1VideoCDTest() + { + Assert.That(MEDIASUBTYPE_MPEG1VideoCD, Is.EqualTo(new Guid(0xe436eb85, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MPEG1VideoTest() + { + Assert.That(MEDIASUBTYPE_MPEG1Video, Is.EqualTo(new Guid(0xe436eb86, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_MPEG1AudioTest() + { + Assert.That(MEDIASUBTYPE_MPEG1Audio, Is.EqualTo(new Guid(0xe436eb87, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AviTest() + { + Assert.That(MEDIASUBTYPE_Avi, Is.EqualTo(new Guid(0xe436eb88, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AsfTest() + { + Assert.That(MEDIASUBTYPE_Asf, Is.EqualTo(new Guid(0x3db80f90, 0x9412, 0x11d1, 0xad, 0xed, 0x0, 0x0, 0xf8, 0x75, 0x4b, 0x99))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_QTMovieTest() + { + Assert.That(MEDIASUBTYPE_QTMovie, Is.EqualTo(new Guid(0xe436eb89, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_QTRpzaTest() + { + Assert.That(MEDIASUBTYPE_QTRpza, Is.EqualTo(new Guid(0x617a7072, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_QTSmcTest() + { + Assert.That(MEDIASUBTYPE_QTSmc, Is.EqualTo(new Guid(0x20636d73, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_QTRleTest() + { + Assert.That(MEDIASUBTYPE_QTRle, Is.EqualTo(new Guid(0x20656c72, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_QTJpegTest() + { + Assert.That(MEDIASUBTYPE_QTJpeg, Is.EqualTo(new Guid(0x6765706a, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_PCMAudio_ObsoleteTest() + { + Assert.That(MEDIASUBTYPE_PCMAudio_Obsolete, Is.EqualTo(new Guid(0xe436eb8a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_PCMTest() + { + Assert.That(MEDIASUBTYPE_PCM, Is.EqualTo(new Guid(0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_WAVETest() + { + Assert.That(MEDIASUBTYPE_WAVE, Is.EqualTo(new Guid(0xe436eb8b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AUTest() + { + Assert.That(MEDIASUBTYPE_AU, Is.EqualTo(new Guid(0xe436eb8c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AIFFTest() + { + Assert.That(MEDIASUBTYPE_AIFF, Is.EqualTo(new Guid(0xe436eb8d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_dvsdTest() + { + Assert.That(MEDIASUBTYPE_dvsd, Is.EqualTo(new Guid(0x64737664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_dvhdTest() + { + Assert.That(MEDIASUBTYPE_dvhd, Is.EqualTo(new Guid(0x64687664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_dvslTest() + { + Assert.That(MEDIASUBTYPE_dvsl, Is.EqualTo(new Guid(0x6c737664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_dv25Test() + { + Assert.That(MEDIASUBTYPE_dv25, Is.EqualTo(new Guid(0x35327664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_dv50Test() + { + Assert.That(MEDIASUBTYPE_dv50, Is.EqualTo(new Guid(0x30357664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_dvh1Test() + { + Assert.That(MEDIASUBTYPE_dvh1, Is.EqualTo(new Guid(0x31687664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Line21_BytePairTest() + { + Assert.That(MEDIASUBTYPE_Line21_BytePair, Is.EqualTo(new Guid(0x6e8d4a22, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Line21_GOPPacketTest() + { + Assert.That(MEDIASUBTYPE_Line21_GOPPacket, Is.EqualTo(new Guid(0x6e8d4a23, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_Line21_VBIRawDataTest() + { + Assert.That(MEDIASUBTYPE_Line21_VBIRawData, Is.EqualTo(new Guid(0x6e8d4a24, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_708_608DataTest() + { + Assert.That(MEDIASUBTYPE_708_608Data, Is.EqualTo(new Guid(0xaf414bc, 0x4ed2, 0x445e, 0x98, 0x39, 0x8f, 0x9, 0x55, 0x68, 0xab, 0x3c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DtvCcDataTest() + { + Assert.That(MEDIASUBTYPE_DtvCcData, Is.EqualTo(new Guid(0xF52ADDAA, 0x36F0, 0x43F5, 0x95, 0xEA, 0x6D, 0x86, 0x64, 0x84, 0x26, 0x2A))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_CC_CONTAINERTest() + { + Assert.That(MEDIASUBTYPE_CC_CONTAINER, Is.EqualTo(new Guid(0x7ea626db, 0x54da, 0x437b, 0xbe, 0x9f, 0xf7, 0x30, 0x73, 0xad, 0xfa, 0x3c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_TELETEXTTest() + { + Assert.That(MEDIASUBTYPE_TELETEXT, Is.EqualTo(new Guid(0xf72a76e3, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_VBITest() + { + Assert.That(MEDIASUBTYPE_VBI, Is.EqualTo(new Guid(0x663da43c, 0x3e8, 0x4e9a, 0x9c, 0xd5, 0xbf, 0x11, 0xed, 0xd, 0xef, 0x76))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_WSSTest() + { + Assert.That(MEDIASUBTYPE_WSS, Is.EqualTo(new Guid(0x2791D576, 0x8E7A, 0x466F, 0x9E, 0x90, 0x5D, 0x3F, 0x30, 0x83, 0x73, 0x8B))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_XDSTest() + { + Assert.That(MEDIASUBTYPE_XDS, Is.EqualTo(new Guid(0x1ca73e3, 0xdce6, 0x4575, 0xaf, 0xe1, 0x2b, 0xf1, 0xc9, 0x2, 0xca, 0xf3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_VPSTest() + { + Assert.That(MEDIASUBTYPE_VPS, Is.EqualTo(new Guid(0xa1b3f620, 0x9792, 0x4d8d, 0x81, 0xa4, 0x86, 0xaf, 0x25, 0x77, 0x20, 0x90))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DRM_AudioTest() + { + Assert.That(MEDIASUBTYPE_DRM_Audio, Is.EqualTo(new Guid(0x00000009, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_IEEE_FLOATTest() + { + Assert.That(MEDIASUBTYPE_IEEE_FLOAT, Is.EqualTo(new Guid(0x00000003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DOLBY_AC3_SPDIFTest() + { + Assert.That(MEDIASUBTYPE_DOLBY_AC3_SPDIF, Is.EqualTo(new Guid(0x00000092, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_RAW_SPORTTest() + { + Assert.That(MEDIASUBTYPE_RAW_SPORT, Is.EqualTo(new Guid(0x00000240, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_SPDIF_TAG_241hTest() + { + Assert.That(MEDIASUBTYPE_SPDIF_TAG_241h, Is.EqualTo(new Guid(0x00000241, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DssVideoTest() + { + Assert.That(MEDIASUBTYPE_DssVideo, Is.EqualTo(new Guid(0xa0af4f81, 0xe163, 0x11d0, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_DssAudioTest() + { + Assert.That(MEDIASUBTYPE_DssAudio, Is.EqualTo(new Guid(0xa0af4f82, 0xe163, 0x11d0, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_VPVideoTest() + { + Assert.That(MEDIASUBTYPE_VPVideo, Is.EqualTo(new Guid(0x5a9b6a40, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_VPVBITest() + { + Assert.That(MEDIASUBTYPE_VPVBI, Is.EqualTo(new Guid(0x5a9b6a41, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_NTSC_MTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_NTSC_M, Is.EqualTo(new Guid(0x482dde2, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_BTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_B, Is.EqualTo(new Guid(0x482dde5, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_DTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_D, Is.EqualTo(new Guid(0x482dde6, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_GTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_G, Is.EqualTo(new Guid(0x482dde7, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_HTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_H, Is.EqualTo(new Guid(0x482dde8, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_ITest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_I, Is.EqualTo(new Guid(0x482dde9, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_MTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_M, Is.EqualTo(new Guid(0x482ddea, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_NTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_N, Is.EqualTo(new Guid(0x482ddeb, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_PAL_N_COMBOTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_N_COMBO, Is.EqualTo(new Guid(0x482ddec, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_SECAM_BTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_B, Is.EqualTo(new Guid(0x482ddf0, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_SECAM_DTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_D, Is.EqualTo(new Guid(0x482ddf1, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_SECAM_GTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_G, Is.EqualTo(new Guid(0x482ddf2, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_SECAM_HTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_H, Is.EqualTo(new Guid(0x482ddf3, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_SECAM_KTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_K, Is.EqualTo(new Guid(0x482ddf4, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_SECAM_K1Test() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_K1, Is.EqualTo(new Guid(0x482ddf5, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MEDIASUBTYPE_AnalogVideo_SECAM_LTest() + { + Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_L, Is.EqualTo(new Guid(0x482ddf6, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); + } + } +} diff --git a/tests/Interop/Windows/Windows/shared/uuids/WindowsTests.cs b/tests/Interop/Windows/Windows/shared/uuids/WindowsTests.cs index 3e800c74ad..47248ec478 100644 --- a/tests/Interop/Windows/Windows/shared/uuids/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/shared/uuids/WindowsTests.cs @@ -12,13 +12,6 @@ namespace TerraFX.Interop.Windows.UnitTests /// Provides validation of the class. public static partial class WindowsTests { - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_NoneTest() - { - Assert.That(MEDIASUBTYPE_None, Is.EqualTo(new Guid(0xe436eb8e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - /// Validates that the value of the property is correct. [Test] public static void MEDIATYPE_VideoTest() @@ -117,27 +110,6 @@ public static void MEDIATYPE_VBITest() Assert.That(MEDIATYPE_VBI, Is.EqualTo(new Guid(0xf72a76e1, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba))); } - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DVB_SUBTITLESTest() - { - Assert.That(MEDIASUBTYPE_DVB_SUBTITLES, Is.EqualTo(new Guid(0x34FFCBC3, 0xD5B3, 0x4171, 0x90, 0x02, 0xD4, 0xC6, 0x03, 0x01, 0x69, 0x7F))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ISDB_CAPTIONSTest() - { - Assert.That(MEDIASUBTYPE_ISDB_CAPTIONS, Is.EqualTo(new Guid(0x059dd67d, 0x2e55, 0x4d41, 0x8d, 0x1b, 0x01, 0xf5, 0xe4, 0xf5, 0x06, 0x07))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ISDB_SUPERIMPOSETest() - { - Assert.That(MEDIASUBTYPE_ISDB_SUPERIMPOSE, Is.EqualTo(new Guid(0x36dc6d28, 0xf1a6, 0x4216, 0x90, 0x48, 0x9c, 0xfc, 0xef, 0xeb, 0x5e, 0xba))); - } - /// Validates that the value of the property is correct. [Test] public static void MEDIATYPE_TimecodeTest() @@ -159,986 +131,83 @@ public static void MEDIATYPE_URL_STREAMTest() Assert.That(MEDIATYPE_URL_STREAM, Is.EqualTo(new Guid(0x736c7275, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); } - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_CLPLTest() - { - Assert.That(MEDIASUBTYPE_CLPL, Is.EqualTo(new Guid(0x4C504C43, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_YUYVTest() - { - Assert.That(MEDIASUBTYPE_YUYV, Is.EqualTo(new Guid(0x56595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_IYUVTest() - { - Assert.That(MEDIASUBTYPE_IYUV, Is.EqualTo(new Guid(0x56555949, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_YVU9Test() - { - Assert.That(MEDIASUBTYPE_YVU9, Is.EqualTo(new Guid(0x39555659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_Y411Test() - { - Assert.That(MEDIASUBTYPE_Y411, Is.EqualTo(new Guid(0x31313459, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_Y41PTest() - { - Assert.That(MEDIASUBTYPE_Y41P, Is.EqualTo(new Guid(0x50313459, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_YUY2Test() - { - Assert.That(MEDIASUBTYPE_YUY2, Is.EqualTo(new Guid(0x32595559, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_YVYUTest() - { - Assert.That(MEDIASUBTYPE_YVYU, Is.EqualTo(new Guid(0x55595659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_UYVYTest() - { - Assert.That(MEDIASUBTYPE_UYVY, Is.EqualTo(new Guid(0x59565955, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_Y211Test() - { - Assert.That(MEDIASUBTYPE_Y211, Is.EqualTo(new Guid(0x31313259, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_CLJRTest() - { - Assert.That(MEDIASUBTYPE_CLJR, Is.EqualTo(new Guid(0x524a4c43, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_IF09Test() - { - Assert.That(MEDIASUBTYPE_IF09, Is.EqualTo(new Guid(0x39304649, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_CPLATest() - { - Assert.That(MEDIASUBTYPE_CPLA, Is.EqualTo(new Guid(0x414c5043, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MJPGTest() - { - Assert.That(MEDIASUBTYPE_MJPG, Is.EqualTo(new Guid(0x47504A4D, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_TVMJTest() - { - Assert.That(MEDIASUBTYPE_TVMJ, Is.EqualTo(new Guid(0x4A4D5654, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_WAKETest() - { - Assert.That(MEDIASUBTYPE_WAKE, Is.EqualTo(new Guid(0x454B4157, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_CFCCTest() - { - Assert.That(MEDIASUBTYPE_CFCC, Is.EqualTo(new Guid(0x43434643, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_IJPGTest() - { - Assert.That(MEDIASUBTYPE_IJPG, Is.EqualTo(new Guid(0x47504A49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_PlumTest() - { - Assert.That(MEDIASUBTYPE_Plum, Is.EqualTo(new Guid(0x6D756C50, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DVCSTest() - { - Assert.That(MEDIASUBTYPE_DVCS, Is.EqualTo(new Guid(0x53435644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_H264Test() - { - Assert.That(MEDIASUBTYPE_H264, Is.EqualTo(new Guid(0x34363248, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DVSDTest() - { - Assert.That(MEDIASUBTYPE_DVSD, Is.EqualTo(new Guid(0x44535644, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MDVFTest() - { - Assert.That(MEDIASUBTYPE_MDVF, Is.EqualTo(new Guid(0x4656444D, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB1Test() - { - Assert.That(MEDIASUBTYPE_RGB1, Is.EqualTo(new Guid(0xe436eb78, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB4Test() - { - Assert.That(MEDIASUBTYPE_RGB4, Is.EqualTo(new Guid(0xe436eb79, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB8Test() - { - Assert.That(MEDIASUBTYPE_RGB8, Is.EqualTo(new Guid(0xe436eb7a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB565Test() - { - Assert.That(MEDIASUBTYPE_RGB565, Is.EqualTo(new Guid(0xe436eb7b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB555Test() - { - Assert.That(MEDIASUBTYPE_RGB555, Is.EqualTo(new Guid(0xe436eb7c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB24Test() - { - Assert.That(MEDIASUBTYPE_RGB24, Is.EqualTo(new Guid(0xe436eb7d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB32Test() - { - Assert.That(MEDIASUBTYPE_RGB32, Is.EqualTo(new Guid(0xe436eb7e, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB1555Test() - { - Assert.That(MEDIASUBTYPE_ARGB1555, Is.EqualTo(new Guid(0x297c55af, 0xe209, 0x4cb3, 0xb7, 0x57, 0xc7, 0x6d, 0x6b, 0x9c, 0x88, 0xa8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB4444Test() - { - Assert.That(MEDIASUBTYPE_ARGB4444, Is.EqualTo(new Guid(0x6e6415e6, 0x5c24, 0x425f, 0x93, 0xcd, 0x80, 0x10, 0x2b, 0x3d, 0x1c, 0xca))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB32Test() - { - Assert.That(MEDIASUBTYPE_ARGB32, Is.EqualTo(new Guid(0x773c9ac0, 0x3274, 0x11d0, 0xb7, 0x24, 0x0, 0xaa, 0x0, 0x6c, 0x1a, 0x1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_A2R10G10B10Test() - { - Assert.That(MEDIASUBTYPE_A2R10G10B10, Is.EqualTo(new Guid(0x2f8bb76d, 0xb644, 0x4550, 0xac, 0xf3, 0xd3, 0x0c, 0xaa, 0x65, 0xd5, 0xc5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_A2B10G10R10Test() - { - Assert.That(MEDIASUBTYPE_A2B10G10R10, Is.EqualTo(new Guid(0x576f7893, 0xbdf6, 0x48c4, 0x87, 0x5f, 0xae, 0x7b, 0x81, 0x83, 0x45, 0x67))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AYUVTest() - { - Assert.That(MEDIASUBTYPE_AYUV, Is.EqualTo(new Guid(0x56555941, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AI44Test() - { - Assert.That(MEDIASUBTYPE_AI44, Is.EqualTo(new Guid(0x34344941, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_IA44Test() - { - Assert.That(MEDIASUBTYPE_IA44, Is.EqualTo(new Guid(0x34344149, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB32_D3D_DX7_RTTest() - { - Assert.That(MEDIASUBTYPE_RGB32_D3D_DX7_RT, Is.EqualTo(new Guid(0x32335237, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB16_D3D_DX7_RTTest() - { - Assert.That(MEDIASUBTYPE_RGB16_D3D_DX7_RT, Is.EqualTo(new Guid(0x36315237, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB32_D3D_DX7_RTTest() - { - Assert.That(MEDIASUBTYPE_ARGB32_D3D_DX7_RT, Is.EqualTo(new Guid(0x38384137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB4444_D3D_DX7_RTTest() - { - Assert.That(MEDIASUBTYPE_ARGB4444_D3D_DX7_RT, Is.EqualTo(new Guid(0x34344137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB1555_D3D_DX7_RTTest() - { - Assert.That(MEDIASUBTYPE_ARGB1555_D3D_DX7_RT, Is.EqualTo(new Guid(0x35314137, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB32_D3D_DX9_RTTest() - { - Assert.That(MEDIASUBTYPE_RGB32_D3D_DX9_RT, Is.EqualTo(new Guid(0x32335239, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RGB16_D3D_DX9_RTTest() - { - Assert.That(MEDIASUBTYPE_RGB16_D3D_DX9_RT, Is.EqualTo(new Guid(0x36315239, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB32_D3D_DX9_RTTest() - { - Assert.That(MEDIASUBTYPE_ARGB32_D3D_DX9_RT, Is.EqualTo(new Guid(0x38384139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB4444_D3D_DX9_RTTest() - { - Assert.That(MEDIASUBTYPE_ARGB4444_D3D_DX9_RT, Is.EqualTo(new Guid(0x34344139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_ARGB1555_D3D_DX9_RTTest() - { - Assert.That(MEDIASUBTYPE_ARGB1555_D3D_DX9_RT, Is.EqualTo(new Guid(0x35314139, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_YV12Test() - { - Assert.That(MEDIASUBTYPE_YV12, Is.EqualTo(new Guid(0x32315659, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_NV12Test() - { - Assert.That(MEDIASUBTYPE_NV12, Is.EqualTo(new Guid(0x3231564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_NV11Test() - { - Assert.That(MEDIASUBTYPE_NV11, Is.EqualTo(new Guid(0x3131564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_P208Test() - { - Assert.That(MEDIASUBTYPE_P208, Is.EqualTo(new Guid(0x38303250, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_P210Test() + public static void MEDIATYPE_MPEG1SystemStreamTest() { - Assert.That(MEDIASUBTYPE_P210, Is.EqualTo(new Guid(0x30313250, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(MEDIATYPE_MPEG1SystemStream, Is.EqualTo(new Guid(0xe436eb82, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_P216Test() + public static void FORMAT_NoneTest() { - Assert.That(MEDIASUBTYPE_P216, Is.EqualTo(new Guid(0x36313250, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_None, Is.EqualTo(new Guid(0x0F6417D6, 0xc318, 0x11d0, 0xa4, 0x3f, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_P010Test() + public static void FORMAT_VideoInfoTest() { - Assert.That(MEDIASUBTYPE_P010, Is.EqualTo(new Guid(0x30313050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_VideoInfo, Is.EqualTo(new Guid(0x05589f80, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_P016Test() + public static void FORMAT_VideoInfo2Test() { - Assert.That(MEDIASUBTYPE_P016, Is.EqualTo(new Guid(0x36313050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_VideoInfo2, Is.EqualTo(new Guid(0xf72a76A0, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_Y210Test() + public static void FORMAT_WaveFormatExTest() { - Assert.That(MEDIASUBTYPE_Y210, Is.EqualTo(new Guid(0x30313259, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_WaveFormatEx, Is.EqualTo(new Guid(0x05589f81, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_Y216Test() + public static void FORMAT_MPEGVideoTest() { - Assert.That(MEDIASUBTYPE_Y216, Is.EqualTo(new Guid(0x36313259, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_MPEGVideo, Is.EqualTo(new Guid(0x05589f82, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_P408Test() + public static void FORMAT_MPEGStreamsTest() { - Assert.That(MEDIASUBTYPE_P408, Is.EqualTo(new Guid(0x38303450, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_MPEGStreams, Is.EqualTo(new Guid(0x05589f83, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_NV24Test() + public static void FORMAT_DvInfoTest() { - Assert.That(MEDIASUBTYPE_NV24, Is.EqualTo(new Guid(0x3432564E, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_DvInfo, Is.EqualTo(new Guid(0x05589f84, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_420OTest() + public static void FORMAT_525WSSTest() { - Assert.That(MEDIASUBTYPE_420O, Is.EqualTo(new Guid(0x4F303234, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_525WSS, Is.EqualTo(new Guid(0xc7ecf04d, 0x4582, 0x4869, 0x9a, 0xbb, 0xbf, 0xb5, 0x23, 0xb6, 0x2e, 0xdf))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_IMC1Test() + public static void FORMAT_AnalogVideoTest() { - Assert.That(MEDIASUBTYPE_IMC1, Is.EqualTo(new Guid(0x31434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(FORMAT_AnalogVideo, Is.EqualTo(new Guid(0x482dde0, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MEDIASUBTYPE_IMC2Test() - { - Assert.That(MEDIASUBTYPE_IMC2, Is.EqualTo(new Guid(0x32434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_IMC3Test() - { - Assert.That(MEDIASUBTYPE_IMC3, Is.EqualTo(new Guid(0x33434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_IMC4Test() - { - Assert.That(MEDIASUBTYPE_IMC4, Is.EqualTo(new Guid(0x34434D49, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_S340Test() - { - Assert.That(MEDIASUBTYPE_S340, Is.EqualTo(new Guid(0x30343353, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_S342Test() - { - Assert.That(MEDIASUBTYPE_S342, Is.EqualTo(new Guid(0x32343353, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_OverlayTest() - { - Assert.That(MEDIASUBTYPE_Overlay, Is.EqualTo(new Guid(0xe436eb7f, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MPEG1PacketTest() - { - Assert.That(MEDIASUBTYPE_MPEG1Packet, Is.EqualTo(new Guid(0xe436eb80, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MPEG1PayloadTest() - { - Assert.That(MEDIASUBTYPE_MPEG1Payload, Is.EqualTo(new Guid(0xe436eb81, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MPEG1AudioPayloadTest() - { - Assert.That(MEDIASUBTYPE_MPEG1AudioPayload, Is.EqualTo(new Guid(0x00000050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIATYPE_MPEG1SystemStreamTest() - { - Assert.That(MEDIATYPE_MPEG1SystemStream, Is.EqualTo(new Guid(0xe436eb82, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MPEG1SystemTest() - { - Assert.That(MEDIASUBTYPE_MPEG1System, Is.EqualTo(new Guid(0xe436eb84, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MPEG1VideoCDTest() - { - Assert.That(MEDIASUBTYPE_MPEG1VideoCD, Is.EqualTo(new Guid(0xe436eb85, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MPEG1VideoTest() - { - Assert.That(MEDIASUBTYPE_MPEG1Video, Is.EqualTo(new Guid(0xe436eb86, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_MPEG1AudioTest() - { - Assert.That(MEDIASUBTYPE_MPEG1Audio, Is.EqualTo(new Guid(0xe436eb87, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AviTest() - { - Assert.That(MEDIASUBTYPE_Avi, Is.EqualTo(new Guid(0xe436eb88, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AsfTest() - { - Assert.That(MEDIASUBTYPE_Asf, Is.EqualTo(new Guid(0x3db80f90, 0x9412, 0x11d1, 0xad, 0xed, 0x0, 0x0, 0xf8, 0x75, 0x4b, 0x99))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_QTMovieTest() - { - Assert.That(MEDIASUBTYPE_QTMovie, Is.EqualTo(new Guid(0xe436eb89, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_QTRpzaTest() - { - Assert.That(MEDIASUBTYPE_QTRpza, Is.EqualTo(new Guid(0x617a7072, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_QTSmcTest() - { - Assert.That(MEDIASUBTYPE_QTSmc, Is.EqualTo(new Guid(0x20636d73, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_QTRleTest() - { - Assert.That(MEDIASUBTYPE_QTRle, Is.EqualTo(new Guid(0x20656c72, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_QTJpegTest() - { - Assert.That(MEDIASUBTYPE_QTJpeg, Is.EqualTo(new Guid(0x6765706a, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_PCMAudio_ObsoleteTest() - { - Assert.That(MEDIASUBTYPE_PCMAudio_Obsolete, Is.EqualTo(new Guid(0xe436eb8a, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_PCMTest() - { - Assert.That(MEDIASUBTYPE_PCM, Is.EqualTo(new Guid(0x00000001, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xAA, 0x00, 0x38, 0x9B, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_WAVETest() - { - Assert.That(MEDIASUBTYPE_WAVE, Is.EqualTo(new Guid(0xe436eb8b, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AUTest() - { - Assert.That(MEDIASUBTYPE_AU, Is.EqualTo(new Guid(0xe436eb8c, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AIFFTest() - { - Assert.That(MEDIASUBTYPE_AIFF, Is.EqualTo(new Guid(0xe436eb8d, 0x524f, 0x11ce, 0x9f, 0x53, 0x00, 0x20, 0xaf, 0x0b, 0xa7, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_dvsdTest() - { - Assert.That(MEDIASUBTYPE_dvsd, Is.EqualTo(new Guid(0x64737664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_dvhdTest() - { - Assert.That(MEDIASUBTYPE_dvhd, Is.EqualTo(new Guid(0x64687664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_dvslTest() - { - Assert.That(MEDIASUBTYPE_dvsl, Is.EqualTo(new Guid(0x6c737664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_dv25Test() - { - Assert.That(MEDIASUBTYPE_dv25, Is.EqualTo(new Guid(0x35327664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_dv50Test() - { - Assert.That(MEDIASUBTYPE_dv50, Is.EqualTo(new Guid(0x30357664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_dvh1Test() - { - Assert.That(MEDIASUBTYPE_dvh1, Is.EqualTo(new Guid(0x31687664, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_Line21_BytePairTest() - { - Assert.That(MEDIASUBTYPE_Line21_BytePair, Is.EqualTo(new Guid(0x6e8d4a22, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_Line21_GOPPacketTest() - { - Assert.That(MEDIASUBTYPE_Line21_GOPPacket, Is.EqualTo(new Guid(0x6e8d4a23, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_Line21_VBIRawDataTest() - { - Assert.That(MEDIASUBTYPE_Line21_VBIRawData, Is.EqualTo(new Guid(0x6e8d4a24, 0x310c, 0x11d0, 0xb7, 0x9a, 0x0, 0xaa, 0x0, 0x37, 0x67, 0xa7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_708_608DataTest() - { - Assert.That(MEDIASUBTYPE_708_608Data, Is.EqualTo(new Guid(0xaf414bc, 0x4ed2, 0x445e, 0x98, 0x39, 0x8f, 0x9, 0x55, 0x68, 0xab, 0x3c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DtvCcDataTest() - { - Assert.That(MEDIASUBTYPE_DtvCcData, Is.EqualTo(new Guid(0xF52ADDAA, 0x36F0, 0x43F5, 0x95, 0xEA, 0x6D, 0x86, 0x64, 0x84, 0x26, 0x2A))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_CC_CONTAINERTest() - { - Assert.That(MEDIASUBTYPE_CC_CONTAINER, Is.EqualTo(new Guid(0x7ea626db, 0x54da, 0x437b, 0xbe, 0x9f, 0xf7, 0x30, 0x73, 0xad, 0xfa, 0x3c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_TELETEXTTest() - { - Assert.That(MEDIASUBTYPE_TELETEXT, Is.EqualTo(new Guid(0xf72a76e3, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_VBITest() - { - Assert.That(MEDIASUBTYPE_VBI, Is.EqualTo(new Guid(0x663da43c, 0x3e8, 0x4e9a, 0x9c, 0xd5, 0xbf, 0x11, 0xed, 0xd, 0xef, 0x76))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_WSSTest() - { - Assert.That(MEDIASUBTYPE_WSS, Is.EqualTo(new Guid(0x2791D576, 0x8E7A, 0x466F, 0x9E, 0x90, 0x5D, 0x3F, 0x30, 0x83, 0x73, 0x8B))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_XDSTest() - { - Assert.That(MEDIASUBTYPE_XDS, Is.EqualTo(new Guid(0x1ca73e3, 0xdce6, 0x4575, 0xaf, 0xe1, 0x2b, 0xf1, 0xc9, 0x2, 0xca, 0xf3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_VPSTest() - { - Assert.That(MEDIASUBTYPE_VPS, Is.EqualTo(new Guid(0xa1b3f620, 0x9792, 0x4d8d, 0x81, 0xa4, 0x86, 0xaf, 0x25, 0x77, 0x20, 0x90))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DRM_AudioTest() - { - Assert.That(MEDIASUBTYPE_DRM_Audio, Is.EqualTo(new Guid(0x00000009, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_IEEE_FLOATTest() - { - Assert.That(MEDIASUBTYPE_IEEE_FLOAT, Is.EqualTo(new Guid(0x00000003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DOLBY_AC3_SPDIFTest() - { - Assert.That(MEDIASUBTYPE_DOLBY_AC3_SPDIF, Is.EqualTo(new Guid(0x00000092, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_RAW_SPORTTest() - { - Assert.That(MEDIASUBTYPE_RAW_SPORT, Is.EqualTo(new Guid(0x00000240, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_SPDIF_TAG_241hTest() - { - Assert.That(MEDIASUBTYPE_SPDIF_TAG_241h, Is.EqualTo(new Guid(0x00000241, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DssVideoTest() - { - Assert.That(MEDIASUBTYPE_DssVideo, Is.EqualTo(new Guid(0xa0af4f81, 0xe163, 0x11d0, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_DssAudioTest() - { - Assert.That(MEDIASUBTYPE_DssAudio, Is.EqualTo(new Guid(0xa0af4f82, 0xe163, 0x11d0, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_VPVideoTest() - { - Assert.That(MEDIASUBTYPE_VPVideo, Is.EqualTo(new Guid(0x5a9b6a40, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_VPVBITest() - { - Assert.That(MEDIASUBTYPE_VPVBI, Is.EqualTo(new Guid(0x5a9b6a41, 0x1a22, 0x11d1, 0xba, 0xd9, 0x0, 0x60, 0x97, 0x44, 0x11, 0x1a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_NoneTest() - { - Assert.That(FORMAT_None, Is.EqualTo(new Guid(0x0F6417D6, 0xc318, 0x11d0, 0xa4, 0x3f, 0x00, 0xa0, 0xc9, 0x22, 0x31, 0x96))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_VideoInfoTest() - { - Assert.That(FORMAT_VideoInfo, Is.EqualTo(new Guid(0x05589f80, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_VideoInfo2Test() - { - Assert.That(FORMAT_VideoInfo2, Is.EqualTo(new Guid(0xf72a76A0, 0xeb0a, 0x11d0, 0xac, 0xe4, 0x00, 0x00, 0xc0, 0xcc, 0x16, 0xba))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_WaveFormatExTest() - { - Assert.That(FORMAT_WaveFormatEx, Is.EqualTo(new Guid(0x05589f81, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_MPEGVideoTest() - { - Assert.That(FORMAT_MPEGVideo, Is.EqualTo(new Guid(0x05589f82, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_MPEGStreamsTest() - { - Assert.That(FORMAT_MPEGStreams, Is.EqualTo(new Guid(0x05589f83, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_DvInfoTest() - { - Assert.That(FORMAT_DvInfo, Is.EqualTo(new Guid(0x05589f84, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_525WSSTest() - { - Assert.That(FORMAT_525WSS, Is.EqualTo(new Guid(0xc7ecf04d, 0x4582, 0x4869, 0x9a, 0xbb, 0xbf, 0xb5, 0x23, 0xb6, 0x2e, 0xdf))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void FORMAT_AnalogVideoTest() - { - Assert.That(FORMAT_AnalogVideo, Is.EqualTo(new Guid(0x482dde0, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIATYPE_AnalogVideoTest() + public static void MEDIATYPE_AnalogVideoTest() { Assert.That(MEDIATYPE_AnalogVideo, Is.EqualTo(new Guid(0x482dde1, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); } - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_NTSC_MTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_NTSC_M, Is.EqualTo(new Guid(0x482dde2, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_BTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_B, Is.EqualTo(new Guid(0x482dde5, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_DTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_D, Is.EqualTo(new Guid(0x482dde6, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_GTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_G, Is.EqualTo(new Guid(0x482dde7, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_HTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_H, Is.EqualTo(new Guid(0x482dde8, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_ITest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_I, Is.EqualTo(new Guid(0x482dde9, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_MTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_M, Is.EqualTo(new Guid(0x482ddea, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_NTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_N, Is.EqualTo(new Guid(0x482ddeb, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_PAL_N_COMBOTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_PAL_N_COMBO, Is.EqualTo(new Guid(0x482ddec, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_SECAM_BTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_B, Is.EqualTo(new Guid(0x482ddf0, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_SECAM_DTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_D, Is.EqualTo(new Guid(0x482ddf1, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_SECAM_GTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_G, Is.EqualTo(new Guid(0x482ddf2, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_SECAM_HTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_H, Is.EqualTo(new Guid(0x482ddf3, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_SECAM_KTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_K, Is.EqualTo(new Guid(0x482ddf4, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_SECAM_K1Test() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_K1, Is.EqualTo(new Guid(0x482ddf5, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MEDIASUBTYPE_AnalogVideo_SECAM_LTest() - { - Assert.That(MEDIASUBTYPE_AnalogVideo_SECAM_L, Is.EqualTo(new Guid(0x482ddf6, 0x7817, 0x11cf, 0x8a, 0x3, 0x0, 0xaa, 0x0, 0x6e, 0xcb, 0x65))); - } - /// Validates that the value of the property is correct. [Test] public static void MEDIATYPE_AnalogAudioTest() diff --git a/tests/Interop/Windows/Windows/um/InkPresenterDesktop/WindowsTests.cs b/tests/Interop/Windows/Windows/um/InkPresenterDesktop/LIBIDTests.cs similarity index 81% rename from tests/Interop/Windows/Windows/um/InkPresenterDesktop/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/InkPresenterDesktop/LIBIDTests.cs index 3c92df64b4..22a1b90247 100644 --- a/tests/Interop/Windows/Windows/um/InkPresenterDesktop/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/InkPresenterDesktop/LIBIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.LIBID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class LIBIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/InputScope/WindowsTests.cs b/tests/Interop/Windows/Windows/um/InputScope/GUIDTests.cs similarity index 80% rename from tests/Interop/Windows/Windows/um/InputScope/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/InputScope/GUIDTests.cs index 81a48d4fc7..50b56bf396 100644 --- a/tests/Interop/Windows/Windows/um/InputScope/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/InputScope/GUIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.GUID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static unsafe partial class WindowsTests + /// Provides validation of the class. + public static partial class GUIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/MSAAText/WindowsTests.cs b/tests/Interop/Windows/Windows/um/MSAAText/LIBIDTests.cs similarity index 80% rename from tests/Interop/Windows/Windows/um/MSAAText/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/MSAAText/LIBIDTests.cs index fca3ad5b0a..b8479ed700 100644 --- a/tests/Interop/Windows/Windows/um/MSAAText/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/MSAAText/LIBIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.LIBID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class LIBIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/TextStor/WindowsTests.cs b/tests/Interop/Windows/Windows/um/TextStor/GUIDTests.cs similarity index 89% rename from tests/Interop/Windows/Windows/um/TextStor/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/TextStor/GUIDTests.cs index 5c40ab9573..37bae1084f 100644 --- a/tests/Interop/Windows/Windows/um/TextStor/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/TextStor/GUIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.GUID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class GUIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/control/WindowsTests.cs b/tests/Interop/Windows/Windows/um/control/LIBIDTests.cs similarity index 80% rename from tests/Interop/Windows/Windows/um/control/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/control/LIBIDTests.cs index 30df718a0d..78d0404355 100644 --- a/tests/Interop/Windows/Windows/um/control/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/control/LIBIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.LIBID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class LIBIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/ctffunc/WindowsTests.cs b/tests/Interop/Windows/Windows/um/ctffunc/GUIDTests.cs similarity index 81% rename from tests/Interop/Windows/Windows/um/ctffunc/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/ctffunc/GUIDTests.cs index bc078f745c..30c7719b20 100644 --- a/tests/Interop/Windows/Windows/um/ctffunc/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/ctffunc/GUIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.GUID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class GUIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/inkrenderer/WindowsTests.cs b/tests/Interop/Windows/Windows/um/inkrenderer/LIBIDTests.cs similarity index 81% rename from tests/Interop/Windows/Windows/um/inkrenderer/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/inkrenderer/LIBIDTests.cs index 9bc5c80b53..2c9614def5 100644 --- a/tests/Interop/Windows/Windows/um/inkrenderer/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/inkrenderer/LIBIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.LIBID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class LIBIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/manipulations/WindowsTests.cs b/tests/Interop/Windows/Windows/um/manipulations/LIBIDTests.cs similarity index 81% rename from tests/Interop/Windows/Windows/um/manipulations/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/manipulations/LIBIDTests.cs index 405d3ec6d1..85b0723fdb 100644 --- a/tests/Interop/Windows/Windows/um/manipulations/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/manipulations/LIBIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.LIBID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class LIBIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/mfapi/AMTests.cs b/tests/Interop/Windows/Windows/um/mfapi/AMTests.cs new file mode 100644 index 0000000000..a094fd54d4 --- /dev/null +++ b/tests/Interop/Windows/Windows/um/mfapi/AMTests.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.AM; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class AMTests + { + /// Validates that the value of the property is correct. + [Test] + public static void AM_MEDIA_TYPE_REPRESENTATIONTest() + { + Assert.That(AM_MEDIA_TYPE_REPRESENTATION, Is.EqualTo(new Guid(0xe2e42ad2, 0x132c, 0x491e, 0xa2, 0x68, 0x3c, 0x7c, 0x2d, 0xca, 0x18, 0x1f))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/mfapi/MFAudioFormatTests.cs b/tests/Interop/Windows/Windows/um/mfapi/MFAudioFormatTests.cs new file mode 100644 index 0000000000..72fe304d6b --- /dev/null +++ b/tests/Interop/Windows/Windows/um/mfapi/MFAudioFormatTests.cs @@ -0,0 +1,309 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.MFAudioFormat; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class MFAudioFormatTests + { + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_BaseTest() + { + Assert.That(MFAudioFormat_Base, Is.EqualTo(new Guid(0x00000000, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_PCMTest() + { + Assert.That(MFAudioFormat_PCM, Is.EqualTo(new Guid(1, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_FloatTest() + { + Assert.That(MFAudioFormat_Float, Is.EqualTo(new Guid(0x0003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DTSTest() + { + Assert.That(MFAudioFormat_DTS, Is.EqualTo(new Guid(0x0008, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC3_SPDIFTest() + { + Assert.That(MFAudioFormat_Dolby_AC3_SPDIF, Is.EqualTo(new Guid(0x0092, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DRMTest() + { + Assert.That(MFAudioFormat_DRM, Is.EqualTo(new Guid(0x0009, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_WMAudioV8Test() + { + Assert.That(MFAudioFormat_WMAudioV8, Is.EqualTo(new Guid(0x0161, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_WMAudioV9Test() + { + Assert.That(MFAudioFormat_WMAudioV9, Is.EqualTo(new Guid(0x0162, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_WMAudio_LosslessTest() + { + Assert.That(MFAudioFormat_WMAudio_Lossless, Is.EqualTo(new Guid(0x0163, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_WMASPDIFTest() + { + Assert.That(MFAudioFormat_WMASPDIF, Is.EqualTo(new Guid(0x0164, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_MSP1Test() + { + Assert.That(MFAudioFormat_MSP1, Is.EqualTo(new Guid(0x000A, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_MP3Test() + { + Assert.That(MFAudioFormat_MP3, Is.EqualTo(new Guid(0x0055, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_MPEGTest() + { + Assert.That(MFAudioFormat_MPEG, Is.EqualTo(new Guid(0x0050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_AACTest() + { + Assert.That(MFAudioFormat_AAC, Is.EqualTo(new Guid(0x1610, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_ADTSTest() + { + Assert.That(MFAudioFormat_ADTS, Is.EqualTo(new Guid(0x1600, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_AMR_NBTest() + { + Assert.That(MFAudioFormat_AMR_NB, Is.EqualTo(new Guid(0x7361, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_AMR_WBTest() + { + Assert.That(MFAudioFormat_AMR_WB, Is.EqualTo(new Guid(0x7362, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_AMR_WPTest() + { + Assert.That(MFAudioFormat_AMR_WP, Is.EqualTo(new Guid(0x7363, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_FLACTest() + { + Assert.That(MFAudioFormat_FLAC, Is.EqualTo(new Guid(0xF1AC, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_ALACTest() + { + Assert.That(MFAudioFormat_ALAC, Is.EqualTo(new Guid(0x6C61, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_OpusTest() + { + Assert.That(MFAudioFormat_Opus, Is.EqualTo(new Guid(0x704F, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC4Test() + { + Assert.That(MFAudioFormat_Dolby_AC4, Is.EqualTo(new Guid(0xAC40, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC3Test() + { + Assert.That(MFAudioFormat_Dolby_AC3, Is.EqualTo(new Guid(0xe06d802c, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_DDPlusTest() + { + Assert.That(MFAudioFormat_Dolby_DDPlus, Is.EqualTo(new Guid(0xa7fb87af, 0x2d02, 0x42fb, 0xa4, 0xd4, 0x5, 0xcd, 0x93, 0x84, 0x3b, 0xdd))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC4_V1Test() + { + Assert.That(MFAudioFormat_Dolby_AC4_V1, Is.EqualTo(new Guid(0x36b7927c, 0x3d87, 0x4a2a, 0x91, 0x96, 0xa2, 0x1a, 0xd9, 0xe9, 0x35, 0xe6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC4_V2Test() + { + Assert.That(MFAudioFormat_Dolby_AC4_V2, Is.EqualTo(new Guid(0x7998b2a0, 0x17dd, 0x49b6, 0x8d, 0xfa, 0x9b, 0x27, 0x85, 0x52, 0xa2, 0xac))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC4_V1_ESTest() + { + Assert.That(MFAudioFormat_Dolby_AC4_V1_ES, Is.EqualTo(new Guid(0x9d8dccc6, 0xd156, 0x4fb8, 0x97, 0x9c, 0xa8, 0x5b, 0xe7, 0xd2, 0x1d, 0xfa))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC4_V2_ESTest() + { + Assert.That(MFAudioFormat_Dolby_AC4_V2_ES, Is.EqualTo(new Guid(0x7e58c9f9, 0xb070, 0x45f4, 0x8c, 0xcd, 0xa9, 0x9a, 0x04, 0x17, 0xc1, 0xac))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_VorbisTest() + { + Assert.That(MFAudioFormat_Vorbis, Is.EqualTo(new Guid(0x8D2FD10B, 0x5841, 0x4a6b, 0x89, 0x05, 0x58, 0x8F, 0xEC, 0x1A, 0xDE, 0xD9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DTS_RAWTest() + { + Assert.That(MFAudioFormat_DTS_RAW, Is.EqualTo(new Guid(0xE06D8033, 0xDB46, 0x11CF, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DTS_HDTest() + { + Assert.That(MFAudioFormat_DTS_HD, Is.EqualTo(new Guid(0xA2E58EB7, 0x0FA9, 0x48BB, 0xA4, 0x0C, 0xFA, 0x0E, 0x15, 0x6D, 0x06, 0x45))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DTS_XLLTest() + { + Assert.That(MFAudioFormat_DTS_XLL, Is.EqualTo(new Guid(0x45B37C1B, 0x8C70, 0x4E59, 0xA7, 0xBE, 0xA1, 0xE4, 0x2C, 0x81, 0xC8, 0x0D))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DTS_LBRTest() + { + Assert.That(MFAudioFormat_DTS_LBR, Is.EqualTo(new Guid(0xC2FE6F0A, 0x4E3C, 0x4DF1, 0x9B, 0x60, 0x50, 0x86, 0x30, 0x91, 0xE4, 0xB9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DTS_UHDTest() + { + Assert.That(MFAudioFormat_DTS_UHD, Is.EqualTo(new Guid(0x87020117, 0xACE3, 0x42DE, 0xB7, 0x3E, 0xC6, 0x56, 0x70, 0x62, 0x63, 0xF8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_DTS_UHDYTest() + { + Assert.That(MFAudioFormat_DTS_UHDY, Is.EqualTo(new Guid(0x9B9CCA00, 0x91B9, 0x4CCC, 0x88, 0x3A, 0x8F, 0x78, 0x7A, 0xC3, 0xCC, 0x86))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Float_SpatialObjectsTest() + { + Assert.That(MFAudioFormat_Float_SpatialObjects, Is.EqualTo(new Guid(0xfa39cd94, 0xbc64, 0x4ab1, 0x9b, 0x71, 0xdc, 0xd0, 0x9d, 0x5a, 0x7e, 0x7a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_LPCMTest() + { + Assert.That(MFAudioFormat_LPCM, Is.EqualTo(new Guid(0xe06d8032, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_PCM_HDCPTest() + { + Assert.That(MFAudioFormat_PCM_HDCP, Is.EqualTo(new Guid(0xa5e7ff01, 0x8411, 0x4acc, 0xa8, 0x65, 0x5f, 0x49, 0x41, 0x28, 0x8d, 0x80))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Dolby_AC3_HDCPTest() + { + Assert.That(MFAudioFormat_Dolby_AC3_HDCP, Is.EqualTo(new Guid(0x97663a80, 0x8ffb, 0x4445, 0xa6, 0xba, 0x79, 0x2d, 0x90, 0x8f, 0x49, 0x7f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_AAC_HDCPTest() + { + Assert.That(MFAudioFormat_AAC_HDCP, Is.EqualTo(new Guid(0x419bce76, 0x8b72, 0x400f, 0xad, 0xeb, 0x84, 0xb5, 0x7d, 0x63, 0x48, 0x4d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_ADTS_HDCPTest() + { + Assert.That(MFAudioFormat_ADTS_HDCP, Is.EqualTo(new Guid(0xda4963a3, 0x14d8, 0x4dcf, 0x92, 0xb7, 0x19, 0x3e, 0xb8, 0x43, 0x63, 0xdb))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFAudioFormat_Base_HDCPTest() + { + Assert.That(MFAudioFormat_Base_HDCP, Is.EqualTo(new Guid(0x3884b5bc, 0xe277, 0x43fd, 0x98, 0x3d, 0x03, 0x8a, 0xa8, 0xd9, 0xb6, 0x05))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/mfapi/MFTTests.cs b/tests/Interop/Windows/Windows/um/mfapi/MFTTests.cs new file mode 100644 index 0000000000..2722ab3ea2 --- /dev/null +++ b/tests/Interop/Windows/Windows/um/mfapi/MFTTests.cs @@ -0,0 +1,134 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.MFT; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class MFTTests + { + /// Validates that the value of the property is correct. + [Test] + public static void MFT_ENCODER_ERRORTest() + { + Assert.That(MFT_ENCODER_ERROR, Is.EqualTo(new Guid(0xc8d1eda4, 0x98e4, 0x41d5, 0x92, 0x97, 0x44, 0xf5, 0x38, 0x52, 0xf9, 0x0e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_GFX_DRIVER_VERSION_ID_AttributeTest() + { + Assert.That(MFT_GFX_DRIVER_VERSION_ID_Attribute, Is.EqualTo(new Guid(0xf34b9093, 0x05e0, 0x4b16, 0x99, 0x3d, 0x3e, 0x2a, 0x2c, 0xde, 0x6a, 0xd3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_VIDEO_DECODERTest() + { + Assert.That(MFT_CATEGORY_VIDEO_DECODER, Is.EqualTo(new Guid(0xd6c02d4b, 0x6833, 0x45b4, 0x97, 0x1a, 0x05, 0xa4, 0xb0, 0x4b, 0xab, 0x91))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_VIDEO_ENCODERTest() + { + Assert.That(MFT_CATEGORY_VIDEO_ENCODER, Is.EqualTo(new Guid(0xf79eac7d, 0xe545, 0x4387, 0xbd, 0xee, 0xd6, 0x47, 0xd7, 0xbd, 0xe4, 0x2a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_VIDEO_EFFECTTest() + { + Assert.That(MFT_CATEGORY_VIDEO_EFFECT, Is.EqualTo(new Guid(0x12e17c21, 0x532c, 0x4a6e, 0x8a, 0x1c, 0x40, 0x82, 0x5a, 0x73, 0x63, 0x97))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_MULTIPLEXERTest() + { + Assert.That(MFT_CATEGORY_MULTIPLEXER, Is.EqualTo(new Guid(0x059c561e, 0x05ae, 0x4b61, 0xb6, 0x9d, 0x55, 0xb6, 0x1e, 0xe5, 0x4a, 0x7b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_DEMULTIPLEXERTest() + { + Assert.That(MFT_CATEGORY_DEMULTIPLEXER, Is.EqualTo(new Guid(0xa8700a7a, 0x939b, 0x44c5, 0x99, 0xd7, 0x76, 0x22, 0x6b, 0x23, 0xb3, 0xf1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_AUDIO_DECODERTest() + { + Assert.That(MFT_CATEGORY_AUDIO_DECODER, Is.EqualTo(new Guid(0x9ea73fb4, 0xef7a, 0x4559, 0x8d, 0x5d, 0x71, 0x9d, 0x8f, 0x04, 0x26, 0xc7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_AUDIO_ENCODERTest() + { + Assert.That(MFT_CATEGORY_AUDIO_ENCODER, Is.EqualTo(new Guid(0x91c64bd0, 0xf91e, 0x4d8c, 0x92, 0x76, 0xdb, 0x24, 0x82, 0x79, 0xd9, 0x75))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_AUDIO_EFFECTTest() + { + Assert.That(MFT_CATEGORY_AUDIO_EFFECT, Is.EqualTo(new Guid(0x11064c48, 0x3648, 0x4ed0, 0x93, 0x2e, 0x05, 0xce, 0x8a, 0xc8, 0x11, 0xb7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_VIDEO_PROCESSORTest() + { + Assert.That(MFT_CATEGORY_VIDEO_PROCESSOR, Is.EqualTo(new Guid(0x302ea3fc, 0xaa5f, 0x47f9, 0x9f, 0x7a, 0xc2, 0x18, 0x8b, 0xb1, 0x63, 0x2))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_OTHERTest() + { + Assert.That(MFT_CATEGORY_OTHER, Is.EqualTo(new Guid(0x90175d57, 0xb7ea, 0x4901, 0xae, 0xb3, 0x93, 0x3a, 0x87, 0x47, 0x75, 0x6f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_ENCRYPTORTest() + { + Assert.That(MFT_CATEGORY_ENCRYPTOR, Is.EqualTo(new Guid(0xb0c687be, 0x01cd, 0x44b5, 0xb8, 0xb2, 0x7c, 0x1d, 0x7e, 0x05, 0x8b, 0x1f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CATEGORY_VIDEO_RENDERER_EFFECTTest() + { + Assert.That(MFT_CATEGORY_VIDEO_RENDERER_EFFECT, Is.EqualTo(new Guid(0x145cd8b4, 0x92f4, 0x4b23, 0x8a, 0xe7, 0xe0, 0xdf, 0x6, 0xc2, 0xda, 0x95))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_ENUM_VIDEO_RENDERER_EXTENSION_PROFILETest() + { + Assert.That(MFT_ENUM_VIDEO_RENDERER_EXTENSION_PROFILE, Is.EqualTo(new Guid(0x62c56928, 0x9a4e, 0x443b, 0xb9, 0xdc, 0xca, 0xc8, 0x30, 0xc2, 0x41, 0x0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_ENUM_ADAPTER_LUIDTest() + { + Assert.That(MFT_ENUM_ADAPTER_LUID, Is.EqualTo(new Guid(0x1d39518c, 0xe220, 0x4da8, 0xa0, 0x7f, 0xba, 0x17, 0x25, 0x52, 0xd6, 0xb1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_SUPPORT_DYNAMIC_FORMAT_CHANGETest() + { + Assert.That(MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE, Is.EqualTo(new Guid(0x53476a11, 0x3f13, 0x49fb, 0xac, 0x42, 0xee, 0x27, 0x33, 0xc9, 0x67, 0x41))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/mfapi/MFVideoFormatTests.cs b/tests/Interop/Windows/Windows/um/mfapi/MFVideoFormatTests.cs new file mode 100644 index 0000000000..77edc3d51c --- /dev/null +++ b/tests/Interop/Windows/Windows/um/mfapi/MFVideoFormatTests.cs @@ -0,0 +1,526 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mfapi.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.MFVideoFormat; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class MFVideoFormatTests + { + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_BaseTest() + { + Assert.That(MFVideoFormat_Base, Is.EqualTo(new Guid(0x00000000, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_RGB32Test() + { + Assert.That(MFVideoFormat_RGB32, Is.EqualTo(new Guid(22, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_ARGB32Test() + { + Assert.That(MFVideoFormat_ARGB32, Is.EqualTo(new Guid(21, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_RGB24Test() + { + Assert.That(MFVideoFormat_RGB24, Is.EqualTo(new Guid(20, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_RGB555Test() + { + Assert.That(MFVideoFormat_RGB555, Is.EqualTo(new Guid(24, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_RGB565Test() + { + Assert.That(MFVideoFormat_RGB565, Is.EqualTo(new Guid(23, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_RGB8Test() + { + Assert.That(MFVideoFormat_RGB8, Is.EqualTo(new Guid(41, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_L8Test() + { + Assert.That(MFVideoFormat_L8, Is.EqualTo(new Guid(50, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_L16Test() + { + Assert.That(MFVideoFormat_L16, Is.EqualTo(new Guid(81, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_D16Test() + { + Assert.That(MFVideoFormat_D16, Is.EqualTo(new Guid(80, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_AI44Test() + { + Assert.That(MFVideoFormat_AI44, Is.EqualTo(new Guid(unchecked((((uint)(0x41493434) & 0xFF) << 24) | (((uint)(0x41493434) & 0xFF00) << 8) | (((uint)(0x41493434) & 0xFF0000) >> 8) | (((uint)(0x41493434) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_AYUVTest() + { + Assert.That(MFVideoFormat_AYUV, Is.EqualTo(new Guid(unchecked((((uint)(0x41595556) & 0xFF) << 24) | (((uint)(0x41595556) & 0xFF00) << 8) | (((uint)(0x41595556) & 0xFF0000) >> 8) | (((uint)(0x41595556) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_YUY2Test() + { + Assert.That(MFVideoFormat_YUY2, Is.EqualTo(new Guid(unchecked((((uint)(0x59555932) & 0xFF) << 24) | (((uint)(0x59555932) & 0xFF00) << 8) | (((uint)(0x59555932) & 0xFF0000) >> 8) | (((uint)(0x59555932) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_YVYUTest() + { + Assert.That(MFVideoFormat_YVYU, Is.EqualTo(new Guid(unchecked((((uint)(0x59565955) & 0xFF) << 24) | (((uint)(0x59565955) & 0xFF00) << 8) | (((uint)(0x59565955) & 0xFF0000) >> 8) | (((uint)(0x59565955) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_YVU9Test() + { + Assert.That(MFVideoFormat_YVU9, Is.EqualTo(new Guid(unchecked((((uint)(0x59565539) & 0xFF) << 24) | (((uint)(0x59565539) & 0xFF00) << 8) | (((uint)(0x59565539) & 0xFF0000) >> 8) | (((uint)(0x59565539) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_UYVYTest() + { + Assert.That(MFVideoFormat_UYVY, Is.EqualTo(new Guid(unchecked((((uint)(0x55595659) & 0xFF) << 24) | (((uint)(0x55595659) & 0xFF00) << 8) | (((uint)(0x55595659) & 0xFF0000) >> 8) | (((uint)(0x55595659) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_NV11Test() + { + Assert.That(MFVideoFormat_NV11, Is.EqualTo(new Guid(unchecked((((uint)(0x4E563131) & 0xFF) << 24) | (((uint)(0x4E563131) & 0xFF00) << 8) | (((uint)(0x4E563131) & 0xFF0000) >> 8) | (((uint)(0x4E563131) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_NV12Test() + { + Assert.That(MFVideoFormat_NV12, Is.EqualTo(new Guid(unchecked((((uint)(0x4E563132) & 0xFF) << 24) | (((uint)(0x4E563132) & 0xFF00) << 8) | (((uint)(0x4E563132) & 0xFF0000) >> 8) | (((uint)(0x4E563132) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_YV12Test() + { + Assert.That(MFVideoFormat_YV12, Is.EqualTo(new Guid(unchecked((((uint)(0x59563132) & 0xFF) << 24) | (((uint)(0x59563132) & 0xFF00) << 8) | (((uint)(0x59563132) & 0xFF0000) >> 8) | (((uint)(0x59563132) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_I420Test() + { + Assert.That(MFVideoFormat_I420, Is.EqualTo(new Guid(unchecked((((uint)(0x49343230) & 0xFF) << 24) | (((uint)(0x49343230) & 0xFF00) << 8) | (((uint)(0x49343230) & 0xFF0000) >> 8) | (((uint)(0x49343230) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_IYUVTest() + { + Assert.That(MFVideoFormat_IYUV, Is.EqualTo(new Guid(unchecked((((uint)(0x49595556) & 0xFF) << 24) | (((uint)(0x49595556) & 0xFF00) << 8) | (((uint)(0x49595556) & 0xFF0000) >> 8) | (((uint)(0x49595556) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Y210Test() + { + Assert.That(MFVideoFormat_Y210, Is.EqualTo(new Guid(unchecked((((uint)(0x59323130) & 0xFF) << 24) | (((uint)(0x59323130) & 0xFF00) << 8) | (((uint)(0x59323130) & 0xFF0000) >> 8) | (((uint)(0x59323130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Y216Test() + { + Assert.That(MFVideoFormat_Y216, Is.EqualTo(new Guid(unchecked((((uint)(0x59323136) & 0xFF) << 24) | (((uint)(0x59323136) & 0xFF00) << 8) | (((uint)(0x59323136) & 0xFF0000) >> 8) | (((uint)(0x59323136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Y410Test() + { + Assert.That(MFVideoFormat_Y410, Is.EqualTo(new Guid(unchecked((((uint)(0x59343130) & 0xFF) << 24) | (((uint)(0x59343130) & 0xFF00) << 8) | (((uint)(0x59343130) & 0xFF0000) >> 8) | (((uint)(0x59343130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Y416Test() + { + Assert.That(MFVideoFormat_Y416, Is.EqualTo(new Guid(unchecked((((uint)(0x59343136) & 0xFF) << 24) | (((uint)(0x59343136) & 0xFF00) << 8) | (((uint)(0x59343136) & 0xFF0000) >> 8) | (((uint)(0x59343136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Y41PTest() + { + Assert.That(MFVideoFormat_Y41P, Is.EqualTo(new Guid(unchecked((((uint)(0x59343150) & 0xFF) << 24) | (((uint)(0x59343150) & 0xFF00) << 8) | (((uint)(0x59343150) & 0xFF0000) >> 8) | (((uint)(0x59343150) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Y41TTest() + { + Assert.That(MFVideoFormat_Y41T, Is.EqualTo(new Guid(unchecked((((uint)(0x59343154) & 0xFF) << 24) | (((uint)(0x59343154) & 0xFF00) << 8) | (((uint)(0x59343154) & 0xFF0000) >> 8) | (((uint)(0x59343154) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Y42TTest() + { + Assert.That(MFVideoFormat_Y42T, Is.EqualTo(new Guid(unchecked((((uint)(0x59343254) & 0xFF) << 24) | (((uint)(0x59343254) & 0xFF00) << 8) | (((uint)(0x59343254) & 0xFF0000) >> 8) | (((uint)(0x59343254) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_P210Test() + { + Assert.That(MFVideoFormat_P210, Is.EqualTo(new Guid(unchecked((((uint)(0x50323130) & 0xFF) << 24) | (((uint)(0x50323130) & 0xFF00) << 8) | (((uint)(0x50323130) & 0xFF0000) >> 8) | (((uint)(0x50323130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_P216Test() + { + Assert.That(MFVideoFormat_P216, Is.EqualTo(new Guid(unchecked((((uint)(0x50323136) & 0xFF) << 24) | (((uint)(0x50323136) & 0xFF00) << 8) | (((uint)(0x50323136) & 0xFF0000) >> 8) | (((uint)(0x50323136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_P010Test() + { + Assert.That(MFVideoFormat_P010, Is.EqualTo(new Guid(unchecked((((uint)(0x50303130) & 0xFF) << 24) | (((uint)(0x50303130) & 0xFF00) << 8) | (((uint)(0x50303130) & 0xFF0000) >> 8) | (((uint)(0x50303130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_P016Test() + { + Assert.That(MFVideoFormat_P016, Is.EqualTo(new Guid(unchecked((((uint)(0x50303136) & 0xFF) << 24) | (((uint)(0x50303136) & 0xFF00) << 8) | (((uint)(0x50303136) & 0xFF0000) >> 8) | (((uint)(0x50303136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_v210Test() + { + Assert.That(MFVideoFormat_v210, Is.EqualTo(new Guid(unchecked((((uint)(0x76323130) & 0xFF) << 24) | (((uint)(0x76323130) & 0xFF00) << 8) | (((uint)(0x76323130) & 0xFF0000) >> 8) | (((uint)(0x76323130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_v216Test() + { + Assert.That(MFVideoFormat_v216, Is.EqualTo(new Guid(unchecked((((uint)(0x76323136) & 0xFF) << 24) | (((uint)(0x76323136) & 0xFF00) << 8) | (((uint)(0x76323136) & 0xFF0000) >> 8) | (((uint)(0x76323136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_v410Test() + { + Assert.That(MFVideoFormat_v410, Is.EqualTo(new Guid(unchecked((((uint)(0x76343130) & 0xFF) << 24) | (((uint)(0x76343130) & 0xFF00) << 8) | (((uint)(0x76343130) & 0xFF0000) >> 8) | (((uint)(0x76343130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MP43Test() + { + Assert.That(MFVideoFormat_MP43, Is.EqualTo(new Guid(unchecked((((uint)(0x4D503433) & 0xFF) << 24) | (((uint)(0x4D503433) & 0xFF00) << 8) | (((uint)(0x4D503433) & 0xFF0000) >> 8) | (((uint)(0x4D503433) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MP4STest() + { + Assert.That(MFVideoFormat_MP4S, Is.EqualTo(new Guid(unchecked((((uint)(0x4D503453) & 0xFF) << 24) | (((uint)(0x4D503453) & 0xFF00) << 8) | (((uint)(0x4D503453) & 0xFF0000) >> 8) | (((uint)(0x4D503453) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_M4S2Test() + { + Assert.That(MFVideoFormat_M4S2, Is.EqualTo(new Guid(unchecked((((uint)(0x4D345332) & 0xFF) << 24) | (((uint)(0x4D345332) & 0xFF00) << 8) | (((uint)(0x4D345332) & 0xFF0000) >> 8) | (((uint)(0x4D345332) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MP4VTest() + { + Assert.That(MFVideoFormat_MP4V, Is.EqualTo(new Guid(unchecked((((uint)(0x4D503456) & 0xFF) << 24) | (((uint)(0x4D503456) & 0xFF00) << 8) | (((uint)(0x4D503456) & 0xFF0000) >> 8) | (((uint)(0x4D503456) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_WMV1Test() + { + Assert.That(MFVideoFormat_WMV1, Is.EqualTo(new Guid(unchecked((((uint)(0x574D5631) & 0xFF) << 24) | (((uint)(0x574D5631) & 0xFF00) << 8) | (((uint)(0x574D5631) & 0xFF0000) >> 8) | (((uint)(0x574D5631) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_WMV2Test() + { + Assert.That(MFVideoFormat_WMV2, Is.EqualTo(new Guid(unchecked((((uint)(0x574D5632) & 0xFF) << 24) | (((uint)(0x574D5632) & 0xFF00) << 8) | (((uint)(0x574D5632) & 0xFF0000) >> 8) | (((uint)(0x574D5632) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_WMV3Test() + { + Assert.That(MFVideoFormat_WMV3, Is.EqualTo(new Guid(unchecked((((uint)(0x574D5633) & 0xFF) << 24) | (((uint)(0x574D5633) & 0xFF00) << 8) | (((uint)(0x574D5633) & 0xFF0000) >> 8) | (((uint)(0x574D5633) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_WVC1Test() + { + Assert.That(MFVideoFormat_WVC1, Is.EqualTo(new Guid(unchecked((((uint)(0x57564331) & 0xFF) << 24) | (((uint)(0x57564331) & 0xFF00) << 8) | (((uint)(0x57564331) & 0xFF0000) >> 8) | (((uint)(0x57564331) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MSS1Test() + { + Assert.That(MFVideoFormat_MSS1, Is.EqualTo(new Guid(unchecked((((uint)(0x4D535331) & 0xFF) << 24) | (((uint)(0x4D535331) & 0xFF00) << 8) | (((uint)(0x4D535331) & 0xFF0000) >> 8) | (((uint)(0x4D535331) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MSS2Test() + { + Assert.That(MFVideoFormat_MSS2, Is.EqualTo(new Guid(unchecked((((uint)(0x4D535332) & 0xFF) << 24) | (((uint)(0x4D535332) & 0xFF00) << 8) | (((uint)(0x4D535332) & 0xFF0000) >> 8) | (((uint)(0x4D535332) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MPG1Test() + { + Assert.That(MFVideoFormat_MPG1, Is.EqualTo(new Guid(unchecked((((uint)(0x4D504731) & 0xFF) << 24) | (((uint)(0x4D504731) & 0xFF00) << 8) | (((uint)(0x4D504731) & 0xFF0000) >> 8) | (((uint)(0x4D504731) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_DVSLTest() + { + Assert.That(MFVideoFormat_DVSL, Is.EqualTo(new Guid(unchecked((((uint)(0x6476736C) & 0xFF) << 24) | (((uint)(0x6476736C) & 0xFF00) << 8) | (((uint)(0x6476736C) & 0xFF0000) >> 8) | (((uint)(0x6476736C) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_DVSDTest() + { + Assert.That(MFVideoFormat_DVSD, Is.EqualTo(new Guid(unchecked((((uint)(0x64767364) & 0xFF) << 24) | (((uint)(0x64767364) & 0xFF00) << 8) | (((uint)(0x64767364) & 0xFF0000) >> 8) | (((uint)(0x64767364) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_DVHDTest() + { + Assert.That(MFVideoFormat_DVHD, Is.EqualTo(new Guid(unchecked((((uint)(0x64766864) & 0xFF) << 24) | (((uint)(0x64766864) & 0xFF00) << 8) | (((uint)(0x64766864) & 0xFF0000) >> 8) | (((uint)(0x64766864) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_DV25Test() + { + Assert.That(MFVideoFormat_DV25, Is.EqualTo(new Guid(unchecked((((uint)(0x64763235) & 0xFF) << 24) | (((uint)(0x64763235) & 0xFF00) << 8) | (((uint)(0x64763235) & 0xFF0000) >> 8) | (((uint)(0x64763235) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_DV50Test() + { + Assert.That(MFVideoFormat_DV50, Is.EqualTo(new Guid(unchecked((((uint)(0x64763530) & 0xFF) << 24) | (((uint)(0x64763530) & 0xFF00) << 8) | (((uint)(0x64763530) & 0xFF0000) >> 8) | (((uint)(0x64763530) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_DVH1Test() + { + Assert.That(MFVideoFormat_DVH1, Is.EqualTo(new Guid(unchecked((((uint)(0x64766831) & 0xFF) << 24) | (((uint)(0x64766831) & 0xFF00) << 8) | (((uint)(0x64766831) & 0xFF0000) >> 8) | (((uint)(0x64766831) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_DVCTest() + { + Assert.That(MFVideoFormat_DVC, Is.EqualTo(new Guid(unchecked((((uint)(0x64766320) & 0xFF) << 24) | (((uint)(0x64766320) & 0xFF00) << 8) | (((uint)(0x64766320) & 0xFF0000) >> 8) | (((uint)(0x64766320) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_H264Test() + { + Assert.That(MFVideoFormat_H264, Is.EqualTo(new Guid(unchecked((((uint)(0x48323634) & 0xFF) << 24) | (((uint)(0x48323634) & 0xFF00) << 8) | (((uint)(0x48323634) & 0xFF0000) >> 8) | (((uint)(0x48323634) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_H265Test() + { + Assert.That(MFVideoFormat_H265, Is.EqualTo(new Guid(unchecked((((uint)(0x48323635) & 0xFF) << 24) | (((uint)(0x48323635) & 0xFF00) << 8) | (((uint)(0x48323635) & 0xFF0000) >> 8) | (((uint)(0x48323635) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MJPGTest() + { + Assert.That(MFVideoFormat_MJPG, Is.EqualTo(new Guid(unchecked((((uint)(0x4D4A5047) & 0xFF) << 24) | (((uint)(0x4D4A5047) & 0xFF00) << 8) | (((uint)(0x4D4A5047) & 0xFF0000) >> 8) | (((uint)(0x4D4A5047) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_420OTest() + { + Assert.That(MFVideoFormat_420O, Is.EqualTo(new Guid(unchecked((((uint)(0x3432304F) & 0xFF) << 24) | (((uint)(0x3432304F) & 0xFF00) << 8) | (((uint)(0x3432304F) & 0xFF0000) >> 8) | (((uint)(0x3432304F) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_HEVCTest() + { + Assert.That(MFVideoFormat_HEVC, Is.EqualTo(new Guid(unchecked((((uint)(0x48455643) & 0xFF) << 24) | (((uint)(0x48455643) & 0xFF00) << 8) | (((uint)(0x48455643) & 0xFF0000) >> 8) | (((uint)(0x48455643) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_HEVC_ESTest() + { + Assert.That(MFVideoFormat_HEVC_ES, Is.EqualTo(new Guid(unchecked((((uint)(0x48455653) & 0xFF) << 24) | (((uint)(0x48455653) & 0xFF00) << 8) | (((uint)(0x48455653) & 0xFF0000) >> 8) | (((uint)(0x48455653) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_VP80Test() + { + Assert.That(MFVideoFormat_VP80, Is.EqualTo(new Guid(unchecked((((uint)(0x56503830) & 0xFF) << 24) | (((uint)(0x56503830) & 0xFF00) << 8) | (((uint)(0x56503830) & 0xFF0000) >> 8) | (((uint)(0x56503830) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_VP90Test() + { + Assert.That(MFVideoFormat_VP90, Is.EqualTo(new Guid(unchecked((((uint)(0x56503930) & 0xFF) << 24) | (((uint)(0x56503930) & 0xFF00) << 8) | (((uint)(0x56503930) & 0xFF0000) >> 8) | (((uint)(0x56503930) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_ORAWTest() + { + Assert.That(MFVideoFormat_ORAW, Is.EqualTo(new Guid(unchecked((((uint)(0x4F524157) & 0xFF) << 24) | (((uint)(0x4F524157) & 0xFF00) << 8) | (((uint)(0x4F524157) & 0xFF0000) >> 8) | (((uint)(0x4F524157) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_H263Test() + { + Assert.That(MFVideoFormat_H263, Is.EqualTo(new Guid(unchecked((((uint)(0x48323633) & 0xFF) << 24) | (((uint)(0x48323633) & 0xFF00) << 8) | (((uint)(0x48323633) & 0xFF0000) >> 8) | (((uint)(0x48323633) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_A2R10G10B10Test() + { + Assert.That(MFVideoFormat_A2R10G10B10, Is.EqualTo(new Guid(31, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_A16B16G16R16FTest() + { + Assert.That(MFVideoFormat_A16B16G16R16F, Is.EqualTo(new Guid(113, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_VP10Test() + { + Assert.That(MFVideoFormat_VP10, Is.EqualTo(new Guid(unchecked((((uint)(0x56503130) & 0xFF) << 24) | (((uint)(0x56503130) & 0xFF00) << 8) | (((uint)(0x56503130) & 0xFF0000) >> 8) | (((uint)(0x56503130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_AV1Test() + { + Assert.That(MFVideoFormat_AV1, Is.EqualTo(new Guid(unchecked((((uint)(0x41563031) & 0xFF) << 24) | (((uint)(0x41563031) & 0xFF00) << 8) | (((uint)(0x41563031) & 0xFF0000) >> 8) | (((uint)(0x41563031) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_TheoraTest() + { + Assert.That(MFVideoFormat_Theora, Is.EqualTo(new Guid(unchecked((((uint)(0x7468656F) & 0xFF) << 24) | (((uint)(0x7468656F) & 0xFF00) << 8) | (((uint)(0x7468656F) & 0xFF0000) >> 8) | (((uint)(0x7468656F) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_H264_ESTest() + { + Assert.That(MFVideoFormat_H264_ES, Is.EqualTo(new Guid(0x3f40f4f0, 0x5622, 0x4ff8, 0xb6, 0xd8, 0xa1, 0x7a, 0x58, 0x4b, 0xee, 0x5e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_MPEG2Test() + { + Assert.That(MFVideoFormat_MPEG2, Is.EqualTo(new Guid(0xe06d8026, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_H264_HDCPTest() + { + Assert.That(MFVideoFormat_H264_HDCP, Is.EqualTo(new Guid(0x5d0ce9dd, 0x9817, 0x49da, 0xbd, 0xfd, 0xf5, 0xf5, 0xb9, 0x8f, 0x18, 0xa6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_HEVC_HDCPTest() + { + Assert.That(MFVideoFormat_HEVC_HDCP, Is.EqualTo(new Guid(0x3cfe0fe6, 0x05c4, 0x47dc, 0x9d, 0x70, 0x4b, 0xdb, 0x29, 0x59, 0x72, 0x0f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFVideoFormat_Base_HDCPTest() + { + Assert.That(MFVideoFormat_Base_HDCP, Is.EqualTo(new Guid(0xeac3b9d5, 0xbd14, 0x4237, 0x8f, 0x1f, 0xba, 0xb4, 0x28, 0xe4, 0x93, 0x12))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/mfapi/WindowsTests.cs b/tests/Interop/Windows/Windows/um/mfapi/WindowsTests.cs index c1da4af765..a8cdaca7db 100644 --- a/tests/Interop/Windows/Windows/um/mfapi/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/mfapi/WindowsTests.cs @@ -236,1110 +236,186 @@ public static void MFSampleExtension_RepeatFrameTest() Assert.That(MFSampleExtension_RepeatFrame, Is.EqualTo(new Guid(0x88be738f, 0x711, 0x4f42, 0xb4, 0x58, 0x34, 0x4a, 0xed, 0x42, 0xec, 0x2f))); } - /// Validates that the value of the property is correct. - [Test] - public static void MFT_ENCODER_ERRORTest() - { - Assert.That(MFT_ENCODER_ERROR, Is.EqualTo(new Guid(0xc8d1eda4, 0x98e4, 0x41d5, 0x92, 0x97, 0x44, 0xf5, 0x38, 0x52, 0xf9, 0x0e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_GFX_DRIVER_VERSION_ID_AttributeTest() - { - Assert.That(MFT_GFX_DRIVER_VERSION_ID_Attribute, Is.EqualTo(new Guid(0xf34b9093, 0x05e0, 0x4b16, 0x99, 0x3d, 0x3e, 0x2a, 0x2c, 0xde, 0x6a, 0xd3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_DescrambleDataTest() - { - Assert.That(MFSampleExtension_DescrambleData, Is.EqualTo(new Guid(0x43483be6, 0x4903, 0x4314, 0xb0, 0x32, 0x29, 0x51, 0x36, 0x59, 0x36, 0xfc))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_SampleKeyIDTest() - { - Assert.That(MFSampleExtension_SampleKeyID, Is.EqualTo(new Guid(0x9ed713c8, 0x9b87, 0x4b26, 0x82, 0x97, 0xa9, 0x3b, 0x0c, 0x5a, 0x8a, 0xcc))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_GenKeyFuncTest() - { - Assert.That(MFSampleExtension_GenKeyFunc, Is.EqualTo(new Guid(0x441ca1ee, 0x6b1f, 0x4501, 0x90, 0x3a, 0xde, 0x87, 0xdf, 0x42, 0xf6, 0xed))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_GenKeyCtxTest() - { - Assert.That(MFSampleExtension_GenKeyCtx, Is.EqualTo(new Guid(0x188120cb, 0xd7da, 0x4b59, 0x9b, 0x3e, 0x92, 0x52, 0xfd, 0x37, 0x30, 0x1c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_PacketCrossOffsetsTest() - { - Assert.That(MFSampleExtension_PacketCrossOffsets, Is.EqualTo(new Guid(0x2789671d, 0x389f, 0x40bb, 0x90, 0xd9, 0xc2, 0x82, 0xf7, 0x7f, 0x9a, 0xbd))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_Encryption_SampleIDTest() - { - Assert.That(MFSampleExtension_Encryption_SampleID, Is.EqualTo(new Guid(0x6698b84e, 0x0afa, 0x4330, 0xae, 0xb2, 0x1c, 0x0a, 0x98, 0xd7, 0xa4, 0x4d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_Encryption_KeyIDTest() - { - Assert.That(MFSampleExtension_Encryption_KeyID, Is.EqualTo(new Guid(0x76376591, 0x795f, 0x4da1, 0x86, 0xed, 0x9d, 0x46, 0xec, 0xa1, 0x09, 0xa9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_Content_KeyIDTest() - { - Assert.That(MFSampleExtension_Content_KeyID, Is.EqualTo(new Guid(0xc6c7f5b0, 0xacca, 0x415b, 0x87, 0xd9, 0x10, 0x44, 0x14, 0x69, 0xef, 0xc6))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_Encryption_SubSampleMappingSplitTest() - { - Assert.That(MFSampleExtension_Encryption_SubSampleMappingSplit, Is.EqualTo(new Guid(0xfe0254b9, 0x2aa5, 0x4edc, 0x99, 0xf7, 0x17, 0xe8, 0x9d, 0xbf, 0x91, 0x74))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_InterlacedTest() - { - Assert.That(MFSampleExtension_Interlaced, Is.EqualTo(new Guid(0xb1d5830a, 0xdeb8, 0x40e3, 0x90, 0xfa, 0x38, 0x99, 0x43, 0x71, 0x64, 0x61))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_BottomFieldFirstTest() - { - Assert.That(MFSampleExtension_BottomFieldFirst, Is.EqualTo(new Guid(0x941ce0a3, 0x6ae3, 0x4dda, 0x9a, 0x08, 0xa6, 0x42, 0x98, 0x34, 0x06, 0x17))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_RepeatFirstFieldTest() - { - Assert.That(MFSampleExtension_RepeatFirstField, Is.EqualTo(new Guid(0x304d257c, 0x7493, 0x4fbd, 0xb1, 0x49, 0x92, 0x28, 0xde, 0x8d, 0x9a, 0x99))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_SingleFieldTest() - { - Assert.That(MFSampleExtension_SingleField, Is.EqualTo(new Guid(0x9d85f816, 0x658b, 0x455a, 0xbd, 0xe0, 0x9f, 0xa7, 0xe1, 0x5a, 0xb8, 0xf9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_DerivedFromTopFieldTest() - { - Assert.That(MFSampleExtension_DerivedFromTopField, Is.EqualTo(new Guid(0x6852465a, 0xae1c, 0x4553, 0x8e, 0x9b, 0xc3, 0x42, 0x0f, 0xcb, 0x16, 0x37))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_MeanAbsoluteDifferenceTest() - { - Assert.That(MFSampleExtension_MeanAbsoluteDifference, Is.EqualTo(new Guid(0x1cdbde11, 0x08b4, 0x4311, 0xa6, 0xdd, 0x0f, 0x9f, 0x37, 0x19, 0x07, 0xaa))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_LongTermReferenceFrameInfoTest() - { - Assert.That(MFSampleExtension_LongTermReferenceFrameInfo, Is.EqualTo(new Guid(0x9154733f, 0xe1bd, 0x41bf, 0x81, 0xd3, 0xfc, 0xd9, 0x18, 0xf7, 0x13, 0x32))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_ROIRectangleTest() - { - Assert.That(MFSampleExtension_ROIRectangle, Is.EqualTo(new Guid(0x3414a438, 0x4998, 0x4d2c, 0xbe, 0x82, 0xbe, 0x3c, 0xa0, 0xb2, 0x4d, 0x43))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_LastSliceTest() - { - Assert.That(MFSampleExtension_LastSlice, Is.EqualTo(new Guid(0x2b5d5457, 0x5547, 0x4f07, 0xb8, 0xc8, 0xb4, 0xa3, 0xa9, 0xa1, 0xda, 0xac))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_FeatureMapTest() - { - Assert.That(MFSampleExtension_FeatureMap, Is.EqualTo(new Guid(0xa032d165, 0x46fc, 0x400a, 0xb4, 0x49, 0x49, 0xde, 0x53, 0xe6, 0x2a, 0x6e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_ChromaOnlyTest() - { - Assert.That(MFSampleExtension_ChromaOnly, Is.EqualTo(new Guid(0x1eb9179c, 0xa01f, 0x4845, 0x8c, 0x04, 0x0e, 0x65, 0xa2, 0x6e, 0xb0, 0x4f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_PhotoThumbnailTest() - { - Assert.That(MFSampleExtension_PhotoThumbnail, Is.EqualTo(new Guid(0x74BBC85C, 0xC8BB, 0x42DC, 0xB5, 0x86, 0xDA, 0x17, 0xFF, 0xD3, 0x5D, 0xCC))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_PhotoThumbnailMediaTypeTest() - { - Assert.That(MFSampleExtension_PhotoThumbnailMediaType, Is.EqualTo(new Guid(0x61AD5420, 0xEBF8, 0x4143, 0x89, 0xAF, 0x6B, 0xF2, 0x5F, 0x67, 0x2D, 0xEF))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_CaptureMetadataTest() - { - Assert.That(MFSampleExtension_CaptureMetadata, Is.EqualTo(new Guid(0x2EBE23A8, 0xFAF5, 0x444A, 0xA6, 0xA2, 0xEB, 0x81, 0x08, 0x80, 0xAB, 0x5D))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_MDLCacheCookieTest() - { - Assert.That(MFSampleExtension_MDLCacheCookie, Is.EqualTo(new Guid(0x5F002AF9, 0xD8F9, 0x41A3, 0xB6, 0xC3, 0xA2, 0xAD, 0x43, 0xF6, 0x47, 0xAD))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_Depth_MinReliableDepthTest() - { - Assert.That(MFSampleExtension_Depth_MinReliableDepth, Is.EqualTo(new Guid(0x5f8582b2, 0xe36b, 0x47c8, 0x9b, 0x87, 0xfe, 0xe1, 0xca, 0x72, 0xc5, 0xb0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFSampleExtension_Depth_MaxReliableDepthTest() - { - Assert.That(MFSampleExtension_Depth_MaxReliableDepth, Is.EqualTo(new Guid(0xe45545d1, 0x1f0f, 0x4a32, 0xa8, 0xa7, 0x61, 0x1, 0xa2, 0x4e, 0xa8, 0xbe))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_VIDEO_DECODERTest() - { - Assert.That(MFT_CATEGORY_VIDEO_DECODER, Is.EqualTo(new Guid(0xd6c02d4b, 0x6833, 0x45b4, 0x97, 0x1a, 0x05, 0xa4, 0xb0, 0x4b, 0xab, 0x91))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_VIDEO_ENCODERTest() - { - Assert.That(MFT_CATEGORY_VIDEO_ENCODER, Is.EqualTo(new Guid(0xf79eac7d, 0xe545, 0x4387, 0xbd, 0xee, 0xd6, 0x47, 0xd7, 0xbd, 0xe4, 0x2a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_VIDEO_EFFECTTest() - { - Assert.That(MFT_CATEGORY_VIDEO_EFFECT, Is.EqualTo(new Guid(0x12e17c21, 0x532c, 0x4a6e, 0x8a, 0x1c, 0x40, 0x82, 0x5a, 0x73, 0x63, 0x97))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_MULTIPLEXERTest() - { - Assert.That(MFT_CATEGORY_MULTIPLEXER, Is.EqualTo(new Guid(0x059c561e, 0x05ae, 0x4b61, 0xb6, 0x9d, 0x55, 0xb6, 0x1e, 0xe5, 0x4a, 0x7b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_DEMULTIPLEXERTest() - { - Assert.That(MFT_CATEGORY_DEMULTIPLEXER, Is.EqualTo(new Guid(0xa8700a7a, 0x939b, 0x44c5, 0x99, 0xd7, 0x76, 0x22, 0x6b, 0x23, 0xb3, 0xf1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_AUDIO_DECODERTest() - { - Assert.That(MFT_CATEGORY_AUDIO_DECODER, Is.EqualTo(new Guid(0x9ea73fb4, 0xef7a, 0x4559, 0x8d, 0x5d, 0x71, 0x9d, 0x8f, 0x04, 0x26, 0xc7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_AUDIO_ENCODERTest() - { - Assert.That(MFT_CATEGORY_AUDIO_ENCODER, Is.EqualTo(new Guid(0x91c64bd0, 0xf91e, 0x4d8c, 0x92, 0x76, 0xdb, 0x24, 0x82, 0x79, 0xd9, 0x75))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_AUDIO_EFFECTTest() - { - Assert.That(MFT_CATEGORY_AUDIO_EFFECT, Is.EqualTo(new Guid(0x11064c48, 0x3648, 0x4ed0, 0x93, 0x2e, 0x05, 0xce, 0x8a, 0xc8, 0x11, 0xb7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_VIDEO_PROCESSORTest() - { - Assert.That(MFT_CATEGORY_VIDEO_PROCESSOR, Is.EqualTo(new Guid(0x302ea3fc, 0xaa5f, 0x47f9, 0x9f, 0x7a, 0xc2, 0x18, 0x8b, 0xb1, 0x63, 0x2))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_OTHERTest() - { - Assert.That(MFT_CATEGORY_OTHER, Is.EqualTo(new Guid(0x90175d57, 0xb7ea, 0x4901, 0xae, 0xb3, 0x93, 0x3a, 0x87, 0x47, 0x75, 0x6f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_ENCRYPTORTest() - { - Assert.That(MFT_CATEGORY_ENCRYPTOR, Is.EqualTo(new Guid(0xb0c687be, 0x01cd, 0x44b5, 0xb8, 0xb2, 0x7c, 0x1d, 0x7e, 0x05, 0x8b, 0x1f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CATEGORY_VIDEO_RENDERER_EFFECTTest() - { - Assert.That(MFT_CATEGORY_VIDEO_RENDERER_EFFECT, Is.EqualTo(new Guid(0x145cd8b4, 0x92f4, 0x4b23, 0x8a, 0xe7, 0xe0, 0xdf, 0x6, 0xc2, 0xda, 0x95))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_ENUM_VIDEO_RENDERER_EXTENSION_PROFILETest() - { - Assert.That(MFT_ENUM_VIDEO_RENDERER_EXTENSION_PROFILE, Is.EqualTo(new Guid(0x62c56928, 0x9a4e, 0x443b, 0xb9, 0xdc, 0xca, 0xc8, 0x30, 0xc2, 0x41, 0x0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_ENUM_ADAPTER_LUIDTest() - { - Assert.That(MFT_ENUM_ADAPTER_LUID, Is.EqualTo(new Guid(0x1d39518c, 0xe220, 0x4da8, 0xa0, 0x7f, 0xba, 0x17, 0x25, 0x52, 0xd6, 0xb1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_SUPPORT_DYNAMIC_FORMAT_CHANGETest() - { - Assert.That(MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE, Is.EqualTo(new Guid(0x53476a11, 0x3f13, 0x49fb, 0xac, 0x42, 0xee, 0x27, 0x33, 0xc9, 0x67, 0x41))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_BaseTest() - { - Assert.That(MFVideoFormat_Base, Is.EqualTo(new Guid(0x00000000, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_RGB32Test() - { - Assert.That(MFVideoFormat_RGB32, Is.EqualTo(new Guid(22, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_ARGB32Test() - { - Assert.That(MFVideoFormat_ARGB32, Is.EqualTo(new Guid(21, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_RGB24Test() - { - Assert.That(MFVideoFormat_RGB24, Is.EqualTo(new Guid(20, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_RGB555Test() - { - Assert.That(MFVideoFormat_RGB555, Is.EqualTo(new Guid(24, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_RGB565Test() - { - Assert.That(MFVideoFormat_RGB565, Is.EqualTo(new Guid(23, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_RGB8Test() - { - Assert.That(MFVideoFormat_RGB8, Is.EqualTo(new Guid(41, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_L8Test() - { - Assert.That(MFVideoFormat_L8, Is.EqualTo(new Guid(50, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_L16Test() - { - Assert.That(MFVideoFormat_L16, Is.EqualTo(new Guid(81, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_D16Test() - { - Assert.That(MFVideoFormat_D16, Is.EqualTo(new Guid(80, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_AI44Test() - { - Assert.That(MFVideoFormat_AI44, Is.EqualTo(new Guid(unchecked((((uint)(0x41493434) & 0xFF) << 24) | (((uint)(0x41493434) & 0xFF00) << 8) | (((uint)(0x41493434) & 0xFF0000) >> 8) | (((uint)(0x41493434) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_AYUVTest() - { - Assert.That(MFVideoFormat_AYUV, Is.EqualTo(new Guid(unchecked((((uint)(0x41595556) & 0xFF) << 24) | (((uint)(0x41595556) & 0xFF00) << 8) | (((uint)(0x41595556) & 0xFF0000) >> 8) | (((uint)(0x41595556) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_YUY2Test() - { - Assert.That(MFVideoFormat_YUY2, Is.EqualTo(new Guid(unchecked((((uint)(0x59555932) & 0xFF) << 24) | (((uint)(0x59555932) & 0xFF00) << 8) | (((uint)(0x59555932) & 0xFF0000) >> 8) | (((uint)(0x59555932) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_YVYUTest() - { - Assert.That(MFVideoFormat_YVYU, Is.EqualTo(new Guid(unchecked((((uint)(0x59565955) & 0xFF) << 24) | (((uint)(0x59565955) & 0xFF00) << 8) | (((uint)(0x59565955) & 0xFF0000) >> 8) | (((uint)(0x59565955) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_YVU9Test() - { - Assert.That(MFVideoFormat_YVU9, Is.EqualTo(new Guid(unchecked((((uint)(0x59565539) & 0xFF) << 24) | (((uint)(0x59565539) & 0xFF00) << 8) | (((uint)(0x59565539) & 0xFF0000) >> 8) | (((uint)(0x59565539) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_UYVYTest() - { - Assert.That(MFVideoFormat_UYVY, Is.EqualTo(new Guid(unchecked((((uint)(0x55595659) & 0xFF) << 24) | (((uint)(0x55595659) & 0xFF00) << 8) | (((uint)(0x55595659) & 0xFF0000) >> 8) | (((uint)(0x55595659) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_NV11Test() - { - Assert.That(MFVideoFormat_NV11, Is.EqualTo(new Guid(unchecked((((uint)(0x4E563131) & 0xFF) << 24) | (((uint)(0x4E563131) & 0xFF00) << 8) | (((uint)(0x4E563131) & 0xFF0000) >> 8) | (((uint)(0x4E563131) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_NV12Test() - { - Assert.That(MFVideoFormat_NV12, Is.EqualTo(new Guid(unchecked((((uint)(0x4E563132) & 0xFF) << 24) | (((uint)(0x4E563132) & 0xFF00) << 8) | (((uint)(0x4E563132) & 0xFF0000) >> 8) | (((uint)(0x4E563132) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_YV12Test() - { - Assert.That(MFVideoFormat_YV12, Is.EqualTo(new Guid(unchecked((((uint)(0x59563132) & 0xFF) << 24) | (((uint)(0x59563132) & 0xFF00) << 8) | (((uint)(0x59563132) & 0xFF0000) >> 8) | (((uint)(0x59563132) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_I420Test() - { - Assert.That(MFVideoFormat_I420, Is.EqualTo(new Guid(unchecked((((uint)(0x49343230) & 0xFF) << 24) | (((uint)(0x49343230) & 0xFF00) << 8) | (((uint)(0x49343230) & 0xFF0000) >> 8) | (((uint)(0x49343230) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_IYUVTest() - { - Assert.That(MFVideoFormat_IYUV, Is.EqualTo(new Guid(unchecked((((uint)(0x49595556) & 0xFF) << 24) | (((uint)(0x49595556) & 0xFF00) << 8) | (((uint)(0x49595556) & 0xFF0000) >> 8) | (((uint)(0x49595556) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_Y210Test() - { - Assert.That(MFVideoFormat_Y210, Is.EqualTo(new Guid(unchecked((((uint)(0x59323130) & 0xFF) << 24) | (((uint)(0x59323130) & 0xFF00) << 8) | (((uint)(0x59323130) & 0xFF0000) >> 8) | (((uint)(0x59323130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_Y216Test() - { - Assert.That(MFVideoFormat_Y216, Is.EqualTo(new Guid(unchecked((((uint)(0x59323136) & 0xFF) << 24) | (((uint)(0x59323136) & 0xFF00) << 8) | (((uint)(0x59323136) & 0xFF0000) >> 8) | (((uint)(0x59323136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_Y410Test() - { - Assert.That(MFVideoFormat_Y410, Is.EqualTo(new Guid(unchecked((((uint)(0x59343130) & 0xFF) << 24) | (((uint)(0x59343130) & 0xFF00) << 8) | (((uint)(0x59343130) & 0xFF0000) >> 8) | (((uint)(0x59343130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_Y416Test() - { - Assert.That(MFVideoFormat_Y416, Is.EqualTo(new Guid(unchecked((((uint)(0x59343136) & 0xFF) << 24) | (((uint)(0x59343136) & 0xFF00) << 8) | (((uint)(0x59343136) & 0xFF0000) >> 8) | (((uint)(0x59343136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_Y41PTest() - { - Assert.That(MFVideoFormat_Y41P, Is.EqualTo(new Guid(unchecked((((uint)(0x59343150) & 0xFF) << 24) | (((uint)(0x59343150) & 0xFF00) << 8) | (((uint)(0x59343150) & 0xFF0000) >> 8) | (((uint)(0x59343150) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_Y41TTest() - { - Assert.That(MFVideoFormat_Y41T, Is.EqualTo(new Guid(unchecked((((uint)(0x59343154) & 0xFF) << 24) | (((uint)(0x59343154) & 0xFF00) << 8) | (((uint)(0x59343154) & 0xFF0000) >> 8) | (((uint)(0x59343154) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_Y42TTest() - { - Assert.That(MFVideoFormat_Y42T, Is.EqualTo(new Guid(unchecked((((uint)(0x59343254) & 0xFF) << 24) | (((uint)(0x59343254) & 0xFF00) << 8) | (((uint)(0x59343254) & 0xFF0000) >> 8) | (((uint)(0x59343254) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_P210Test() - { - Assert.That(MFVideoFormat_P210, Is.EqualTo(new Guid(unchecked((((uint)(0x50323130) & 0xFF) << 24) | (((uint)(0x50323130) & 0xFF00) << 8) | (((uint)(0x50323130) & 0xFF0000) >> 8) | (((uint)(0x50323130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_P216Test() - { - Assert.That(MFVideoFormat_P216, Is.EqualTo(new Guid(unchecked((((uint)(0x50323136) & 0xFF) << 24) | (((uint)(0x50323136) & 0xFF00) << 8) | (((uint)(0x50323136) & 0xFF0000) >> 8) | (((uint)(0x50323136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_P010Test() - { - Assert.That(MFVideoFormat_P010, Is.EqualTo(new Guid(unchecked((((uint)(0x50303130) & 0xFF) << 24) | (((uint)(0x50303130) & 0xFF00) << 8) | (((uint)(0x50303130) & 0xFF0000) >> 8) | (((uint)(0x50303130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_P016Test() - { - Assert.That(MFVideoFormat_P016, Is.EqualTo(new Guid(unchecked((((uint)(0x50303136) & 0xFF) << 24) | (((uint)(0x50303136) & 0xFF00) << 8) | (((uint)(0x50303136) & 0xFF0000) >> 8) | (((uint)(0x50303136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_v210Test() - { - Assert.That(MFVideoFormat_v210, Is.EqualTo(new Guid(unchecked((((uint)(0x76323130) & 0xFF) << 24) | (((uint)(0x76323130) & 0xFF00) << 8) | (((uint)(0x76323130) & 0xFF0000) >> 8) | (((uint)(0x76323130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_v216Test() - { - Assert.That(MFVideoFormat_v216, Is.EqualTo(new Guid(unchecked((((uint)(0x76323136) & 0xFF) << 24) | (((uint)(0x76323136) & 0xFF00) << 8) | (((uint)(0x76323136) & 0xFF0000) >> 8) | (((uint)(0x76323136) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_v410Test() - { - Assert.That(MFVideoFormat_v410, Is.EqualTo(new Guid(unchecked((((uint)(0x76343130) & 0xFF) << 24) | (((uint)(0x76343130) & 0xFF00) << 8) | (((uint)(0x76343130) & 0xFF0000) >> 8) | (((uint)(0x76343130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MP43Test() - { - Assert.That(MFVideoFormat_MP43, Is.EqualTo(new Guid(unchecked((((uint)(0x4D503433) & 0xFF) << 24) | (((uint)(0x4D503433) & 0xFF00) << 8) | (((uint)(0x4D503433) & 0xFF0000) >> 8) | (((uint)(0x4D503433) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MP4STest() - { - Assert.That(MFVideoFormat_MP4S, Is.EqualTo(new Guid(unchecked((((uint)(0x4D503453) & 0xFF) << 24) | (((uint)(0x4D503453) & 0xFF00) << 8) | (((uint)(0x4D503453) & 0xFF0000) >> 8) | (((uint)(0x4D503453) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_M4S2Test() - { - Assert.That(MFVideoFormat_M4S2, Is.EqualTo(new Guid(unchecked((((uint)(0x4D345332) & 0xFF) << 24) | (((uint)(0x4D345332) & 0xFF00) << 8) | (((uint)(0x4D345332) & 0xFF0000) >> 8) | (((uint)(0x4D345332) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MP4VTest() - { - Assert.That(MFVideoFormat_MP4V, Is.EqualTo(new Guid(unchecked((((uint)(0x4D503456) & 0xFF) << 24) | (((uint)(0x4D503456) & 0xFF00) << 8) | (((uint)(0x4D503456) & 0xFF0000) >> 8) | (((uint)(0x4D503456) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_WMV1Test() - { - Assert.That(MFVideoFormat_WMV1, Is.EqualTo(new Guid(unchecked((((uint)(0x574D5631) & 0xFF) << 24) | (((uint)(0x574D5631) & 0xFF00) << 8) | (((uint)(0x574D5631) & 0xFF0000) >> 8) | (((uint)(0x574D5631) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_WMV2Test() - { - Assert.That(MFVideoFormat_WMV2, Is.EqualTo(new Guid(unchecked((((uint)(0x574D5632) & 0xFF) << 24) | (((uint)(0x574D5632) & 0xFF00) << 8) | (((uint)(0x574D5632) & 0xFF0000) >> 8) | (((uint)(0x574D5632) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_WMV3Test() - { - Assert.That(MFVideoFormat_WMV3, Is.EqualTo(new Guid(unchecked((((uint)(0x574D5633) & 0xFF) << 24) | (((uint)(0x574D5633) & 0xFF00) << 8) | (((uint)(0x574D5633) & 0xFF0000) >> 8) | (((uint)(0x574D5633) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_WVC1Test() - { - Assert.That(MFVideoFormat_WVC1, Is.EqualTo(new Guid(unchecked((((uint)(0x57564331) & 0xFF) << 24) | (((uint)(0x57564331) & 0xFF00) << 8) | (((uint)(0x57564331) & 0xFF0000) >> 8) | (((uint)(0x57564331) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MSS1Test() - { - Assert.That(MFVideoFormat_MSS1, Is.EqualTo(new Guid(unchecked((((uint)(0x4D535331) & 0xFF) << 24) | (((uint)(0x4D535331) & 0xFF00) << 8) | (((uint)(0x4D535331) & 0xFF0000) >> 8) | (((uint)(0x4D535331) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MSS2Test() - { - Assert.That(MFVideoFormat_MSS2, Is.EqualTo(new Guid(unchecked((((uint)(0x4D535332) & 0xFF) << 24) | (((uint)(0x4D535332) & 0xFF00) << 8) | (((uint)(0x4D535332) & 0xFF0000) >> 8) | (((uint)(0x4D535332) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MPG1Test() - { - Assert.That(MFVideoFormat_MPG1, Is.EqualTo(new Guid(unchecked((((uint)(0x4D504731) & 0xFF) << 24) | (((uint)(0x4D504731) & 0xFF00) << 8) | (((uint)(0x4D504731) & 0xFF0000) >> 8) | (((uint)(0x4D504731) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_DVSLTest() - { - Assert.That(MFVideoFormat_DVSL, Is.EqualTo(new Guid(unchecked((((uint)(0x6476736C) & 0xFF) << 24) | (((uint)(0x6476736C) & 0xFF00) << 8) | (((uint)(0x6476736C) & 0xFF0000) >> 8) | (((uint)(0x6476736C) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_DVSDTest() - { - Assert.That(MFVideoFormat_DVSD, Is.EqualTo(new Guid(unchecked((((uint)(0x64767364) & 0xFF) << 24) | (((uint)(0x64767364) & 0xFF00) << 8) | (((uint)(0x64767364) & 0xFF0000) >> 8) | (((uint)(0x64767364) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_DVHDTest() - { - Assert.That(MFVideoFormat_DVHD, Is.EqualTo(new Guid(unchecked((((uint)(0x64766864) & 0xFF) << 24) | (((uint)(0x64766864) & 0xFF00) << 8) | (((uint)(0x64766864) & 0xFF0000) >> 8) | (((uint)(0x64766864) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_DV25Test() - { - Assert.That(MFVideoFormat_DV25, Is.EqualTo(new Guid(unchecked((((uint)(0x64763235) & 0xFF) << 24) | (((uint)(0x64763235) & 0xFF00) << 8) | (((uint)(0x64763235) & 0xFF0000) >> 8) | (((uint)(0x64763235) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_DV50Test() - { - Assert.That(MFVideoFormat_DV50, Is.EqualTo(new Guid(unchecked((((uint)(0x64763530) & 0xFF) << 24) | (((uint)(0x64763530) & 0xFF00) << 8) | (((uint)(0x64763530) & 0xFF0000) >> 8) | (((uint)(0x64763530) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_DVH1Test() - { - Assert.That(MFVideoFormat_DVH1, Is.EqualTo(new Guid(unchecked((((uint)(0x64766831) & 0xFF) << 24) | (((uint)(0x64766831) & 0xFF00) << 8) | (((uint)(0x64766831) & 0xFF0000) >> 8) | (((uint)(0x64766831) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_DVCTest() - { - Assert.That(MFVideoFormat_DVC, Is.EqualTo(new Guid(unchecked((((uint)(0x64766320) & 0xFF) << 24) | (((uint)(0x64766320) & 0xFF00) << 8) | (((uint)(0x64766320) & 0xFF0000) >> 8) | (((uint)(0x64766320) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_H264Test() - { - Assert.That(MFVideoFormat_H264, Is.EqualTo(new Guid(unchecked((((uint)(0x48323634) & 0xFF) << 24) | (((uint)(0x48323634) & 0xFF00) << 8) | (((uint)(0x48323634) & 0xFF0000) >> 8) | (((uint)(0x48323634) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_H265Test() - { - Assert.That(MFVideoFormat_H265, Is.EqualTo(new Guid(unchecked((((uint)(0x48323635) & 0xFF) << 24) | (((uint)(0x48323635) & 0xFF00) << 8) | (((uint)(0x48323635) & 0xFF0000) >> 8) | (((uint)(0x48323635) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MJPGTest() - { - Assert.That(MFVideoFormat_MJPG, Is.EqualTo(new Guid(unchecked((((uint)(0x4D4A5047) & 0xFF) << 24) | (((uint)(0x4D4A5047) & 0xFF00) << 8) | (((uint)(0x4D4A5047) & 0xFF0000) >> 8) | (((uint)(0x4D4A5047) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_420OTest() - { - Assert.That(MFVideoFormat_420O, Is.EqualTo(new Guid(unchecked((((uint)(0x3432304F) & 0xFF) << 24) | (((uint)(0x3432304F) & 0xFF00) << 8) | (((uint)(0x3432304F) & 0xFF0000) >> 8) | (((uint)(0x3432304F) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_HEVCTest() - { - Assert.That(MFVideoFormat_HEVC, Is.EqualTo(new Guid(unchecked((((uint)(0x48455643) & 0xFF) << 24) | (((uint)(0x48455643) & 0xFF00) << 8) | (((uint)(0x48455643) & 0xFF0000) >> 8) | (((uint)(0x48455643) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_HEVC_ESTest() - { - Assert.That(MFVideoFormat_HEVC_ES, Is.EqualTo(new Guid(unchecked((((uint)(0x48455653) & 0xFF) << 24) | (((uint)(0x48455653) & 0xFF00) << 8) | (((uint)(0x48455653) & 0xFF0000) >> 8) | (((uint)(0x48455653) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_VP80Test() - { - Assert.That(MFVideoFormat_VP80, Is.EqualTo(new Guid(unchecked((((uint)(0x56503830) & 0xFF) << 24) | (((uint)(0x56503830) & 0xFF00) << 8) | (((uint)(0x56503830) & 0xFF0000) >> 8) | (((uint)(0x56503830) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_VP90Test() - { - Assert.That(MFVideoFormat_VP90, Is.EqualTo(new Guid(unchecked((((uint)(0x56503930) & 0xFF) << 24) | (((uint)(0x56503930) & 0xFF00) << 8) | (((uint)(0x56503930) & 0xFF0000) >> 8) | (((uint)(0x56503930) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_ORAWTest() - { - Assert.That(MFVideoFormat_ORAW, Is.EqualTo(new Guid(unchecked((((uint)(0x4F524157) & 0xFF) << 24) | (((uint)(0x4F524157) & 0xFF00) << 8) | (((uint)(0x4F524157) & 0xFF0000) >> 8) | (((uint)(0x4F524157) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_H263Test() - { - Assert.That(MFVideoFormat_H263, Is.EqualTo(new Guid(unchecked((((uint)(0x48323633) & 0xFF) << 24) | (((uint)(0x48323633) & 0xFF00) << 8) | (((uint)(0x48323633) & 0xFF0000) >> 8) | (((uint)(0x48323633) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_A2R10G10B10Test() - { - Assert.That(MFVideoFormat_A2R10G10B10, Is.EqualTo(new Guid(31, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_A16B16G16R16FTest() - { - Assert.That(MFVideoFormat_A16B16G16R16F, Is.EqualTo(new Guid(113, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_VP10Test() - { - Assert.That(MFVideoFormat_VP10, Is.EqualTo(new Guid(unchecked((((uint)(0x56503130) & 0xFF) << 24) | (((uint)(0x56503130) & 0xFF00) << 8) | (((uint)(0x56503130) & 0xFF0000) >> 8) | (((uint)(0x56503130) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_AV1Test() - { - Assert.That(MFVideoFormat_AV1, Is.EqualTo(new Guid(unchecked((((uint)(0x41563031) & 0xFF) << 24) | (((uint)(0x41563031) & 0xFF00) << 8) | (((uint)(0x41563031) & 0xFF0000) >> 8) | (((uint)(0x41563031) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_TheoraTest() - { - Assert.That(MFVideoFormat_Theora, Is.EqualTo(new Guid(unchecked((((uint)(0x7468656F) & 0xFF) << 24) | (((uint)(0x7468656F) & 0xFF00) << 8) | (((uint)(0x7468656F) & 0xFF0000) >> 8) | (((uint)(0x7468656F) & 0xFF000000) >> 24)), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_H264_ESTest() - { - Assert.That(MFVideoFormat_H264_ES, Is.EqualTo(new Guid(0x3f40f4f0, 0x5622, 0x4ff8, 0xb6, 0xd8, 0xa1, 0x7a, 0x58, 0x4b, 0xee, 0x5e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFVideoFormat_MPEG2Test() - { - Assert.That(MFVideoFormat_MPEG2, Is.EqualTo(new Guid(0xe06d8026, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_BaseTest() - { - Assert.That(MFAudioFormat_Base, Is.EqualTo(new Guid(0x00000000, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_PCMTest() - { - Assert.That(MFAudioFormat_PCM, Is.EqualTo(new Guid(1, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_FloatTest() - { - Assert.That(MFAudioFormat_Float, Is.EqualTo(new Guid(0x0003, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_DTSTest() - { - Assert.That(MFAudioFormat_DTS, Is.EqualTo(new Guid(0x0008, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_Dolby_AC3_SPDIFTest() - { - Assert.That(MFAudioFormat_Dolby_AC3_SPDIF, Is.EqualTo(new Guid(0x0092, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_DRMTest() - { - Assert.That(MFAudioFormat_DRM, Is.EqualTo(new Guid(0x0009, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_WMAudioV8Test() - { - Assert.That(MFAudioFormat_WMAudioV8, Is.EqualTo(new Guid(0x0161, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_WMAudioV9Test() - { - Assert.That(MFAudioFormat_WMAudioV9, Is.EqualTo(new Guid(0x0162, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_WMAudio_LosslessTest() - { - Assert.That(MFAudioFormat_WMAudio_Lossless, Is.EqualTo(new Guid(0x0163, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_WMASPDIFTest() - { - Assert.That(MFAudioFormat_WMASPDIF, Is.EqualTo(new Guid(0x0164, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_MSP1Test() - { - Assert.That(MFAudioFormat_MSP1, Is.EqualTo(new Guid(0x000A, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_MP3Test() - { - Assert.That(MFAudioFormat_MP3, Is.EqualTo(new Guid(0x0055, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_MPEGTest() - { - Assert.That(MFAudioFormat_MPEG, Is.EqualTo(new Guid(0x0050, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_AACTest() - { - Assert.That(MFAudioFormat_AAC, Is.EqualTo(new Guid(0x1610, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_ADTSTest() - { - Assert.That(MFAudioFormat_ADTS, Is.EqualTo(new Guid(0x1600, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_AMR_NBTest() - { - Assert.That(MFAudioFormat_AMR_NB, Is.EqualTo(new Guid(0x7361, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_AMR_WBTest() - { - Assert.That(MFAudioFormat_AMR_WB, Is.EqualTo(new Guid(0x7362, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_AMR_WPTest() - { - Assert.That(MFAudioFormat_AMR_WP, Is.EqualTo(new Guid(0x7363, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFAudioFormat_FLACTest() - { - Assert.That(MFAudioFormat_FLAC, Is.EqualTo(new Guid(0xF1AC, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); - } - - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_ALACTest() + public static void MFSampleExtension_DescrambleDataTest() { - Assert.That(MFAudioFormat_ALAC, Is.EqualTo(new Guid(0x6C61, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(MFSampleExtension_DescrambleData, Is.EqualTo(new Guid(0x43483be6, 0x4903, 0x4314, 0xb0, 0x32, 0x29, 0x51, 0x36, 0x59, 0x36, 0xfc))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_OpusTest() + public static void MFSampleExtension_SampleKeyIDTest() { - Assert.That(MFAudioFormat_Opus, Is.EqualTo(new Guid(0x704F, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(MFSampleExtension_SampleKeyID, Is.EqualTo(new Guid(0x9ed713c8, 0x9b87, 0x4b26, 0x82, 0x97, 0xa9, 0x3b, 0x0c, 0x5a, 0x8a, 0xcc))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_AC4Test() + public static void MFSampleExtension_GenKeyFuncTest() { - Assert.That(MFAudioFormat_Dolby_AC4, Is.EqualTo(new Guid(0xAC40, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71))); + Assert.That(MFSampleExtension_GenKeyFunc, Is.EqualTo(new Guid(0x441ca1ee, 0x6b1f, 0x4501, 0x90, 0x3a, 0xde, 0x87, 0xdf, 0x42, 0xf6, 0xed))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_AC3Test() + public static void MFSampleExtension_GenKeyCtxTest() { - Assert.That(MFAudioFormat_Dolby_AC3, Is.EqualTo(new Guid(0xe06d802c, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x05f, 0x6c, 0xbb, 0xea))); + Assert.That(MFSampleExtension_GenKeyCtx, Is.EqualTo(new Guid(0x188120cb, 0xd7da, 0x4b59, 0x9b, 0x3e, 0x92, 0x52, 0xfd, 0x37, 0x30, 0x1c))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_DDPlusTest() + public static void MFSampleExtension_PacketCrossOffsetsTest() { - Assert.That(MFAudioFormat_Dolby_DDPlus, Is.EqualTo(new Guid(0xa7fb87af, 0x2d02, 0x42fb, 0xa4, 0xd4, 0x5, 0xcd, 0x93, 0x84, 0x3b, 0xdd))); + Assert.That(MFSampleExtension_PacketCrossOffsets, Is.EqualTo(new Guid(0x2789671d, 0x389f, 0x40bb, 0x90, 0xd9, 0xc2, 0x82, 0xf7, 0x7f, 0x9a, 0xbd))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_AC4_V1Test() + public static void MFSampleExtension_Encryption_SampleIDTest() { - Assert.That(MFAudioFormat_Dolby_AC4_V1, Is.EqualTo(new Guid(0x36b7927c, 0x3d87, 0x4a2a, 0x91, 0x96, 0xa2, 0x1a, 0xd9, 0xe9, 0x35, 0xe6))); + Assert.That(MFSampleExtension_Encryption_SampleID, Is.EqualTo(new Guid(0x6698b84e, 0x0afa, 0x4330, 0xae, 0xb2, 0x1c, 0x0a, 0x98, 0xd7, 0xa4, 0x4d))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_AC4_V2Test() + public static void MFSampleExtension_Encryption_KeyIDTest() { - Assert.That(MFAudioFormat_Dolby_AC4_V2, Is.EqualTo(new Guid(0x7998b2a0, 0x17dd, 0x49b6, 0x8d, 0xfa, 0x9b, 0x27, 0x85, 0x52, 0xa2, 0xac))); + Assert.That(MFSampleExtension_Encryption_KeyID, Is.EqualTo(new Guid(0x76376591, 0x795f, 0x4da1, 0x86, 0xed, 0x9d, 0x46, 0xec, 0xa1, 0x09, 0xa9))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_AC4_V1_ESTest() + public static void MFSampleExtension_Content_KeyIDTest() { - Assert.That(MFAudioFormat_Dolby_AC4_V1_ES, Is.EqualTo(new Guid(0x9d8dccc6, 0xd156, 0x4fb8, 0x97, 0x9c, 0xa8, 0x5b, 0xe7, 0xd2, 0x1d, 0xfa))); + Assert.That(MFSampleExtension_Content_KeyID, Is.EqualTo(new Guid(0xc6c7f5b0, 0xacca, 0x415b, 0x87, 0xd9, 0x10, 0x44, 0x14, 0x69, 0xef, 0xc6))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_AC4_V2_ESTest() + public static void MFSampleExtension_Encryption_SubSampleMappingSplitTest() { - Assert.That(MFAudioFormat_Dolby_AC4_V2_ES, Is.EqualTo(new Guid(0x7e58c9f9, 0xb070, 0x45f4, 0x8c, 0xcd, 0xa9, 0x9a, 0x04, 0x17, 0xc1, 0xac))); + Assert.That(MFSampleExtension_Encryption_SubSampleMappingSplit, Is.EqualTo(new Guid(0xfe0254b9, 0x2aa5, 0x4edc, 0x99, 0xf7, 0x17, 0xe8, 0x9d, 0xbf, 0x91, 0x74))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_VorbisTest() + public static void MFSampleExtension_InterlacedTest() { - Assert.That(MFAudioFormat_Vorbis, Is.EqualTo(new Guid(0x8D2FD10B, 0x5841, 0x4a6b, 0x89, 0x05, 0x58, 0x8F, 0xEC, 0x1A, 0xDE, 0xD9))); + Assert.That(MFSampleExtension_Interlaced, Is.EqualTo(new Guid(0xb1d5830a, 0xdeb8, 0x40e3, 0x90, 0xfa, 0x38, 0x99, 0x43, 0x71, 0x64, 0x61))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_DTS_RAWTest() + public static void MFSampleExtension_BottomFieldFirstTest() { - Assert.That(MFAudioFormat_DTS_RAW, Is.EqualTo(new Guid(0xE06D8033, 0xDB46, 0x11CF, 0xB4, 0xD1, 0x00, 0x80, 0x5F, 0x6C, 0xBB, 0xEA))); + Assert.That(MFSampleExtension_BottomFieldFirst, Is.EqualTo(new Guid(0x941ce0a3, 0x6ae3, 0x4dda, 0x9a, 0x08, 0xa6, 0x42, 0x98, 0x34, 0x06, 0x17))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_DTS_HDTest() + public static void MFSampleExtension_RepeatFirstFieldTest() { - Assert.That(MFAudioFormat_DTS_HD, Is.EqualTo(new Guid(0xA2E58EB7, 0x0FA9, 0x48BB, 0xA4, 0x0C, 0xFA, 0x0E, 0x15, 0x6D, 0x06, 0x45))); + Assert.That(MFSampleExtension_RepeatFirstField, Is.EqualTo(new Guid(0x304d257c, 0x7493, 0x4fbd, 0xb1, 0x49, 0x92, 0x28, 0xde, 0x8d, 0x9a, 0x99))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_DTS_XLLTest() + public static void MFSampleExtension_SingleFieldTest() { - Assert.That(MFAudioFormat_DTS_XLL, Is.EqualTo(new Guid(0x45B37C1B, 0x8C70, 0x4E59, 0xA7, 0xBE, 0xA1, 0xE4, 0x2C, 0x81, 0xC8, 0x0D))); + Assert.That(MFSampleExtension_SingleField, Is.EqualTo(new Guid(0x9d85f816, 0x658b, 0x455a, 0xbd, 0xe0, 0x9f, 0xa7, 0xe1, 0x5a, 0xb8, 0xf9))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_DTS_LBRTest() + public static void MFSampleExtension_DerivedFromTopFieldTest() { - Assert.That(MFAudioFormat_DTS_LBR, Is.EqualTo(new Guid(0xC2FE6F0A, 0x4E3C, 0x4DF1, 0x9B, 0x60, 0x50, 0x86, 0x30, 0x91, 0xE4, 0xB9))); + Assert.That(MFSampleExtension_DerivedFromTopField, Is.EqualTo(new Guid(0x6852465a, 0xae1c, 0x4553, 0x8e, 0x9b, 0xc3, 0x42, 0x0f, 0xcb, 0x16, 0x37))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_DTS_UHDTest() + public static void MFSampleExtension_MeanAbsoluteDifferenceTest() { - Assert.That(MFAudioFormat_DTS_UHD, Is.EqualTo(new Guid(0x87020117, 0xACE3, 0x42DE, 0xB7, 0x3E, 0xC6, 0x56, 0x70, 0x62, 0x63, 0xF8))); + Assert.That(MFSampleExtension_MeanAbsoluteDifference, Is.EqualTo(new Guid(0x1cdbde11, 0x08b4, 0x4311, 0xa6, 0xdd, 0x0f, 0x9f, 0x37, 0x19, 0x07, 0xaa))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_DTS_UHDYTest() + public static void MFSampleExtension_LongTermReferenceFrameInfoTest() { - Assert.That(MFAudioFormat_DTS_UHDY, Is.EqualTo(new Guid(0x9B9CCA00, 0x91B9, 0x4CCC, 0x88, 0x3A, 0x8F, 0x78, 0x7A, 0xC3, 0xCC, 0x86))); + Assert.That(MFSampleExtension_LongTermReferenceFrameInfo, Is.EqualTo(new Guid(0x9154733f, 0xe1bd, 0x41bf, 0x81, 0xd3, 0xfc, 0xd9, 0x18, 0xf7, 0x13, 0x32))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Float_SpatialObjectsTest() + public static void MFSampleExtension_ROIRectangleTest() { - Assert.That(MFAudioFormat_Float_SpatialObjects, Is.EqualTo(new Guid(0xfa39cd94, 0xbc64, 0x4ab1, 0x9b, 0x71, 0xdc, 0xd0, 0x9d, 0x5a, 0x7e, 0x7a))); + Assert.That(MFSampleExtension_ROIRectangle, Is.EqualTo(new Guid(0x3414a438, 0x4998, 0x4d2c, 0xbe, 0x82, 0xbe, 0x3c, 0xa0, 0xb2, 0x4d, 0x43))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_LPCMTest() + public static void MFSampleExtension_LastSliceTest() { - Assert.That(MFAudioFormat_LPCM, Is.EqualTo(new Guid(0xe06d8032, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea))); + Assert.That(MFSampleExtension_LastSlice, Is.EqualTo(new Guid(0x2b5d5457, 0x5547, 0x4f07, 0xb8, 0xc8, 0xb4, 0xa3, 0xa9, 0xa1, 0xda, 0xac))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_PCM_HDCPTest() + public static void MFSampleExtension_FeatureMapTest() { - Assert.That(MFAudioFormat_PCM_HDCP, Is.EqualTo(new Guid(0xa5e7ff01, 0x8411, 0x4acc, 0xa8, 0x65, 0x5f, 0x49, 0x41, 0x28, 0x8d, 0x80))); + Assert.That(MFSampleExtension_FeatureMap, Is.EqualTo(new Guid(0xa032d165, 0x46fc, 0x400a, 0xb4, 0x49, 0x49, 0xde, 0x53, 0xe6, 0x2a, 0x6e))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Dolby_AC3_HDCPTest() + public static void MFSampleExtension_ChromaOnlyTest() { - Assert.That(MFAudioFormat_Dolby_AC3_HDCP, Is.EqualTo(new Guid(0x97663a80, 0x8ffb, 0x4445, 0xa6, 0xba, 0x79, 0x2d, 0x90, 0x8f, 0x49, 0x7f))); + Assert.That(MFSampleExtension_ChromaOnly, Is.EqualTo(new Guid(0x1eb9179c, 0xa01f, 0x4845, 0x8c, 0x04, 0x0e, 0x65, 0xa2, 0x6e, 0xb0, 0x4f))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_AAC_HDCPTest() + public static void MFSampleExtension_PhotoThumbnailTest() { - Assert.That(MFAudioFormat_AAC_HDCP, Is.EqualTo(new Guid(0x419bce76, 0x8b72, 0x400f, 0xad, 0xeb, 0x84, 0xb5, 0x7d, 0x63, 0x48, 0x4d))); + Assert.That(MFSampleExtension_PhotoThumbnail, Is.EqualTo(new Guid(0x74BBC85C, 0xC8BB, 0x42DC, 0xB5, 0x86, 0xDA, 0x17, 0xFF, 0xD3, 0x5D, 0xCC))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_ADTS_HDCPTest() + public static void MFSampleExtension_PhotoThumbnailMediaTypeTest() { - Assert.That(MFAudioFormat_ADTS_HDCP, Is.EqualTo(new Guid(0xda4963a3, 0x14d8, 0x4dcf, 0x92, 0xb7, 0x19, 0x3e, 0xb8, 0x43, 0x63, 0xdb))); + Assert.That(MFSampleExtension_PhotoThumbnailMediaType, Is.EqualTo(new Guid(0x61AD5420, 0xEBF8, 0x4143, 0x89, 0xAF, 0x6B, 0xF2, 0x5F, 0x67, 0x2D, 0xEF))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFAudioFormat_Base_HDCPTest() + public static void MFSampleExtension_CaptureMetadataTest() { - Assert.That(MFAudioFormat_Base_HDCP, Is.EqualTo(new Guid(0x3884b5bc, 0xe277, 0x43fd, 0x98, 0x3d, 0x03, 0x8a, 0xa8, 0xd9, 0xb6, 0x05))); + Assert.That(MFSampleExtension_CaptureMetadata, Is.EqualTo(new Guid(0x2EBE23A8, 0xFAF5, 0x444A, 0xA6, 0xA2, 0xEB, 0x81, 0x08, 0x80, 0xAB, 0x5D))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFVideoFormat_H264_HDCPTest() + public static void MFSampleExtension_MDLCacheCookieTest() { - Assert.That(MFVideoFormat_H264_HDCP, Is.EqualTo(new Guid(0x5d0ce9dd, 0x9817, 0x49da, 0xbd, 0xfd, 0xf5, 0xf5, 0xb9, 0x8f, 0x18, 0xa6))); + Assert.That(MFSampleExtension_MDLCacheCookie, Is.EqualTo(new Guid(0x5F002AF9, 0xD8F9, 0x41A3, 0xB6, 0xC3, 0xA2, 0xAD, 0x43, 0xF6, 0x47, 0xAD))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFVideoFormat_HEVC_HDCPTest() + public static void MFSampleExtension_Depth_MinReliableDepthTest() { - Assert.That(MFVideoFormat_HEVC_HDCP, Is.EqualTo(new Guid(0x3cfe0fe6, 0x05c4, 0x47dc, 0x9d, 0x70, 0x4b, 0xdb, 0x29, 0x59, 0x72, 0x0f))); + Assert.That(MFSampleExtension_Depth_MinReliableDepth, Is.EqualTo(new Guid(0x5f8582b2, 0xe36b, 0x47c8, 0x9b, 0x87, 0xfe, 0xe1, 0xca, 0x72, 0xc5, 0xb0))); } - /// Validates that the value of the property is correct. + /// Validates that the value of the property is correct. [Test] - public static void MFVideoFormat_Base_HDCPTest() + public static void MFSampleExtension_Depth_MaxReliableDepthTest() { - Assert.That(MFVideoFormat_Base_HDCP, Is.EqualTo(new Guid(0xeac3b9d5, 0xbd14, 0x4237, 0x8f, 0x1f, 0xba, 0xb4, 0x28, 0xe4, 0x93, 0x12))); + Assert.That(MFSampleExtension_Depth_MaxReliableDepth, Is.EqualTo(new Guid(0xe45545d1, 0x1f0f, 0x4a32, 0xa8, 0xa7, 0x61, 0x1, 0xa2, 0x4e, 0xa8, 0xbe))); } /// Validates that the value of the property is correct. @@ -1622,13 +698,6 @@ public static void MFStreamFormat_MPEG2ProgramTest() Assert.That(MFStreamFormat_MPEG2Program, Is.EqualTo(new Guid(0x263067d1, 0xd330, 0x45dc, 0xb6, 0x69, 0x34, 0xd9, 0x86, 0xe4, 0xe3, 0xe1))); } - /// Validates that the value of the property is correct. - [Test] - public static void AM_MEDIA_TYPE_REPRESENTATIONTest() - { - Assert.That(AM_MEDIA_TYPE_REPRESENTATION, Is.EqualTo(new Guid(0xe2e42ad2, 0x132c, 0x491e, 0xa2, 0x68, 0x3c, 0x7c, 0x2d, 0xca, 0x18, 0x1f))); - } - /// Validates that the value of the property is correct. [Test] public static void FORMAT_MFVideoFormatTest() diff --git a/tests/Interop/Windows/Windows/um/mfsharingengine/WindowsTests.cs b/tests/Interop/Windows/Windows/um/mfsharingengine/GUIDTests.cs similarity index 86% rename from tests/Interop/Windows/Windows/um/mfsharingengine/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/mfsharingengine/GUIDTests.cs index 2980d23cff..5df21054e8 100644 --- a/tests/Interop/Windows/Windows/um/mfsharingengine/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/mfsharingengine/GUIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.GUID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static partial class WindowsTests + /// Provides validation of the class. + public static partial class GUIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/mftransform/MFTTests.cs b/tests/Interop/Windows/Windows/um/mftransform/MFTTests.cs new file mode 100644 index 0000000000..f628a6dd72 --- /dev/null +++ b/tests/Interop/Windows/Windows/um/mftransform/MFTTests.cs @@ -0,0 +1,211 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/mftransform.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.MFT; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class MFTTests + { + /// Validates that the value of the property is correct. + [Test] + public static void MFT_END_STREAMING_AWARETest() + { + Assert.That(MFT_END_STREAMING_AWARE, Is.EqualTo(new Guid(0x70fbc845, 0xb07e, 0x4089, 0xb0, 0x64, 0x39, 0x9d, 0xc6, 0x11, 0xf, 0x29))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_AUDIO_DECODER_AUDIO_ENDPOINT_IDTest() + { + Assert.That(MFT_AUDIO_DECODER_AUDIO_ENDPOINT_ID, Is.EqualTo(new Guid(0xc7ccdd6e, 0x5398, 0x4695, 0x8b, 0xe7, 0x51, 0xb3, 0xe9, 0x51, 0x11, 0xbd))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_AUDIO_DECODER_SPATIAL_METADATA_CLIENTTest() + { + Assert.That(MFT_AUDIO_DECODER_SPATIAL_METADATA_CLIENT, Is.EqualTo(new Guid(0x5987df4, 0x1270, 0x4999, 0x92, 0x5f, 0x8e, 0x93, 0x9a, 0x7c, 0xa, 0xf7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_SUPPORT_3DVIDEOTest() + { + Assert.That(MFT_SUPPORT_3DVIDEO, Is.EqualTo(new Guid(0x93f81b1, 0x4f2e, 0x4631, 0x81, 0x68, 0x79, 0x34, 0x3, 0x2a, 0x1, 0xd3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDERTest() + { + Assert.That(MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER, Is.EqualTo(new Guid(0xef80833f, 0xf8fa, 0x44d9, 0x80, 0xd8, 0x41, 0xed, 0x62, 0x32, 0x67, 0xc))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_DECODER_QUALITY_MANAGEMENT_CUSTOM_CONTROLTest() + { + Assert.That(MFT_DECODER_QUALITY_MANAGEMENT_CUSTOM_CONTROL, Is.EqualTo(new Guid(0xa24e30d7, 0xde25, 0x4558, 0xbb, 0xfb, 0x71, 0x7, 0xa, 0x2d, 0x33, 0x2e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_DECODER_QUALITY_MANAGEMENT_RECOVERY_WITHOUT_ARTIFACTSTest() + { + Assert.That(MFT_DECODER_QUALITY_MANAGEMENT_RECOVERY_WITHOUT_ARTIFACTS, Is.EqualTo(new Guid(0xd8980deb, 0xa48, 0x425f, 0x86, 0x23, 0x61, 0x1d, 0xb4, 0x1d, 0x38, 0x10))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINTTest() + { + Assert.That(MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINT, Is.EqualTo(new Guid(0x364e8f85, 0x3f2e, 0x436c, 0xb2, 0xa2, 0x44, 0x40, 0xa0, 0x12, 0xa9, 0xe8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINTTest() + { + Assert.That(MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINT, Is.EqualTo(new Guid(0xdc2f8496, 0x15c4, 0x407a, 0xb6, 0xf0, 0x1b, 0x66, 0xab, 0x5f, 0xbf, 0x53))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_ENCODER_SUPPORTS_CONFIG_EVENTTest() + { + Assert.That(MFT_ENCODER_SUPPORTS_CONFIG_EVENT, Is.EqualTo(new Guid(0x86a355ae, 0x3a77, 0x4ec4, 0x9f, 0x31, 0x1, 0x14, 0x9a, 0x4e, 0x92, 0xde))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_ENUM_HARDWARE_VENDOR_ID_AttributeTest() + { + Assert.That(MFT_ENUM_HARDWARE_VENDOR_ID_Attribute, Is.EqualTo(new Guid(0x3aecb0cc, 0x35b, 0x4bcc, 0x81, 0x85, 0x2b, 0x8d, 0x55, 0x1e, 0xf3, 0xaf))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_TRANSFORM_CLSID_AttributeTest() + { + Assert.That(MFT_TRANSFORM_CLSID_Attribute, Is.EqualTo(new Guid(0x6821c42b, 0x65a4, 0x4e82, 0x99, 0xbc, 0x9a, 0x88, 0x20, 0x5e, 0xcd, 0xc))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_INPUT_TYPES_AttributesTest() + { + Assert.That(MFT_INPUT_TYPES_Attributes, Is.EqualTo(new Guid(0x4276c9b1, 0x759d, 0x4bf3, 0x9c, 0xd0, 0xd, 0x72, 0x3d, 0x13, 0x8f, 0x96))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_OUTPUT_TYPES_AttributesTest() + { + Assert.That(MFT_OUTPUT_TYPES_Attributes, Is.EqualTo(new Guid(0x8eae8cf3, 0xa44f, 0x4306, 0xba, 0x5c, 0xbf, 0x5d, 0xda, 0x24, 0x28, 0x18))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_ENUM_HARDWARE_URL_AttributeTest() + { + Assert.That(MFT_ENUM_HARDWARE_URL_Attribute, Is.EqualTo(new Guid(0x2fb866ac, 0xb078, 0x4942, 0xab, 0x6c, 0x0, 0x3d, 0x5, 0xcd, 0xa6, 0x74))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_FRIENDLY_NAME_AttributeTest() + { + Assert.That(MFT_FRIENDLY_NAME_Attribute, Is.EqualTo(new Guid(0x314ffbae, 0x5b41, 0x4c95, 0x9c, 0x19, 0x4e, 0x7d, 0x58, 0x6f, 0xac, 0xe3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CONNECTED_STREAM_ATTRIBUTETest() + { + Assert.That(MFT_CONNECTED_STREAM_ATTRIBUTE, Is.EqualTo(new Guid(0x71eeb820, 0xa59f, 0x4de2, 0xbc, 0xec, 0x38, 0xdb, 0x1d, 0xd6, 0x11, 0xa4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CONNECTED_TO_HW_STREAMTest() + { + Assert.That(MFT_CONNECTED_TO_HW_STREAM, Is.EqualTo(new Guid(0x34e6e728, 0x6d6, 0x4491, 0xa5, 0x53, 0x47, 0x95, 0x65, 0xd, 0xb9, 0x12))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_PREFERRED_OUTPUTTYPE_AttributeTest() + { + Assert.That(MFT_PREFERRED_OUTPUTTYPE_Attribute, Is.EqualTo(new Guid(0x7e700499, 0x396a, 0x49ee, 0xb1, 0xb4, 0xf6, 0x28, 0x2, 0x1e, 0x8c, 0x9d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_PROCESS_LOCAL_AttributeTest() + { + Assert.That(MFT_PROCESS_LOCAL_Attribute, Is.EqualTo(new Guid(0x543186e4, 0x4649, 0x4e65, 0xb5, 0x88, 0x4a, 0xa3, 0x52, 0xaf, 0xf3, 0x79))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_PREFERRED_ENCODER_PROFILETest() + { + Assert.That(MFT_PREFERRED_ENCODER_PROFILE, Is.EqualTo(new Guid(0x53004909, 0x1ef5, 0x46d7, 0xa1, 0x8e, 0x5a, 0x75, 0xf8, 0xb5, 0x90, 0x5f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_HW_TIMESTAMP_WITH_QPC_AttributeTest() + { + Assert.That(MFT_HW_TIMESTAMP_WITH_QPC_Attribute, Is.EqualTo(new Guid(0x8d030fb8, 0xcc43, 0x4258, 0xa2, 0x2e, 0x92, 0x10, 0xbe, 0xf8, 0x9b, 0xe4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_FIELDOFUSE_UNLOCK_AttributeTest() + { + Assert.That(MFT_FIELDOFUSE_UNLOCK_Attribute, Is.EqualTo(new Guid(0x8ec2e9fd, 0x9148, 0x410d, 0x83, 0x1e, 0x70, 0x24, 0x39, 0x46, 0x1a, 0x8e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_CODEC_MERIT_AttributeTest() + { + Assert.That(MFT_CODEC_MERIT_Attribute, Is.EqualTo(new Guid(0x88a7cb15, 0x7b07, 0x4a34, 0x91, 0x28, 0xe6, 0x4c, 0x67, 0x3, 0xc4, 0xd3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTETest() + { + Assert.That(MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE, Is.EqualTo(new Guid(0x111ea8cd, 0xb62a, 0x4bdb, 0x89, 0xf6, 0x67, 0xff, 0xcd, 0xc2, 0x45, 0x8b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_AUDIO_DECODER_DEGRADATION_INFO_ATTRIBUTETest() + { + Assert.That(MFT_AUDIO_DECODER_DEGRADATION_INFO_ATTRIBUTE, Is.EqualTo(new Guid(0x6c3386ad, 0xec20, 0x430d, 0xb2, 0xa5, 0x50, 0x5c, 0x71, 0x78, 0xd9, 0xc4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_POLICY_SET_AWARETest() + { + Assert.That(MFT_POLICY_SET_AWARE, Is.EqualTo(new Guid(0x5a633b19, 0xcc39, 0x4fa8, 0x8c, 0xa5, 0x59, 0x98, 0x1b, 0x7a, 0x0, 0x18))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void MFT_USING_HARDWARE_DRMTest() + { + Assert.That(MFT_USING_HARDWARE_DRM, Is.EqualTo(new Guid(0x34faa77d, 0xd79e, 0x4957, 0xb8, 0xce, 0x36, 0x2b, 0x26, 0x84, 0x99, 0x6c))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/mftransform/WindowsTests.cs b/tests/Interop/Windows/Windows/um/mftransform/WindowsTests.cs index b8bcd9a689..fac7c96088 100644 --- a/tests/Interop/Windows/Windows/um/mftransform/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/mftransform/WindowsTests.cs @@ -50,201 +50,5 @@ public static void MFPKEY_MULTICHANNEL_CHANNEL_MASKTest() Assert.That(MFPKEY_MULTICHANNEL_CHANNEL_MASK.fmtid, Is.EqualTo(new Guid(0x58bdaf8c, 0x3224, 0x4692, 0x86, 0xd0, 0x44, 0xd6, 0x5c, 0x5b, 0xf8, 0x2b))); Assert.That(MFPKEY_MULTICHANNEL_CHANNEL_MASK.pid, Is.EqualTo(0x01)); } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_END_STREAMING_AWARETest() - { - Assert.That(MFT_END_STREAMING_AWARE, Is.EqualTo(new Guid(0x70fbc845, 0xb07e, 0x4089, 0xb0, 0x64, 0x39, 0x9d, 0xc6, 0x11, 0xf, 0x29))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_AUDIO_DECODER_AUDIO_ENDPOINT_IDTest() - { - Assert.That(MFT_AUDIO_DECODER_AUDIO_ENDPOINT_ID, Is.EqualTo(new Guid(0xc7ccdd6e, 0x5398, 0x4695, 0x8b, 0xe7, 0x51, 0xb3, 0xe9, 0x51, 0x11, 0xbd))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_AUDIO_DECODER_SPATIAL_METADATA_CLIENTTest() - { - Assert.That(MFT_AUDIO_DECODER_SPATIAL_METADATA_CLIENT, Is.EqualTo(new Guid(0x5987df4, 0x1270, 0x4999, 0x92, 0x5f, 0x8e, 0x93, 0x9a, 0x7c, 0xa, 0xf7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_SUPPORT_3DVIDEOTest() - { - Assert.That(MFT_SUPPORT_3DVIDEO, Is.EqualTo(new Guid(0x93f81b1, 0x4f2e, 0x4631, 0x81, 0x68, 0x79, 0x34, 0x3, 0x2a, 0x1, 0xd3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDERTest() - { - Assert.That(MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER, Is.EqualTo(new Guid(0xef80833f, 0xf8fa, 0x44d9, 0x80, 0xd8, 0x41, 0xed, 0x62, 0x32, 0x67, 0xc))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_DECODER_QUALITY_MANAGEMENT_CUSTOM_CONTROLTest() - { - Assert.That(MFT_DECODER_QUALITY_MANAGEMENT_CUSTOM_CONTROL, Is.EqualTo(new Guid(0xa24e30d7, 0xde25, 0x4558, 0xbb, 0xfb, 0x71, 0x7, 0xa, 0x2d, 0x33, 0x2e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_DECODER_QUALITY_MANAGEMENT_RECOVERY_WITHOUT_ARTIFACTSTest() - { - Assert.That(MFT_DECODER_QUALITY_MANAGEMENT_RECOVERY_WITHOUT_ARTIFACTS, Is.EqualTo(new Guid(0xd8980deb, 0xa48, 0x425f, 0x86, 0x23, 0x61, 0x1d, 0xb4, 0x1d, 0x38, 0x10))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINTTest() - { - Assert.That(MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINT, Is.EqualTo(new Guid(0x364e8f85, 0x3f2e, 0x436c, 0xb2, 0xa2, 0x44, 0x40, 0xa0, 0x12, 0xa9, 0xe8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINTTest() - { - Assert.That(MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINT, Is.EqualTo(new Guid(0xdc2f8496, 0x15c4, 0x407a, 0xb6, 0xf0, 0x1b, 0x66, 0xab, 0x5f, 0xbf, 0x53))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_ENCODER_SUPPORTS_CONFIG_EVENTTest() - { - Assert.That(MFT_ENCODER_SUPPORTS_CONFIG_EVENT, Is.EqualTo(new Guid(0x86a355ae, 0x3a77, 0x4ec4, 0x9f, 0x31, 0x1, 0x14, 0x9a, 0x4e, 0x92, 0xde))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_ENUM_HARDWARE_VENDOR_ID_AttributeTest() - { - Assert.That(MFT_ENUM_HARDWARE_VENDOR_ID_Attribute, Is.EqualTo(new Guid(0x3aecb0cc, 0x35b, 0x4bcc, 0x81, 0x85, 0x2b, 0x8d, 0x55, 0x1e, 0xf3, 0xaf))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_TRANSFORM_CLSID_AttributeTest() - { - Assert.That(MFT_TRANSFORM_CLSID_Attribute, Is.EqualTo(new Guid(0x6821c42b, 0x65a4, 0x4e82, 0x99, 0xbc, 0x9a, 0x88, 0x20, 0x5e, 0xcd, 0xc))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_INPUT_TYPES_AttributesTest() - { - Assert.That(MFT_INPUT_TYPES_Attributes, Is.EqualTo(new Guid(0x4276c9b1, 0x759d, 0x4bf3, 0x9c, 0xd0, 0xd, 0x72, 0x3d, 0x13, 0x8f, 0x96))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_OUTPUT_TYPES_AttributesTest() - { - Assert.That(MFT_OUTPUT_TYPES_Attributes, Is.EqualTo(new Guid(0x8eae8cf3, 0xa44f, 0x4306, 0xba, 0x5c, 0xbf, 0x5d, 0xda, 0x24, 0x28, 0x18))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_ENUM_HARDWARE_URL_AttributeTest() - { - Assert.That(MFT_ENUM_HARDWARE_URL_Attribute, Is.EqualTo(new Guid(0x2fb866ac, 0xb078, 0x4942, 0xab, 0x6c, 0x0, 0x3d, 0x5, 0xcd, 0xa6, 0x74))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_FRIENDLY_NAME_AttributeTest() - { - Assert.That(MFT_FRIENDLY_NAME_Attribute, Is.EqualTo(new Guid(0x314ffbae, 0x5b41, 0x4c95, 0x9c, 0x19, 0x4e, 0x7d, 0x58, 0x6f, 0xac, 0xe3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CONNECTED_STREAM_ATTRIBUTETest() - { - Assert.That(MFT_CONNECTED_STREAM_ATTRIBUTE, Is.EqualTo(new Guid(0x71eeb820, 0xa59f, 0x4de2, 0xbc, 0xec, 0x38, 0xdb, 0x1d, 0xd6, 0x11, 0xa4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CONNECTED_TO_HW_STREAMTest() - { - Assert.That(MFT_CONNECTED_TO_HW_STREAM, Is.EqualTo(new Guid(0x34e6e728, 0x6d6, 0x4491, 0xa5, 0x53, 0x47, 0x95, 0x65, 0xd, 0xb9, 0x12))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_PREFERRED_OUTPUTTYPE_AttributeTest() - { - Assert.That(MFT_PREFERRED_OUTPUTTYPE_Attribute, Is.EqualTo(new Guid(0x7e700499, 0x396a, 0x49ee, 0xb1, 0xb4, 0xf6, 0x28, 0x2, 0x1e, 0x8c, 0x9d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_PROCESS_LOCAL_AttributeTest() - { - Assert.That(MFT_PROCESS_LOCAL_Attribute, Is.EqualTo(new Guid(0x543186e4, 0x4649, 0x4e65, 0xb5, 0x88, 0x4a, 0xa3, 0x52, 0xaf, 0xf3, 0x79))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_PREFERRED_ENCODER_PROFILETest() - { - Assert.That(MFT_PREFERRED_ENCODER_PROFILE, Is.EqualTo(new Guid(0x53004909, 0x1ef5, 0x46d7, 0xa1, 0x8e, 0x5a, 0x75, 0xf8, 0xb5, 0x90, 0x5f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_HW_TIMESTAMP_WITH_QPC_AttributeTest() - { - Assert.That(MFT_HW_TIMESTAMP_WITH_QPC_Attribute, Is.EqualTo(new Guid(0x8d030fb8, 0xcc43, 0x4258, 0xa2, 0x2e, 0x92, 0x10, 0xbe, 0xf8, 0x9b, 0xe4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_FIELDOFUSE_UNLOCK_AttributeTest() - { - Assert.That(MFT_FIELDOFUSE_UNLOCK_Attribute, Is.EqualTo(new Guid(0x8ec2e9fd, 0x9148, 0x410d, 0x83, 0x1e, 0x70, 0x24, 0x39, 0x46, 0x1a, 0x8e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_CODEC_MERIT_AttributeTest() - { - Assert.That(MFT_CODEC_MERIT_Attribute, Is.EqualTo(new Guid(0x88a7cb15, 0x7b07, 0x4a34, 0x91, 0x28, 0xe6, 0x4c, 0x67, 0x3, 0xc4, 0xd3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTETest() - { - Assert.That(MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE, Is.EqualTo(new Guid(0x111ea8cd, 0xb62a, 0x4bdb, 0x89, 0xf6, 0x67, 0xff, 0xcd, 0xc2, 0x45, 0x8b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_AUDIO_DECODER_DEGRADATION_INFO_ATTRIBUTETest() - { - Assert.That(MFT_AUDIO_DECODER_DEGRADATION_INFO_ATTRIBUTE, Is.EqualTo(new Guid(0x6c3386ad, 0xec20, 0x430d, 0xb2, 0xa5, 0x50, 0x5c, 0x71, 0x78, 0xd9, 0xc4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_POLICY_SET_AWARETest() - { - Assert.That(MFT_POLICY_SET_AWARE, Is.EqualTo(new Guid(0x5a633b19, 0xcc39, 0x4fa8, 0x8c, 0xa5, 0x59, 0x98, 0x1b, 0x7a, 0x0, 0x18))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void MFT_USING_HARDWARE_DRMTest() - { - Assert.That(MFT_USING_HARDWARE_DRM, Is.EqualTo(new Guid(0x34faa77d, 0xd79e, 0x4957, 0xb8, 0xce, 0x36, 0x2b, 0x26, 0x84, 0x99, 0x6c))); - } } } diff --git a/tests/Interop/Windows/Windows/um/rendezvoussession/LIBIDTests.cs b/tests/Interop/Windows/Windows/um/rendezvoussession/LIBIDTests.cs new file mode 100644 index 0000000000..900839acd3 --- /dev/null +++ b/tests/Interop/Windows/Windows/um/rendezvoussession/LIBIDTests.cs @@ -0,0 +1,22 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/rendezvoussession.h and um/rendezvoussession_i.c in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.LIBID; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class LIBIDTests + { + /// Validates that the value of the property is correct. + [Test] + public static void LIBID_RendezvousSessionLibTest() + { + Assert.That(LIBID_RendezvousSessionLib, Is.EqualTo(new Guid(0xEFD856A4, 0x5A85, 0x4A1B, 0xAD, 0xD5, 0x2E, 0xAD, 0xAC, 0xE6, 0xF6, 0xA2))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/rendezvoussession/WindowsTests.cs b/tests/Interop/Windows/Windows/um/rendezvoussession/WindowsTests.cs index 3ab2f6ca68..e1f6b28feb 100644 --- a/tests/Interop/Windows/Windows/um/rendezvoussession/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/rendezvoussession/WindowsTests.cs @@ -12,13 +12,6 @@ namespace TerraFX.Interop.Windows.UnitTests /// Provides validation of the class. public static partial class WindowsTests { - /// Validates that the value of the property is correct. - [Test] - public static void LIBID_RendezvousSessionLibTest() - { - Assert.That(LIBID_RendezvousSessionLib, Is.EqualTo(new Guid(0xEFD856A4, 0x5A85, 0x4A1B, 0xAD, 0xD5, 0x2E, 0xAD, 0xAC, 0xE6, 0xF6, 0xA2))); - } - /// Validates that the value of the property is correct. [Test] public static void DIID_DRendezvousSessionEventsTest() diff --git a/tests/Interop/Windows/Windows/um/wincodec/GUIDTests.cs b/tests/Interop/Windows/Windows/um/wincodec/GUIDTests.cs new file mode 100644 index 0000000000..412422d2c6 --- /dev/null +++ b/tests/Interop/Windows/Windows/um/wincodec/GUIDTests.cs @@ -0,0 +1,743 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/wincodec.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.GUID; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class GUIDTests + { + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VendorMicrosoftTest() + { + Assert.That(GUID_VendorMicrosoft, Is.EqualTo(new Guid(0xf0e749ca, 0xedef, 0x4589, 0xa7, 0x3a, 0xee, 0xe, 0x62, 0x6a, 0x2a, 0x2b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VendorMicrosoftBuiltInTest() + { + Assert.That(GUID_VendorMicrosoftBuiltIn, Is.EqualTo(new Guid(0x257a30fd, 0x6b6, 0x462b, 0xae, 0xa4, 0x63, 0xf7, 0xb, 0x86, 0xe5, 0x33))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatBmpTest() + { + Assert.That(GUID_ContainerFormatBmp, Is.EqualTo(new Guid(0x0af1d87e, 0xfcfe, 0x4188, 0xbd, 0xeb, 0xa7, 0x90, 0x64, 0x71, 0xcb, 0xe3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatPngTest() + { + Assert.That(GUID_ContainerFormatPng, Is.EqualTo(new Guid(0x1b7cfaf4, 0x713f, 0x473c, 0xbb, 0xcd, 0x61, 0x37, 0x42, 0x5f, 0xae, 0xaf))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatIcoTest() + { + Assert.That(GUID_ContainerFormatIco, Is.EqualTo(new Guid(0xa3a860c4, 0x338f, 0x4c17, 0x91, 0x9a, 0xfb, 0xa4, 0xb5, 0x62, 0x8f, 0x21))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatJpegTest() + { + Assert.That(GUID_ContainerFormatJpeg, Is.EqualTo(new Guid(0x19e4a5aa, 0x5662, 0x4fc5, 0xa0, 0xc0, 0x17, 0x58, 0x02, 0x8e, 0x10, 0x57))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatTiffTest() + { + Assert.That(GUID_ContainerFormatTiff, Is.EqualTo(new Guid(0x163bcc30, 0xe2e9, 0x4f0b, 0x96, 0x1d, 0xa3, 0xe9, 0xfd, 0xb7, 0x88, 0xa3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatGifTest() + { + Assert.That(GUID_ContainerFormatGif, Is.EqualTo(new Guid(0x1f8a5601, 0x7d4d, 0x4cbd, 0x9c, 0x82, 0x1b, 0xc8, 0xd4, 0xee, 0xb9, 0xa5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatWmpTest() + { + Assert.That(GUID_ContainerFormatWmp, Is.EqualTo(new Guid(0x57a37caa, 0x367a, 0x4540, 0x91, 0x6b, 0xf1, 0x83, 0xc5, 0x09, 0x3a, 0x4b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatDdsTest() + { + Assert.That(GUID_ContainerFormatDds, Is.EqualTo(new Guid(0x9967cb95, 0x2e85, 0x4ac8, 0x8c, 0xa2, 0x83, 0xd7, 0xcc, 0xd4, 0x25, 0xc9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatAdngTest() + { + Assert.That(GUID_ContainerFormatAdng, Is.EqualTo(new Guid(0xf3ff6d0d, 0x38c0, 0x41c4, 0xb1, 0xfe, 0x1f, 0x38, 0x24, 0xf1, 0x7b, 0x84))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatHeifTest() + { + Assert.That(GUID_ContainerFormatHeif, Is.EqualTo(new Guid(0xe1e62521, 0x6787, 0x405b, 0xa3, 0x39, 0x50, 0x07, 0x15, 0xb5, 0x76, 0x3f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatWebpTest() + { + Assert.That(GUID_ContainerFormatWebp, Is.EqualTo(new Guid(0xe094b0e2, 0x67f2, 0x45b3, 0xb0, 0xea, 0x11, 0x53, 0x37, 0xca, 0x7c, 0xf3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ContainerFormatRawTest() + { + Assert.That(GUID_ContainerFormatRaw, Is.EqualTo(new Guid(0xfe99ce60, 0xf19c, 0x433c, 0xa3, 0xae, 0x00, 0xac, 0xef, 0xa9, 0xca, 0x21))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormatDontCareTest() + { + Assert.That(GUID_WICPixelFormatDontCare, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x00))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat1bppIndexedTest() + { + Assert.That(GUID_WICPixelFormat1bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x01))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat2bppIndexedTest() + { + Assert.That(GUID_WICPixelFormat2bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x02))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat4bppIndexedTest() + { + Assert.That(GUID_WICPixelFormat4bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x03))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat8bppIndexedTest() + { + Assert.That(GUID_WICPixelFormat8bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x04))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormatBlackWhiteTest() + { + Assert.That(GUID_WICPixelFormatBlackWhite, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x05))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat2bppGrayTest() + { + Assert.That(GUID_WICPixelFormat2bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x06))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat4bppGrayTest() + { + Assert.That(GUID_WICPixelFormat4bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x07))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat8bppGrayTest() + { + Assert.That(GUID_WICPixelFormat8bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x08))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat8bppAlphaTest() + { + Assert.That(GUID_WICPixelFormat8bppAlpha, Is.EqualTo(new Guid(0xe6cd0116, 0xeeba, 0x4161, 0xaa, 0x85, 0x27, 0xdd, 0x9f, 0xb3, 0xa8, 0x95))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppBGR555Test() + { + Assert.That(GUID_WICPixelFormat16bppBGR555, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x09))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppBGR565Test() + { + Assert.That(GUID_WICPixelFormat16bppBGR565, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppBGRA5551Test() + { + Assert.That(GUID_WICPixelFormat16bppBGRA5551, Is.EqualTo(new Guid(0x05ec7c2b, 0xf1e6, 0x4961, 0xad, 0x46, 0xe1, 0xcc, 0x81, 0x0a, 0x87, 0xd2))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppGrayTest() + { + Assert.That(GUID_WICPixelFormat16bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat24bppBGRTest() + { + Assert.That(GUID_WICPixelFormat24bppBGR, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat24bppRGBTest() + { + Assert.That(GUID_WICPixelFormat24bppRGB, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppBGRTest() + { + Assert.That(GUID_WICPixelFormat32bppBGR, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppBGRATest() + { + Assert.That(GUID_WICPixelFormat32bppBGRA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppPBGRATest() + { + Assert.That(GUID_WICPixelFormat32bppPBGRA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x10))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppGrayFloatTest() + { + Assert.That(GUID_WICPixelFormat32bppGrayFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x11))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppRGBTest() + { + Assert.That(GUID_WICPixelFormat32bppRGB, Is.EqualTo(new Guid(0xd98c6b95, 0x3efe, 0x47d6, 0xbb, 0x25, 0xeb, 0x17, 0x48, 0xab, 0x0c, 0xf1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppRGBATest() + { + Assert.That(GUID_WICPixelFormat32bppRGBA, Is.EqualTo(new Guid(0xf5c7ad2d, 0x6a8d, 0x43dd, 0xa7, 0xa8, 0xa2, 0x99, 0x35, 0x26, 0x1a, 0xe9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppPRGBATest() + { + Assert.That(GUID_WICPixelFormat32bppPRGBA, Is.EqualTo(new Guid(0x3cc4a650, 0xa527, 0x4d37, 0xa9, 0x16, 0x31, 0x42, 0xc7, 0xeb, 0xed, 0xba))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bppRGBTest() + { + Assert.That(GUID_WICPixelFormat48bppRGB, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x15))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bppBGRTest() + { + Assert.That(GUID_WICPixelFormat48bppBGR, Is.EqualTo(new Guid(0xe605a384, 0xb468, 0x46ce, 0xbb, 0x2e, 0x36, 0xf1, 0x80, 0xe6, 0x43, 0x13))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppRGBTest() + { + Assert.That(GUID_WICPixelFormat64bppRGB, Is.EqualTo(new Guid(0xa1182111, 0x186d, 0x4d42, 0xbc, 0x6a, 0x9c, 0x83, 0x03, 0xa8, 0xdf, 0xf9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppRGBATest() + { + Assert.That(GUID_WICPixelFormat64bppRGBA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x16))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppBGRATest() + { + Assert.That(GUID_WICPixelFormat64bppBGRA, Is.EqualTo(new Guid(0x1562ff7c, 0xd352, 0x46f9, 0x97, 0x9e, 0x42, 0x97, 0x6b, 0x79, 0x22, 0x46))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppPRGBATest() + { + Assert.That(GUID_WICPixelFormat64bppPRGBA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x17))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppPBGRATest() + { + Assert.That(GUID_WICPixelFormat64bppPBGRA, Is.EqualTo(new Guid(0x8c518e8e, 0xa4ec, 0x468b, 0xae, 0x70, 0xc9, 0xa3, 0x5a, 0x9c, 0x55, 0x30))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppGrayFixedPointTest() + { + Assert.That(GUID_WICPixelFormat16bppGrayFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x13))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppBGR101010Test() + { + Assert.That(GUID_WICPixelFormat32bppBGR101010, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x14))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bppRGBFixedPointTest() + { + Assert.That(GUID_WICPixelFormat48bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x12))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bppBGRFixedPointTest() + { + Assert.That(GUID_WICPixelFormat48bppBGRFixedPoint, Is.EqualTo(new Guid(0x49ca140e, 0xcab6, 0x493b, 0x9d, 0xdf, 0x60, 0x18, 0x7c, 0x37, 0x53, 0x2a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat96bppRGBFixedPointTest() + { + Assert.That(GUID_WICPixelFormat96bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x18))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat96bppRGBFloatTest() + { + Assert.That(GUID_WICPixelFormat96bppRGBFloat, Is.EqualTo(new Guid(0xe3fed78f, 0xe8db, 0x4acf, 0x84, 0xc1, 0xe9, 0x7f, 0x61, 0x36, 0xb3, 0x27))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat128bppRGBAFloatTest() + { + Assert.That(GUID_WICPixelFormat128bppRGBAFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x19))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat128bppPRGBAFloatTest() + { + Assert.That(GUID_WICPixelFormat128bppPRGBAFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat128bppRGBFloatTest() + { + Assert.That(GUID_WICPixelFormat128bppRGBFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppCMYKTest() + { + Assert.That(GUID_WICPixelFormat32bppCMYK, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppRGBAFixedPointTest() + { + Assert.That(GUID_WICPixelFormat64bppRGBAFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppBGRAFixedPointTest() + { + Assert.That(GUID_WICPixelFormat64bppBGRAFixedPoint, Is.EqualTo(new Guid(0x356de33c, 0x54d2, 0x4a23, 0xbb, 0x4, 0x9b, 0x7b, 0xf9, 0xb1, 0xd4, 0x2d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppRGBFixedPointTest() + { + Assert.That(GUID_WICPixelFormat64bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x40))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat128bppRGBAFixedPointTest() + { + Assert.That(GUID_WICPixelFormat128bppRGBAFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat128bppRGBFixedPointTest() + { + Assert.That(GUID_WICPixelFormat128bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x41))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppRGBAHalfTest() + { + Assert.That(GUID_WICPixelFormat64bppRGBAHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppPRGBAHalfTest() + { + Assert.That(GUID_WICPixelFormat64bppPRGBAHalf, Is.EqualTo(new Guid(0x58ad26c2, 0xc623, 0x4d9d, 0xb3, 0x20, 0x38, 0x7e, 0x49, 0xf8, 0xc4, 0x42))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppRGBHalfTest() + { + Assert.That(GUID_WICPixelFormat64bppRGBHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x42))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bppRGBHalfTest() + { + Assert.That(GUID_WICPixelFormat48bppRGBHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppRGBETest() + { + Assert.That(GUID_WICPixelFormat32bppRGBE, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppGrayHalfTest() + { + Assert.That(GUID_WICPixelFormat16bppGrayHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppGrayFixedPointTest() + { + Assert.That(GUID_WICPixelFormat32bppGrayFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppRGBA1010102Test() + { + Assert.That(GUID_WICPixelFormat32bppRGBA1010102, Is.EqualTo(new Guid(0x25238D72, 0xFCF9, 0x4522, 0xb5, 0x14, 0x55, 0x78, 0xe5, 0xad, 0x55, 0xe0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppRGBA1010102XRTest() + { + Assert.That(GUID_WICPixelFormat32bppRGBA1010102XR, Is.EqualTo(new Guid(0x00DE6B9A, 0xC101, 0x434b, 0xb5, 0x02, 0xd0, 0x16, 0x5e, 0xe1, 0x12, 0x2c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppR10G10B10A2Test() + { + Assert.That(GUID_WICPixelFormat32bppR10G10B10A2, Is.EqualTo(new Guid(0x604e1bb5, 0x8a3c, 0x4b65, 0xb1, 0x1c, 0xbc, 0x0b, 0x8d, 0xd7, 0x5b, 0x7f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bppR10G10B10A2HDR10Test() + { + Assert.That(GUID_WICPixelFormat32bppR10G10B10A2HDR10, Is.EqualTo(new Guid(0x9c215c5d, 0x1acc, 0x4f0e, 0xa4, 0xbc, 0x70, 0xfb, 0x3a, 0xe8, 0xfd, 0x28))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bppCMYKTest() + { + Assert.That(GUID_WICPixelFormat64bppCMYK, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat24bpp3ChannelsTest() + { + Assert.That(GUID_WICPixelFormat24bpp3Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x20))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bpp4ChannelsTest() + { + Assert.That(GUID_WICPixelFormat32bpp4Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x21))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat40bpp5ChannelsTest() + { + Assert.That(GUID_WICPixelFormat40bpp5Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x22))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bpp6ChannelsTest() + { + Assert.That(GUID_WICPixelFormat48bpp6Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x23))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat56bpp7ChannelsTest() + { + Assert.That(GUID_WICPixelFormat56bpp7Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x24))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bpp8ChannelsTest() + { + Assert.That(GUID_WICPixelFormat64bpp8Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x25))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bpp3ChannelsTest() + { + Assert.That(GUID_WICPixelFormat48bpp3Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x26))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bpp4ChannelsTest() + { + Assert.That(GUID_WICPixelFormat64bpp4Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x27))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat80bpp5ChannelsTest() + { + Assert.That(GUID_WICPixelFormat80bpp5Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x28))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat96bpp6ChannelsTest() + { + Assert.That(GUID_WICPixelFormat96bpp6Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x29))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat112bpp7ChannelsTest() + { + Assert.That(GUID_WICPixelFormat112bpp7Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2a))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat128bpp8ChannelsTest() + { + Assert.That(GUID_WICPixelFormat128bpp8Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat40bppCMYKAlphaTest() + { + Assert.That(GUID_WICPixelFormat40bppCMYKAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat80bppCMYKAlphaTest() + { + Assert.That(GUID_WICPixelFormat80bppCMYKAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat32bpp3ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat32bpp3ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat40bpp4ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat40bpp4ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat48bpp5ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat48bpp5ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x30))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat56bpp6ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat56bpp6ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x31))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bpp7ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat64bpp7ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x32))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat72bpp8ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat72bpp8ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x33))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat64bpp3ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat64bpp3ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x34))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat80bpp4ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat80bpp4ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x35))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat96bpp5ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat96bpp5ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x36))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat112bpp6ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat112bpp6ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x37))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat128bpp7ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat128bpp7ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x38))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat144bpp8ChannelsAlphaTest() + { + Assert.That(GUID_WICPixelFormat144bpp8ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x39))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat8bppYTest() + { + Assert.That(GUID_WICPixelFormat8bppY, Is.EqualTo(new Guid(0x91B4DB54, 0x2DF9, 0x42F0, 0xB4, 0x49, 0x29, 0x09, 0xBB, 0x3D, 0xF8, 0x8E))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat8bppCbTest() + { + Assert.That(GUID_WICPixelFormat8bppCb, Is.EqualTo(new Guid(0x1339F224, 0x6BFE, 0x4C3E, 0x93, 0x02, 0xE4, 0xF3, 0xA6, 0xD0, 0xCA, 0x2A))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat8bppCrTest() + { + Assert.That(GUID_WICPixelFormat8bppCr, Is.EqualTo(new Guid(0xB8145053, 0x2116, 0x49F0, 0x88, 0x35, 0xED, 0x84, 0x4B, 0x20, 0x5C, 0x51))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppCbCrTest() + { + Assert.That(GUID_WICPixelFormat16bppCbCr, Is.EqualTo(new Guid(0xFF95BA6E, 0x11E0, 0x4263, 0xBB, 0x45, 0x01, 0x72, 0x1F, 0x34, 0x60, 0xA4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppYQuantizedDctCoefficientsTest() + { + Assert.That(GUID_WICPixelFormat16bppYQuantizedDctCoefficients, Is.EqualTo(new Guid(0xA355F433, 0x48E8, 0x4A42, 0x84, 0xD8, 0xE2, 0xAA, 0x26, 0xCA, 0x80, 0xA4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppCbQuantizedDctCoefficientsTest() + { + Assert.That(GUID_WICPixelFormat16bppCbQuantizedDctCoefficients, Is.EqualTo(new Guid(0xD2C4FF61, 0x56A5, 0x49C2, 0x8B, 0x5C, 0x4C, 0x19, 0x25, 0x96, 0x48, 0x37))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_WICPixelFormat16bppCrQuantizedDctCoefficientsTest() + { + Assert.That(GUID_WICPixelFormat16bppCrQuantizedDctCoefficients, Is.EqualTo(new Guid(0x2FE354F0, 0x1680, 0x42D8, 0x92, 0x31, 0xE7, 0x3C, 0x05, 0x65, 0xBF, 0xC1))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/wincodec/WindowsTests.cs b/tests/Interop/Windows/Windows/um/wincodec/WindowsTests.cs index 91597a6471..b5e499d1a1 100644 --- a/tests/Interop/Windows/Windows/um/wincodec/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/wincodec/WindowsTests.cs @@ -12,104 +12,6 @@ namespace TerraFX.Interop.Windows.UnitTests /// Provides validation of the class. public static unsafe partial class WindowsTests { - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VendorMicrosoftTest() - { - Assert.That(GUID_VendorMicrosoft, Is.EqualTo(new Guid(0xf0e749ca, 0xedef, 0x4589, 0xa7, 0x3a, 0xee, 0xe, 0x62, 0x6a, 0x2a, 0x2b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VendorMicrosoftBuiltInTest() - { - Assert.That(GUID_VendorMicrosoftBuiltIn, Is.EqualTo(new Guid(0x257a30fd, 0x6b6, 0x462b, 0xae, 0xa4, 0x63, 0xf7, 0xb, 0x86, 0xe5, 0x33))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatBmpTest() - { - Assert.That(GUID_ContainerFormatBmp, Is.EqualTo(new Guid(0x0af1d87e, 0xfcfe, 0x4188, 0xbd, 0xeb, 0xa7, 0x90, 0x64, 0x71, 0xcb, 0xe3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatPngTest() - { - Assert.That(GUID_ContainerFormatPng, Is.EqualTo(new Guid(0x1b7cfaf4, 0x713f, 0x473c, 0xbb, 0xcd, 0x61, 0x37, 0x42, 0x5f, 0xae, 0xaf))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatIcoTest() - { - Assert.That(GUID_ContainerFormatIco, Is.EqualTo(new Guid(0xa3a860c4, 0x338f, 0x4c17, 0x91, 0x9a, 0xfb, 0xa4, 0xb5, 0x62, 0x8f, 0x21))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatJpegTest() - { - Assert.That(GUID_ContainerFormatJpeg, Is.EqualTo(new Guid(0x19e4a5aa, 0x5662, 0x4fc5, 0xa0, 0xc0, 0x17, 0x58, 0x02, 0x8e, 0x10, 0x57))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatTiffTest() - { - Assert.That(GUID_ContainerFormatTiff, Is.EqualTo(new Guid(0x163bcc30, 0xe2e9, 0x4f0b, 0x96, 0x1d, 0xa3, 0xe9, 0xfd, 0xb7, 0x88, 0xa3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatGifTest() - { - Assert.That(GUID_ContainerFormatGif, Is.EqualTo(new Guid(0x1f8a5601, 0x7d4d, 0x4cbd, 0x9c, 0x82, 0x1b, 0xc8, 0xd4, 0xee, 0xb9, 0xa5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatWmpTest() - { - Assert.That(GUID_ContainerFormatWmp, Is.EqualTo(new Guid(0x57a37caa, 0x367a, 0x4540, 0x91, 0x6b, 0xf1, 0x83, 0xc5, 0x09, 0x3a, 0x4b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatDdsTest() - { - Assert.That(GUID_ContainerFormatDds, Is.EqualTo(new Guid(0x9967cb95, 0x2e85, 0x4ac8, 0x8c, 0xa2, 0x83, 0xd7, 0xcc, 0xd4, 0x25, 0xc9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatAdngTest() - { - Assert.That(GUID_ContainerFormatAdng, Is.EqualTo(new Guid(0xf3ff6d0d, 0x38c0, 0x41c4, 0xb1, 0xfe, 0x1f, 0x38, 0x24, 0xf1, 0x7b, 0x84))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatHeifTest() - { - Assert.That(GUID_ContainerFormatHeif, Is.EqualTo(new Guid(0xe1e62521, 0x6787, 0x405b, 0xa3, 0x39, 0x50, 0x07, 0x15, 0xb5, 0x76, 0x3f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatWebpTest() - { - Assert.That(GUID_ContainerFormatWebp, Is.EqualTo(new Guid(0xe094b0e2, 0x67f2, 0x45b3, 0xb0, 0xea, 0x11, 0x53, 0x37, 0xca, 0x7c, 0xf3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ContainerFormatRawTest() - { - Assert.That(GUID_ContainerFormatRaw, Is.EqualTo(new Guid(0xfe99ce60, 0xf19c, 0x433c, 0xa3, 0xae, 0x00, 0xac, 0xef, 0xa9, 0xca, 0x21))); - } - /// Validates that the value of the property is correct. [Test] public static void CATID_WICBitmapDecodersTest() @@ -151,635 +53,5 @@ public static void CATID_WICMetadataWriterTest() { Assert.That(CATID_WICMetadataWriter, Is.EqualTo(new Guid(0xabe3b9a4, 0x257d, 0x4b97, 0xbd, 0x1a, 0x29, 0x4a, 0xf4, 0x96, 0x22, 0x2e))); } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormatDontCareTest() - { - Assert.That(GUID_WICPixelFormatDontCare, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x00))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat1bppIndexedTest() - { - Assert.That(GUID_WICPixelFormat1bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x01))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat2bppIndexedTest() - { - Assert.That(GUID_WICPixelFormat2bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x02))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat4bppIndexedTest() - { - Assert.That(GUID_WICPixelFormat4bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x03))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat8bppIndexedTest() - { - Assert.That(GUID_WICPixelFormat8bppIndexed, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x04))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormatBlackWhiteTest() - { - Assert.That(GUID_WICPixelFormatBlackWhite, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x05))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat2bppGrayTest() - { - Assert.That(GUID_WICPixelFormat2bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x06))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat4bppGrayTest() - { - Assert.That(GUID_WICPixelFormat4bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x07))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat8bppGrayTest() - { - Assert.That(GUID_WICPixelFormat8bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x08))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat8bppAlphaTest() - { - Assert.That(GUID_WICPixelFormat8bppAlpha, Is.EqualTo(new Guid(0xe6cd0116, 0xeeba, 0x4161, 0xaa, 0x85, 0x27, 0xdd, 0x9f, 0xb3, 0xa8, 0x95))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppBGR555Test() - { - Assert.That(GUID_WICPixelFormat16bppBGR555, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x09))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppBGR565Test() - { - Assert.That(GUID_WICPixelFormat16bppBGR565, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppBGRA5551Test() - { - Assert.That(GUID_WICPixelFormat16bppBGRA5551, Is.EqualTo(new Guid(0x05ec7c2b, 0xf1e6, 0x4961, 0xad, 0x46, 0xe1, 0xcc, 0x81, 0x0a, 0x87, 0xd2))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppGrayTest() - { - Assert.That(GUID_WICPixelFormat16bppGray, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat24bppBGRTest() - { - Assert.That(GUID_WICPixelFormat24bppBGR, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat24bppRGBTest() - { - Assert.That(GUID_WICPixelFormat24bppRGB, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppBGRTest() - { - Assert.That(GUID_WICPixelFormat32bppBGR, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppBGRATest() - { - Assert.That(GUID_WICPixelFormat32bppBGRA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x0f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppPBGRATest() - { - Assert.That(GUID_WICPixelFormat32bppPBGRA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x10))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppGrayFloatTest() - { - Assert.That(GUID_WICPixelFormat32bppGrayFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x11))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppRGBTest() - { - Assert.That(GUID_WICPixelFormat32bppRGB, Is.EqualTo(new Guid(0xd98c6b95, 0x3efe, 0x47d6, 0xbb, 0x25, 0xeb, 0x17, 0x48, 0xab, 0x0c, 0xf1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppRGBATest() - { - Assert.That(GUID_WICPixelFormat32bppRGBA, Is.EqualTo(new Guid(0xf5c7ad2d, 0x6a8d, 0x43dd, 0xa7, 0xa8, 0xa2, 0x99, 0x35, 0x26, 0x1a, 0xe9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppPRGBATest() - { - Assert.That(GUID_WICPixelFormat32bppPRGBA, Is.EqualTo(new Guid(0x3cc4a650, 0xa527, 0x4d37, 0xa9, 0x16, 0x31, 0x42, 0xc7, 0xeb, 0xed, 0xba))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bppRGBTest() - { - Assert.That(GUID_WICPixelFormat48bppRGB, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x15))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bppBGRTest() - { - Assert.That(GUID_WICPixelFormat48bppBGR, Is.EqualTo(new Guid(0xe605a384, 0xb468, 0x46ce, 0xbb, 0x2e, 0x36, 0xf1, 0x80, 0xe6, 0x43, 0x13))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppRGBTest() - { - Assert.That(GUID_WICPixelFormat64bppRGB, Is.EqualTo(new Guid(0xa1182111, 0x186d, 0x4d42, 0xbc, 0x6a, 0x9c, 0x83, 0x03, 0xa8, 0xdf, 0xf9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppRGBATest() - { - Assert.That(GUID_WICPixelFormat64bppRGBA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x16))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppBGRATest() - { - Assert.That(GUID_WICPixelFormat64bppBGRA, Is.EqualTo(new Guid(0x1562ff7c, 0xd352, 0x46f9, 0x97, 0x9e, 0x42, 0x97, 0x6b, 0x79, 0x22, 0x46))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppPRGBATest() - { - Assert.That(GUID_WICPixelFormat64bppPRGBA, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x17))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppPBGRATest() - { - Assert.That(GUID_WICPixelFormat64bppPBGRA, Is.EqualTo(new Guid(0x8c518e8e, 0xa4ec, 0x468b, 0xae, 0x70, 0xc9, 0xa3, 0x5a, 0x9c, 0x55, 0x30))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppGrayFixedPointTest() - { - Assert.That(GUID_WICPixelFormat16bppGrayFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x13))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppBGR101010Test() - { - Assert.That(GUID_WICPixelFormat32bppBGR101010, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x14))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bppRGBFixedPointTest() - { - Assert.That(GUID_WICPixelFormat48bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x12))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bppBGRFixedPointTest() - { - Assert.That(GUID_WICPixelFormat48bppBGRFixedPoint, Is.EqualTo(new Guid(0x49ca140e, 0xcab6, 0x493b, 0x9d, 0xdf, 0x60, 0x18, 0x7c, 0x37, 0x53, 0x2a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat96bppRGBFixedPointTest() - { - Assert.That(GUID_WICPixelFormat96bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x18))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat96bppRGBFloatTest() - { - Assert.That(GUID_WICPixelFormat96bppRGBFloat, Is.EqualTo(new Guid(0xe3fed78f, 0xe8db, 0x4acf, 0x84, 0xc1, 0xe9, 0x7f, 0x61, 0x36, 0xb3, 0x27))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat128bppRGBAFloatTest() - { - Assert.That(GUID_WICPixelFormat128bppRGBAFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x19))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat128bppPRGBAFloatTest() - { - Assert.That(GUID_WICPixelFormat128bppPRGBAFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat128bppRGBFloatTest() - { - Assert.That(GUID_WICPixelFormat128bppRGBFloat, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppCMYKTest() - { - Assert.That(GUID_WICPixelFormat32bppCMYK, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppRGBAFixedPointTest() - { - Assert.That(GUID_WICPixelFormat64bppRGBAFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppBGRAFixedPointTest() - { - Assert.That(GUID_WICPixelFormat64bppBGRAFixedPoint, Is.EqualTo(new Guid(0x356de33c, 0x54d2, 0x4a23, 0xbb, 0x4, 0x9b, 0x7b, 0xf9, 0xb1, 0xd4, 0x2d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppRGBFixedPointTest() - { - Assert.That(GUID_WICPixelFormat64bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x40))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat128bppRGBAFixedPointTest() - { - Assert.That(GUID_WICPixelFormat128bppRGBAFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat128bppRGBFixedPointTest() - { - Assert.That(GUID_WICPixelFormat128bppRGBFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x41))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppRGBAHalfTest() - { - Assert.That(GUID_WICPixelFormat64bppRGBAHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppPRGBAHalfTest() - { - Assert.That(GUID_WICPixelFormat64bppPRGBAHalf, Is.EqualTo(new Guid(0x58ad26c2, 0xc623, 0x4d9d, 0xb3, 0x20, 0x38, 0x7e, 0x49, 0xf8, 0xc4, 0x42))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppRGBHalfTest() - { - Assert.That(GUID_WICPixelFormat64bppRGBHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x42))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bppRGBHalfTest() - { - Assert.That(GUID_WICPixelFormat48bppRGBHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppRGBETest() - { - Assert.That(GUID_WICPixelFormat32bppRGBE, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppGrayHalfTest() - { - Assert.That(GUID_WICPixelFormat16bppGrayHalf, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppGrayFixedPointTest() - { - Assert.That(GUID_WICPixelFormat32bppGrayFixedPoint, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x3f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppRGBA1010102Test() - { - Assert.That(GUID_WICPixelFormat32bppRGBA1010102, Is.EqualTo(new Guid(0x25238D72, 0xFCF9, 0x4522, 0xb5, 0x14, 0x55, 0x78, 0xe5, 0xad, 0x55, 0xe0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppRGBA1010102XRTest() - { - Assert.That(GUID_WICPixelFormat32bppRGBA1010102XR, Is.EqualTo(new Guid(0x00DE6B9A, 0xC101, 0x434b, 0xb5, 0x02, 0xd0, 0x16, 0x5e, 0xe1, 0x12, 0x2c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppR10G10B10A2Test() - { - Assert.That(GUID_WICPixelFormat32bppR10G10B10A2, Is.EqualTo(new Guid(0x604e1bb5, 0x8a3c, 0x4b65, 0xb1, 0x1c, 0xbc, 0x0b, 0x8d, 0xd7, 0x5b, 0x7f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bppR10G10B10A2HDR10Test() - { - Assert.That(GUID_WICPixelFormat32bppR10G10B10A2HDR10, Is.EqualTo(new Guid(0x9c215c5d, 0x1acc, 0x4f0e, 0xa4, 0xbc, 0x70, 0xfb, 0x3a, 0xe8, 0xfd, 0x28))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bppCMYKTest() - { - Assert.That(GUID_WICPixelFormat64bppCMYK, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x1f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat24bpp3ChannelsTest() - { - Assert.That(GUID_WICPixelFormat24bpp3Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x20))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bpp4ChannelsTest() - { - Assert.That(GUID_WICPixelFormat32bpp4Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x21))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat40bpp5ChannelsTest() - { - Assert.That(GUID_WICPixelFormat40bpp5Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x22))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bpp6ChannelsTest() - { - Assert.That(GUID_WICPixelFormat48bpp6Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x23))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat56bpp7ChannelsTest() - { - Assert.That(GUID_WICPixelFormat56bpp7Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x24))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bpp8ChannelsTest() - { - Assert.That(GUID_WICPixelFormat64bpp8Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x25))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bpp3ChannelsTest() - { - Assert.That(GUID_WICPixelFormat48bpp3Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x26))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bpp4ChannelsTest() - { - Assert.That(GUID_WICPixelFormat64bpp4Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x27))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat80bpp5ChannelsTest() - { - Assert.That(GUID_WICPixelFormat80bpp5Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x28))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat96bpp6ChannelsTest() - { - Assert.That(GUID_WICPixelFormat96bpp6Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x29))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat112bpp7ChannelsTest() - { - Assert.That(GUID_WICPixelFormat112bpp7Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2a))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat128bpp8ChannelsTest() - { - Assert.That(GUID_WICPixelFormat128bpp8Channels, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat40bppCMYKAlphaTest() - { - Assert.That(GUID_WICPixelFormat40bppCMYKAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat80bppCMYKAlphaTest() - { - Assert.That(GUID_WICPixelFormat80bppCMYKAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat32bpp3ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat32bpp3ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat40bpp4ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat40bpp4ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x2f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat48bpp5ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat48bpp5ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x30))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat56bpp6ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat56bpp6ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x31))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bpp7ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat64bpp7ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x32))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat72bpp8ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat72bpp8ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x33))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat64bpp3ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat64bpp3ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x34))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat80bpp4ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat80bpp4ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x35))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat96bpp5ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat96bpp5ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x36))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat112bpp6ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat112bpp6ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x37))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat128bpp7ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat128bpp7ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x38))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat144bpp8ChannelsAlphaTest() - { - Assert.That(GUID_WICPixelFormat144bpp8ChannelsAlpha, Is.EqualTo(new Guid(0x6fddc324, 0x4e03, 0x4bfe, 0xb1, 0x85, 0x3d, 0x77, 0x76, 0x8d, 0xc9, 0x39))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat8bppYTest() - { - Assert.That(GUID_WICPixelFormat8bppY, Is.EqualTo(new Guid(0x91B4DB54, 0x2DF9, 0x42F0, 0xB4, 0x49, 0x29, 0x09, 0xBB, 0x3D, 0xF8, 0x8E))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat8bppCbTest() - { - Assert.That(GUID_WICPixelFormat8bppCb, Is.EqualTo(new Guid(0x1339F224, 0x6BFE, 0x4C3E, 0x93, 0x02, 0xE4, 0xF3, 0xA6, 0xD0, 0xCA, 0x2A))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat8bppCrTest() - { - Assert.That(GUID_WICPixelFormat8bppCr, Is.EqualTo(new Guid(0xB8145053, 0x2116, 0x49F0, 0x88, 0x35, 0xED, 0x84, 0x4B, 0x20, 0x5C, 0x51))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppCbCrTest() - { - Assert.That(GUID_WICPixelFormat16bppCbCr, Is.EqualTo(new Guid(0xFF95BA6E, 0x11E0, 0x4263, 0xBB, 0x45, 0x01, 0x72, 0x1F, 0x34, 0x60, 0xA4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppYQuantizedDctCoefficientsTest() - { - Assert.That(GUID_WICPixelFormat16bppYQuantizedDctCoefficients, Is.EqualTo(new Guid(0xA355F433, 0x48E8, 0x4A42, 0x84, 0xD8, 0xE2, 0xAA, 0x26, 0xCA, 0x80, 0xA4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppCbQuantizedDctCoefficientsTest() - { - Assert.That(GUID_WICPixelFormat16bppCbQuantizedDctCoefficients, Is.EqualTo(new Guid(0xD2C4FF61, 0x56A5, 0x49C2, 0x8B, 0x5C, 0x4C, 0x19, 0x25, 0x96, 0x48, 0x37))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_WICPixelFormat16bppCrQuantizedDctCoefficientsTest() - { - Assert.That(GUID_WICPixelFormat16bppCrQuantizedDctCoefficients, Is.EqualTo(new Guid(0x2FE354F0, 0x1680, 0x42D8, 0x92, 0x31, 0xE7, 0x3C, 0x05, 0x65, 0xBF, 0xC1))); - } } } diff --git a/tests/Interop/Windows/Windows/um/wincodecsdk/WindowsTests.cs b/tests/Interop/Windows/Windows/um/wincodecsdk/GUIDTests.cs similarity index 98% rename from tests/Interop/Windows/Windows/um/wincodecsdk/WindowsTests.cs rename to tests/Interop/Windows/Windows/um/wincodecsdk/GUIDTests.cs index 2ad88749e7..2032a5fb19 100644 --- a/tests/Interop/Windows/Windows/um/wincodecsdk/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/wincodecsdk/GUIDTests.cs @@ -5,12 +5,12 @@ using NUnit.Framework; using System; -using static TerraFX.Interop.Windows.Windows; +using static TerraFX.Interop.Windows.GUID; namespace TerraFX.Interop.Windows.UnitTests { - /// Provides validation of the class. - public static unsafe partial class WindowsTests + /// Provides validation of the class. + public static partial class GUIDTests { /// Validates that the value of the property is correct. [Test] diff --git a/tests/Interop/Windows/Windows/um/winnt/GUIDTests.cs b/tests/Interop/Windows/Windows/um/winnt/GUIDTests.cs new file mode 100644 index 0000000000..b38965bb1c --- /dev/null +++ b/tests/Interop/Windows/Windows/um/winnt/GUIDTests.cs @@ -0,0 +1,1401 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.GUID; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class GUIDTests + { + /// Validates that the value of the property is correct. + [Test] + public static void GUID_MAX_POWER_SAVINGSTest() + { + Assert.That(GUID_MAX_POWER_SAVINGS, Is.EqualTo(new Guid(0xA1841308, 0x3541, 0x4FAB, 0xBC, 0x81, 0xF7, 0x15, 0x56, 0xF2, 0x0B, 0x4A))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_MIN_POWER_SAVINGSTest() + { + Assert.That(GUID_MIN_POWER_SAVINGS, Is.EqualTo(new Guid(0x8C5E7FDA, 0xE8BF, 0x4A96, 0x9A, 0x85, 0xA6, 0xE2, 0x3A, 0x8C, 0x63, 0x5C))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_TYPICAL_POWER_SAVINGSTest() + { + Assert.That(GUID_TYPICAL_POWER_SAVINGS, Is.EqualTo(new Guid(0x381B4222, 0xF694, 0x41F0, 0x96, 0x85, 0xFF, 0x5B, 0xB2, 0x60, 0xDF, 0x2E))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_POWERSCHEME_PERSONALITYTest() + { + Assert.That(GUID_POWERSCHEME_PERSONALITY, Is.EqualTo(new Guid(0x245D8541, 0x3943, 0x4422, 0xB0, 0x25, 0x13, 0xA7, 0x84, 0xF6, 0x79, 0xB7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ACTIVE_POWERSCHEMETest() + { + Assert.That(GUID_ACTIVE_POWERSCHEME, Is.EqualTo(new Guid(0x31F9F286, 0x5084, 0x42FE, 0xB7, 0x20, 0x2B, 0x02, 0x64, 0x99, 0x37, 0x63))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_IDLE_RESILIENCY_SUBGROUPTest() + { + Assert.That(GUID_IDLE_RESILIENCY_SUBGROUP, Is.EqualTo(new Guid(0x2e601130, 0x5351, 0x4d9d, 0x8e, 0x4, 0x25, 0x29, 0x66, 0xba, 0xd0, 0x54))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_IDLE_RESILIENCY_PERIODTest() + { + Assert.That(GUID_IDLE_RESILIENCY_PERIOD, Is.EqualTo(new Guid(0xc42b79aa, 0xaa3a, 0x484b, 0xa9, 0x8f, 0x2c, 0xf3, 0x2a, 0xa9, 0xa, 0x28))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DEEP_SLEEP_ENABLEDTest() + { + Assert.That(GUID_DEEP_SLEEP_ENABLED, Is.EqualTo(new Guid(0xd502f7ee, 0x1dc7, 0x4efd, 0xa5, 0x5d, 0xf0, 0x4b, 0x6f, 0x5c, 0x5, 0x45))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DEEP_SLEEP_PLATFORM_STATETest() + { + Assert.That(GUID_DEEP_SLEEP_PLATFORM_STATE, Is.EqualTo(new Guid(0xd23f2fb8, 0x9536, 0x4038, 0x9c, 0x94, 0x1c, 0xe0, 0x2e, 0x5c, 0x21, 0x52))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_COALESCING_POWERDOWN_TIMEOUTTest() + { + Assert.That(GUID_DISK_COALESCING_POWERDOWN_TIMEOUT, Is.EqualTo(new Guid(0xc36f0eb4, 0x2988, 0x4a70, 0x8e, 0xee, 0x8, 0x84, 0xfc, 0x2c, 0x24, 0x33))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUTTest() + { + Assert.That(GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT, Is.EqualTo(new Guid(0x3166bc41, 0x7e98, 0x4e03, 0xb3, 0x4e, 0xec, 0xf, 0x5f, 0x2b, 0x21, 0x8e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_SUBGROUPTest() + { + Assert.That(GUID_VIDEO_SUBGROUP, Is.EqualTo(new Guid(0x7516B95F, 0xF776, 0x4464, 0x8C, 0x53, 0x06, 0x16, 0x7F, 0x40, 0xCC, 0x99))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_POWERDOWN_TIMEOUTTest() + { + Assert.That(GUID_VIDEO_POWERDOWN_TIMEOUT, Is.EqualTo(new Guid(0x3C0BC021, 0xC8A8, 0x4E07, 0xA9, 0x73, 0x6B, 0x14, 0xCB, 0xCB, 0x2B, 0x7E))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_ANNOYANCE_TIMEOUTTest() + { + Assert.That(GUID_VIDEO_ANNOYANCE_TIMEOUT, Is.EqualTo(new Guid(0x82DBCF2D, 0xCD67, 0x40C5, 0xBF, 0xDC, 0x9F, 0x1A, 0x5C, 0xCD, 0x46, 0x63))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_ADAPTIVE_PERCENT_INCREASETest() + { + Assert.That(GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE, Is.EqualTo(new Guid(0xEED904DF, 0xB142, 0x4183, 0xB1, 0x0B, 0x5A, 0x11, 0x97, 0xA3, 0x78, 0x64))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_DIM_TIMEOUTTest() + { + Assert.That(GUID_VIDEO_DIM_TIMEOUT, Is.EqualTo(new Guid(0x17aaa29b, 0x8b43, 0x4b94, 0xaa, 0xfe, 0x35, 0xf6, 0x4d, 0xaa, 0xf1, 0xee))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_ADAPTIVE_POWERDOWNTest() + { + Assert.That(GUID_VIDEO_ADAPTIVE_POWERDOWN, Is.EqualTo(new Guid(0x90959D22, 0xD6A1, 0x49B9, 0xAF, 0x93, 0xBC, 0xE8, 0x85, 0xAD, 0x33, 0x5B))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_MONITOR_POWER_ONTest() + { + Assert.That(GUID_MONITOR_POWER_ON, Is.EqualTo(new Guid(0x02731015, 0x4510, 0x4526, 0x99, 0xE6, 0xE5, 0xA1, 0x7E, 0xBD, 0x1A, 0xEA))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESSTest() + { + Assert.That(GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS, Is.EqualTo(new Guid(0xaded5e82, 0xb909, 0x4619, 0x99, 0x49, 0xf5, 0xd7, 0x1d, 0xac, 0x0b, 0xcb))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESSTest() + { + Assert.That(GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS, Is.EqualTo(new Guid(0xf1fbfde2, 0xa960, 0x4165, 0x9f, 0x88, 0x50, 0x66, 0x79, 0x11, 0xce, 0x96))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESSTest() + { + Assert.That(GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS, Is.EqualTo(new Guid(0x8ffee2c6, 0x2d01, 0x46be, 0xad, 0xb9, 0x39, 0x8a, 0xdd, 0xc5, 0xb4, 0xff))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESSTest() + { + Assert.That(GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS, Is.EqualTo(new Guid(0xFBD9AA66, 0x9553, 0x4097, 0xBA, 0x44, 0xED, 0x6E, 0x9D, 0x65, 0xEA, 0xB8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_CONSOLE_DISPLAY_STATETest() + { + Assert.That(GUID_CONSOLE_DISPLAY_STATE, Is.EqualTo(new Guid(0x6fe69556, 0x704a, 0x47a0, 0x8f, 0x24, 0xc2, 0x8d, 0x93, 0x6f, 0xda, 0x47))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ALLOW_DISPLAY_REQUIREDTest() + { + Assert.That(GUID_ALLOW_DISPLAY_REQUIRED, Is.EqualTo(new Guid(0xA9CEB8DA, 0xCD46, 0x44FB, 0xA9, 0x8B, 0x02, 0xAF, 0x69, 0xDE, 0x46, 0x23))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_VIDEO_CONSOLE_LOCK_TIMEOUTTest() + { + Assert.That(GUID_VIDEO_CONSOLE_LOCK_TIMEOUT, Is.EqualTo(new Guid(0x8ec4b3a5, 0x6868, 0x48c2, 0xbe, 0x75, 0x4f, 0x30, 0x44, 0xbe, 0x88, 0xa7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ADVANCED_COLOR_QUALITY_BIASTest() + { + Assert.That(GUID_ADVANCED_COLOR_QUALITY_BIAS, Is.EqualTo(new Guid(0x684c3e69, 0xa4f7, 0x4014, 0x87, 0x54, 0xd4, 0x51, 0x79, 0xa5, 0x61, 0x67))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUPTest() + { + Assert.That(GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP, Is.EqualTo(new Guid(0x8619b916, 0xe004, 0x4dd8, 0x9b, 0x66, 0xda, 0xe8, 0x6f, 0x80, 0x66, 0x98))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_NON_ADAPTIVE_INPUT_TIMEOUTTest() + { + Assert.That(GUID_NON_ADAPTIVE_INPUT_TIMEOUT, Is.EqualTo(new Guid(0x5adbbfbc, 0x74e, 0x4da1, 0xba, 0x38, 0xdb, 0x8b, 0x36, 0xb2, 0xc8, 0xf3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ADAPTIVE_INPUT_CONTROLLER_STATETest() + { + Assert.That(GUID_ADAPTIVE_INPUT_CONTROLLER_STATE, Is.EqualTo(new Guid(0xe98fae9, 0xf45a, 0x4de1, 0xa7, 0x57, 0x60, 0x31, 0xf1, 0x97, 0xf6, 0xea))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_SUBGROUPTest() + { + Assert.That(GUID_DISK_SUBGROUP, Is.EqualTo(new Guid(0x0012EE47, 0x9041, 0x4B5D, 0x9B, 0x77, 0x53, 0x5F, 0xBA, 0x8B, 0x14, 0x42))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_MAX_POWERTest() + { + Assert.That(GUID_DISK_MAX_POWER, Is.EqualTo(new Guid(0x51dea550, 0xbb38, 0x4bc4, 0x99, 0x1b, 0xea, 0xcf, 0x37, 0xbe, 0x5e, 0xc8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_POWERDOWN_TIMEOUTTest() + { + Assert.That(GUID_DISK_POWERDOWN_TIMEOUT, Is.EqualTo(new Guid(0x6738E2C4, 0xE8A5, 0x4A42, 0xB1, 0x6A, 0xE0, 0x40, 0xE7, 0x69, 0x75, 0x6E))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_IDLE_TIMEOUTTest() + { + Assert.That(GUID_DISK_IDLE_TIMEOUT, Is.EqualTo(new Guid(0x58E39BA8, 0xB8E6, 0x4EF6, 0x90, 0xD0, 0x89, 0xAE, 0x32, 0xB2, 0x58, 0xD6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_BURST_IGNORE_THRESHOLDTest() + { + Assert.That(GUID_DISK_BURST_IGNORE_THRESHOLD, Is.EqualTo(new Guid(0x80e3c60e, 0xbb94, 0x4ad8, 0xbb, 0xe0, 0x0d, 0x31, 0x95, 0xef, 0xc6, 0x63))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_ADAPTIVE_POWERDOWNTest() + { + Assert.That(GUID_DISK_ADAPTIVE_POWERDOWN, Is.EqualTo(new Guid(0x396A32E1, 0x499A, 0x40B2, 0x91, 0x24, 0xA9, 0x6A, 0xFE, 0x70, 0x76, 0x67))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISK_NVME_NOPPMETest() + { + Assert.That(GUID_DISK_NVME_NOPPME, Is.EqualTo(new Guid(0xfc7372b6, 0xab2d, 0x43ee, 0x87, 0x97, 0x15, 0xe9, 0x84, 0x1f, 0x2c, 0xca))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SLEEP_SUBGROUPTest() + { + Assert.That(GUID_SLEEP_SUBGROUP, Is.EqualTo(new Guid(0x238C9FA8, 0x0AAD, 0x41ED, 0x83, 0xF4, 0x97, 0xBE, 0x24, 0x2C, 0x8F, 0x20))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SLEEP_IDLE_THRESHOLDTest() + { + Assert.That(GUID_SLEEP_IDLE_THRESHOLD, Is.EqualTo(new Guid(0x81cd32e0, 0x7833, 0x44f3, 0x87, 0x37, 0x70, 0x81, 0xf3, 0x8d, 0x1f, 0x70))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_STANDBY_TIMEOUTTest() + { + Assert.That(GUID_STANDBY_TIMEOUT, Is.EqualTo(new Guid(0x29F6C1DB, 0x86DA, 0x48C5, 0x9F, 0xDB, 0xF2, 0xB6, 0x7B, 0x1F, 0x44, 0xDA))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_UNATTEND_SLEEP_TIMEOUTTest() + { + Assert.That(GUID_UNATTEND_SLEEP_TIMEOUT, Is.EqualTo(new Guid(0x7bc4a2f9, 0xd8fc, 0x4469, 0xb0, 0x7b, 0x33, 0xeb, 0x78, 0x5a, 0xac, 0xa0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_HIBERNATE_TIMEOUTTest() + { + Assert.That(GUID_HIBERNATE_TIMEOUT, Is.EqualTo(new Guid(0x9D7815A6, 0x7EE4, 0x497E, 0x88, 0x88, 0x51, 0x5A, 0x05, 0xF0, 0x23, 0x64))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_HIBERNATE_FASTS4_POLICYTest() + { + Assert.That(GUID_HIBERNATE_FASTS4_POLICY, Is.EqualTo(new Guid(0x94AC6D29, 0x73CE, 0x41A6, 0x80, 0x9F, 0x63, 0x63, 0xBA, 0x21, 0xB4, 0x7E))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_CRITICAL_POWER_TRANSITIONTest() + { + Assert.That(GUID_CRITICAL_POWER_TRANSITION, Is.EqualTo(new Guid(0xB7A27025, 0xE569, 0x46c2, 0xA5, 0x04, 0x2B, 0x96, 0xCA, 0xD2, 0x25, 0xA1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SYSTEM_AWAYMODETest() + { + Assert.That(GUID_SYSTEM_AWAYMODE, Is.EqualTo(new Guid(0x98A7F580, 0x01F7, 0x48AA, 0x9C, 0x0F, 0x44, 0x35, 0x2C, 0x29, 0xE5, 0xC0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ALLOW_AWAYMODETest() + { + Assert.That(GUID_ALLOW_AWAYMODE, Is.EqualTo(new Guid(0x25dfa149, 0x5dd1, 0x4736, 0xb5, 0xab, 0xe8, 0xa3, 0x7b, 0x5b, 0x81, 0x87))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_USER_PRESENCE_PREDICTIONTest() + { + Assert.That(GUID_USER_PRESENCE_PREDICTION, Is.EqualTo(new Guid(0x82011705, 0xfb95, 0x4d46, 0x8d, 0x35, 0x40, 0x42, 0xb1, 0xd2, 0xd, 0xef))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_STANDBY_BUDGET_GRACE_PERIODTest() + { + Assert.That(GUID_STANDBY_BUDGET_GRACE_PERIOD, Is.EqualTo(new Guid(0x60c07fe1, 0x0556, 0x45cf, 0x99, 0x03, 0xd5, 0x6e, 0x32, 0x21, 0x2, 0x42))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_STANDBY_BUDGET_PERCENTTest() + { + Assert.That(GUID_STANDBY_BUDGET_PERCENT, Is.EqualTo(new Guid(0x9fe527be, 0x1b70, 0x48da, 0x93, 0x0d, 0x7b, 0xcf, 0x17, 0xb4, 0x49, 0x90))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_STANDBY_RESERVE_GRACE_PERIODTest() + { + Assert.That(GUID_STANDBY_RESERVE_GRACE_PERIOD, Is.EqualTo(new Guid(0xc763ee92, 0x71e8, 0x4127, 0x84, 0xeb, 0xf6, 0xed, 0x04, 0x3a, 0x3e, 0x3d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_STANDBY_RESERVE_TIMETest() + { + Assert.That(GUID_STANDBY_RESERVE_TIME, Is.EqualTo(new Guid(0x468FE7E5, 0x1158, 0x46EC, 0x88, 0xbc, 0x5b, 0x96, 0xc9, 0xe4, 0x4f, 0xd0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_STANDBY_RESET_PERCENTTest() + { + Assert.That(GUID_STANDBY_RESET_PERCENT, Is.EqualTo(new Guid(0x49cb11a5, 0x56e2, 0x4afb, 0x9d, 0x38, 0x3d, 0xf4, 0x78, 0x72, 0xe2, 0x1b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ALLOW_STANDBY_STATESTest() + { + Assert.That(GUID_ALLOW_STANDBY_STATES, Is.EqualTo(new Guid(0xabfc2519, 0x3608, 0x4c2a, 0x94, 0xea, 0x17, 0x1b, 0x0e, 0xd5, 0x46, 0xab))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ALLOW_RTC_WAKETest() + { + Assert.That(GUID_ALLOW_RTC_WAKE, Is.EqualTo(new Guid(0xBD3B718A, 0x0680, 0x4D9D, 0x8A, 0xB2, 0xE1, 0xD2, 0xB4, 0xAC, 0x80, 0x6D))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_LEGACY_RTC_MITIGATIONTest() + { + Assert.That(GUID_LEGACY_RTC_MITIGATION, Is.EqualTo(new Guid(0x1A34BDC3, 0x7E6B, 0x442E, 0xA9, 0xD0, 0x64, 0xB6, 0xEF, 0x37, 0x8E, 0x84))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ALLOW_SYSTEM_REQUIREDTest() + { + Assert.That(GUID_ALLOW_SYSTEM_REQUIRED, Is.EqualTo(new Guid(0xA4B195F5, 0x8225, 0x47D8, 0x80, 0x12, 0x9D, 0x41, 0x36, 0x97, 0x86, 0xE2))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_POWER_SAVING_STATUSTest() + { + Assert.That(GUID_POWER_SAVING_STATUS, Is.EqualTo(new Guid(0xe00958c0, 0xc213, 0x4ace, 0xac, 0x77, 0xfe, 0xcc, 0xed, 0x2e, 0xee, 0xa5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ENERGY_SAVER_SUBGROUPTest() + { + Assert.That(GUID_ENERGY_SAVER_SUBGROUP, Is.EqualTo(new Guid(0xDE830923, 0xA562, 0x41AF, 0xA0, 0x86, 0xE3, 0xA2, 0xC6, 0xBA, 0xD2, 0xDA))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ENERGY_SAVER_BATTERY_THRESHOLDTest() + { + Assert.That(GUID_ENERGY_SAVER_BATTERY_THRESHOLD, Is.EqualTo(new Guid(0xE69653CA, 0xCF7F, 0x4F05, 0xAA, 0x73, 0xCB, 0x83, 0x3F, 0xA9, 0x0A, 0xD4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ENERGY_SAVER_BRIGHTNESSTest() + { + Assert.That(GUID_ENERGY_SAVER_BRIGHTNESS, Is.EqualTo(new Guid(0x13D09884, 0xF74E, 0x474A, 0xA8, 0x52, 0xB6, 0xBD, 0xE8, 0xAD, 0x03, 0xA8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ENERGY_SAVER_POLICYTest() + { + Assert.That(GUID_ENERGY_SAVER_POLICY, Is.EqualTo(new Guid(0x5c5bb349, 0xad29, 0x4ee2, 0x9d, 0xb, 0x2b, 0x25, 0x27, 0xf, 0x7a, 0x81))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SYSTEM_BUTTON_SUBGROUPTest() + { + Assert.That(GUID_SYSTEM_BUTTON_SUBGROUP, Is.EqualTo(new Guid(0x4F971E89, 0xEEBD, 0x4455, 0xA8, 0xDE, 0x9E, 0x59, 0x04, 0x0E, 0x73, 0x47))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_POWERBUTTON_ACTIONTest() + { + Assert.That(GUID_POWERBUTTON_ACTION, Is.EqualTo(new Guid(0x7648EFA3, 0xDD9C, 0x4E3E, 0xB5, 0x66, 0x50, 0xF9, 0x29, 0x38, 0x62, 0x80))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SLEEPBUTTON_ACTIONTest() + { + Assert.That(GUID_SLEEPBUTTON_ACTION, Is.EqualTo(new Guid(0x96996BC0, 0xAD50, 0x47EC, 0x92, 0x3B, 0x6F, 0x41, 0x87, 0x4D, 0xD9, 0xEB))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_USERINTERFACEBUTTON_ACTIONTest() + { + Assert.That(GUID_USERINTERFACEBUTTON_ACTION, Is.EqualTo(new Guid(0xA7066653, 0x8D6C, 0x40A8, 0x91, 0x0E, 0xA1, 0xF5, 0x4B, 0x84, 0xC7, 0xE5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_LIDCLOSE_ACTIONTest() + { + Assert.That(GUID_LIDCLOSE_ACTION, Is.EqualTo(new Guid(0x5CA83367, 0x6E45, 0x459F, 0xA2, 0x7B, 0x47, 0x6B, 0x1D, 0x01, 0xC9, 0x36))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_LIDOPEN_POWERSTATETest() + { + Assert.That(GUID_LIDOPEN_POWERSTATE, Is.EqualTo(new Guid(0x99FF10E7, 0x23B1, 0x4C07, 0xA9, 0xD1, 0x5C, 0x32, 0x06, 0xD7, 0x41, 0xB4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_SUBGROUPTest() + { + Assert.That(GUID_BATTERY_SUBGROUP, Is.EqualTo(new Guid(0xE73A048D, 0xBF27, 0x4F12, 0x97, 0x31, 0x8B, 0x20, 0x76, 0xE8, 0x89, 0x1F))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_ACTION_0Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_ACTION_0, Is.EqualTo(new Guid(0x637EA02F, 0xBBCB, 0x4015, 0x8E, 0x2C, 0xA1, 0xC7, 0xB9, 0xC0, 0xB5, 0x46))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_LEVEL_0Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_0, Is.EqualTo(new Guid(0x9A66D8D7, 0x4FF7, 0x4EF9, 0xB5, 0xA2, 0x5A, 0x32, 0x6C, 0xA2, 0xA4, 0x69))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_FLAGS_0Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_0, Is.EqualTo(new Guid(0x5dbb7c9f, 0x38e9, 0x40d2, 0x97, 0x49, 0x4f, 0x8a, 0x0e, 0x9f, 0x64, 0x0f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_ACTION_1Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_ACTION_1, Is.EqualTo(new Guid(0xD8742DCB, 0x3E6A, 0x4B3C, 0xB3, 0xFE, 0x37, 0x46, 0x23, 0xCD, 0xCF, 0x06))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_LEVEL_1Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_1, Is.EqualTo(new Guid(0x8183BA9A, 0xE910, 0x48DA, 0x87, 0x69, 0x14, 0xAE, 0x6D, 0xC1, 0x17, 0x0A))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_FLAGS_1Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_1, Is.EqualTo(new Guid(0xbcded951, 0x187b, 0x4d05, 0xbc, 0xcc, 0xf7, 0xe5, 0x19, 0x60, 0xc2, 0x58))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_ACTION_2Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_ACTION_2, Is.EqualTo(new Guid(0x421CBA38, 0x1A8E, 0x4881, 0xAC, 0x89, 0xE3, 0x3A, 0x8B, 0x04, 0xEC, 0xE4))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_LEVEL_2Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_2, Is.EqualTo(new Guid(0x07A07CA2, 0xADAF, 0x40D7, 0xB0, 0x77, 0x53, 0x3A, 0xAD, 0xED, 0x1B, 0xFA))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_FLAGS_2Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_2, Is.EqualTo(new Guid(0x7fd2f0c4, 0xfeb7, 0x4da3, 0x81, 0x17, 0xe3, 0xfb, 0xed, 0xc4, 0x65, 0x82))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_ACTION_3Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_ACTION_3, Is.EqualTo(new Guid(0x80472613, 0x9780, 0x455E, 0xB3, 0x08, 0x72, 0xD3, 0x00, 0x3C, 0xF2, 0xF8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_LEVEL_3Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_3, Is.EqualTo(new Guid(0x58AFD5A6, 0xC2DD, 0x47D2, 0x9F, 0xBF, 0xEF, 0x70, 0xCC, 0x5C, 0x59, 0x65))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_DISCHARGE_FLAGS_3Test() + { + Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_3, Is.EqualTo(new Guid(0x73613ccf, 0xdbfa, 0x4279, 0x83, 0x56, 0x49, 0x35, 0xf6, 0xbf, 0x62, 0xf3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_SETTINGS_SUBGROUPTest() + { + Assert.That(GUID_PROCESSOR_SETTINGS_SUBGROUP, Is.EqualTo(new Guid(0x54533251, 0x82BE, 0x4824, 0x96, 0xC1, 0x47, 0xB6, 0x0B, 0x74, 0x0D, 0x00))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_THROTTLE_POLICYTest() + { + Assert.That(GUID_PROCESSOR_THROTTLE_POLICY, Is.EqualTo(new Guid(0x57027304, 0x4AF6, 0x4104, 0x92, 0x60, 0xE3, 0xD9, 0x52, 0x48, 0xFC, 0x36))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_THROTTLE_MAXIMUMTest() + { + Assert.That(GUID_PROCESSOR_THROTTLE_MAXIMUM, Is.EqualTo(new Guid(0xBC5038F7, 0x23E0, 0x4960, 0x96, 0xDA, 0x33, 0xAB, 0xAF, 0x59, 0x35, 0xEC))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_THROTTLE_MAXIMUM_1Test() + { + Assert.That(GUID_PROCESSOR_THROTTLE_MAXIMUM_1, Is.EqualTo(new Guid(0xBC5038F7, 0x23E0, 0x4960, 0x96, 0xDA, 0x33, 0xAB, 0xAF, 0x59, 0x35, 0xED))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_THROTTLE_MINIMUMTest() + { + Assert.That(GUID_PROCESSOR_THROTTLE_MINIMUM, Is.EqualTo(new Guid(0x893DEE8E, 0x2BEF, 0x41E0, 0x89, 0xC6, 0xB5, 0x5D, 0x09, 0x29, 0x96, 0x4C))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_THROTTLE_MINIMUM_1Test() + { + Assert.That(GUID_PROCESSOR_THROTTLE_MINIMUM_1, Is.EqualTo(new Guid(0x893DEE8E, 0x2BEF, 0x41E0, 0x89, 0xC6, 0xB5, 0x5D, 0x09, 0x29, 0x96, 0x4D))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_FREQUENCY_LIMITTest() + { + Assert.That(GUID_PROCESSOR_FREQUENCY_LIMIT, Is.EqualTo(new Guid(0x75b0ae3f, 0xbce0, 0x45a7, 0x8c, 0x89, 0xc9, 0x61, 0x1c, 0x25, 0xe1, 0x00))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_FREQUENCY_LIMIT_1Test() + { + Assert.That(GUID_PROCESSOR_FREQUENCY_LIMIT_1, Is.EqualTo(new Guid(0x75b0ae3f, 0xbce0, 0x45a7, 0x8c, 0x89, 0xc9, 0x61, 0x1c, 0x25, 0xe1, 0x01))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_ALLOW_THROTTLINGTest() + { + Assert.That(GUID_PROCESSOR_ALLOW_THROTTLING, Is.EqualTo(new Guid(0x3b04d4fd, 0x1cc7, 0x4f23, 0xab, 0x1c, 0xd1, 0x33, 0x78, 0x19, 0xc4, 0xbb))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_IDLESTATE_POLICYTest() + { + Assert.That(GUID_PROCESSOR_IDLESTATE_POLICY, Is.EqualTo(new Guid(0x68f262a7, 0xf621, 0x4069, 0xb9, 0xa5, 0x48, 0x74, 0x16, 0x9b, 0xe2, 0x3c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERFSTATE_POLICYTest() + { + Assert.That(GUID_PROCESSOR_PERFSTATE_POLICY, Is.EqualTo(new Guid(0xBBDC3814, 0x18E9, 0x4463, 0x8A, 0x55, 0xD1, 0x97, 0x32, 0x7C, 0x45, 0xC0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_INCREASE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_PERF_INCREASE_THRESHOLD, Is.EqualTo(new Guid(0x06cadf0e, 0x64ed, 0x448a, 0x89, 0x27, 0xce, 0x7b, 0xf9, 0x0e, 0xb3, 0x5d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1, Is.EqualTo(new Guid(0x06cadf0e, 0x64ed, 0x448a, 0x89, 0x27, 0xce, 0x7b, 0xf9, 0x0e, 0xb3, 0x5e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_DECREASE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_PERF_DECREASE_THRESHOLD, Is.EqualTo(new Guid(0x12a0ab44, 0xfe28, 0x4fa9, 0xb3, 0xbd, 0x4b, 0x64, 0xf4, 0x49, 0x60, 0xa6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1, Is.EqualTo(new Guid(0x12a0ab44, 0xfe28, 0x4fa9, 0xb3, 0xbd, 0x4b, 0x64, 0xf4, 0x49, 0x60, 0xa7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_INCREASE_POLICYTest() + { + Assert.That(GUID_PROCESSOR_PERF_INCREASE_POLICY, Is.EqualTo(new Guid(0x465e1f50, 0xb610, 0x473a, 0xab, 0x58, 0x0, 0xd1, 0x7, 0x7d, 0xc4, 0x18))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_INCREASE_POLICY_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_INCREASE_POLICY_1, Is.EqualTo(new Guid(0x465e1f50, 0xb610, 0x473a, 0xab, 0x58, 0x0, 0xd1, 0x7, 0x7d, 0xc4, 0x19))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_DECREASE_POLICYTest() + { + Assert.That(GUID_PROCESSOR_PERF_DECREASE_POLICY, Is.EqualTo(new Guid(0x40fbefc7, 0x2e9d, 0x4d25, 0xa1, 0x85, 0xc, 0xfd, 0x85, 0x74, 0xba, 0xc6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_DECREASE_POLICY_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_DECREASE_POLICY_1, Is.EqualTo(new Guid(0x40fbefc7, 0x2e9d, 0x4d25, 0xa1, 0x85, 0xc, 0xfd, 0x85, 0x74, 0xba, 0xc7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_INCREASE_TIMETest() + { + Assert.That(GUID_PROCESSOR_PERF_INCREASE_TIME, Is.EqualTo(new Guid(0x984cf492, 0x3bed, 0x4488, 0xa8, 0xf9, 0x42, 0x86, 0xc9, 0x7b, 0xf5, 0xaa))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_INCREASE_TIME_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_INCREASE_TIME_1, Is.EqualTo(new Guid(0x984cf492, 0x3bed, 0x4488, 0xa8, 0xf9, 0x42, 0x86, 0xc9, 0x7b, 0xf5, 0xab))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_DECREASE_TIMETest() + { + Assert.That(GUID_PROCESSOR_PERF_DECREASE_TIME, Is.EqualTo(new Guid(0xd8edeb9b, 0x95cf, 0x4f95, 0xa7, 0x3c, 0xb0, 0x61, 0x97, 0x36, 0x93, 0xc8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_DECREASE_TIME_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_DECREASE_TIME_1, Is.EqualTo(new Guid(0xd8edeb9b, 0x95cf, 0x4f95, 0xa7, 0x3c, 0xb0, 0x61, 0x97, 0x36, 0x93, 0xc9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_TIME_CHECKTest() + { + Assert.That(GUID_PROCESSOR_PERF_TIME_CHECK, Is.EqualTo(new Guid(0x4d2b0152, 0x7d5c, 0x498b, 0x88, 0xe2, 0x34, 0x34, 0x53, 0x92, 0xa2, 0xc5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_BOOST_POLICYTest() + { + Assert.That(GUID_PROCESSOR_PERF_BOOST_POLICY, Is.EqualTo(new Guid(0x45bcc044, 0xd885, 0x43e2, 0x86, 0x5, 0xee, 0xe, 0xc6, 0xe9, 0x6b, 0x59))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_BOOST_MODETest() + { + Assert.That(GUID_PROCESSOR_PERF_BOOST_MODE, Is.EqualTo(new Guid(0xbe337238, 0xd82, 0x4146, 0xa9, 0x60, 0x4f, 0x37, 0x49, 0xd4, 0x70, 0xc7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_AUTONOMOUS_MODETest() + { + Assert.That(GUID_PROCESSOR_PERF_AUTONOMOUS_MODE, Is.EqualTo(new Guid(0x8baa4a8a, 0x14c6, 0x4451, 0x8e, 0x8b, 0x14, 0xbd, 0xbd, 0x19, 0x75, 0x37))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCETest() + { + Assert.That(GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE, Is.EqualTo(new Guid(0x36687f9e, 0xe3a5, 0x4dbf, 0xb1, 0xdc, 0x15, 0xeb, 0x38, 0x1c, 0x68, 0x63))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1, Is.EqualTo(new Guid(0x36687f9e, 0xe3a5, 0x4dbf, 0xb1, 0xdc, 0x15, 0xeb, 0x38, 0x1c, 0x68, 0x64))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOWTest() + { + Assert.That(GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW, Is.EqualTo(new Guid(0xcfeda3d0, 0x7697, 0x4566, 0xa9, 0x22, 0xa9, 0x8, 0x6c, 0xd4, 0x9d, 0xfa))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_DUTY_CYCLINGTest() + { + Assert.That(GUID_PROCESSOR_DUTY_CYCLING, Is.EqualTo(new Guid(0x4e4450b3, 0x6179, 0x4e91, 0xb8, 0xf1, 0x5b, 0xb9, 0x93, 0x8f, 0x81, 0xa1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_IDLE_ALLOW_SCALINGTest() + { + Assert.That(GUID_PROCESSOR_IDLE_ALLOW_SCALING, Is.EqualTo(new Guid(0x6c2993b0, 0x8f48, 0x481f, 0xbc, 0xc6, 0x0, 0xdd, 0x27, 0x42, 0xaa, 0x6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_IDLE_DISABLETest() + { + Assert.That(GUID_PROCESSOR_IDLE_DISABLE, Is.EqualTo(new Guid(0x5d76a2ca, 0xe8c0, 0x402f, 0xa1, 0x33, 0x21, 0x58, 0x49, 0x2d, 0x58, 0xad))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_IDLE_STATE_MAXIMUMTest() + { + Assert.That(GUID_PROCESSOR_IDLE_STATE_MAXIMUM, Is.EqualTo(new Guid(0x9943e905, 0x9a30, 0x4ec1, 0x9b, 0x99, 0x44, 0xdd, 0x3b, 0x76, 0xf7, 0xa2))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_IDLE_TIME_CHECKTest() + { + Assert.That(GUID_PROCESSOR_IDLE_TIME_CHECK, Is.EqualTo(new Guid(0xc4581c31, 0x89ab, 0x4597, 0x8e, 0x2b, 0x9c, 0x9c, 0xab, 0x44, 0xe, 0x6b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD, Is.EqualTo(new Guid(0x4b92d758, 0x5a24, 0x4851, 0xa4, 0x70, 0x81, 0x5d, 0x78, 0xae, 0xe1, 0x19))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD, Is.EqualTo(new Guid(0x7b224883, 0xb3cc, 0x4d79, 0x81, 0x9f, 0x83, 0x74, 0x15, 0x2c, 0xbe, 0x7c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD, Is.EqualTo(new Guid(0xdf142941, 0x20f3, 0x4edf, 0x9a, 0x4a, 0x9c, 0x83, 0xd3, 0xd7, 0x17, 0xd1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD, Is.EqualTo(new Guid(0x68dd2f27, 0xa4ce, 0x4e11, 0x84, 0x87, 0x37, 0x94, 0xe4, 0x13, 0x5d, 0xfa))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICYTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY, Is.EqualTo(new Guid(0xc7be0679, 0x2817, 0x4d69, 0x9d, 0x02, 0x51, 0x9a, 0x53, 0x7e, 0xd0, 0xc6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICYTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY, Is.EqualTo(new Guid(0x71021b41, 0xc749, 0x4d21, 0xbe, 0x74, 0xa0, 0x0f, 0x33, 0x5d, 0x58, 0x2b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_MAX_CORESTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_MAX_CORES, Is.EqualTo(new Guid(0xea062031, 0x0e34, 0x4ff1, 0x9b, 0x6d, 0xeb, 0x10, 0x59, 0x33, 0x40, 0x28))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1Test() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1, Is.EqualTo(new Guid(0xea062031, 0x0e34, 0x4ff1, 0x9b, 0x6d, 0xeb, 0x10, 0x59, 0x33, 0x40, 0x29))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_MIN_CORESTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_MIN_CORES, Is.EqualTo(new Guid(0x0cc5b647, 0xc1df, 0x4637, 0x89, 0x1a, 0xde, 0xc3, 0x5c, 0x31, 0x85, 0x83))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1Test() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1, Is.EqualTo(new Guid(0x0cc5b647, 0xc1df, 0x4637, 0x89, 0x1a, 0xde, 0xc3, 0x5c, 0x31, 0x85, 0x84))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_INCREASE_TIMETest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME, Is.EqualTo(new Guid(0x2ddd5a84, 0x5a71, 0x437e, 0x91, 0x2a, 0xdb, 0x0b, 0x8c, 0x78, 0x87, 0x32))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_DECREASE_TIMETest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME, Is.EqualTo(new Guid(0xdfd10d17, 0xd5eb, 0x45dd, 0x87, 0x7a, 0x9a, 0x34, 0xdd, 0xd1, 0x5c, 0x82))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTORTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR, Is.EqualTo(new Guid(0x8f7b45e3, 0xc393, 0x480a, 0x87, 0x8c, 0xf6, 0x7a, 0xc3, 0xd0, 0x70, 0x82))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD, Is.EqualTo(new Guid(0x5b33697b, 0xe89d, 0x4d38, 0xaa, 0x46, 0x9e, 0x7d, 0xfb, 0x7c, 0xd2, 0xf9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTINGTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING, Is.EqualTo(new Guid(0xe70867f1, 0xfa2f, 0x4f4e, 0xae, 0xa1, 0x4d, 0x8a, 0x0b, 0xa2, 0x3b, 0x20))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTORTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR, Is.EqualTo(new Guid(0x1299023c, 0xbc28, 0x4f0a, 0x81, 0xec, 0xd3, 0x29, 0x5a, 0x8d, 0x81, 0x5d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD, Is.EqualTo(new Guid(0x9ac18e92, 0xaa3c, 0x4e27, 0xb3, 0x07, 0x01, 0xae, 0x37, 0x30, 0x71, 0x29))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTINGTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING, Is.EqualTo(new Guid(0x8809c2d8, 0xb155, 0x42d4, 0xbc, 0xda, 0x0d, 0x34, 0x56, 0x51, 0xb1, 0xdb))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD, Is.EqualTo(new Guid(0x943c8cb6, 0x6f93, 0x4227, 0xad, 0x87, 0xe9, 0xa3, 0xfe, 0xec, 0x08, 0xd1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PARKING_CORE_OVERRIDETest() + { + Assert.That(GUID_PROCESSOR_PARKING_CORE_OVERRIDE, Is.EqualTo(new Guid(0xa55612aa, 0xf624, 0x42c6, 0xa4, 0x43, 0x73, 0x97, 0xd0, 0x64, 0xc0, 0x4f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PARKING_PERF_STATETest() + { + Assert.That(GUID_PROCESSOR_PARKING_PERF_STATE, Is.EqualTo(new Guid(0x447235c7, 0x6a8d, 0x4cc0, 0x8e, 0x24, 0x9e, 0xaf, 0x70, 0xb9, 0x6e, 0x2b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PARKING_PERF_STATE_1Test() + { + Assert.That(GUID_PROCESSOR_PARKING_PERF_STATE_1, Is.EqualTo(new Guid(0x447235c7, 0x6a8d, 0x4cc0, 0x8e, 0x24, 0x9e, 0xaf, 0x70, 0xb9, 0x6e, 0x2c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD, Is.EqualTo(new Guid(0x2430ab6f, 0xa520, 0x44a2, 0x96, 0x01, 0xf7, 0xf2, 0x3b, 0x51, 0x34, 0xb1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD, Is.EqualTo(new Guid(0xf735a673, 0x2066, 0x4f80, 0xa0, 0xc5, 0xdd, 0xee, 0x0c, 0xf1, 0xbf, 0x5d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD, Is.EqualTo(new Guid(0x4bdaf4e9, 0xd103, 0x46d7, 0xa5, 0xf0, 0x62, 0x80, 0x12, 0x16, 0x16, 0xef))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_SOFT_PARKING_LATENCYTest() + { + Assert.That(GUID_PROCESSOR_SOFT_PARKING_LATENCY, Is.EqualTo(new Guid(0x97cfac41, 0x2217, 0x47eb, 0x99, 0x2d, 0x61, 0x8b, 0x19, 0x77, 0xc9, 0x7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_HISTORYTest() + { + Assert.That(GUID_PROCESSOR_PERF_HISTORY, Is.EqualTo(new Guid(0x7d24baa7, 0x0b84, 0x480f, 0x84, 0x0c, 0x1b, 0x07, 0x43, 0xc0, 0x0f, 0x5f))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_HISTORY_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_HISTORY_1, Is.EqualTo(new Guid(0x7d24baa7, 0x0b84, 0x480f, 0x84, 0x0c, 0x1b, 0x07, 0x43, 0xc0, 0x0f, 0x60))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_INCREASE_HISTORYTest() + { + Assert.That(GUID_PROCESSOR_PERF_INCREASE_HISTORY, Is.EqualTo(new Guid(0x99b3ef01, 0x752f, 0x46a1, 0x80, 0xfb, 0x77, 0x30, 0x1, 0x1f, 0x23, 0x54))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_DECREASE_HISTORYTest() + { + Assert.That(GUID_PROCESSOR_PERF_DECREASE_HISTORY, Is.EqualTo(new Guid(0x300f6f8, 0xabd6, 0x45a9, 0xb7, 0x4f, 0x49, 0x8, 0x69, 0x1a, 0x40, 0xb5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_CORE_PARKING_HISTORYTest() + { + Assert.That(GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY, Is.EqualTo(new Guid(0x77d7f282, 0x8f1a, 0x42cd, 0x85, 0x37, 0x45, 0x45, 0xa, 0x83, 0x9b, 0xe8))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_LATENCY_HINTTest() + { + Assert.That(GUID_PROCESSOR_PERF_LATENCY_HINT, Is.EqualTo(new Guid(0x0822df31, 0x9c83, 0x441c, 0xa0, 0x79, 0x0d, 0xe4, 0xcf, 0x00, 0x9c, 0x7b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_LATENCY_HINT_PERFTest() + { + Assert.That(GUID_PROCESSOR_PERF_LATENCY_HINT_PERF, Is.EqualTo(new Guid(0x619b7505, 0x3b, 0x4e82, 0xb7, 0xa6, 0x4d, 0xd2, 0x9c, 0x30, 0x9, 0x71))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1Test() + { + Assert.That(GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1, Is.EqualTo(new Guid(0x619b7505, 0x3b, 0x4e82, 0xb7, 0xa6, 0x4d, 0xd2, 0x9c, 0x30, 0x9, 0x72))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARKTest() + { + Assert.That(GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK, Is.EqualTo(new Guid(0x616cdaa5, 0x695e, 0x4545, 0x97, 0xad, 0x97, 0xdc, 0x2d, 0x1b, 0xdd, 0x88))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1Test() + { + Assert.That(GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1, Is.EqualTo(new Guid(0x616cdaa5, 0x695e, 0x4545, 0x97, 0xad, 0x97, 0xdc, 0x2d, 0x1b, 0xdd, 0x89))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_DISTRIBUTE_UTILITYTest() + { + Assert.That(GUID_PROCESSOR_DISTRIBUTE_UTILITY, Is.EqualTo(new Guid(0xe0007330, 0xf589, 0x42ed, 0xa4, 0x01, 0x5d, 0xdb, 0x10, 0xe7, 0x85, 0xd3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_HETEROGENEOUS_POLICYTest() + { + Assert.That(GUID_PROCESSOR_HETEROGENEOUS_POLICY, Is.EqualTo(new Guid(0x7f2f5cfa, 0xf10c, 0x4823, 0xb5, 0xe1, 0xe9, 0x3a, 0xe8, 0x5f, 0x46, 0xb5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_HETERO_DECREASE_TIMETest() + { + Assert.That(GUID_PROCESSOR_HETERO_DECREASE_TIME, Is.EqualTo(new Guid(0x7f2492b6, 0x60b1, 0x45e5, 0xae, 0x55, 0x77, 0x3f, 0x8c, 0xd5, 0xca, 0xec))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_HETERO_INCREASE_TIMETest() + { + Assert.That(GUID_PROCESSOR_HETERO_INCREASE_TIME, Is.EqualTo(new Guid(0x4009efa7, 0xe72d, 0x4cba, 0x9e, 0xdf, 0x91, 0x08, 0x4e, 0xa8, 0xcb, 0xc3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_HETERO_DECREASE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD, Is.EqualTo(new Guid(0xf8861c27, 0x95e7, 0x475c, 0x86, 0x5b, 0x13, 0xc0, 0xcb, 0x3f, 0x9d, 0x6b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_HETERO_INCREASE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD, Is.EqualTo(new Guid(0xb000397d, 0x9b0b, 0x483d, 0x98, 0xc9, 0x69, 0x2a, 0x60, 0x60, 0xcf, 0xbf))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CLASS0_FLOOR_PERFTest() + { + Assert.That(GUID_PROCESSOR_CLASS0_FLOOR_PERF, Is.EqualTo(new Guid(0xfddc842b, 0x8364, 0x4edc, 0x94, 0xcf, 0xc1, 0x7f, 0x60, 0xde, 0x1c, 0x80))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_CLASS1_INITIAL_PERFTest() + { + Assert.That(GUID_PROCESSOR_CLASS1_INITIAL_PERF, Is.EqualTo(new Guid(0x1facfc65, 0xa930, 0x4bc5, 0x9f, 0x38, 0x50, 0x4e, 0xc0, 0x97, 0xbb, 0xc0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_THREAD_SCHEDULING_POLICYTest() + { + Assert.That(GUID_PROCESSOR_THREAD_SCHEDULING_POLICY, Is.EqualTo(new Guid(0x93b8b6dc, 0x698, 0x4d1c, 0x9e, 0xe4, 0x6, 0x44, 0xe9, 0x0, 0xc8, 0x5d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICYTest() + { + Assert.That(GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY, Is.EqualTo(new Guid(0xbae08b81, 0x2d5e, 0x4688, 0xad, 0x6a, 0x13, 0x24, 0x33, 0x56, 0x65, 0x4b))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SYSTEM_COOLING_POLICYTest() + { + Assert.That(GUID_SYSTEM_COOLING_POLICY, Is.EqualTo(new Guid(0x94D3A615, 0xA899, 0x4AC5, 0xAE, 0x2B, 0xE4, 0xD8, 0xF6, 0x34, 0x36, 0x7F))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD, Is.EqualTo(new Guid(0x38b8383d, 0xcce0, 0x4c79, 0x9e, 0x3e, 0x56, 0xa4, 0xf1, 0x7c, 0xc4, 0x80))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1Test() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1, Is.EqualTo(new Guid(0x38b8383d, 0xcce0, 0x4c79, 0x9e, 0x3e, 0x56, 0xa4, 0xf1, 0x7c, 0xc4, 0x81))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLDTest() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD, Is.EqualTo(new Guid(0x3d44e256, 0x7222, 0x4415, 0xa9, 0xed, 0x9c, 0x45, 0xfa, 0x3d, 0xd8, 0x30))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1Test() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1, Is.EqualTo(new Guid(0x3d44e256, 0x7222, 0x4415, 0xa9, 0xed, 0x9c, 0x45, 0xfa, 0x3d, 0xd8, 0x31))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIMETest() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME, Is.EqualTo(new Guid(0xf565999f, 0x3fb0, 0x411a, 0xa2, 0x26, 0x3f, 0x1, 0x98, 0xde, 0xc1, 0x30))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1Test() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1, Is.EqualTo(new Guid(0xf565999f, 0x3fb0, 0x411a, 0xa2, 0x26, 0x3f, 0x1, 0x98, 0xde, 0xc1, 0x31))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIMETest() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME, Is.EqualTo(new Guid(0x3d915188, 0x7830, 0x49ae, 0xa7, 0x9a, 0xf, 0xb0, 0xa1, 0xe5, 0xa2, 0x0))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1Test() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1, Is.EqualTo(new Guid(0x3d915188, 0x7830, 0x49ae, 0xa7, 0x9a, 0xf, 0xb0, 0xa1, 0xe5, 0xa2, 0x1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILINGTest() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING, Is.EqualTo(new Guid(0x4427c73b, 0x9756, 0x4a5c, 0xb8, 0x4b, 0xc7, 0xbd, 0xa7, 0x9c, 0x73, 0x20))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1Test() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1, Is.EqualTo(new Guid(0x4427c73b, 0x9756, 0x4a5c, 0xb8, 0x4b, 0xc7, 0xbd, 0xa7, 0x9c, 0x73, 0x21))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOORTest() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR, Is.EqualTo(new Guid(0xce8e92ee, 0x6a86, 0x4572, 0xbf, 0xe0, 0x20, 0xc2, 0x1d, 0x3, 0xcd, 0x40))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1Test() + { + Assert.That(GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1, Is.EqualTo(new Guid(0xce8e92ee, 0x6a86, 0x4572, 0xbf, 0xe0, 0x20, 0xc2, 0x1d, 0x3, 0xcd, 0x41))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_LOCK_CONSOLE_ON_WAKETest() + { + Assert.That(GUID_LOCK_CONSOLE_ON_WAKE, Is.EqualTo(new Guid(0x0E796BDB, 0x100D, 0x47D6, 0xA2, 0xD5, 0xF7, 0xD2, 0xDA, 0xA5, 0x1F, 0x51))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DEVICE_IDLE_POLICYTest() + { + Assert.That(GUID_DEVICE_IDLE_POLICY, Is.EqualTo(new Guid(0x4faab71a, 0x92e5, 0x4726, 0xb5, 0x31, 0x22, 0x45, 0x59, 0x67, 0x2d, 0x19))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_CONNECTIVITY_IN_STANDBYTest() + { + Assert.That(GUID_CONNECTIVITY_IN_STANDBY, Is.EqualTo(new Guid(0xF15576E8, 0x98B7, 0x4186, 0xB9, 0x44, 0xEA, 0xFA, 0x66, 0x44, 0x02, 0xD9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_DISCONNECTED_STANDBY_MODETest() + { + Assert.That(GUID_DISCONNECTED_STANDBY_MODE, Is.EqualTo(new Guid(0x68AFB2D9, 0xEE95, 0x47A8, 0x8F, 0x50, 0x41, 0x15, 0x08, 0x80, 0x73, 0xB1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ACDC_POWER_SOURCETest() + { + Assert.That(GUID_ACDC_POWER_SOURCE, Is.EqualTo(new Guid(0x5D3E9A59, 0xE9D5, 0x4B00, 0xA6, 0xBD, 0xFF, 0x34, 0xFF, 0x51, 0x65, 0x48))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_LIDSWITCH_STATE_CHANGETest() + { + Assert.That(GUID_LIDSWITCH_STATE_CHANGE, Is.EqualTo(new Guid(0xBA3E0F4D, 0xB817, 0x4094, 0xA2, 0xD1, 0xD5, 0x63, 0x79, 0xE6, 0xA0, 0xF3))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_PERCENTAGE_REMAININGTest() + { + Assert.That(GUID_BATTERY_PERCENTAGE_REMAINING, Is.EqualTo(new Guid(0xA7AD8041, 0xB45A, 0x4CAE, 0x87, 0xA3, 0xEE, 0xCB, 0xB4, 0x68, 0xA9, 0xE1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BATTERY_COUNTTest() + { + Assert.That(GUID_BATTERY_COUNT, Is.EqualTo(new Guid(0x7d263f15, 0xfca4, 0x49e5, 0x85, 0x4b, 0xa9, 0xf2, 0xbf, 0xbd, 0x5c, 0x24))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_GLOBAL_USER_PRESENCETest() + { + Assert.That(GUID_GLOBAL_USER_PRESENCE, Is.EqualTo(new Guid(0x786e8a1d, 0xb427, 0x4344, 0x92, 0x7, 0x9, 0xe7, 0xb, 0xdc, 0xbe, 0xa9))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SESSION_DISPLAY_STATUSTest() + { + Assert.That(GUID_SESSION_DISPLAY_STATUS, Is.EqualTo(new Guid(0x2b84c20e, 0xad23, 0x4ddf, 0x93, 0xdb, 0x5, 0xff, 0xbd, 0x7e, 0xfc, 0xa5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SESSION_USER_PRESENCETest() + { + Assert.That(GUID_SESSION_USER_PRESENCE, Is.EqualTo(new Guid(0x3c0f4548, 0xc03f, 0x4c4d, 0xb9, 0xf2, 0x23, 0x7e, 0xde, 0x68, 0x63, 0x76))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_IDLE_BACKGROUND_TASKTest() + { + Assert.That(GUID_IDLE_BACKGROUND_TASK, Is.EqualTo(new Guid(0x515C31D8, 0xF734, 0x163D, 0xA0, 0xFD, 0x11, 0xA0, 0x8C, 0x91, 0xE8, 0xF1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_BACKGROUND_TASK_NOTIFICATIONTest() + { + Assert.That(GUID_BACKGROUND_TASK_NOTIFICATION, Is.EqualTo(new Guid(0xCF23F240, 0x2A54, 0x48D8, 0xB1, 0x14, 0xDE, 0x15, 0x18, 0xFF, 0x05, 0x2E))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_APPLAUNCH_BUTTONTest() + { + Assert.That(GUID_APPLAUNCH_BUTTON, Is.EqualTo(new Guid(0x1A689231, 0x7399, 0x4E9A, 0x8F, 0x99, 0xB7, 0x1F, 0x99, 0x9D, 0xB3, 0xFA))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PCIEXPRESS_SETTINGS_SUBGROUPTest() + { + Assert.That(GUID_PCIEXPRESS_SETTINGS_SUBGROUP, Is.EqualTo(new Guid(0x501a4d13, 0x42af, 0x4429, 0x9f, 0xd1, 0xa8, 0x21, 0x8c, 0x26, 0x8e, 0x20))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_PCIEXPRESS_ASPM_POLICYTest() + { + Assert.That(GUID_PCIEXPRESS_ASPM_POLICY, Is.EqualTo(new Guid(0xee12f906, 0xd277, 0x404b, 0xb6, 0xda, 0xe5, 0xfa, 0x1a, 0x57, 0x6d, 0xf5))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_ENABLE_SWITCH_FORCED_SHUTDOWNTest() + { + Assert.That(GUID_ENABLE_SWITCH_FORCED_SHUTDOWN, Is.EqualTo(new Guid(0x833a6b62, 0xdfa4, 0x46d1, 0x82, 0xf8, 0xe0, 0x9e, 0x34, 0xd0, 0x29, 0xd6))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_INTSTEER_SUBGROUPTest() + { + Assert.That(GUID_INTSTEER_SUBGROUP, Is.EqualTo(new Guid(0x48672f38, 0x7a9a, 0x4bb2, 0x8b, 0xf8, 0x3d, 0x85, 0xbe, 0x19, 0xde, 0x4e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_INTSTEER_MODETest() + { + Assert.That(GUID_INTSTEER_MODE, Is.EqualTo(new Guid(0x2bfc24f9, 0x5ea2, 0x4801, 0x82, 0x13, 0x3d, 0xba, 0xe0, 0x1a, 0xa3, 0x9d))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_INTSTEER_LOAD_PER_PROC_TRIGGERTest() + { + Assert.That(GUID_INTSTEER_LOAD_PER_PROC_TRIGGER, Is.EqualTo(new Guid(0x73cde64d, 0xd720, 0x4bb2, 0xa8, 0x60, 0xc7, 0x55, 0xaf, 0xe7, 0x7e, 0xf2))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_INTSTEER_TIME_UNPARK_TRIGGERTest() + { + Assert.That(GUID_INTSTEER_TIME_UNPARK_TRIGGER, Is.EqualTo(new Guid(0xd6ba4903, 0x386f, 0x4c2c, 0x8a, 0xdb, 0x5c, 0x21, 0xb3, 0x32, 0x8d, 0x25))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_GRAPHICS_SUBGROUPTest() + { + Assert.That(GUID_GRAPHICS_SUBGROUP, Is.EqualTo(new Guid(0x5fb4938d, 0x1ee8, 0x4b0f, 0x9a, 0x3c, 0x50, 0x36, 0xb0, 0xab, 0x99, 0x5c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_GPU_PREFERENCE_POLICYTest() + { + Assert.That(GUID_GPU_PREFERENCE_POLICY, Is.EqualTo(new Guid(0xdd848b2a, 0x8a5d, 0x4451, 0x9a, 0xe2, 0x39, 0xcd, 0x41, 0x65, 0x8f, 0x6c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_MIXED_REALITY_MODETest() + { + Assert.That(GUID_MIXED_REALITY_MODE, Is.EqualTo(new Guid(0x1e626b4e, 0xcf04, 0x4f8d, 0x9c, 0xc7, 0xc9, 0x7c, 0x5b, 0xf, 0x23, 0x91))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void GUID_SPR_ACTIVE_SESSION_CHANGETest() + { + Assert.That(GUID_SPR_ACTIVE_SESSION_CHANGE, Is.EqualTo(new Guid(0xe24ce38, 0xc393, 0x4742, 0xbd, 0xb1, 0x74, 0x4f, 0x4b, 0x9e, 0xe0, 0x8e))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/winnt/PPMTests.cs b/tests/Interop/Windows/Windows/um/winnt/PPMTests.cs new file mode 100644 index 0000000000..43edd2ab13 --- /dev/null +++ b/tests/Interop/Windows/Windows/um/winnt/PPMTests.cs @@ -0,0 +1,85 @@ +// Copyright © Tanner Gooding and Contributors. Licensed under the MIT License (MIT). See License.md in the repository root for more information. + +// Ported from um/winnt.h in the Windows SDK for Windows 10.0.20348.0 +// Original source is Copyright © Microsoft. All rights reserved. + +using NUnit.Framework; +using System; +using static TerraFX.Interop.Windows.PPM; + +namespace TerraFX.Interop.Windows.UnitTests +{ + /// Provides validation of the class. + public static partial class PPMTests + { + /// Validates that the value of the property is correct. + [Test] + public static void PPM_PERFSTATE_CHANGE_GUIDTest() + { + Assert.That(PPM_PERFSTATE_CHANGE_GUID, Is.EqualTo(new Guid(0xa5b32ddd, 0x7f39, 0x4abc, 0xb8, 0x92, 0x90, 0xe, 0x43, 0xb5, 0x9e, 0xbb))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_PERFSTATE_DOMAIN_CHANGE_GUIDTest() + { + Assert.That(PPM_PERFSTATE_DOMAIN_CHANGE_GUID, Is.EqualTo(new Guid(0x995e6b7f, 0xd653, 0x497a, 0xb9, 0x78, 0x36, 0xa3, 0xc, 0x29, 0xbf, 0x1))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_IDLESTATE_CHANGE_GUIDTest() + { + Assert.That(PPM_IDLESTATE_CHANGE_GUID, Is.EqualTo(new Guid(0x4838fe4f, 0xf71c, 0x4e51, 0x9e, 0xcc, 0x84, 0x30, 0xa7, 0xac, 0x4c, 0x6c))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_PERFSTATES_DATA_GUIDTest() + { + Assert.That(PPM_PERFSTATES_DATA_GUID, Is.EqualTo(new Guid(0x5708cc20, 0x7d40, 0x4bf4, 0xb4, 0xaa, 0x2b, 0x01, 0x33, 0x8d, 0x01, 0x26))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_IDLESTATES_DATA_GUIDTest() + { + Assert.That(PPM_IDLESTATES_DATA_GUID, Is.EqualTo(new Guid(0xba138e10, 0xe250, 0x4ad7, 0x86, 0x16, 0xcf, 0x1a, 0x7a, 0xd4, 0x10, 0xe7))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_IDLE_ACCOUNTING_GUIDTest() + { + Assert.That(PPM_IDLE_ACCOUNTING_GUID, Is.EqualTo(new Guid(0xe2a26f78, 0xae07, 0x4ee0, 0xa3, 0x0f, 0xce, 0x54, 0xf5, 0x5a, 0x94, 0xcd))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_IDLE_ACCOUNTING_EX_GUIDTest() + { + Assert.That(PPM_IDLE_ACCOUNTING_EX_GUID, Is.EqualTo(new Guid(0xd67abd39, 0x81f8, 0x4a5e, 0x81, 0x52, 0x72, 0xe3, 0x1e, 0xc9, 0x12, 0xee))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_THERMALCONSTRAINT_GUIDTest() + { + Assert.That(PPM_THERMALCONSTRAINT_GUID, Is.EqualTo(new Guid(0xa852c2c8, 0x1a4c, 0x423b, 0x8c, 0x2c, 0xf3, 0x0d, 0x82, 0x93, 0x1a, 0x88))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_PERFMON_PERFSTATE_GUIDTest() + { + Assert.That(PPM_PERFMON_PERFSTATE_GUID, Is.EqualTo(new Guid(0x7fd18652, 0xcfe, 0x40d2, 0xb0, 0xa1, 0xb, 0x6, 0x6a, 0x87, 0x75, 0x9e))); + } + + /// Validates that the value of the property is correct. + [Test] + public static void PPM_THERMAL_POLICY_CHANGE_GUIDTest() + { + Assert.That(PPM_THERMAL_POLICY_CHANGE_GUID, Is.EqualTo(new Guid(0x48f377b8, 0x6880, 0x4c7b, 0x8b, 0xdc, 0x38, 0x1, 0x76, 0xc6, 0x65, 0x4d))); + } + } +} diff --git a/tests/Interop/Windows/Windows/um/winnt/WindowsTests.cs b/tests/Interop/Windows/Windows/um/winnt/WindowsTests.cs index ec003a940c..3d96ab44b5 100644 --- a/tests/Interop/Windows/Windows/um/winnt/WindowsTests.cs +++ b/tests/Interop/Windows/Windows/um/winnt/WindowsTests.cs @@ -10,29 +10,8 @@ namespace TerraFX.Interop.Windows.UnitTests { /// Provides validation of the class. - public static unsafe partial class WindowsTests + public static partial class WindowsTests { - /// Validates that the value of the property is correct. - [Test] - public static void GUID_MAX_POWER_SAVINGSTest() - { - Assert.That(GUID_MAX_POWER_SAVINGS, Is.EqualTo(new Guid(0xA1841308, 0x3541, 0x4FAB, 0xBC, 0x81, 0xF7, 0x15, 0x56, 0xF2, 0x0B, 0x4A))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_MIN_POWER_SAVINGSTest() - { - Assert.That(GUID_MIN_POWER_SAVINGS, Is.EqualTo(new Guid(0x8C5E7FDA, 0xE8BF, 0x4A96, 0x9A, 0x85, 0xA6, 0xE2, 0x3A, 0x8C, 0x63, 0x5C))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_TYPICAL_POWER_SAVINGSTest() - { - Assert.That(GUID_TYPICAL_POWER_SAVINGS, Is.EqualTo(new Guid(0x381B4222, 0xF694, 0x41F0, 0x96, 0x85, 0xFF, 0x5B, 0xB2, 0x60, 0xDF, 0x2E))); - } - /// Validates that the value of the property is correct. [Test] public static void NO_SUBGROUP_GUIDTest() @@ -46,1440 +25,5 @@ public static void ALL_POWERSCHEMES_GUIDTest() { Assert.That(ALL_POWERSCHEMES_GUID, Is.EqualTo(new Guid(0x68A1E95E, 0x13EA, 0x41E1, 0x80, 0x11, 0x0C, 0x49, 0x6C, 0xA4, 0x90, 0xB0))); } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_POWERSCHEME_PERSONALITYTest() - { - Assert.That(GUID_POWERSCHEME_PERSONALITY, Is.EqualTo(new Guid(0x245D8541, 0x3943, 0x4422, 0xB0, 0x25, 0x13, 0xA7, 0x84, 0xF6, 0x79, 0xB7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ACTIVE_POWERSCHEMETest() - { - Assert.That(GUID_ACTIVE_POWERSCHEME, Is.EqualTo(new Guid(0x31F9F286, 0x5084, 0x42FE, 0xB7, 0x20, 0x2B, 0x02, 0x64, 0x99, 0x37, 0x63))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_IDLE_RESILIENCY_SUBGROUPTest() - { - Assert.That(GUID_IDLE_RESILIENCY_SUBGROUP, Is.EqualTo(new Guid(0x2e601130, 0x5351, 0x4d9d, 0x8e, 0x4, 0x25, 0x29, 0x66, 0xba, 0xd0, 0x54))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_IDLE_RESILIENCY_PERIODTest() - { - Assert.That(GUID_IDLE_RESILIENCY_PERIOD, Is.EqualTo(new Guid(0xc42b79aa, 0xaa3a, 0x484b, 0xa9, 0x8f, 0x2c, 0xf3, 0x2a, 0xa9, 0xa, 0x28))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DEEP_SLEEP_ENABLEDTest() - { - Assert.That(GUID_DEEP_SLEEP_ENABLED, Is.EqualTo(new Guid(0xd502f7ee, 0x1dc7, 0x4efd, 0xa5, 0x5d, 0xf0, 0x4b, 0x6f, 0x5c, 0x5, 0x45))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DEEP_SLEEP_PLATFORM_STATETest() - { - Assert.That(GUID_DEEP_SLEEP_PLATFORM_STATE, Is.EqualTo(new Guid(0xd23f2fb8, 0x9536, 0x4038, 0x9c, 0x94, 0x1c, 0xe0, 0x2e, 0x5c, 0x21, 0x52))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_COALESCING_POWERDOWN_TIMEOUTTest() - { - Assert.That(GUID_DISK_COALESCING_POWERDOWN_TIMEOUT, Is.EqualTo(new Guid(0xc36f0eb4, 0x2988, 0x4a70, 0x8e, 0xee, 0x8, 0x84, 0xfc, 0x2c, 0x24, 0x33))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUTTest() - { - Assert.That(GUID_EXECUTION_REQUIRED_REQUEST_TIMEOUT, Is.EqualTo(new Guid(0x3166bc41, 0x7e98, 0x4e03, 0xb3, 0x4e, 0xec, 0xf, 0x5f, 0x2b, 0x21, 0x8e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_SUBGROUPTest() - { - Assert.That(GUID_VIDEO_SUBGROUP, Is.EqualTo(new Guid(0x7516B95F, 0xF776, 0x4464, 0x8C, 0x53, 0x06, 0x16, 0x7F, 0x40, 0xCC, 0x99))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_POWERDOWN_TIMEOUTTest() - { - Assert.That(GUID_VIDEO_POWERDOWN_TIMEOUT, Is.EqualTo(new Guid(0x3C0BC021, 0xC8A8, 0x4E07, 0xA9, 0x73, 0x6B, 0x14, 0xCB, 0xCB, 0x2B, 0x7E))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_ANNOYANCE_TIMEOUTTest() - { - Assert.That(GUID_VIDEO_ANNOYANCE_TIMEOUT, Is.EqualTo(new Guid(0x82DBCF2D, 0xCD67, 0x40C5, 0xBF, 0xDC, 0x9F, 0x1A, 0x5C, 0xCD, 0x46, 0x63))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_ADAPTIVE_PERCENT_INCREASETest() - { - Assert.That(GUID_VIDEO_ADAPTIVE_PERCENT_INCREASE, Is.EqualTo(new Guid(0xEED904DF, 0xB142, 0x4183, 0xB1, 0x0B, 0x5A, 0x11, 0x97, 0xA3, 0x78, 0x64))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_DIM_TIMEOUTTest() - { - Assert.That(GUID_VIDEO_DIM_TIMEOUT, Is.EqualTo(new Guid(0x17aaa29b, 0x8b43, 0x4b94, 0xaa, 0xfe, 0x35, 0xf6, 0x4d, 0xaa, 0xf1, 0xee))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_ADAPTIVE_POWERDOWNTest() - { - Assert.That(GUID_VIDEO_ADAPTIVE_POWERDOWN, Is.EqualTo(new Guid(0x90959D22, 0xD6A1, 0x49B9, 0xAF, 0x93, 0xBC, 0xE8, 0x85, 0xAD, 0x33, 0x5B))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_MONITOR_POWER_ONTest() - { - Assert.That(GUID_MONITOR_POWER_ON, Is.EqualTo(new Guid(0x02731015, 0x4510, 0x4526, 0x99, 0xE6, 0xE5, 0xA1, 0x7E, 0xBD, 0x1A, 0xEA))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESSTest() - { - Assert.That(GUID_DEVICE_POWER_POLICY_VIDEO_BRIGHTNESS, Is.EqualTo(new Guid(0xaded5e82, 0xb909, 0x4619, 0x99, 0x49, 0xf5, 0xd7, 0x1d, 0xac, 0x0b, 0xcb))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESSTest() - { - Assert.That(GUID_DEVICE_POWER_POLICY_VIDEO_DIM_BRIGHTNESS, Is.EqualTo(new Guid(0xf1fbfde2, 0xa960, 0x4165, 0x9f, 0x88, 0x50, 0x66, 0x79, 0x11, 0xce, 0x96))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESSTest() - { - Assert.That(GUID_VIDEO_CURRENT_MONITOR_BRIGHTNESS, Is.EqualTo(new Guid(0x8ffee2c6, 0x2d01, 0x46be, 0xad, 0xb9, 0x39, 0x8a, 0xdd, 0xc5, 0xb4, 0xff))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESSTest() - { - Assert.That(GUID_VIDEO_ADAPTIVE_DISPLAY_BRIGHTNESS, Is.EqualTo(new Guid(0xFBD9AA66, 0x9553, 0x4097, 0xBA, 0x44, 0xED, 0x6E, 0x9D, 0x65, 0xEA, 0xB8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_CONSOLE_DISPLAY_STATETest() - { - Assert.That(GUID_CONSOLE_DISPLAY_STATE, Is.EqualTo(new Guid(0x6fe69556, 0x704a, 0x47a0, 0x8f, 0x24, 0xc2, 0x8d, 0x93, 0x6f, 0xda, 0x47))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ALLOW_DISPLAY_REQUIREDTest() - { - Assert.That(GUID_ALLOW_DISPLAY_REQUIRED, Is.EqualTo(new Guid(0xA9CEB8DA, 0xCD46, 0x44FB, 0xA9, 0x8B, 0x02, 0xAF, 0x69, 0xDE, 0x46, 0x23))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_VIDEO_CONSOLE_LOCK_TIMEOUTTest() - { - Assert.That(GUID_VIDEO_CONSOLE_LOCK_TIMEOUT, Is.EqualTo(new Guid(0x8ec4b3a5, 0x6868, 0x48c2, 0xbe, 0x75, 0x4f, 0x30, 0x44, 0xbe, 0x88, 0xa7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ADVANCED_COLOR_QUALITY_BIASTest() - { - Assert.That(GUID_ADVANCED_COLOR_QUALITY_BIAS, Is.EqualTo(new Guid(0x684c3e69, 0xa4f7, 0x4014, 0x87, 0x54, 0xd4, 0x51, 0x79, 0xa5, 0x61, 0x67))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUPTest() - { - Assert.That(GUID_ADAPTIVE_POWER_BEHAVIOR_SUBGROUP, Is.EqualTo(new Guid(0x8619b916, 0xe004, 0x4dd8, 0x9b, 0x66, 0xda, 0xe8, 0x6f, 0x80, 0x66, 0x98))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_NON_ADAPTIVE_INPUT_TIMEOUTTest() - { - Assert.That(GUID_NON_ADAPTIVE_INPUT_TIMEOUT, Is.EqualTo(new Guid(0x5adbbfbc, 0x74e, 0x4da1, 0xba, 0x38, 0xdb, 0x8b, 0x36, 0xb2, 0xc8, 0xf3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ADAPTIVE_INPUT_CONTROLLER_STATETest() - { - Assert.That(GUID_ADAPTIVE_INPUT_CONTROLLER_STATE, Is.EqualTo(new Guid(0xe98fae9, 0xf45a, 0x4de1, 0xa7, 0x57, 0x60, 0x31, 0xf1, 0x97, 0xf6, 0xea))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_SUBGROUPTest() - { - Assert.That(GUID_DISK_SUBGROUP, Is.EqualTo(new Guid(0x0012EE47, 0x9041, 0x4B5D, 0x9B, 0x77, 0x53, 0x5F, 0xBA, 0x8B, 0x14, 0x42))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_MAX_POWERTest() - { - Assert.That(GUID_DISK_MAX_POWER, Is.EqualTo(new Guid(0x51dea550, 0xbb38, 0x4bc4, 0x99, 0x1b, 0xea, 0xcf, 0x37, 0xbe, 0x5e, 0xc8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_POWERDOWN_TIMEOUTTest() - { - Assert.That(GUID_DISK_POWERDOWN_TIMEOUT, Is.EqualTo(new Guid(0x6738E2C4, 0xE8A5, 0x4A42, 0xB1, 0x6A, 0xE0, 0x40, 0xE7, 0x69, 0x75, 0x6E))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_IDLE_TIMEOUTTest() - { - Assert.That(GUID_DISK_IDLE_TIMEOUT, Is.EqualTo(new Guid(0x58E39BA8, 0xB8E6, 0x4EF6, 0x90, 0xD0, 0x89, 0xAE, 0x32, 0xB2, 0x58, 0xD6))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_BURST_IGNORE_THRESHOLDTest() - { - Assert.That(GUID_DISK_BURST_IGNORE_THRESHOLD, Is.EqualTo(new Guid(0x80e3c60e, 0xbb94, 0x4ad8, 0xbb, 0xe0, 0x0d, 0x31, 0x95, 0xef, 0xc6, 0x63))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_ADAPTIVE_POWERDOWNTest() - { - Assert.That(GUID_DISK_ADAPTIVE_POWERDOWN, Is.EqualTo(new Guid(0x396A32E1, 0x499A, 0x40B2, 0x91, 0x24, 0xA9, 0x6A, 0xFE, 0x70, 0x76, 0x67))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISK_NVME_NOPPMETest() - { - Assert.That(GUID_DISK_NVME_NOPPME, Is.EqualTo(new Guid(0xfc7372b6, 0xab2d, 0x43ee, 0x87, 0x97, 0x15, 0xe9, 0x84, 0x1f, 0x2c, 0xca))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SLEEP_SUBGROUPTest() - { - Assert.That(GUID_SLEEP_SUBGROUP, Is.EqualTo(new Guid(0x238C9FA8, 0x0AAD, 0x41ED, 0x83, 0xF4, 0x97, 0xBE, 0x24, 0x2C, 0x8F, 0x20))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SLEEP_IDLE_THRESHOLDTest() - { - Assert.That(GUID_SLEEP_IDLE_THRESHOLD, Is.EqualTo(new Guid(0x81cd32e0, 0x7833, 0x44f3, 0x87, 0x37, 0x70, 0x81, 0xf3, 0x8d, 0x1f, 0x70))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_STANDBY_TIMEOUTTest() - { - Assert.That(GUID_STANDBY_TIMEOUT, Is.EqualTo(new Guid(0x29F6C1DB, 0x86DA, 0x48C5, 0x9F, 0xDB, 0xF2, 0xB6, 0x7B, 0x1F, 0x44, 0xDA))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_UNATTEND_SLEEP_TIMEOUTTest() - { - Assert.That(GUID_UNATTEND_SLEEP_TIMEOUT, Is.EqualTo(new Guid(0x7bc4a2f9, 0xd8fc, 0x4469, 0xb0, 0x7b, 0x33, 0xeb, 0x78, 0x5a, 0xac, 0xa0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_HIBERNATE_TIMEOUTTest() - { - Assert.That(GUID_HIBERNATE_TIMEOUT, Is.EqualTo(new Guid(0x9D7815A6, 0x7EE4, 0x497E, 0x88, 0x88, 0x51, 0x5A, 0x05, 0xF0, 0x23, 0x64))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_HIBERNATE_FASTS4_POLICYTest() - { - Assert.That(GUID_HIBERNATE_FASTS4_POLICY, Is.EqualTo(new Guid(0x94AC6D29, 0x73CE, 0x41A6, 0x80, 0x9F, 0x63, 0x63, 0xBA, 0x21, 0xB4, 0x7E))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_CRITICAL_POWER_TRANSITIONTest() - { - Assert.That(GUID_CRITICAL_POWER_TRANSITION, Is.EqualTo(new Guid(0xB7A27025, 0xE569, 0x46c2, 0xA5, 0x04, 0x2B, 0x96, 0xCA, 0xD2, 0x25, 0xA1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SYSTEM_AWAYMODETest() - { - Assert.That(GUID_SYSTEM_AWAYMODE, Is.EqualTo(new Guid(0x98A7F580, 0x01F7, 0x48AA, 0x9C, 0x0F, 0x44, 0x35, 0x2C, 0x29, 0xE5, 0xC0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ALLOW_AWAYMODETest() - { - Assert.That(GUID_ALLOW_AWAYMODE, Is.EqualTo(new Guid(0x25dfa149, 0x5dd1, 0x4736, 0xb5, 0xab, 0xe8, 0xa3, 0x7b, 0x5b, 0x81, 0x87))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_USER_PRESENCE_PREDICTIONTest() - { - Assert.That(GUID_USER_PRESENCE_PREDICTION, Is.EqualTo(new Guid(0x82011705, 0xfb95, 0x4d46, 0x8d, 0x35, 0x40, 0x42, 0xb1, 0xd2, 0xd, 0xef))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_STANDBY_BUDGET_GRACE_PERIODTest() - { - Assert.That(GUID_STANDBY_BUDGET_GRACE_PERIOD, Is.EqualTo(new Guid(0x60c07fe1, 0x0556, 0x45cf, 0x99, 0x03, 0xd5, 0x6e, 0x32, 0x21, 0x2, 0x42))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_STANDBY_BUDGET_PERCENTTest() - { - Assert.That(GUID_STANDBY_BUDGET_PERCENT, Is.EqualTo(new Guid(0x9fe527be, 0x1b70, 0x48da, 0x93, 0x0d, 0x7b, 0xcf, 0x17, 0xb4, 0x49, 0x90))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_STANDBY_RESERVE_GRACE_PERIODTest() - { - Assert.That(GUID_STANDBY_RESERVE_GRACE_PERIOD, Is.EqualTo(new Guid(0xc763ee92, 0x71e8, 0x4127, 0x84, 0xeb, 0xf6, 0xed, 0x04, 0x3a, 0x3e, 0x3d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_STANDBY_RESERVE_TIMETest() - { - Assert.That(GUID_STANDBY_RESERVE_TIME, Is.EqualTo(new Guid(0x468FE7E5, 0x1158, 0x46EC, 0x88, 0xbc, 0x5b, 0x96, 0xc9, 0xe4, 0x4f, 0xd0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_STANDBY_RESET_PERCENTTest() - { - Assert.That(GUID_STANDBY_RESET_PERCENT, Is.EqualTo(new Guid(0x49cb11a5, 0x56e2, 0x4afb, 0x9d, 0x38, 0x3d, 0xf4, 0x78, 0x72, 0xe2, 0x1b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ALLOW_STANDBY_STATESTest() - { - Assert.That(GUID_ALLOW_STANDBY_STATES, Is.EqualTo(new Guid(0xabfc2519, 0x3608, 0x4c2a, 0x94, 0xea, 0x17, 0x1b, 0x0e, 0xd5, 0x46, 0xab))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ALLOW_RTC_WAKETest() - { - Assert.That(GUID_ALLOW_RTC_WAKE, Is.EqualTo(new Guid(0xBD3B718A, 0x0680, 0x4D9D, 0x8A, 0xB2, 0xE1, 0xD2, 0xB4, 0xAC, 0x80, 0x6D))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_LEGACY_RTC_MITIGATIONTest() - { - Assert.That(GUID_LEGACY_RTC_MITIGATION, Is.EqualTo(new Guid(0x1A34BDC3, 0x7E6B, 0x442E, 0xA9, 0xD0, 0x64, 0xB6, 0xEF, 0x37, 0x8E, 0x84))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ALLOW_SYSTEM_REQUIREDTest() - { - Assert.That(GUID_ALLOW_SYSTEM_REQUIRED, Is.EqualTo(new Guid(0xA4B195F5, 0x8225, 0x47D8, 0x80, 0x12, 0x9D, 0x41, 0x36, 0x97, 0x86, 0xE2))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_POWER_SAVING_STATUSTest() - { - Assert.That(GUID_POWER_SAVING_STATUS, Is.EqualTo(new Guid(0xe00958c0, 0xc213, 0x4ace, 0xac, 0x77, 0xfe, 0xcc, 0xed, 0x2e, 0xee, 0xa5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ENERGY_SAVER_SUBGROUPTest() - { - Assert.That(GUID_ENERGY_SAVER_SUBGROUP, Is.EqualTo(new Guid(0xDE830923, 0xA562, 0x41AF, 0xA0, 0x86, 0xE3, 0xA2, 0xC6, 0xBA, 0xD2, 0xDA))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ENERGY_SAVER_BATTERY_THRESHOLDTest() - { - Assert.That(GUID_ENERGY_SAVER_BATTERY_THRESHOLD, Is.EqualTo(new Guid(0xE69653CA, 0xCF7F, 0x4F05, 0xAA, 0x73, 0xCB, 0x83, 0x3F, 0xA9, 0x0A, 0xD4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ENERGY_SAVER_BRIGHTNESSTest() - { - Assert.That(GUID_ENERGY_SAVER_BRIGHTNESS, Is.EqualTo(new Guid(0x13D09884, 0xF74E, 0x474A, 0xA8, 0x52, 0xB6, 0xBD, 0xE8, 0xAD, 0x03, 0xA8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ENERGY_SAVER_POLICYTest() - { - Assert.That(GUID_ENERGY_SAVER_POLICY, Is.EqualTo(new Guid(0x5c5bb349, 0xad29, 0x4ee2, 0x9d, 0xb, 0x2b, 0x25, 0x27, 0xf, 0x7a, 0x81))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SYSTEM_BUTTON_SUBGROUPTest() - { - Assert.That(GUID_SYSTEM_BUTTON_SUBGROUP, Is.EqualTo(new Guid(0x4F971E89, 0xEEBD, 0x4455, 0xA8, 0xDE, 0x9E, 0x59, 0x04, 0x0E, 0x73, 0x47))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_POWERBUTTON_ACTIONTest() - { - Assert.That(GUID_POWERBUTTON_ACTION, Is.EqualTo(new Guid(0x7648EFA3, 0xDD9C, 0x4E3E, 0xB5, 0x66, 0x50, 0xF9, 0x29, 0x38, 0x62, 0x80))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SLEEPBUTTON_ACTIONTest() - { - Assert.That(GUID_SLEEPBUTTON_ACTION, Is.EqualTo(new Guid(0x96996BC0, 0xAD50, 0x47EC, 0x92, 0x3B, 0x6F, 0x41, 0x87, 0x4D, 0xD9, 0xEB))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_USERINTERFACEBUTTON_ACTIONTest() - { - Assert.That(GUID_USERINTERFACEBUTTON_ACTION, Is.EqualTo(new Guid(0xA7066653, 0x8D6C, 0x40A8, 0x91, 0x0E, 0xA1, 0xF5, 0x4B, 0x84, 0xC7, 0xE5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_LIDCLOSE_ACTIONTest() - { - Assert.That(GUID_LIDCLOSE_ACTION, Is.EqualTo(new Guid(0x5CA83367, 0x6E45, 0x459F, 0xA2, 0x7B, 0x47, 0x6B, 0x1D, 0x01, 0xC9, 0x36))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_LIDOPEN_POWERSTATETest() - { - Assert.That(GUID_LIDOPEN_POWERSTATE, Is.EqualTo(new Guid(0x99FF10E7, 0x23B1, 0x4C07, 0xA9, 0xD1, 0x5C, 0x32, 0x06, 0xD7, 0x41, 0xB4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_SUBGROUPTest() - { - Assert.That(GUID_BATTERY_SUBGROUP, Is.EqualTo(new Guid(0xE73A048D, 0xBF27, 0x4F12, 0x97, 0x31, 0x8B, 0x20, 0x76, 0xE8, 0x89, 0x1F))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_ACTION_0Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_ACTION_0, Is.EqualTo(new Guid(0x637EA02F, 0xBBCB, 0x4015, 0x8E, 0x2C, 0xA1, 0xC7, 0xB9, 0xC0, 0xB5, 0x46))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_LEVEL_0Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_0, Is.EqualTo(new Guid(0x9A66D8D7, 0x4FF7, 0x4EF9, 0xB5, 0xA2, 0x5A, 0x32, 0x6C, 0xA2, 0xA4, 0x69))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_FLAGS_0Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_0, Is.EqualTo(new Guid(0x5dbb7c9f, 0x38e9, 0x40d2, 0x97, 0x49, 0x4f, 0x8a, 0x0e, 0x9f, 0x64, 0x0f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_ACTION_1Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_ACTION_1, Is.EqualTo(new Guid(0xD8742DCB, 0x3E6A, 0x4B3C, 0xB3, 0xFE, 0x37, 0x46, 0x23, 0xCD, 0xCF, 0x06))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_LEVEL_1Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_1, Is.EqualTo(new Guid(0x8183BA9A, 0xE910, 0x48DA, 0x87, 0x69, 0x14, 0xAE, 0x6D, 0xC1, 0x17, 0x0A))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_FLAGS_1Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_1, Is.EqualTo(new Guid(0xbcded951, 0x187b, 0x4d05, 0xbc, 0xcc, 0xf7, 0xe5, 0x19, 0x60, 0xc2, 0x58))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_ACTION_2Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_ACTION_2, Is.EqualTo(new Guid(0x421CBA38, 0x1A8E, 0x4881, 0xAC, 0x89, 0xE3, 0x3A, 0x8B, 0x04, 0xEC, 0xE4))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_LEVEL_2Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_2, Is.EqualTo(new Guid(0x07A07CA2, 0xADAF, 0x40D7, 0xB0, 0x77, 0x53, 0x3A, 0xAD, 0xED, 0x1B, 0xFA))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_FLAGS_2Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_2, Is.EqualTo(new Guid(0x7fd2f0c4, 0xfeb7, 0x4da3, 0x81, 0x17, 0xe3, 0xfb, 0xed, 0xc4, 0x65, 0x82))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_ACTION_3Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_ACTION_3, Is.EqualTo(new Guid(0x80472613, 0x9780, 0x455E, 0xB3, 0x08, 0x72, 0xD3, 0x00, 0x3C, 0xF2, 0xF8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_LEVEL_3Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_LEVEL_3, Is.EqualTo(new Guid(0x58AFD5A6, 0xC2DD, 0x47D2, 0x9F, 0xBF, 0xEF, 0x70, 0xCC, 0x5C, 0x59, 0x65))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_DISCHARGE_FLAGS_3Test() - { - Assert.That(GUID_BATTERY_DISCHARGE_FLAGS_3, Is.EqualTo(new Guid(0x73613ccf, 0xdbfa, 0x4279, 0x83, 0x56, 0x49, 0x35, 0xf6, 0xbf, 0x62, 0xf3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_SETTINGS_SUBGROUPTest() - { - Assert.That(GUID_PROCESSOR_SETTINGS_SUBGROUP, Is.EqualTo(new Guid(0x54533251, 0x82BE, 0x4824, 0x96, 0xC1, 0x47, 0xB6, 0x0B, 0x74, 0x0D, 0x00))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_THROTTLE_POLICYTest() - { - Assert.That(GUID_PROCESSOR_THROTTLE_POLICY, Is.EqualTo(new Guid(0x57027304, 0x4AF6, 0x4104, 0x92, 0x60, 0xE3, 0xD9, 0x52, 0x48, 0xFC, 0x36))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_THROTTLE_MAXIMUMTest() - { - Assert.That(GUID_PROCESSOR_THROTTLE_MAXIMUM, Is.EqualTo(new Guid(0xBC5038F7, 0x23E0, 0x4960, 0x96, 0xDA, 0x33, 0xAB, 0xAF, 0x59, 0x35, 0xEC))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_THROTTLE_MAXIMUM_1Test() - { - Assert.That(GUID_PROCESSOR_THROTTLE_MAXIMUM_1, Is.EqualTo(new Guid(0xBC5038F7, 0x23E0, 0x4960, 0x96, 0xDA, 0x33, 0xAB, 0xAF, 0x59, 0x35, 0xED))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_THROTTLE_MINIMUMTest() - { - Assert.That(GUID_PROCESSOR_THROTTLE_MINIMUM, Is.EqualTo(new Guid(0x893DEE8E, 0x2BEF, 0x41E0, 0x89, 0xC6, 0xB5, 0x5D, 0x09, 0x29, 0x96, 0x4C))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_THROTTLE_MINIMUM_1Test() - { - Assert.That(GUID_PROCESSOR_THROTTLE_MINIMUM_1, Is.EqualTo(new Guid(0x893DEE8E, 0x2BEF, 0x41E0, 0x89, 0xC6, 0xB5, 0x5D, 0x09, 0x29, 0x96, 0x4D))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_FREQUENCY_LIMITTest() - { - Assert.That(GUID_PROCESSOR_FREQUENCY_LIMIT, Is.EqualTo(new Guid(0x75b0ae3f, 0xbce0, 0x45a7, 0x8c, 0x89, 0xc9, 0x61, 0x1c, 0x25, 0xe1, 0x00))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_FREQUENCY_LIMIT_1Test() - { - Assert.That(GUID_PROCESSOR_FREQUENCY_LIMIT_1, Is.EqualTo(new Guid(0x75b0ae3f, 0xbce0, 0x45a7, 0x8c, 0x89, 0xc9, 0x61, 0x1c, 0x25, 0xe1, 0x01))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_ALLOW_THROTTLINGTest() - { - Assert.That(GUID_PROCESSOR_ALLOW_THROTTLING, Is.EqualTo(new Guid(0x3b04d4fd, 0x1cc7, 0x4f23, 0xab, 0x1c, 0xd1, 0x33, 0x78, 0x19, 0xc4, 0xbb))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_IDLESTATE_POLICYTest() - { - Assert.That(GUID_PROCESSOR_IDLESTATE_POLICY, Is.EqualTo(new Guid(0x68f262a7, 0xf621, 0x4069, 0xb9, 0xa5, 0x48, 0x74, 0x16, 0x9b, 0xe2, 0x3c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERFSTATE_POLICYTest() - { - Assert.That(GUID_PROCESSOR_PERFSTATE_POLICY, Is.EqualTo(new Guid(0xBBDC3814, 0x18E9, 0x4463, 0x8A, 0x55, 0xD1, 0x97, 0x32, 0x7C, 0x45, 0xC0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_INCREASE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_PERF_INCREASE_THRESHOLD, Is.EqualTo(new Guid(0x06cadf0e, 0x64ed, 0x448a, 0x89, 0x27, 0xce, 0x7b, 0xf9, 0x0e, 0xb3, 0x5d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_INCREASE_THRESHOLD_1, Is.EqualTo(new Guid(0x06cadf0e, 0x64ed, 0x448a, 0x89, 0x27, 0xce, 0x7b, 0xf9, 0x0e, 0xb3, 0x5e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_DECREASE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_PERF_DECREASE_THRESHOLD, Is.EqualTo(new Guid(0x12a0ab44, 0xfe28, 0x4fa9, 0xb3, 0xbd, 0x4b, 0x64, 0xf4, 0x49, 0x60, 0xa6))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_DECREASE_THRESHOLD_1, Is.EqualTo(new Guid(0x12a0ab44, 0xfe28, 0x4fa9, 0xb3, 0xbd, 0x4b, 0x64, 0xf4, 0x49, 0x60, 0xa7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_INCREASE_POLICYTest() - { - Assert.That(GUID_PROCESSOR_PERF_INCREASE_POLICY, Is.EqualTo(new Guid(0x465e1f50, 0xb610, 0x473a, 0xab, 0x58, 0x0, 0xd1, 0x7, 0x7d, 0xc4, 0x18))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_INCREASE_POLICY_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_INCREASE_POLICY_1, Is.EqualTo(new Guid(0x465e1f50, 0xb610, 0x473a, 0xab, 0x58, 0x0, 0xd1, 0x7, 0x7d, 0xc4, 0x19))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_DECREASE_POLICYTest() - { - Assert.That(GUID_PROCESSOR_PERF_DECREASE_POLICY, Is.EqualTo(new Guid(0x40fbefc7, 0x2e9d, 0x4d25, 0xa1, 0x85, 0xc, 0xfd, 0x85, 0x74, 0xba, 0xc6))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_DECREASE_POLICY_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_DECREASE_POLICY_1, Is.EqualTo(new Guid(0x40fbefc7, 0x2e9d, 0x4d25, 0xa1, 0x85, 0xc, 0xfd, 0x85, 0x74, 0xba, 0xc7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_INCREASE_TIMETest() - { - Assert.That(GUID_PROCESSOR_PERF_INCREASE_TIME, Is.EqualTo(new Guid(0x984cf492, 0x3bed, 0x4488, 0xa8, 0xf9, 0x42, 0x86, 0xc9, 0x7b, 0xf5, 0xaa))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_INCREASE_TIME_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_INCREASE_TIME_1, Is.EqualTo(new Guid(0x984cf492, 0x3bed, 0x4488, 0xa8, 0xf9, 0x42, 0x86, 0xc9, 0x7b, 0xf5, 0xab))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_DECREASE_TIMETest() - { - Assert.That(GUID_PROCESSOR_PERF_DECREASE_TIME, Is.EqualTo(new Guid(0xd8edeb9b, 0x95cf, 0x4f95, 0xa7, 0x3c, 0xb0, 0x61, 0x97, 0x36, 0x93, 0xc8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_DECREASE_TIME_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_DECREASE_TIME_1, Is.EqualTo(new Guid(0xd8edeb9b, 0x95cf, 0x4f95, 0xa7, 0x3c, 0xb0, 0x61, 0x97, 0x36, 0x93, 0xc9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_TIME_CHECKTest() - { - Assert.That(GUID_PROCESSOR_PERF_TIME_CHECK, Is.EqualTo(new Guid(0x4d2b0152, 0x7d5c, 0x498b, 0x88, 0xe2, 0x34, 0x34, 0x53, 0x92, 0xa2, 0xc5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_BOOST_POLICYTest() - { - Assert.That(GUID_PROCESSOR_PERF_BOOST_POLICY, Is.EqualTo(new Guid(0x45bcc044, 0xd885, 0x43e2, 0x86, 0x5, 0xee, 0xe, 0xc6, 0xe9, 0x6b, 0x59))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_BOOST_MODETest() - { - Assert.That(GUID_PROCESSOR_PERF_BOOST_MODE, Is.EqualTo(new Guid(0xbe337238, 0xd82, 0x4146, 0xa9, 0x60, 0x4f, 0x37, 0x49, 0xd4, 0x70, 0xc7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_AUTONOMOUS_MODETest() - { - Assert.That(GUID_PROCESSOR_PERF_AUTONOMOUS_MODE, Is.EqualTo(new Guid(0x8baa4a8a, 0x14c6, 0x4451, 0x8e, 0x8b, 0x14, 0xbd, 0xbd, 0x19, 0x75, 0x37))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCETest() - { - Assert.That(GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE, Is.EqualTo(new Guid(0x36687f9e, 0xe3a5, 0x4dbf, 0xb1, 0xdc, 0x15, 0xeb, 0x38, 0x1c, 0x68, 0x63))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_ENERGY_PERFORMANCE_PREFERENCE_1, Is.EqualTo(new Guid(0x36687f9e, 0xe3a5, 0x4dbf, 0xb1, 0xdc, 0x15, 0xeb, 0x38, 0x1c, 0x68, 0x64))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOWTest() - { - Assert.That(GUID_PROCESSOR_PERF_AUTONOMOUS_ACTIVITY_WINDOW, Is.EqualTo(new Guid(0xcfeda3d0, 0x7697, 0x4566, 0xa9, 0x22, 0xa9, 0x8, 0x6c, 0xd4, 0x9d, 0xfa))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_DUTY_CYCLINGTest() - { - Assert.That(GUID_PROCESSOR_DUTY_CYCLING, Is.EqualTo(new Guid(0x4e4450b3, 0x6179, 0x4e91, 0xb8, 0xf1, 0x5b, 0xb9, 0x93, 0x8f, 0x81, 0xa1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_IDLE_ALLOW_SCALINGTest() - { - Assert.That(GUID_PROCESSOR_IDLE_ALLOW_SCALING, Is.EqualTo(new Guid(0x6c2993b0, 0x8f48, 0x481f, 0xbc, 0xc6, 0x0, 0xdd, 0x27, 0x42, 0xaa, 0x6))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_IDLE_DISABLETest() - { - Assert.That(GUID_PROCESSOR_IDLE_DISABLE, Is.EqualTo(new Guid(0x5d76a2ca, 0xe8c0, 0x402f, 0xa1, 0x33, 0x21, 0x58, 0x49, 0x2d, 0x58, 0xad))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_IDLE_STATE_MAXIMUMTest() - { - Assert.That(GUID_PROCESSOR_IDLE_STATE_MAXIMUM, Is.EqualTo(new Guid(0x9943e905, 0x9a30, 0x4ec1, 0x9b, 0x99, 0x44, 0xdd, 0x3b, 0x76, 0xf7, 0xa2))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_IDLE_TIME_CHECKTest() - { - Assert.That(GUID_PROCESSOR_IDLE_TIME_CHECK, Is.EqualTo(new Guid(0xc4581c31, 0x89ab, 0x4597, 0x8e, 0x2b, 0x9c, 0x9c, 0xab, 0x44, 0xe, 0x6b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_IDLE_DEMOTE_THRESHOLD, Is.EqualTo(new Guid(0x4b92d758, 0x5a24, 0x4851, 0xa4, 0x70, 0x81, 0x5d, 0x78, 0xae, 0xe1, 0x19))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_IDLE_PROMOTE_THRESHOLD, Is.EqualTo(new Guid(0x7b224883, 0xb3cc, 0x4d79, 0x81, 0x9f, 0x83, 0x74, 0x15, 0x2c, 0xbe, 0x7c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_INCREASE_THRESHOLD, Is.EqualTo(new Guid(0xdf142941, 0x20f3, 0x4edf, 0x9a, 0x4a, 0x9c, 0x83, 0xd3, 0xd7, 0x17, 0xd1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_DECREASE_THRESHOLD, Is.EqualTo(new Guid(0x68dd2f27, 0xa4ce, 0x4e11, 0x84, 0x87, 0x37, 0x94, 0xe4, 0x13, 0x5d, 0xfa))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICYTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_INCREASE_POLICY, Is.EqualTo(new Guid(0xc7be0679, 0x2817, 0x4d69, 0x9d, 0x02, 0x51, 0x9a, 0x53, 0x7e, 0xd0, 0xc6))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICYTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_DECREASE_POLICY, Is.EqualTo(new Guid(0x71021b41, 0xc749, 0x4d21, 0xbe, 0x74, 0xa0, 0x0f, 0x33, 0x5d, 0x58, 0x2b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_MAX_CORESTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_MAX_CORES, Is.EqualTo(new Guid(0xea062031, 0x0e34, 0x4ff1, 0x9b, 0x6d, 0xeb, 0x10, 0x59, 0x33, 0x40, 0x28))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1Test() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_MAX_CORES_1, Is.EqualTo(new Guid(0xea062031, 0x0e34, 0x4ff1, 0x9b, 0x6d, 0xeb, 0x10, 0x59, 0x33, 0x40, 0x29))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_MIN_CORESTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_MIN_CORES, Is.EqualTo(new Guid(0x0cc5b647, 0xc1df, 0x4637, 0x89, 0x1a, 0xde, 0xc3, 0x5c, 0x31, 0x85, 0x83))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1Test() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_MIN_CORES_1, Is.EqualTo(new Guid(0x0cc5b647, 0xc1df, 0x4637, 0x89, 0x1a, 0xde, 0xc3, 0x5c, 0x31, 0x85, 0x84))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_INCREASE_TIMETest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_INCREASE_TIME, Is.EqualTo(new Guid(0x2ddd5a84, 0x5a71, 0x437e, 0x91, 0x2a, 0xdb, 0x0b, 0x8c, 0x78, 0x87, 0x32))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_DECREASE_TIMETest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_DECREASE_TIME, Is.EqualTo(new Guid(0xdfd10d17, 0xd5eb, 0x45dd, 0x87, 0x7a, 0x9a, 0x34, 0xdd, 0xd1, 0x5c, 0x82))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTORTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_DECREASE_FACTOR, Is.EqualTo(new Guid(0x8f7b45e3, 0xc393, 0x480a, 0x87, 0x8c, 0xf6, 0x7a, 0xc3, 0xd0, 0x70, 0x82))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_AFFINITY_HISTORY_THRESHOLD, Is.EqualTo(new Guid(0x5b33697b, 0xe89d, 0x4d38, 0xaa, 0x46, 0x9e, 0x7d, 0xfb, 0x7c, 0xd2, 0xf9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTINGTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_AFFINITY_WEIGHTING, Is.EqualTo(new Guid(0xe70867f1, 0xfa2f, 0x4f4e, 0xae, 0xa1, 0x4d, 0x8a, 0x0b, 0xa2, 0x3b, 0x20))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTORTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_DECREASE_FACTOR, Is.EqualTo(new Guid(0x1299023c, 0xbc28, 0x4f0a, 0x81, 0xec, 0xd3, 0x29, 0x5a, 0x8d, 0x81, 0x5d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_HISTORY_THRESHOLD, Is.EqualTo(new Guid(0x9ac18e92, 0xaa3c, 0x4e27, 0xb3, 0x07, 0x01, 0xae, 0x37, 0x30, 0x71, 0x29))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTINGTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_WEIGHTING, Is.EqualTo(new Guid(0x8809c2d8, 0xb155, 0x42d4, 0xbc, 0xda, 0x0d, 0x34, 0x56, 0x51, 0xb1, 0xdb))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_CORE_PARKING_OVER_UTILIZATION_THRESHOLD, Is.EqualTo(new Guid(0x943c8cb6, 0x6f93, 0x4227, 0xad, 0x87, 0xe9, 0xa3, 0xfe, 0xec, 0x08, 0xd1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PARKING_CORE_OVERRIDETest() - { - Assert.That(GUID_PROCESSOR_PARKING_CORE_OVERRIDE, Is.EqualTo(new Guid(0xa55612aa, 0xf624, 0x42c6, 0xa4, 0x43, 0x73, 0x97, 0xd0, 0x64, 0xc0, 0x4f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PARKING_PERF_STATETest() - { - Assert.That(GUID_PROCESSOR_PARKING_PERF_STATE, Is.EqualTo(new Guid(0x447235c7, 0x6a8d, 0x4cc0, 0x8e, 0x24, 0x9e, 0xaf, 0x70, 0xb9, 0x6e, 0x2b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PARKING_PERF_STATE_1Test() - { - Assert.That(GUID_PROCESSOR_PARKING_PERF_STATE_1, Is.EqualTo(new Guid(0x447235c7, 0x6a8d, 0x4cc0, 0x8e, 0x24, 0x9e, 0xaf, 0x70, 0xb9, 0x6e, 0x2c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_PARKING_CONCURRENCY_THRESHOLD, Is.EqualTo(new Guid(0x2430ab6f, 0xa520, 0x44a2, 0x96, 0x01, 0xf7, 0xf2, 0x3b, 0x51, 0x34, 0xb1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_PARKING_HEADROOM_THRESHOLD, Is.EqualTo(new Guid(0xf735a673, 0x2066, 0x4f80, 0xa0, 0xc5, 0xdd, 0xee, 0x0c, 0xf1, 0xbf, 0x5d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_PARKING_DISTRIBUTION_THRESHOLD, Is.EqualTo(new Guid(0x4bdaf4e9, 0xd103, 0x46d7, 0xa5, 0xf0, 0x62, 0x80, 0x12, 0x16, 0x16, 0xef))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_SOFT_PARKING_LATENCYTest() - { - Assert.That(GUID_PROCESSOR_SOFT_PARKING_LATENCY, Is.EqualTo(new Guid(0x97cfac41, 0x2217, 0x47eb, 0x99, 0x2d, 0x61, 0x8b, 0x19, 0x77, 0xc9, 0x7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_HISTORYTest() - { - Assert.That(GUID_PROCESSOR_PERF_HISTORY, Is.EqualTo(new Guid(0x7d24baa7, 0x0b84, 0x480f, 0x84, 0x0c, 0x1b, 0x07, 0x43, 0xc0, 0x0f, 0x5f))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_HISTORY_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_HISTORY_1, Is.EqualTo(new Guid(0x7d24baa7, 0x0b84, 0x480f, 0x84, 0x0c, 0x1b, 0x07, 0x43, 0xc0, 0x0f, 0x60))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_INCREASE_HISTORYTest() - { - Assert.That(GUID_PROCESSOR_PERF_INCREASE_HISTORY, Is.EqualTo(new Guid(0x99b3ef01, 0x752f, 0x46a1, 0x80, 0xfb, 0x77, 0x30, 0x1, 0x1f, 0x23, 0x54))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_DECREASE_HISTORYTest() - { - Assert.That(GUID_PROCESSOR_PERF_DECREASE_HISTORY, Is.EqualTo(new Guid(0x300f6f8, 0xabd6, 0x45a9, 0xb7, 0x4f, 0x49, 0x8, 0x69, 0x1a, 0x40, 0xb5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_CORE_PARKING_HISTORYTest() - { - Assert.That(GUID_PROCESSOR_PERF_CORE_PARKING_HISTORY, Is.EqualTo(new Guid(0x77d7f282, 0x8f1a, 0x42cd, 0x85, 0x37, 0x45, 0x45, 0xa, 0x83, 0x9b, 0xe8))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_LATENCY_HINTTest() - { - Assert.That(GUID_PROCESSOR_PERF_LATENCY_HINT, Is.EqualTo(new Guid(0x0822df31, 0x9c83, 0x441c, 0xa0, 0x79, 0x0d, 0xe4, 0xcf, 0x00, 0x9c, 0x7b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_LATENCY_HINT_PERFTest() - { - Assert.That(GUID_PROCESSOR_PERF_LATENCY_HINT_PERF, Is.EqualTo(new Guid(0x619b7505, 0x3b, 0x4e82, 0xb7, 0xa6, 0x4d, 0xd2, 0x9c, 0x30, 0x9, 0x71))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1Test() - { - Assert.That(GUID_PROCESSOR_PERF_LATENCY_HINT_PERF_1, Is.EqualTo(new Guid(0x619b7505, 0x3b, 0x4e82, 0xb7, 0xa6, 0x4d, 0xd2, 0x9c, 0x30, 0x9, 0x72))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARKTest() - { - Assert.That(GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK, Is.EqualTo(new Guid(0x616cdaa5, 0x695e, 0x4545, 0x97, 0xad, 0x97, 0xdc, 0x2d, 0x1b, 0xdd, 0x88))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1Test() - { - Assert.That(GUID_PROCESSOR_LATENCY_HINT_MIN_UNPARK_1, Is.EqualTo(new Guid(0x616cdaa5, 0x695e, 0x4545, 0x97, 0xad, 0x97, 0xdc, 0x2d, 0x1b, 0xdd, 0x89))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_DISTRIBUTE_UTILITYTest() - { - Assert.That(GUID_PROCESSOR_DISTRIBUTE_UTILITY, Is.EqualTo(new Guid(0xe0007330, 0xf589, 0x42ed, 0xa4, 0x01, 0x5d, 0xdb, 0x10, 0xe7, 0x85, 0xd3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_HETEROGENEOUS_POLICYTest() - { - Assert.That(GUID_PROCESSOR_HETEROGENEOUS_POLICY, Is.EqualTo(new Guid(0x7f2f5cfa, 0xf10c, 0x4823, 0xb5, 0xe1, 0xe9, 0x3a, 0xe8, 0x5f, 0x46, 0xb5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_HETERO_DECREASE_TIMETest() - { - Assert.That(GUID_PROCESSOR_HETERO_DECREASE_TIME, Is.EqualTo(new Guid(0x7f2492b6, 0x60b1, 0x45e5, 0xae, 0x55, 0x77, 0x3f, 0x8c, 0xd5, 0xca, 0xec))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_HETERO_INCREASE_TIMETest() - { - Assert.That(GUID_PROCESSOR_HETERO_INCREASE_TIME, Is.EqualTo(new Guid(0x4009efa7, 0xe72d, 0x4cba, 0x9e, 0xdf, 0x91, 0x08, 0x4e, 0xa8, 0xcb, 0xc3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_HETERO_DECREASE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_HETERO_DECREASE_THRESHOLD, Is.EqualTo(new Guid(0xf8861c27, 0x95e7, 0x475c, 0x86, 0x5b, 0x13, 0xc0, 0xcb, 0x3f, 0x9d, 0x6b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_HETERO_INCREASE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_HETERO_INCREASE_THRESHOLD, Is.EqualTo(new Guid(0xb000397d, 0x9b0b, 0x483d, 0x98, 0xc9, 0x69, 0x2a, 0x60, 0x60, 0xcf, 0xbf))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CLASS0_FLOOR_PERFTest() - { - Assert.That(GUID_PROCESSOR_CLASS0_FLOOR_PERF, Is.EqualTo(new Guid(0xfddc842b, 0x8364, 0x4edc, 0x94, 0xcf, 0xc1, 0x7f, 0x60, 0xde, 0x1c, 0x80))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_CLASS1_INITIAL_PERFTest() - { - Assert.That(GUID_PROCESSOR_CLASS1_INITIAL_PERF, Is.EqualTo(new Guid(0x1facfc65, 0xa930, 0x4bc5, 0x9f, 0x38, 0x50, 0x4e, 0xc0, 0x97, 0xbb, 0xc0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_THREAD_SCHEDULING_POLICYTest() - { - Assert.That(GUID_PROCESSOR_THREAD_SCHEDULING_POLICY, Is.EqualTo(new Guid(0x93b8b6dc, 0x698, 0x4d1c, 0x9e, 0xe4, 0x6, 0x44, 0xe9, 0x0, 0xc8, 0x5d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICYTest() - { - Assert.That(GUID_PROCESSOR_SHORT_THREAD_SCHEDULING_POLICY, Is.EqualTo(new Guid(0xbae08b81, 0x2d5e, 0x4688, 0xad, 0x6a, 0x13, 0x24, 0x33, 0x56, 0x65, 0x4b))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SYSTEM_COOLING_POLICYTest() - { - Assert.That(GUID_SYSTEM_COOLING_POLICY, Is.EqualTo(new Guid(0x94D3A615, 0xA899, 0x4AC5, 0xAE, 0x2B, 0xE4, 0xD8, 0xF6, 0x34, 0x36, 0x7F))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD, Is.EqualTo(new Guid(0x38b8383d, 0xcce0, 0x4c79, 0x9e, 0x3e, 0x56, 0xa4, 0xf1, 0x7c, 0xc4, 0x80))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1Test() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_THRESHOLD_1, Is.EqualTo(new Guid(0x38b8383d, 0xcce0, 0x4c79, 0x9e, 0x3e, 0x56, 0xa4, 0xf1, 0x7c, 0xc4, 0x81))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLDTest() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD, Is.EqualTo(new Guid(0x3d44e256, 0x7222, 0x4415, 0xa9, 0xed, 0x9c, 0x45, 0xfa, 0x3d, 0xd8, 0x30))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1Test() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_THRESHOLD_1, Is.EqualTo(new Guid(0x3d44e256, 0x7222, 0x4415, 0xa9, 0xed, 0x9c, 0x45, 0xfa, 0x3d, 0xd8, 0x31))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIMETest() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME, Is.EqualTo(new Guid(0xf565999f, 0x3fb0, 0x411a, 0xa2, 0x26, 0x3f, 0x1, 0x98, 0xde, 0xc1, 0x30))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1Test() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_DISABLE_TIME_1, Is.EqualTo(new Guid(0xf565999f, 0x3fb0, 0x411a, 0xa2, 0x26, 0x3f, 0x1, 0x98, 0xde, 0xc1, 0x31))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIMETest() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME, Is.EqualTo(new Guid(0x3d915188, 0x7830, 0x49ae, 0xa7, 0x9a, 0xf, 0xb0, 0xa1, 0xe5, 0xa2, 0x0))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1Test() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_ENABLE_TIME_1, Is.EqualTo(new Guid(0x3d915188, 0x7830, 0x49ae, 0xa7, 0x9a, 0xf, 0xb0, 0xa1, 0xe5, 0xa2, 0x1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILINGTest() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING, Is.EqualTo(new Guid(0x4427c73b, 0x9756, 0x4a5c, 0xb8, 0x4b, 0xc7, 0xbd, 0xa7, 0x9c, 0x73, 0x20))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1Test() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_EPP_CEILING_1, Is.EqualTo(new Guid(0x4427c73b, 0x9756, 0x4a5c, 0xb8, 0x4b, 0xc7, 0xbd, 0xa7, 0x9c, 0x73, 0x21))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOORTest() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR, Is.EqualTo(new Guid(0xce8e92ee, 0x6a86, 0x4572, 0xbf, 0xe0, 0x20, 0xc2, 0x1d, 0x3, 0xcd, 0x40))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1Test() - { - Assert.That(GUID_PROCESSOR_RESPONSIVENESS_PERF_FLOOR_1, Is.EqualTo(new Guid(0xce8e92ee, 0x6a86, 0x4572, 0xbf, 0xe0, 0x20, 0xc2, 0x1d, 0x3, 0xcd, 0x41))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_LOCK_CONSOLE_ON_WAKETest() - { - Assert.That(GUID_LOCK_CONSOLE_ON_WAKE, Is.EqualTo(new Guid(0x0E796BDB, 0x100D, 0x47D6, 0xA2, 0xD5, 0xF7, 0xD2, 0xDA, 0xA5, 0x1F, 0x51))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DEVICE_IDLE_POLICYTest() - { - Assert.That(GUID_DEVICE_IDLE_POLICY, Is.EqualTo(new Guid(0x4faab71a, 0x92e5, 0x4726, 0xb5, 0x31, 0x22, 0x45, 0x59, 0x67, 0x2d, 0x19))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_CONNECTIVITY_IN_STANDBYTest() - { - Assert.That(GUID_CONNECTIVITY_IN_STANDBY, Is.EqualTo(new Guid(0xF15576E8, 0x98B7, 0x4186, 0xB9, 0x44, 0xEA, 0xFA, 0x66, 0x44, 0x02, 0xD9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_DISCONNECTED_STANDBY_MODETest() - { - Assert.That(GUID_DISCONNECTED_STANDBY_MODE, Is.EqualTo(new Guid(0x68AFB2D9, 0xEE95, 0x47A8, 0x8F, 0x50, 0x41, 0x15, 0x08, 0x80, 0x73, 0xB1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ACDC_POWER_SOURCETest() - { - Assert.That(GUID_ACDC_POWER_SOURCE, Is.EqualTo(new Guid(0x5D3E9A59, 0xE9D5, 0x4B00, 0xA6, 0xBD, 0xFF, 0x34, 0xFF, 0x51, 0x65, 0x48))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_LIDSWITCH_STATE_CHANGETest() - { - Assert.That(GUID_LIDSWITCH_STATE_CHANGE, Is.EqualTo(new Guid(0xBA3E0F4D, 0xB817, 0x4094, 0xA2, 0xD1, 0xD5, 0x63, 0x79, 0xE6, 0xA0, 0xF3))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_PERCENTAGE_REMAININGTest() - { - Assert.That(GUID_BATTERY_PERCENTAGE_REMAINING, Is.EqualTo(new Guid(0xA7AD8041, 0xB45A, 0x4CAE, 0x87, 0xA3, 0xEE, 0xCB, 0xB4, 0x68, 0xA9, 0xE1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BATTERY_COUNTTest() - { - Assert.That(GUID_BATTERY_COUNT, Is.EqualTo(new Guid(0x7d263f15, 0xfca4, 0x49e5, 0x85, 0x4b, 0xa9, 0xf2, 0xbf, 0xbd, 0x5c, 0x24))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_GLOBAL_USER_PRESENCETest() - { - Assert.That(GUID_GLOBAL_USER_PRESENCE, Is.EqualTo(new Guid(0x786e8a1d, 0xb427, 0x4344, 0x92, 0x7, 0x9, 0xe7, 0xb, 0xdc, 0xbe, 0xa9))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SESSION_DISPLAY_STATUSTest() - { - Assert.That(GUID_SESSION_DISPLAY_STATUS, Is.EqualTo(new Guid(0x2b84c20e, 0xad23, 0x4ddf, 0x93, 0xdb, 0x5, 0xff, 0xbd, 0x7e, 0xfc, 0xa5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SESSION_USER_PRESENCETest() - { - Assert.That(GUID_SESSION_USER_PRESENCE, Is.EqualTo(new Guid(0x3c0f4548, 0xc03f, 0x4c4d, 0xb9, 0xf2, 0x23, 0x7e, 0xde, 0x68, 0x63, 0x76))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_IDLE_BACKGROUND_TASKTest() - { - Assert.That(GUID_IDLE_BACKGROUND_TASK, Is.EqualTo(new Guid(0x515C31D8, 0xF734, 0x163D, 0xA0, 0xFD, 0x11, 0xA0, 0x8C, 0x91, 0xE8, 0xF1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_BACKGROUND_TASK_NOTIFICATIONTest() - { - Assert.That(GUID_BACKGROUND_TASK_NOTIFICATION, Is.EqualTo(new Guid(0xCF23F240, 0x2A54, 0x48D8, 0xB1, 0x14, 0xDE, 0x15, 0x18, 0xFF, 0x05, 0x2E))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_APPLAUNCH_BUTTONTest() - { - Assert.That(GUID_APPLAUNCH_BUTTON, Is.EqualTo(new Guid(0x1A689231, 0x7399, 0x4E9A, 0x8F, 0x99, 0xB7, 0x1F, 0x99, 0x9D, 0xB3, 0xFA))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PCIEXPRESS_SETTINGS_SUBGROUPTest() - { - Assert.That(GUID_PCIEXPRESS_SETTINGS_SUBGROUP, Is.EqualTo(new Guid(0x501a4d13, 0x42af, 0x4429, 0x9f, 0xd1, 0xa8, 0x21, 0x8c, 0x26, 0x8e, 0x20))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_PCIEXPRESS_ASPM_POLICYTest() - { - Assert.That(GUID_PCIEXPRESS_ASPM_POLICY, Is.EqualTo(new Guid(0xee12f906, 0xd277, 0x404b, 0xb6, 0xda, 0xe5, 0xfa, 0x1a, 0x57, 0x6d, 0xf5))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_ENABLE_SWITCH_FORCED_SHUTDOWNTest() - { - Assert.That(GUID_ENABLE_SWITCH_FORCED_SHUTDOWN, Is.EqualTo(new Guid(0x833a6b62, 0xdfa4, 0x46d1, 0x82, 0xf8, 0xe0, 0x9e, 0x34, 0xd0, 0x29, 0xd6))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_INTSTEER_SUBGROUPTest() - { - Assert.That(GUID_INTSTEER_SUBGROUP, Is.EqualTo(new Guid(0x48672f38, 0x7a9a, 0x4bb2, 0x8b, 0xf8, 0x3d, 0x85, 0xbe, 0x19, 0xde, 0x4e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_INTSTEER_MODETest() - { - Assert.That(GUID_INTSTEER_MODE, Is.EqualTo(new Guid(0x2bfc24f9, 0x5ea2, 0x4801, 0x82, 0x13, 0x3d, 0xba, 0xe0, 0x1a, 0xa3, 0x9d))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_INTSTEER_LOAD_PER_PROC_TRIGGERTest() - { - Assert.That(GUID_INTSTEER_LOAD_PER_PROC_TRIGGER, Is.EqualTo(new Guid(0x73cde64d, 0xd720, 0x4bb2, 0xa8, 0x60, 0xc7, 0x55, 0xaf, 0xe7, 0x7e, 0xf2))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_INTSTEER_TIME_UNPARK_TRIGGERTest() - { - Assert.That(GUID_INTSTEER_TIME_UNPARK_TRIGGER, Is.EqualTo(new Guid(0xd6ba4903, 0x386f, 0x4c2c, 0x8a, 0xdb, 0x5c, 0x21, 0xb3, 0x32, 0x8d, 0x25))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_GRAPHICS_SUBGROUPTest() - { - Assert.That(GUID_GRAPHICS_SUBGROUP, Is.EqualTo(new Guid(0x5fb4938d, 0x1ee8, 0x4b0f, 0x9a, 0x3c, 0x50, 0x36, 0xb0, 0xab, 0x99, 0x5c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_GPU_PREFERENCE_POLICYTest() - { - Assert.That(GUID_GPU_PREFERENCE_POLICY, Is.EqualTo(new Guid(0xdd848b2a, 0x8a5d, 0x4451, 0x9a, 0xe2, 0x39, 0xcd, 0x41, 0x65, 0x8f, 0x6c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_MIXED_REALITY_MODETest() - { - Assert.That(GUID_MIXED_REALITY_MODE, Is.EqualTo(new Guid(0x1e626b4e, 0xcf04, 0x4f8d, 0x9c, 0xc7, 0xc9, 0x7c, 0x5b, 0xf, 0x23, 0x91))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void GUID_SPR_ACTIVE_SESSION_CHANGETest() - { - Assert.That(GUID_SPR_ACTIVE_SESSION_CHANGE, Is.EqualTo(new Guid(0xe24ce38, 0xc393, 0x4742, 0xbd, 0xb1, 0x74, 0x4f, 0x4b, 0x9e, 0xe0, 0x8e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_PERFSTATE_CHANGE_GUIDTest() - { - Assert.That(PPM_PERFSTATE_CHANGE_GUID, Is.EqualTo(new Guid(0xa5b32ddd, 0x7f39, 0x4abc, 0xb8, 0x92, 0x90, 0xe, 0x43, 0xb5, 0x9e, 0xbb))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_PERFSTATE_DOMAIN_CHANGE_GUIDTest() - { - Assert.That(PPM_PERFSTATE_DOMAIN_CHANGE_GUID, Is.EqualTo(new Guid(0x995e6b7f, 0xd653, 0x497a, 0xb9, 0x78, 0x36, 0xa3, 0xc, 0x29, 0xbf, 0x1))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_IDLESTATE_CHANGE_GUIDTest() - { - Assert.That(PPM_IDLESTATE_CHANGE_GUID, Is.EqualTo(new Guid(0x4838fe4f, 0xf71c, 0x4e51, 0x9e, 0xcc, 0x84, 0x30, 0xa7, 0xac, 0x4c, 0x6c))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_PERFSTATES_DATA_GUIDTest() - { - Assert.That(PPM_PERFSTATES_DATA_GUID, Is.EqualTo(new Guid(0x5708cc20, 0x7d40, 0x4bf4, 0xb4, 0xaa, 0x2b, 0x01, 0x33, 0x8d, 0x01, 0x26))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_IDLESTATES_DATA_GUIDTest() - { - Assert.That(PPM_IDLESTATES_DATA_GUID, Is.EqualTo(new Guid(0xba138e10, 0xe250, 0x4ad7, 0x86, 0x16, 0xcf, 0x1a, 0x7a, 0xd4, 0x10, 0xe7))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_IDLE_ACCOUNTING_GUIDTest() - { - Assert.That(PPM_IDLE_ACCOUNTING_GUID, Is.EqualTo(new Guid(0xe2a26f78, 0xae07, 0x4ee0, 0xa3, 0x0f, 0xce, 0x54, 0xf5, 0x5a, 0x94, 0xcd))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_IDLE_ACCOUNTING_EX_GUIDTest() - { - Assert.That(PPM_IDLE_ACCOUNTING_EX_GUID, Is.EqualTo(new Guid(0xd67abd39, 0x81f8, 0x4a5e, 0x81, 0x52, 0x72, 0xe3, 0x1e, 0xc9, 0x12, 0xee))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_THERMALCONSTRAINT_GUIDTest() - { - Assert.That(PPM_THERMALCONSTRAINT_GUID, Is.EqualTo(new Guid(0xa852c2c8, 0x1a4c, 0x423b, 0x8c, 0x2c, 0xf3, 0x0d, 0x82, 0x93, 0x1a, 0x88))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_PERFMON_PERFSTATE_GUIDTest() - { - Assert.That(PPM_PERFMON_PERFSTATE_GUID, Is.EqualTo(new Guid(0x7fd18652, 0xcfe, 0x40d2, 0xb0, 0xa1, 0xb, 0x6, 0x6a, 0x87, 0x75, 0x9e))); - } - - /// Validates that the value of the property is correct. - [Test] - public static void PPM_THERMAL_POLICY_CHANGE_GUIDTest() - { - Assert.That(PPM_THERMAL_POLICY_CHANGE_GUID, Is.EqualTo(new Guid(0x48f377b8, 0x6880, 0x4c7b, 0x8b, 0xdc, 0x38, 0x1, 0x76, 0xc6, 0x65, 0x4d))); - } } }