Hi all,
I use IDiskQuotaControl->FindUserName() and IDiskQuotaControl->AddUserName()
to add quota entry to a network shared volume for every user.
But There are miss match of the function parameters between the Visual
studio promotion and the search result of F1 help.
The Visual studio promotion after I type the funciton name and the “(” is:
///////////
HRESULT FindUserName(LPCWSTR pszDomain,
LPCWSTR pszName, PDISKQUOTA_USER **ppUser);
/////////
but when I search use F1 help:
the result is:
///////////////
HRESULT FindUserName(
LPCWSTR pszLogonName,
PDISKQUOTA_USER *ppUser
);
Then I tried the first function. compile and link ok but when execute to it,
a Debug Error! occurce:
/**************
Debug Error!
Program: ***
Module:
FIle:i386\chkesp.c
Line: 42
The value of ESP was not properly saved across a funciton call. This is
usually a result of calling a function declared with one calling convention
with a funciton pointer declared with a different calling convention.
***************************
I suspect that the error was caused by the reson that there are two
functions one is we used and can compile and link but the real function in
some dll is the other one.
But when I use the second one in code, it can not be compiled. say the this
funciton does not take two parameters.
And the same situation with the AddUserName()
Does any one know how to sovle this problem?
Thanks very much for your help.
Laura.
Post your ad for free now! http://personals.yahoo.ca