dllimport


Externs and DLL imports


I have this rather strange looking couple of lines in my code, that I am trying to decipher. Does anyone know what it says?
[DllImport("kernel32")]
private static extern int GetPrivateProfileString(string section, string key, string def, StringBuilder retVal, int size, string filePath);
That line is known as Platform Invoke, basically it's just making the function GetPrivateProfileString from kernel32.dll available to your program. Check out http://www.pinvoke.net/default.aspx/kernel32.GetPrivateProfileString for a little more information on that specific function.

Related Links

Cannot create automation object - lotusscript
DllImport is not found C++
Mangled member function name different during dllimport
how to use DllImport in metro-style app
Converting doc file to post script
How can I get a COM component which can be used on Windows phone 8 project with C#
Externs and DLL imports
Mixed native and managed code heap corruption
MarshalDirectiveException
call unmanaged C++ code from C# using pinvoke
Detecting DLL Code Splicing
WOW64 Redirection and LoadLibrary
Using C# dll in Windows phone 7
Python 2.5 Import dll AttributeError
Replacing the Import Table in PE file by standart LoadLibrary
Unresolved external symbol

Categories

HOME
shiro
owl-carousel
parameters
square
settings
gluon-mobile
arangodb
syntaxnet
google-form
endpoint
renjin
bitnami
do-while
modbus-tcp
feathersjs
template-engine
simpleitk
react-toolbox
gmock
strongname
maze
pic32
linked-data
intersystems-cache
winexe
cppreference
scatter3d
postback
python-2.6
dst
paragraph
simplecv
numpy-broadcasting
dcmtk
logback-groovy
outputcache
android-checkbox
opencmis
jboss-4.2.x
openresty
textsum
robomongo
yii2-api
fclose
netbeans6.8
posixct
appdomain
opengl-4
mouseleave
change-tracking
vcloud-director-rest-api
actor-platform
google-cloud-console
myspace
dotnetnuke-7
simevents
ikiwiki
mobiledoc-kit
jaunt-api
qt5.2
ess
google-books
phonertc
doctype
zscript
sha512
cwrsync
gamekit
iiop
mdichild
parallel-testing
dot42
ora-06550
notorm
hibernate-entitymanager
http-patch
c++builder-xe5
breakout
mvc-editor-templates
boost-msm
correlated-subquery
expression-blend-4
workflow-services
catransform3d
google-ajax-api
multiplatform
nhprof
ruby-1.8
ie-compatibility-mode
drupal-fivestar
binomial-heap
sifr3

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App