Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
728 B

  1. //
  2. // Sample .idl definition
  3. //
  4. typedef [switch_type(unsigned long)] union _NW_PRINTER_INFO {
  5. [case(1)]
  6. LPPRINTER_INFO_1 PrinterInfo1;
  7. [case(2)]
  8. LPPRINTER_INFO_2 PrinterInfo2;
  9. [default]
  10. ;
  11. } NW_PRINTER_INFO, *PNW_PRINTER_INFO, *LPNW_PRINTER_INFO;
  12. DWORD
  13. NwrGetPrinter(
  14. [in] NWWKSTA_PRINTER_CONTEXT PrinterHandle,
  15. [in] DWORD Level,
  16. [out,switch_is(Level)] LPPRINTER_INFO PrinterInfo,
  17. [in] DWORD BufferSize,
  18. [out] LPDWORD BytesNeeded
  19. );
  20. ----------------------------------------------------------------------
  21. //
  22. // Sample .acf definition (put this between the curly braces)
  23. //
  24. NwrGetPrinter([byte_count(BufferSize)] PrinterInfo);