Overview of wmi_hardware.inc

Public Function Summary

Public functions are intended to be called by the code that imports this library.

Name Summary
wmi_hardware_displayconf
wmi_hardware_floppycontroller
wmi_hardware_floppydrive
wmi_hardware_get_keyboard
wmi_hardware_idecontroller
wmi_hardware_ip4routetable
wmi_hardware_logicaldisk
wmi_hardware_processor
wmi_hardware_scsicontroller
wmi_hardware_scsicontrollerdevice
wmi_hardware_serialport
wmi_hardware_serialportconf
wmi_misc_software

Public Function Details

wmi_hardware_displayconf

Named Parameters

handle

Code

function wmi_hardware_displayconf(handle)
{
  query = 'Select * From Win32_DisplayConfiguration';

  confList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< confList) || !confList){
    return(0);
  }

  return wmi_misc_split_res(List:confList);
}


# Win32_FloppyDrive

		
top

wmi_hardware_floppycontroller

Named Parameters

handle

Code

function wmi_hardware_floppycontroller(handle)
{
  query = 'Select * From Win32_FloppyController';

  flpyList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< flpyList) || !flpyList){
    return(0);
  }

  return wmi_misc_split_res(List:flpyList);
}

# Win32_IDEController

		
top

wmi_hardware_floppydrive

Named Parameters

handle

Code

function wmi_hardware_floppydrive(handle)
{
  query = 'Select * From Win32_FloppyDrive';

  flpyList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< flpyList) || !flpyList){
    return(0);
  }

  return wmi_misc_split_res(List:flpyList);
}

# Win32_FloppyController

		
top

wmi_hardware_get_keyboard

Named Parameters

handle

Code

function wmi_hardware_get_keyboard(handle)
{
  query = 'Select * From Win32_Keyboard';

  keyList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< keyList) || !keyList){
    return(0);
  }

  return wmi_misc_split_res(List:keyList);
}

# Win32_Processor

		
top

wmi_hardware_idecontroller

Named Parameters

handle

Code

function wmi_hardware_idecontroller(handle)
{
  query = 'Select * From Win32_IDEController';

  ideList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< ideList) || !ideList){
    return(0);
  }

  return wmi_misc_split_res(List:ideList);
}

# Win32_IP4RouteTable

		
top

wmi_hardware_ip4routetable

Named Parameters

handle

Code

function wmi_hardware_ip4routetable(handle)
{
  query = 'Select * From Win32_IP4RouteTable';

  ip4List = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< ip4List) || !ip4List){
    return(0);
  }

  return wmi_misc_split_res(List:ip4List);
}

# Win32_Keyboard

		
top

wmi_hardware_logicaldisk

Named Parameters

handle

Code

function wmi_hardware_logicaldisk(handle)
{
  query = 'Select * From Win32_LogicalDisk';

  ldList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< ldList) || !ldList){
    return(0);
  }

  return wmi_misc_split_res(List:ldList);
}

# Win32_DisplayConfiguration

		
top

wmi_hardware_processor

Named Parameters

handle

Code

function wmi_hardware_processor(handle)
{
  query = 'Select * From Win32_Processor';

  procList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< procList) || !procList){
    return(0);
  }

  return wmi_misc_split_res(List:procList);
}

# Win32_SCSIController

		
top

wmi_hardware_scsicontroller

Named Parameters

handle

Code

function wmi_hardware_scsicontroller(handle)
{
  query = 'Select * From Win32_SCSIController';

  scsiList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< scsiList) || !scsiList){
    return(0);
  }

  return wmi_misc_split_res(List:scsiList);
}

# Win32_SCSIControllerDevice

		
top

wmi_hardware_scsicontrollerdevice

Named Parameters

handle

Code

function wmi_hardware_scsicontrollerdevice(handle)
{
  query = 'Select * From Win32_SCSIControllerDevice';

  scsiList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< scsiList) || !scsiList){
    return(0);
  }

  return wmi_misc_split_res(List:scsiList);
}

# Win32_SerialPort

		
top

wmi_hardware_serialport

Named Parameters

handle

Code

function wmi_hardware_serialport(handle)
{
  query = 'Select * From Win32_SerialPort';

  portList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< portList) || !portList){
    return(0);
  }

  return wmi_misc_split_res(List:portList);
}

# Win32_SerialPortConfiguration

		
top

wmi_hardware_serialportconf

Named Parameters

handle

Code

function wmi_hardware_serialportconf(handle)
{
  query = 'Select * From Win32_SerialPortConfiguration';

  portList = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< portList) || !portList){
    return(0);
  }

  return wmi_misc_split_res(List:portList);
}

function wmi_misc_software(handle, filePath, instDate)

		
top

wmi_misc_software

Named Parameters

filePath
handle
instDate

Code

function wmi_misc_software(handle, filePath, instDate)
{
  if(!filePath && !instDate){
    query = 'Select Path from Win32_SoftwareElement';
  }
  else if(instDate){
    query = 'Select * from Win32_SoftwareElement Where InstallDate = ' +
             raw_string(0x22) + instDate + raw_string(0x22);
  }
  else if(filePath){
    query = 'Select Version from Win32_SoftwareElement Where Path = ' +
             raw_string(0x22) + filePath + raw_string(0x22);
  }

  winAll = wmi_query(wmi_handle:handle, query:query);

  if(("NTSTATUS" >< winAll || !winAll)){
    return(0);
  }

  return wmi_misc_split_res(List:winAll);
}


		
top