Skip to content

Commit

Permalink
feat(win32-def): DOC_INFO_1
Browse files Browse the repository at this point in the history
  • Loading branch information
waitingsong committed Jul 24, 2022
1 parent 74dc6d1 commit 6700cad
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 0 deletions.
11 changes: 11 additions & 0 deletions packages/win32-def/src/lib/struct/winspool.def.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ import { StructType } from '../helper.js'
import { DEVMODEW } from './wingdi.def.js'


/**
* Describes a document that will be printed.
* @docs https://docs.microsoft.com/en-us/windows/win32/printdocs/doc-info-1
*/
export const DOC_INFO_1 = {
pDocName: LPTSTR,
pOutputFile: LPTSTR,
pDatatype: LPTSTR,
} as const


/**
* Specifies the default data type, environment, initialization data, and access rights for a printer.
* @link https://docs.microsoft.com/zh-cn/windows/win32/printdocs/printer-defaults
Expand Down
12 changes: 12 additions & 0 deletions packages/win32-def/src/lib/struct/winspool.types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@ import {
import { DEVMODEW } from './wingdi.types.js'


/**
* Describes a document that will be printed.
* @docs https://docs.microsoft.com/en-us/windows/win32/printdocs/doc-info-1
*/
export interface DOC_INFO_1 extends StructInstanceBase {
pDocName: Buffer
pOutputFile: Buffer
pDatatype: Buffer
}
export type PDOC_INFO_1 = _POINTER


/**
* Specifies the default data type, environment, initialization data, and access rights for a printer.
* @link https://docs.microsoft.com/zh-cn/windows/win32/printdocs/printer-defaults
Expand Down
2 changes: 2 additions & 0 deletions packages/win32-def/src/lib/struct/winspool.var.def.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { Def } from '../def.enum.js'


export const DOC_INFO_1 = Def.ptr

/**
* @link https://docs.microsoft.com/zh-cn/windows/win32/printdocs/printer-defaults
*/
Expand Down

0 comments on commit 6700cad

Please sign in to comment.