mirror of
https://github.com/reactos/reactos.git
synced 2024-12-30 19:14:31 +00:00
Add some debugging.
svn path=/trunk/; revision=8177
This commit is contained in:
parent
459d72e610
commit
b829420396
2 changed files with 6 additions and 3 deletions
|
@ -1,4 +1,3 @@
|
||||||
Makefile
|
|
||||||
netapi32.def
|
netapi32.def
|
||||||
netapi32.dll
|
netapi32.dll
|
||||||
netapi32.dll.dbg.c
|
netapi32.dll.dbg.c
|
||||||
|
|
|
@ -296,9 +296,9 @@ NetWkstaTransportEnum(LPWSTR ServerName, DWORD level, PBYTE* pbuf,
|
||||||
* NetWkstaUserGetInfo (NETAPI32.@)
|
* NetWkstaUserGetInfo (NETAPI32.@)
|
||||||
*/
|
*/
|
||||||
NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
|
NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
|
||||||
PBYTE* bufptr)
|
LPBYTE* bufptr)
|
||||||
{
|
{
|
||||||
TRACE("(%s, %ld, %p)\n", debugstr_w(reserved), level, bufptr);
|
FIXME("(%s, %ld, %p)\n", debugstr_w(reserved), level, bufptr);
|
||||||
switch (level)
|
switch (level)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -317,9 +317,11 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
|
||||||
if (!GetUserNameW(ui->wkui0_username, &dwSize))
|
if (!GetUserNameW(ui->wkui0_username, &dwSize))
|
||||||
{
|
{
|
||||||
NetApiBufferFree(ui);
|
NetApiBufferFree(ui);
|
||||||
|
FIXME("NetWkstaUserGetInfo - ERROR_NOT_ENOUGH_MEMORY\n");
|
||||||
return ERROR_NOT_ENOUGH_MEMORY;
|
return ERROR_NOT_ENOUGH_MEMORY;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
FIXME("NetWkstaUserGetInfo - trying NetApiBufferReallocate\n");
|
||||||
NetApiBufferReallocate(
|
NetApiBufferReallocate(
|
||||||
*bufptr, sizeof(WKSTA_USER_INFO_0) +
|
*bufptr, sizeof(WKSTA_USER_INFO_0) +
|
||||||
(lstrlenW(ui->wkui0_username) + 1) * sizeof(WCHAR),
|
(lstrlenW(ui->wkui0_username) + 1) * sizeof(WCHAR),
|
||||||
|
@ -346,6 +348,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
|
||||||
|
|
||||||
/* get some information first to estimate size of the buffer */
|
/* get some information first to estimate size of the buffer */
|
||||||
ui0 = NULL;
|
ui0 = NULL;
|
||||||
|
FIXME("NetWkstaUserGetInfo - ??NetWkstaUserGetInfo\n");
|
||||||
NetWkstaUserGetInfo(NULL, 0, (PBYTE *) &ui0);
|
NetWkstaUserGetInfo(NULL, 0, (PBYTE *) &ui0);
|
||||||
username_sz = lstrlenW(ui0->wkui0_username) + 1;
|
username_sz = lstrlenW(ui0->wkui0_username) + 1;
|
||||||
|
|
||||||
|
@ -418,6 +421,7 @@ NET_API_STATUS WINAPI NetWkstaUserGetInfo(LPWSTR reserved, DWORD level,
|
||||||
ERR("Invalid level %ld is specified\n", level);
|
ERR("Invalid level %ld is specified\n", level);
|
||||||
return ERROR_INVALID_LEVEL;
|
return ERROR_INVALID_LEVEL;
|
||||||
}
|
}
|
||||||
|
FIXME("NetWkstaUserGetInfo - ERROR_NOT_ENOUGH_MEMORY\n");
|
||||||
return NERR_Success;
|
return NERR_Success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue