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

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
Declare and <DllImport> in VB.NET have different results

Categories

HOME
httparty
jpa
google-spreadsheet
flex
sitecore
sublimetext
rendering
database-normalization
cq5
web-hosting
nested-if
ado.net
vert.x
sendgrid-api-v3
openstreetmap
fhir
php-5.6
tput
favicon
symmetricds
bitnami
modbus-tcp
easyphp
html5-appcache
nodemcu
parcelable
short-url
dynamically-generated
roundup
game-theory
jquery-multiselect
nstimer
winpe
autolisp
yowsup
numpy-broadcasting
engine.io
openerp-7
openalpr
sessionstorage
trigonometry
vmware-fusion
memory-mapping
stylecop
facebook-social-plugins
getchar
dynamic-linq
libgphoto2
builder
tinymce-3
convex-optimization
mouseleave
simplepie
meteor-packages
grails-plugin
flex-monkey
lrs
uicolor
mongodb-php
xdoclet
qiime
aurora
project-organization
beanstalk
halcon
invoke-sqlcmd
kendo-upload
cycle2
file-move
mmwormhole
infosphere-spl
at-job
post-commit-hook
strawberry-perl
verold
dct
paste
android-framework
notorm
light
stacky
mkv
pstack
monotouch.dialog
google-maps-mobile
expression-blend-4
django-paypal
instantiationexception
sun
application-planning
appliance
commercial-application
netbeans6.1

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