Click here to Skip to main content
16,011,578 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CListBox WM_MEASUREITEM problems Pin
Shog92-Oct-02 14:18
sitebuilderShog92-Oct-02 14:18 
GeneralRe: CListBox WM_MEASUREITEM problems Pin
alex.barylski2-Oct-02 19:59
alex.barylski2-Oct-02 19:59 
Questionhow the control goes to my own created procedure Pin
imran_rafique2-Oct-02 13:12
imran_rafique2-Oct-02 13:12 
AnswerRe: how the control goes to my own created procedure Pin
Anders Molin2-Oct-02 13:39
professionalAnders Molin2-Oct-02 13:39 
AnswerRe: how the control goes to my own created procedure Pin
jmkhael2-Oct-02 22:50
jmkhael2-Oct-02 22:50 
Questionhow to log off and login user Pin
imran_rafique2-Oct-02 12:56
imran_rafique2-Oct-02 12:56 
AnswerRe: how to log off and login user Pin
Nilesh Karkhanis3-Oct-02 3:51
Nilesh Karkhanis3-Oct-02 3:51 
GeneralRAS from service Pin
Alexey Yakovlev2-Oct-02 12:54
Alexey Yakovlev2-Oct-02 12:54 
I am trying to establish a RAS-connection from a service with
the following code:

//read entry parameters
BOOL password;
RASDIALPARAMS params;
memset(&params, 0, sizeof(RASDIALPARAMS));
params.dwSize = sizeof(RASDIALPARAMS);
lstrcpyn(params.szEntryName, name, sizeof(params.szEntryName));

m_error = ::RasGetEntryDialParams(NULL,
&params, &password);

LOG(3, "RAS::RasGetEntryDialParams\n"
" name=%s\n"
" phone=%s\n"
" callback=%s\n"
" user=%s\n"
" pass=%s\n"
" domain=%s\n"
" error=%d\n",
params.szEntryName,
params.szPhoneNumber,
params.szCallbackNumber,
params.szUserName,
params.szPassword,
params.szDomain,
m_error);

//try to connect
m_error = ::RasDial(NULL, NULL, &params, 0, NULL, &m_hras);
if (!m_error)
return true; //success

This works just fine if code runs as "normal" executable, but
cannot read dial-up entry parameters from service under
"LocalSystem" account, i.e. LOG prints entry name only.

What security settings am I missing?

Thank you,
Alexey

Questionhow to halt mouse and key board Pin
imran_rafique2-Oct-02 12:43
imran_rafique2-Oct-02 12:43 
AnswerRe: how to halt mouse and key board Pin
alex.barylski2-Oct-02 13:36
alex.barylski2-Oct-02 13:36 
GeneralRe: how to halt mouse and key board Pin
imran_rafique2-Oct-02 17:02
imran_rafique2-Oct-02 17:02 
GeneralRe: how to halt mouse and key board Pin
Chris Losinger2-Oct-02 19:16
professionalChris Losinger2-Oct-02 19:16 
GeneralMultithreading :: MFC Pin
valikac2-Oct-02 12:18
valikac2-Oct-02 12:18 
GeneralRe: Multithreading :: MFC Pin
Michael Dunn2-Oct-02 19:23
sitebuilderMichael Dunn2-Oct-02 19:23 
GeneralRe: Multithreading :: MFC Pin
valikac2-Oct-02 19:57
valikac2-Oct-02 19:57 
GeneralDetecting disk letter changes on 2K/XP Pin
Mukkie2-Oct-02 11:51
Mukkie2-Oct-02 11:51 
GeneralDC absolute position Pin
Goa2-Oct-02 11:27
Goa2-Oct-02 11:27 
GeneralRe: DC absolute position Pin
Scott H. Settlemier2-Oct-02 12:03
Scott H. Settlemier2-Oct-02 12:03 
GeneralRe: DC absolute position Pin
alex.barylski2-Oct-02 12:08
alex.barylski2-Oct-02 12:08 
QuestionWM_LBUTTONDBLCLK not coming ? Pin
insanely4202-Oct-02 11:14
insanely4202-Oct-02 11:14 
AnswerRe: WM_LBUTTONDBLCLK not coming ? Pin
valikac2-Oct-02 11:22
valikac2-Oct-02 11:22 
AnswerRe: WM_LBUTTONDBLCLK not coming ? Pin
alex.barylski2-Oct-02 11:56
alex.barylski2-Oct-02 11:56 
GeneralRe: WM_LBUTTONDBLCLK not coming ? Pin
insanely4203-Oct-02 21:59
insanely4203-Oct-02 21:59 
GeneralDNS to IP resolution Pin
Anonymous2-Oct-02 11:00
Anonymous2-Oct-02 11:00 
GeneralRe: DNS to IP resolution Pin
Dave Bryant2-Oct-02 11:06
Dave Bryant2-Oct-02 11:06 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.