Click here to Skip to main content
15,892,059 members
Home / Discussions / C#
   

C#

 
GeneralCOM Out Of Process Object Equivalent Pin
Anonymous24-Mar-03 11:10
Anonymous24-Mar-03 11:10 
GeneralImporting SWF Pin
zamazula24-Mar-03 10:11
zamazula24-Mar-03 10:11 
Generaldisabling/greying a treeview node Pin
vlusardi24-Mar-03 8:58
vlusardi24-Mar-03 8:58 
GeneralRe: disabling/greying a treeview node Pin
Don_s25-Mar-03 2:57
Don_s25-Mar-03 2:57 
GeneralRe: disabling/greying a treeview node Pin
vlusardi25-Mar-03 6:42
vlusardi25-Mar-03 6:42 
GeneralSecurity Permissions Pin
anirudh24-Mar-03 8:54
anirudh24-Mar-03 8:54 
GeneralRe: Security Permissions Pin
James T. Johnson24-Mar-03 13:19
James T. Johnson24-Mar-03 13:19 
QuestionHow to get Windows Directory with C# Pin
Mmithat24-Mar-03 8:28
Mmithat24-Mar-03 8:28 
I was wondering If anyone had an experience with retrieving path of the Windows directory C#
Unfortunately, Directory namespace has no class/member function to retrieve this information,
And when I try to use
this piece of code to import SDK function:

[DllImport("kernel32")]<br />
private static extern uint GetWindowsDirectory(string lpBuffer,  // buffer for Windows directory<br />
uint uSize        // size of directory buffer<br />
);	


But apperantly I couldnt make this work.
Basically lpBuffer should be ref parameter in C#, but in decleration of this function is LPSTR in SDK,
Any help will be appreciated,
Thanks,

~Mithat
AnswerRe: How to get Windows Directory with C# Pin
leppie24-Mar-03 8:35
leppie24-Mar-03 8:35 
GeneralRe: How to get Windows Directory with C# Pin
Mmithat24-Mar-03 9:29
Mmithat24-Mar-03 9:29 
GeneralRe: How to get Windows Directory with C# Pin
leppie24-Mar-03 9:54
leppie24-Mar-03 9:54 
GeneralRe: How to get Windows Directory with C# Pin
Mmithat24-Mar-03 10:03
Mmithat24-Mar-03 10:03 
GeneralRe: How to get Windows Directory with C# Pin
leppie24-Mar-03 9:57
leppie24-Mar-03 9:57 
GeneralRe: How to get Windows Directory with C# Pin
Mmithat24-Mar-03 10:03
Mmithat24-Mar-03 10:03 
AnswerRe: How to get Windows Directory with C# Pin
James T. Johnson24-Mar-03 13:09
James T. Johnson24-Mar-03 13:09 
GeneralRe: How to get Windows Directory with C# Pin
Member 13901624-Mar-03 23:48
Member 13901624-Mar-03 23:48 
GeneralRe: How to get Windows Directory with C# Pin
Stephane Rodriguez.25-Mar-03 0:28
Stephane Rodriguez.25-Mar-03 0:28 
Generalwinamp Pin
Vlad Beu24-Mar-03 7:37
Vlad Beu24-Mar-03 7:37 
QuestionIs an array of ref's or out's possible? Pin
Marc Clifton24-Mar-03 7:15
mvaMarc Clifton24-Mar-03 7:15 
AnswerRe: Is an array of ref's or out's possible? Pin
leppie24-Mar-03 8:27
leppie24-Mar-03 8:27 
GeneralRe: Is an array of ref's or out's possible? Pin
Marc Clifton24-Mar-03 9:59
mvaMarc Clifton24-Mar-03 9:59 
GeneralEmbed Seperate "Document" Icon Pin
Scott Lee24-Mar-03 6:51
Scott Lee24-Mar-03 6:51 
Generalbgcolor of the box within the checkbox Pin
hogehoge24-Mar-03 5:16
hogehoge24-Mar-03 5:16 
GeneralExternal exes Pin
Marix24-Mar-03 5:09
Marix24-Mar-03 5:09 
GeneralRe: External exes Pin
leppie24-Mar-03 8:30
leppie24-Mar-03 8:30 

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.