For example,
pub extern "winspool.drv" fn EnumPrintersA(
Flags: u32,
Name: ?PSTR,
Level: u32,
// TODO: what to do with BytesParamIndex 4?
pPrinterEnum: ?*u8,
cbBuf: u32,
pcbNeeded: ?*u32,
pcReturned: ?*u32,
) callconv(.winapi) BOOL;
should be
pub extern "winspool" fn EnumPrintersA(
Flags: u32,
Name: ?PSTR,
Level: u32,
// TODO: what to do with BytesParamIndex 4?
pPrinterEnum: ?*u8,
cbBuf: u32,
pcbNeeded: ?*u32,
pcReturned: ?*u32,
) callconv(.winapi) BOOL;
To leverage this part of the API I am now copying the extern and updating it like this.
extern "winspool" fn EnumPrintersA(
Flags: u32,
Name: ?win32.PSTR,
Level: u32,
// TODO: what to do with BytesParamIndex 4?
pPrinterEnum: ?*u8,
cbBuf: u32,
pcbNeeded: ?*u32,
pcReturned: ?*u32,
) callconv(.winapi) win32.BOOL;
For example,
should be
To leverage this part of the API I am now copying the extern and updating it like this.