Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
マシン内のすべてのLPTポートとそのIOアドレスを一覧表示する必要があるアプリケーションを作成しています。(つまり、出力:LPT1[開始;終了]....)
WMIを使用すると、この情報を取得できます。名前/番号はWin32_ParallelPortから、アドレスはWin32_PortResourceから取得できます。
問題は、ポート名をそのアドレスに関連付ける方法がわからないことです。