Credit Balance

Credit Balance SearchSearch

SMS & MMS Technical Forum » NowSMS Support - SMS Issues (Product Support Only) » Archive through March 09, 2004 » Credit Balance « Previous || Next »
Author Message
Posted on Saturday, December 13, 2003 - 02:34 am:   

Is there anyway sms accounts users can access to see their credit balance either through web or request via an sms? Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1392
Registered: 10-2002
Posted on Monday, December 15, 2003 - 09:09 pm:   

No. It's on a request list for future enhancement, but it is not available today.

Unlike the stats (which I suspect it may have been you that also asked about that capability here:, this information could be retrieved more easily from a file if you wanted.

On the NowSMS server, each "SMS Users" account, has a directory, USERS\username. Within that directory, if credit balances are enabled, there is a file named SMS.CTR. That file contains only 4 bytes, which is a DWORD value of the user's current credit balance.
Posted on Thursday, December 18, 2003 - 06:33 am:   

how and wat application we need to use to see the DWORD? Pls advise. Thanks
Bryce Norwood - NowSMS Support
Board Administrator
Username: Bryce

Post Number: 1411
Registered: 10-2002
Posted on Thursday, December 18, 2003 - 04:09 pm:   

Basically, it is a binary value (4 bytes long, which is a standard 32-bit unsigned integer).

You'd need to access it from within a programming language.

If you were using C, you could just open the file, and read the value into a buffer that pointed to a DWORD or unsigned int variable.

In C it would look something like this:

char filename[] = "...\sms.ctr";
DWORD dwBal, dwBytesRead;

ReadFile (fh, &dwBal, sizeof(dwBal), &dwBytesRead, NULL);
CloseHandle (fh);

Login Login / Register Logout Logout Search Last 30 Days Topics Topics