delphi POS机无驱动打印

1 找到GUID

2 SetupAPI

3 CreateFile

4 Writestring


   'SetupAPI.DLL';


CreateFile

SetupDiGetClassDevsA

SetupDiEnumDeviceInterfaces

SetupDiGetDeviceInterfaceDetailA

  PSPDeviceInterfaceData = ^TSPDeviceInterfaceData;
  SP_DEVICE_INTERFACE_DATA = packed record
      cbSize: DWORD;
      InterfaceClassGuid: TGUID;
      Flags: DWORD;
      Reserved: ULONG_PTR;
  end;

Device Interface Name                 GUID
USB Raw Device               {a5dcbf10-6530-11d2-901f-00c04fb951ed}
Disk Device                   {53f56307-b6bf-11d0-94f2-00a0c91efb8b}
Network Card                 {ad498944-762f-11d0-8dcb-00c04fc3358c}
Human Interface Device (HID) {4d1e55b2-f16f-11cf-88cb-001111000030}
Palm                         {784126bf-4190-11d4-b5c2-00c04f687a67}

你可能感兴趣的:(delphi POS机无驱动打印)