Skip to content

printing.zig uses pub extern "winspool.drv" and should be pub extern "winspool" #53

Description

@LargoUsagi

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions