GetGeneralInfo
This function returns Manufacturer,Model,Revision,IMEI or subscrieber number.
DWORD GetGeneralInfo(
   GENERALINFO InfoType,
   TCHAR *pwszInfo,
    int ccInfo
);
Parameters
InfoType
[in] Parameter of type GENERALINFO, specifies what phone specific data to retrieve. Possible values are:

GI_MANUFACTURER returns the manufacturer string
GI_MODEL returns the model string
GI_REVISION returns the revision string
GI_SERIALNUMBER returns the IMEI string
GI_SUBSNUMBER returns the ubscrieber number string

pwszInfo
[out] The requested data string is returned in pwszInfo as a null terminated string
ccInfo
[in] The maximum number of characters pwszInfo can receive.

Return values
Zero indicates success. A non zero number indicates that an error occurred. For additional error information, enable the library debug mode.

Remarks
pwszInfo should point to a null terminated string of at least 255 characters, to make sure the retrieved data will not get truncated.

Sample
// Application entry point
int WINAPI WinMain(HINSTANCE hInstance,
    HINSTANCE hPrevInstance,
    LPTSTR lpCmdLine,
    int nCmdShow)
{
    // Load the RIL Library
    if (LoadDynRILDll(TEXT("\\DynRILDll.dll")) != ERROR_SUCCESS) {
    MessageBox(0, TEXT("Cannot load DynRILDll.dll . Try to reinstall this sample."), TEXT(""), MB_ICONERROR);
    return 0;
    }
    DebugMode(1);
    // Init the Library network component
    if (NetworkInit() != ERROR_SUCCESS) {
    UnloadDynRILDll();
    MessageBox(0, TEXT("Error using the network, does this device have a phone module?"), TEXT(""), MB_ICONERROR);
    return 0;
    }
    // Retrieve IMEI
    TCHAR szImei[255] = {0};
    GetGeneralInfo(GI_SERIALNUMBER, szImei,255);
    MessageBox(0,szImei, TEXT("Phone IMEI:"),0);
    ...
    NetworkDeinit();
    UnloadDynRILDll();
    ...
Requirements
OS Versions: Windows CE 1.0 and later.
Header: dynril.h.
Dll Library: dynrildll.dll.

For the latest DynRIL version, visit www.teksoftco.com.