Click here to Skip to main content
15,880,543 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questiondisable MFC dialog based Microsoft Web Browser showing context menu [modified] Pin
JACyo2-Jul-09 6:39
JACyo2-Jul-09 6:39 
AnswerRe: disable MFC dialog based Microsoft Web Browser showing context menu Pin
Stuart Dootson2-Jul-09 9:30
professionalStuart Dootson2-Jul-09 9:30 
GeneralRe: disable MFC dialog based Microsoft Web Browser showing context menu Pin
JACyo2-Jul-09 15:45
JACyo2-Jul-09 15:45 
GeneralRe: disable MFC dialog based Microsoft Web Browser showing context menu Pin
Stuart Dootson2-Jul-09 20:33
professionalStuart Dootson2-Jul-09 20:33 
Questionconvert vbscript to c++ Pin
Mogaambo2-Jul-09 6:26
Mogaambo2-Jul-09 6:26 
QuestionRe: convert vbscript to c++ Pin
led mike2-Jul-09 7:41
led mike2-Jul-09 7:41 
AnswerRe: convert vbscript to c++ Pin
Mogaambo2-Jul-09 8:32
Mogaambo2-Jul-09 8:32 
GeneralRe: convert vbscript to c++ Pin
led mike2-Jul-09 9:00
led mike2-Jul-09 9:00 
I've never used that API but based on the documentation my first guess would be that if entriesRead is more than 1 the buffer will contain an array of them so you would iterate through the array, something like:

PLOCALGROUP_MEMBERS_INFO_1 pData = (PLOCALGROUP_MEMBERS_INFO_1)buffer;

for(int i = 0;i< entriesRead ;i++, pData++)
{
  pData->lgrmi1_sid;  // etc.
}


Of course I would have to verify that by debugging since I've never worked with it.

BTW: Don't forget to free the buffer Wink | ;)

"bufptr [out]

Pointer to the address that receives the return information structure. The format of this data depends on the value of the level parameter. This buffer is allocated by the system and must be freed using the NetApiBufferFree function. Note that you must free the buffer even if the function fails with ERROR_MORE_DATA."

GeneralRe: convert vbscript to c++ Pin
Mogaambo2-Jul-09 9:06
Mogaambo2-Jul-09 9:06 
GeneralRe: convert vbscript to c++ Pin
Stuart Dootson2-Jul-09 9:26
professionalStuart Dootson2-Jul-09 9:26 
GeneralRe: convert vbscript to c++ Pin
Mogaambo2-Jul-09 9:28
Mogaambo2-Jul-09 9:28 
QuestionRe: convert vbscript to c++ Pin
David Crow2-Jul-09 9:31
David Crow2-Jul-09 9:31 
AnswerRe: convert vbscript to c++ Pin
Mogaambo2-Jul-09 9:39
Mogaambo2-Jul-09 9:39 
GeneralRe: convert vbscript to c++ Pin
Mogaambo2-Jul-09 9:41
Mogaambo2-Jul-09 9:41 
QuestionDynamic char Array Pin
jlgeris2-Jul-09 5:38
jlgeris2-Jul-09 5:38 
AnswerRe: Dynamic char Array Pin
jlgeris2-Jul-09 5:42
jlgeris2-Jul-09 5:42 
AnswerRe: Dynamic char Array Pin
«_Superman_»2-Jul-09 5:54
professional«_Superman_»2-Jul-09 5:54 
GeneralRe: Dynamic char Array Pin
jlgeris2-Jul-09 7:14
jlgeris2-Jul-09 7:14 
GeneralRe: Dynamic char Array Pin
Stuart Dootson2-Jul-09 9:20
professionalStuart Dootson2-Jul-09 9:20 
GeneralRe: Dynamic char Array Pin
jlgeris2-Jul-09 9:32
jlgeris2-Jul-09 9:32 
AnswerRe: Dynamic char Array Pin
Stuart Dootson2-Jul-09 10:46
professionalStuart Dootson2-Jul-09 10:46 
QuestionCString::Format causing Advanced Direct Buffer Access error Pin
colm omahony2-Jul-09 5:18
colm omahony2-Jul-09 5:18 
AnswerRe: CString::Format causing Advanced Direct Buffer Access error Pin
Stuart Dootson2-Jul-09 6:33
professionalStuart Dootson2-Jul-09 6:33 
GeneralRe: CString::Format causing Advanced Direct Buffer Access error Pin
colm omahony3-Jul-09 3:29
colm omahony3-Jul-09 3:29 
GeneralRe: CString::Format causing Advanced Direct Buffer Access error Pin
Stuart Dootson3-Jul-09 3:37
professionalStuart Dootson3-Jul-09 3:37 

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.