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

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
how to import/export dll and use its function

Categories

HOME
beautifulsoup
azure-stream-analytics
gridview
api
prism
dns
character-encoding
zend-framework
vscode-extensions
bitbucket-api
seo
database-normalization
entity-framework-core
3d-reconstruction
polling
python-multithreading
gluon-mobile
teechart
extjs4.2
jquery-ui-sortable
gkturnbasedmatch
zerobrane
pyramid
foreign-keys
replication
lilypond
jquery-ias
dpdk
imageresizer
resourcebundle
mount
syntax-highlighting
fractions
failover
volatile
recurring-events
sql-server-2000
jmockit
hard-drive
twos-complement
python-import
indy10
getlasterror
searchkit
tex
protein-database
levenshtein-distance
stylecop
double-click
facebook-pixel
dtsearch
launchctl
mongotemplate
dt
libjpeg
android-instrumentation
choice
mapxtreme
envi
adafruit
model-associations
jquery-jscrollpane
mapinfo
avspeechsynthesizer
cfchart
stream-processing
kendo-upload
xvim
telepat
cosine-similarity
filesplitting
sonarqube-5.0
punycode
webfinger
live555
grails-plugin-rabbitmq
jquery-slider
ecslidingviewcontroller
gd-graph
mysql-error-1044
windows-phone-8-sdk
workitem
rmdir
metaweblog
updatesourcetrigger
globals
pos-for-.net
glui
perl5.12
business-model
cardspace

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