Avery Dennison 6035 Programmer Manual Rev.CA 6/01 User Manual

Page 139

Advertising
background image

4-98 Programmer’s Manual

s y s G e t B I O S V e r s i o n

Description

Retrieves the BIOS version and build date.

The date string’s format is mm/dd/y y . The version string’s
format is M.mm s s , where M is the major version, mm is the
minor version, and s s is the sub-version. For example, 1.01 S.

Syntax

int far sysGetBIOSVersion(unsigned char far *lpszVersion,

unsigned char far *lpszDate);

Parameters

lpszVersion

Pointer to the BIOS version.

lpszDate

Pointer to the BIOS build date. If you do not need
the date, set this parameter to NULL.


Return Values

0

Successful

-1

Unsuccessful.


Example

#include <stdio.h>

#include "mmsultra.h"

void main(void)

{

int iStatus = 0;

// Status of retrieval

unsigned char ucVersion[9] = " ";// BIOS version

unsigned char ucDate[10] = " "; // BIOS date

iStatus = sysGetBIOSVersion(ucVersion, ucDate); // Get info

if (iStatus != 0)

printf("BIOS Version retrieval failed.");

else

{

Advertising