Click here to Skip to main content
15,903,033 members
Home / Discussions / C#
   

C#

 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 7:35
mveRichard MacCutchan12-Nov-11 7:35 
GeneralRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 7:44
sitebuilderLuc Pattyn12-Nov-11 7:44 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan12-Nov-11 8:10
mveRichard MacCutchan12-Nov-11 8:10 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie12-Nov-11 22:58
CCodeNewbie12-Nov-11 22:58 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan13-Nov-11 1:23
mveRichard MacCutchan13-Nov-11 1:23 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie13-Nov-11 2:26
CCodeNewbie13-Nov-11 2:26 
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan13-Nov-11 3:37
mveRichard MacCutchan13-Nov-11 3:37 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie13-Nov-11 4:13
CCodeNewbie13-Nov-11 4:13 
Richard, thank you.

I knew that Main had to go somewhere, I just wasn't sure where.

I know (having spent hours on pinvoke.net) that I need to use RegSetValueEx, but thanks.

I came to this following a desire to have an EventLog monitor which exports Security Events to a SQL db.
The Application & System logs work perfectly but the only reason that the Security log wasn't working was because Local Policies\Audit Policy wasn't configured for Success\Failure audits. Thus I needed a way to programmatically enable auditing. So here I am.

I have a 3-week holiday coming up soon. I'll spend it reading. Smile | :)

The problem I (and a whole bunch of other forum-posters by the looks of things) have is that the tuts are fine for the day-to-day stuff but when you need to go from Beginner to Novice or Novice to Intermediate the only real recourse is experience or the experience of others (read: forums).

There are, for example, dozens of sites with very detailed and informative instructions on using PInvoke for REG_SZ, DWORD & other types. I have yet to see one on getting "Default" i.e. "unknown" types and REG_NONE values (where the example actually works and some attention seeker isn't just posting garbage)

Anyhoo, rant complete, thanks muchly to you and Luc.
GeneralRe: PInvoke registry value - Help please. Pin
Richard MacCutchan13-Nov-11 4:30
mveRichard MacCutchan13-Nov-11 4:30 
AnswerRe: PInvoke registry value - Help please. Pin
Luc Pattyn12-Nov-11 4:35
sitebuilderLuc Pattyn12-Nov-11 4:35 
AnswerRe: PInvoke registry value - Help please. Pin
biop.codeproject13-Nov-11 15:05
biop.codeproject13-Nov-11 15:05 
GeneralRe: PInvoke registry value - Help please. Pin
CCodeNewbie13-Nov-11 22:14
CCodeNewbie13-Nov-11 22:14 
QuestionForm.Show() in a backgroundworker doesn't work Pin
teknolog12311-Nov-11 22:41
teknolog12311-Nov-11 22:41 
AnswerRe: Form.Show() in a backgroundworker doesn't work Pin
Richard MacCutchan11-Nov-11 22:53
mveRichard MacCutchan11-Nov-11 22:53 
GeneralRe: Form.Show() in a backgroundworker doesn't work Pin
teknolog12311-Nov-11 23:48
teknolog12311-Nov-11 23:48 
AnswerRe: Form.Show() in a backgroundworker doesn't work Pin
Luc Pattyn12-Nov-11 1:56
sitebuilderLuc Pattyn12-Nov-11 1:56 
AnswerRe: Form.Show() in a backgroundworker doesn't work Pin
BobJanova13-Nov-11 22:45
BobJanova13-Nov-11 22:45 
QuestionWinForms - Scroll Panel On Mouse Wheel Pin
Matt U.11-Nov-11 14:27
Matt U.11-Nov-11 14:27 
AnswerRe: WinForms - Scroll Panel On Mouse Wheel Pin
BillWoodruff11-Nov-11 15:54
professionalBillWoodruff11-Nov-11 15:54 
GeneralRe: WinForms - Scroll Panel On Mouse Wheel Pin
Matt U.11-Nov-11 16:10
Matt U.11-Nov-11 16:10 
AnswerRe: WinForms - Scroll Panel On Mouse Wheel Pin
OriginalGriff11-Nov-11 21:51
mveOriginalGriff11-Nov-11 21:51 
GeneralRe: WinForms - Scroll Panel On Mouse Wheel Pin
Matt U.12-Nov-11 1:43
Matt U.12-Nov-11 1:43 
QuestionAnyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Alaric_11-Nov-11 7:22
professionalAlaric_11-Nov-11 7:22 
AnswerRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Wayne Gaylard11-Nov-11 7:33
professionalWayne Gaylard11-Nov-11 7:33 
GeneralRe: Anyone know how to programmatically change the datatype on a column in an Excel worksheet? Pin
Alaric_11-Nov-11 8:12
professionalAlaric_11-Nov-11 8:12 

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.