- Use
pkg.exports
instead of namespace exports - ANSI data type not supported
- Suffix
_Struct
of 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
DStructExt
renamed toDStruct
- Terminated-null
\0
fromWCHAR_String
in Struct removed
Example DISPLAY_DEVICEW
- Export promised API with
win32-api/promise
viapkg.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' |