- Use
pkg.exportsinstead of namespace exports - ANSI data type not supported
- Suffix
_Structof Struct type removed
eg.M.POINT_Struct->M.POINT
| Before | Current |
|---|---|
import { DModel as M } from 'win32-def |
import * as M from 'win32-def' |
import { DTypes as W } from 'win32-def' |
import * as W from 'win32-def/common.def' |
import { DStruct as DS} from 'win32-def' |
import * as DS from 'win32-def/struct.def' |
import { DUnion} from 'win32-def' |
import * as DU from 'win32-def/union.def' |
- Declarations of
DStructExt(pathsrc/lib/data-struct-ext) moved intowin-def - Export of
DStructExtrenamed toDStruct - Terminated-null
\0fromWCHAR_Stringin Struct removed
Example DISPLAY_DEVICEW
- Export promised API with
win32-api/promiseviapkg.exports
| API namespace | Import |
|---|---|
| Comctrl32 | import { Comctl32 } from 'win32-api/promise' |
| Kernel32 | import { Kernel32 } from 'win32-api/promise' |
| Ntdll | import { Ntdll } from 'win32-api/promise' |
| User32 | import { User32 } from 'win32-api/promise' |