Friday, October 03, 2008

The Data Structure For RasSetEntryProperties - lineGetDevConfig (WinCE 5.0)

Following Data Structure Is For RasSetEntryProperties - Parameter " LPTYPE lpb"

typedef struct {
WORD wHeader; // 0x00(L:2), Val = 0x30, ???
WORD wWaitForCreditCardSec; // 0x02(L:2), Val = 0x0, Wait For Credit Card Tone Seconds,
WORD wCancelTimeOut; // 0x04(L:2), Val = 78 00 -> 0x78
WORD wReserved1; // 0x06(L:2), Val = 0x0,
BYTE bFlowControl; // 0x08(L:1), Val = 0x0,
// F.C. = None, Val = 0x0,
// F.C. = H.W., Val = 0x10,
// F.C. = S.W., Val = 0x20,
BYTE bWaitForDialTone; // 0x09(L:1), Val = 0x1, Wait For Dial Tone Before Dialing
// Enable Wait For Dial Tone Before Dialing, Val = 0x1
// Disable Wait For Dial Tone Before Dialing, Val = 0x3
WORD wReserved2; // 0x0A(L:2), Val = 0x0,
UINT uBaudRate; // 0x0C(L:4), Val = 00 c2 01 00, 0x0001c200 = 115200
WORD wTerminal; // 0x10(L:2), Val = 00(L^) 00(H) -> 0x0, digital (d2)(d1)(d0),
// d2:Manual Dial,
// d1:Use terminal window before dialing,
// d0:Use terminal window after dialing,
BYTE bDataBits; // 0x12(L:1), Val = 0x8,
BYTE bStopBits; // 0x13(L:1), Val = 0x0,
// StopBits = 1, Val = 0x0
// StopBits = 1.5,Val = 0x1
// StopBits = 2, Val = 0x2
WORD wParity; // 0x14(L:2), Val = 00(^L) 00(H) -> 0x0
// Parity = None, Val = 0x0
// Parity = Odd, Val = 0x1
// Parity = Even, Val = 0x2
// Parity = Mark, Val = 0x3
// Parity = Space,Val = 0x4
WCHAR wszAtCmd[331]; // 0x16(L:662),
// Why "331" -> Reg DevCfg TotalLen : 684(0~0x2AB)
// 684(0~0x2AB) - 22(0x0~0x15->0x16) = 662(0x16~0x2AB->0x296)
// 662(0x16~0x2AB->0x296) / sizeof(WCHAR)
} sDevConfig;

我負責

 ... + ...........  政策 我負責. 負責推卸責任. (阿不然你以為哩...) 聽說 記錯了 請見諒 深感抱歉.... 抗(國外)疫(苗)中...