Hi ToutEnMasm,
I'm trying to make a new build of include files for Windows 10 Microsoft Visual Studio 2017 Enterprise v15.3.4, some files are converted very well, but there are a couple of files with errors. Unfortunately I can not understand where the error occurs, from the directory "Um" these files give me errors
\SDK\Include\10.0.15063.0\um\dxgiddi.h
\SDK\Include\10.0.15063.0\um\eapmethodpeerapis.h
\SDK\Include\10.0.15063.0\um\IEProcess.h
\SDK\Include\10.0.15063.0\um\mfapi.h
\SDK\Include\10.0.15063.0\um\ProcessSnapshot.h
\SDK\Include\10.0.15063.0\um\Richedit.h
\SDK\Include\10.0.15063.0\um\Vfw.h
\SDK\Include\10.0.15063.0\um\xa.h
from the directory "shared" these files give me errors
\SDK\Include\10.0.15063.0\shared\dciddi.h
\SDK\Include\10.0.15063.0\shared\kxarm.h
\SDK\Include\10.0.15063.0\shared\kxarmunw.h
\SDK\Include\10.0.15063.0\shared\rpcndr.h
\SDK\Include\10.0.15063.0\shared\TraceLoggingProvider.h
Of course, I opened it and looked what might be wrong there, but comparing with other parts of the include file, I cant see any difference. For example, in the first file dxgiddi.h, this structure
typedef struct _DXGI_DDI_ARG_OFFERRESOURCES1
{
_In_ DXGI_DDI_HDEVICE hDevice; //in: device that created the resources
_In_reads_(Resources) const DXGI_DDI_HRESOURCE* pResources; //in: array of resources to reset
_In_ UINT Resources; //in: number of elements in pResources
_In_ D3DDDI_OFFER_PRIORITY Priority; //in: priority with which to reset the resources
_In_ D3DDDI_OFFER_FLAGS Flags; //in: flags specifying additional behaviors on offer
} DXGI_DDI_ARG_OFFERRESOURCES1;
SDK\Include\10.0.15063.0\um\dxgiddi.h
D3DDDI_OFFER_FLAGS 597
SDK\Include\10.0.15063.0\um\dxgiddi.h
Open Loop Error
Numero Ligne:662
You must QUIT and correct the Problem
The file that we get when converting is corrupted, from some lines appears the same type of broken data. How can I recognize the error ?!
P.S. If you try to make the Include through the "test" file, then the translator ends up with an error. Its also important that the translator starts generating garbage in different parts of the resulting file ...
The beginning of the garbage instructions of the first fileDXGI_DDI_BASE_FUNCTIONS STRUCT DEFALIGNMASM
PtrpfnPresent XMASM ?
PtrpfnGetGammaCaps XMASM ?
PtrpfnSetDisplayMode XMASM ?
PtrpfnSetResourcePriority XMASM ?
PtrpfnQueryResourceResidency XMASM ?
PtrpfnRotateResourceIdentities XMASM ?
PtrpfnBlt XMASM ?
q$˜§•
DXGI_DDI_RESIDENCY
DXGI_DDI_FLIP_INTERVAL_TYPE
DXGI_DDI_MODE_SCANLINE_ORDER
DXGI_DDI_MODE_SCALING
DXGI_DDI_MODE_ROTATION
DXGI_DDI_MULTIPLANE_OVERLAY_FEATURE_CAPS
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_CAPS
DXGI_DDI_MULTIPLANE_OVERLAY_FLAGS
DXGI_DDI_MULTIPLANE_OVERLAY_BLEND
DXGI_DDI_MULTIPLANE_OVERLAY_VIDEO_FRAME_FORMAT
DXGI_DDI_MULTIPLANE_OVERLAY_YCbCr_FLAGS
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FORMAT
DXGI_DDI_MULTIPLANE_OVERLAY_STEREO_FLIP_MODE
DXGI_DDI_MULTIPLANE_OVERLAY_STRETCH_QUALITY
ï$™§•
¾íÀ@è
~!˜š9•
h,
`
z
Æ
"
&
*
0
0
4
>
>
B
H
H
L
P
P
P
P
P
P
P
P
P
P
d
The original code
typedef struct DXGI_DDI_BASE_FUNCTIONS
{
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
} DXGI_DDI_BASE_FUNCTIONS;
//--------------------------------------------------------------------------------------------------------
typedef struct DXGI1_1_DDI_BASE_FUNCTIONS
{
HRESULT ( __stdcall /*APIENTRY*/ * pfnPresent ) (DXGI_DDI_ARG_PRESENT*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnGetGammaCaps ) (DXGI_DDI_ARG_GET_GAMMA_CONTROL_CAPS*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetDisplayMode ) (DXGI_DDI_ARG_SETDISPLAYMODE*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnSetResourcePriority ) (DXGI_DDI_ARG_SETRESOURCEPRIORITY*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnQueryResourceResidency )(DXGI_DDI_ARG_QUERYRESOURCERESIDENCY*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnRotateResourceIdentities )(DXGI_DDI_ARG_ROTATE_RESOURCE_IDENTITIES*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnBlt )(DXGI_DDI_ARG_BLT*);
HRESULT ( __stdcall /*APIENTRY*/ * pfnResolveSharedResource ) (DXGI_DDI_ARG_RESOLVESHAREDRESOURCE*);
} DXGI1_1_DDI_BASE_FUNCTIONS;
I tried on different systems, everywhere the same results to my regret :icon_confused:
Thanks for your help :t